Introduction
Prerequisites (if applicable)
- HCP Terraform
- Health Assessment
Overview
When triggering a new assessment by clicking Start health assessment on the workspace's Health page, the following error may appear:
Error
Error: Ember Data Request POST /api/v2/workspaces/ws-...../actions/assess returned a 404
Payload (application/vnd.api+json; charset=utf-8) [object Object]
Procedures
When error 404 Payload shows up, only organization owners have permissions to trigger health assessments on-demand within HCP Terraform. In the backend, there is a common provider API design which will return 404 instead of 403 for incorrectly authorized although 403 is the error code for permission issue.
Returning a 403 is more specific error for permissions but in this case, but when triggering the run assessment its accessing another endpoint. This is referencing an api in the backend which returns the 404 as the page could not be found (because of team permissions).
Note: On-demand assessments are only available in the HCP Terraform user interface.
Helpful tips:
- The time it takes to complete an assessment can vary based on network latency and the number of resources managed by the workspace.
- When health assessments are enabled on multiple workspaces, assessments may run concurrently. Health assessments do not affect the concurrency limit
- HCP Terraform sends notifications about health assessment results according to the workspace’s settings.