All Products
Search
Document Center

Cloud Config:DescribeEvaluationResults

Last Updated:Jul 02, 2025

Queries the evaluation results of a rule.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
config:DescribeEvaluationResultsget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceTypestringNo

The type of resource. If you query the compliance evaluation results of resources by resource type, you must specify this parameter.

You can call the GetSupportedResourceTypes operation to query the resource types supported by Cloud Config. For more information, see GetSupportedResourceTypes .

Note You must specify the ResourceType or ConfigRuleId parameter.
ACS::ECS::Instance
ResourceIdstringNo

The resource ID. If you query the compliance evaluation results of resources by resource type, you must specify this parameter.

i-bp151g9tpto890zr****
ComplianceTypestringNo

The compliance evaluation result. Valid values:

  • COMPLIANT: The resources are evaluated as compliant.
  • NON_COMPLIANT: The resources are evaluated as non-compliant.
  • NOT_APPLICABLE: The rule does not apply to the resources.
  • INSUFFICIENT_DATA: The resource data is insufficient.
COMPLIANT
PageNumberintegerNo

The number of the page to return. Pages start from page 1.

1
PageSizeintegerNo

The number of entries to return per page. Valid values: 1 to 100.

10
ConfigRuleIdstringNo

The rule ID. If you query the compliance evaluation results of resources by rule, you must specify this parameter.

Note You must specify the ResourceType or ConfigRuleId parameter.
cr-2da35180a8d1008e****
MultiAccountbooleanNo

This parameter is unavailable since 00:00:00 on June 30, 2021. Account group-related operations are provided as an alternative after 00:00:00 on May 30, 2021. If you are using this parameter, we recommend that you switch to account group-related operations after 00:00:00 on May 30, 2021. For information about account groups, see Overview .

false
MemberIdlongNo

This parameter is unavailable since 00:00:00 on June 30, 2021. Account group-related operations are provided as an alternative after 00:00:00 on May 30, 2021. If you are using this parameter, we recommend that you switch to account group-related operations after 00:00:00 on May 30, 2021. For information about account groups, see Overview .

123456789

Response parameters

ParameterTypeDescriptionExample
object

N/A.

EvaluationResultsobject

The information about the compliance evaluation results returned.

EvaluationResultListarray<object>

Indicates whether remediation is enabled. Valid values:

  • true
  • false
EvaluationResultobject
Annotationstring

The annotation to the resource that is evaluated to be non-compliant.

{"operator": "StringEquals", "property": "$.SslProtocol", "desiredValue": "on", "configuration": "['off']"}
ComplianceTypestring

The compliance evaluation result of the resource. Valid values:

  • COMPLIANT: The resource is evaluated to be compliant.
  • NON_COMPLIANT: The resource is evaluated to be non-compliant.
  • NOT_APPLICABLE: The rule does not apply to the resource.
  • INSUFFICIENT_DATA: The resource data is insufficient.
COMPLIANT
ConfigRuleInvokedTimestamplong

The timestamp that was generated when the rule was triggered.

1589941923258
EvaluationResultIdentifierobject

The identifier of the compliance evaluation result.

EvaluationResultQualifierobject

The information of the rule and the evaluated resource.

ConfigRuleArnstring

The Alibaba Cloud Resource Name (ARN) of the rule.

acs:config::120390217529****:config-rule/cr-2da35180a8d1008e****
ConfigRuleIdstring

The ID of the rule.

cr-2da35180a8d1008e****
ConfigRuleNamestring

The name of the rule.

test-rule-name
RegionIdstring

The ID of the region.

cn-hangzhou
ResourceIdstring

The ID of the evaluated resource.

i-bp151g9tpto890zr****
ResourceNamestring

The type of the evaluated resource.

launch-advisor-20200330
ResourceTypestring

The type of the evaluated resource.

ACS::ECS::Instance
OrderingTimestamplong

The timestamp that was generated when the compliance evaluation was performed.

1589941923117
InvokingEventMessageTypestring

The trigger type of the rule. Valid values:

  • ConfigurationItemChangeNotification: The rule is triggered by configuration changes.
  • ScheduledNotification: The rule is triggered as scheduled.
ConfigurationItemChangeNotification
RemediationEnabledboolean

Specifies whether to enable the remediation template. Valid values:

  • true
  • false
false
ResultRecordedTimestamplong

The timestamp that was generated when the compliance evaluation result was recorded.

1589941923432
RiskLevelinteger

The risk level of the non-compliant resource. Valid values:

  • 1: high risk
  • 2: medium risk
  • 3: low risk
1
PageNumberinteger

The page number of the returned page. Pages start from page 1.

1
PageSizeinteger

The number of entries returned per page. Valid values: 1 to 100.

10
TotalCountlong

The total number of compliance evaluation results.

2
RequestIdstring

The request ID.

D296EE41-1143-4B13-83BB-909008100130

Examples

Sample success responses

JSONformat

{
  "EvaluationResults": {
    "EvaluationResultList": [
      {
        "Annotation": {
          "operator": "StringEquals",
          "property": "$.SslProtocol",
          "desiredValue": "on",
          "configuration": "['off']"
        },
        "ComplianceType": "COMPLIANT",
        "ConfigRuleInvokedTimestamp": 1589941923258,
        "EvaluationResultIdentifier": {
          "EvaluationResultQualifier": {
            "ConfigRuleArn": "acs:config::120390217529****:config-rule/cr-2da35180a8d1008e****",
            "ConfigRuleId": "cr-2da35180a8d1008e****",
            "ConfigRuleName": "test-rule-name",
            "RegionId": "cn-hangzhou",
            "ResourceId": "i-bp151g9tpto890zr****",
            "ResourceName": "launch-advisor-20200330",
            "ResourceType": "ACS::ECS::Instance"
          },
          "OrderingTimestamp": 1589941923117
        },
        "InvokingEventMessageType": "ConfigurationItemChangeNotification",
        "RemediationEnabled": false,
        "ResultRecordedTimestamp": 1589941923432,
        "RiskLevel": 1
      }
    ],
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 2
  },
  "RequestId": "D296EE41-1143-4B13-83BB-909008100130"
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionYou are not authorized to perform this operation.You are not authorized to perform this operation.
404CloudConfigServiceRoleNotExistedThe CloudConfigServiceRole does not exist.-
404AccountNotExistedYour account does not exist.-
503ServiceUnavailableThe request has failed due to a temporary failure of the server.The request has failed due to a temporary failure of the server.

For a list of error codes, visit the Service error codes.