Users of certain versions of Terraform Enterprise may experience issues with API filtering attributes not working as expected. For example, when calling the List Workspaces API and using the following filter yet the API does not appear to respect the filter when it outputs the results showing all workspace statuses instead of the filtered status only.
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/vnd.api+json" \
runs?filter%5Bstatus%5D=discarded&fields%5Brun%5D%5B%5D=status" | jq '.'
- A known version of Terraform Enterprise that does not honor API filtering is
- Recommendation is to upgrade Terraform Enterprise to the latest version possible.
Should you still encounter issues with using API filtering on the latest version, please contact support for assistance.