Evaluation Results
After an evaluation is triggered, the corresponding evaluation result (PolicyState) will be generated.
You can use a JSON expression to represent an evaluation result, as shown in Table 1.
| Parameter | Description | Remarks |
|---|---|---|
| information | Specifies the evaluation result. |
|
| domain_id | Specifies the account ID. | This parameter is used to distinguish users. domain_id in the evaluation result will not be left blank. |
| resource_id | Specifies the ID of the evaluated resource. | N/A |
| resource_name | Specifies the name of the evaluated resource. | N/A |
| resource_provider | Specifies the service the resource belongs to. | N/A |
| resource_type | Specifies the resource type. | N/A |
| compliance_state | Specifies the compliance result. | Possible values are:
|
| policy_assignment_id | Specifies the ID of the assignment used for evaluation. | N/A |
| policy_definition_id | Specifies the ID of the policy used for evaluation. | N/A |
| evaluation_time | Specifies the evaluation timestamp. | N/A |
The following JSON indicates a non-compliant evaluation result:
{
"information": "ecs instances cannot have public ip",
"domain_id": "domainidforpolicy",
"resource_id": "special-ecs1-with-public-ip-with-tag",
"resource_name": "ecs1-with-public-ip-with-tag",
"resource_provider": "ecs",
"resource_type": "cloudservers",
"compliance_state": "NonCompliant",
"policy_assignment_id": "5fa9f8a2501013093a192b07",
"policy_definition_id": "5fa9f8a2501013093a192b06",
"evaluation_time": 1604974757084
} Last Article: Assignments
Next Article: Compliance Policy Examples
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.