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 |
---|---|---|
domain_id |
Account ID |
This parameter is used to distinguish users. domain_id will be provided in each evaluation result. |
resource_id |
Specifies the ID of the evaluated resource. |
N/A |
resource_name |
Specifies the service type. |
N/A |
resource_provider |
Specifies the service the resource belongs to. |
N/A |
resource_type |
Specifies the resource type. |
N/A |
trigger_type |
Trigger type |
Possible values are:
|
compliance_state |
Specifies the evaluation result. |
Possible values are:
|
policy_assignment_id |
Rule ID |
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 expression shows a non-compliant evaluation result:
{ "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", "trigger_type": "resource", "compliance_state": "NonCompliant", "policy_assignment_id": "5fa9f8a2501013093a192b07", "policy_definition_id": "5fa9f8a2501013093a192b06", "evaluation_time": 1604974757084 }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot