Querying the Evaluation Status of an Assignment
Function
This API is used to query the evaluation status of an assignment based on the assignment ID.
URI
GET /v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}/policy-states/evaluation-state
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| domain_id | Yes | String | Specifies the account ID. Maximum length: 36 |
| policy_assignment_id | Yes | String | Specifies the assignment ID. Maximum length: 36 |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| policy_assignment_id | String | Specifies the assignment ID. |
| state | String | Specifies the evaluation status. |
| start_time | String | Specifies the evaluation start time. |
| end_time | String | Specifies the evaluation end time. |
| error_message | String | Specifies the error message for the evaluation failure. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Example Request
None
Example Response
Status code: 200
Operation succeeded.
Status Codes
| Status Code | Description |
|---|---|
| 200 | Operation succeeded. |
| 400 | Invalid parameter. |
| 403 | Failed to authenticate the user or the user does not have the operation permission. |
| 404 | No assignments found. |
| 500 | Internal server error. |
Error Codes
See Error Codes.
Last Article: Running a Resource Compliance Evaluation
Next Article: Querying the Compliance Result of a Resource
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.