Help Center> Config> API Reference> API> Compliance> Querying the Evaluation Status of an Assignment

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

Table 1 Path parameters

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

Table 2 Response body parameters

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

Table 3 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Status code: 403

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Status code: 404

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Status code: 500

Table 6 Response body parameters

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.

  • Example 1

    "Succeeded"
  • Example 2

    "5fb6292765ee7f5e92a7ca4b"
  • Example 3

    "2020-11-19T08:13:27.441Z"
  • Example 4

    "2020-11-19T08:13:27.485Z"
  • Example 5

    null

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.