All Products
Search
Document Center

Cloud Governance Center:ListEvaluationMetricDetails

Last Updated:Nov 15, 2024

Queries the non-compliant resource information of a check item, including the name, ID, category, type, region, and related metadata of non-compliant resources.

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:
    • The required resource types are displayed in bold characters.
    • 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
governance:ListEvaluationMetricDetailslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
IdstringNo

The ID of the check item.

You can call the ListEvaluationMetadata operation to query the ID of the check item.

xfyve5****
AccountIdlongNo

The Alibaba Cloud account ID of the member. This parameter takes effect only when a multi-account governance maturity check is performed.

103144549568****
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results.

AAAAAGEaXR18y1rqykZHIqRuBejOqED4S3Xne33c7zbn****
MaxResultsintegerNo

The maximum number of entries to return for a single request. Default value: 5.

5
RegionIdstringNo

The region ID.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

NextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results.

AAAAAGEaXR18y1rqykZHIqRuBejOqED4S3Xne33c7zbn****
RequestIdstring

The request ID.

AC9BD94C-D20C-4D27-88D4-89E8D75C****
Resourcesarray<object>

The details of the non-compliant resources.

Resourceobject

The details of the non-compliant resource.

ComplianceTypestring

The compliance status of the resource. Valid values:

  • NonCompliant: non-compliant.
  • Excluded: ignored.
  • PendingExclusion: to be ignored.
  • PendingInclusion: to be unignored.
NonCompliant
RegionIdstring

The region ID of the resource.

cn-hangzhou
ResourceClassificationstring

The check results further analyzed by auxiliary decision-making.

Note This parameter is returned only when the check item supports the auxiliary decision-making feature.
RecentUnloginRamUser
ResourceIdstring

The ID of the resource.

26435103783237****
ResourceNamestring

The name of the resource.

ResourceOwnerIdlong

The ID of the Alibaba Cloud account that owns the resource.

176618589410****
ResourcePropertiesarray<object>

The attributes of the resource.

ResourcePropertieobject

The attribute of the resource.

PropertyNamestring

The name of the resource attribute.

DisplayName
PropertyValuestring

The value of the resource attribute.

ResourceTypestring

The type of the resource.

ACS::RAM::User

Examples

Sample success responses

JSONformat

{
  "NextToken": "AAAAAGEaXR18y1rqykZHIqRuBejOqED4S3Xne33c7zbn****",
  "RequestId": "AC9BD94C-D20C-4D27-88D4-89E8D75C****",
  "Resources": [
    {
      "ComplianceType": "NonCompliant",
      "RegionId": "cn-hangzhou",
      "ResourceClassification": "RecentUnloginRamUser",
      "ResourceId": "26435103783237****",
      "ResourceName": "",
      "ResourceOwnerId": 0,
      "ResourceProperties": [
        {
          "PropertyName": "DisplayName",
          "PropertyValue": ""
        }
      ],
      "ResourceType": "ACS::RAM::User"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
404InvalidEnterpriseRealName.NotFoundThe specified account has not passed enterprise real name verification. Please complete the verification for the account first.The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.
500InternalErrorA system error occurred.A system error occurred.

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