You can call this operation to query the number of configuration risks detected in one or more cloud services based on the instance IDs of cloud services.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeRiskListCheckResult

The operation that you want to perform.

Set the value to DescribeRiskListCheckResult.

SourceIp String No 1.2.3.4

The source IP address of the request.

Lang String No zh

The language of the request and response. Valid values:

  • zh: Chinese
  • en: English
CurrentPage Integer No 1

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

PageSize Integer No 10

The number of entries to return on each page.

InstanceIds.N RepeatList No rm-bp1e8t4q15sr3****

The instance ID of the cloud service to be queried. Separate multiple IDs with commas (,).

Note If you do not set the parameter, an empty risk list is returned.

Response parameters

Parameter Type Example Description
List Array

The details of the configuration risks.

InstanceId String rm-bp1e8t4q15sr3****

The instance ID of the queried cloud service.

riskCount Long 3

The total number of configuration risks detected in the current cloud service.

RequestId String 3BFB4989-A108-46A4-954E-FF7EF02D1078

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DescribeRiskListCheckResult
&InstanceIds=rm-bp1e8t4q15sr3****
&<Common request parameters>

Sample success responses

XML format

<DescribeRiskListCheckResultResponse>
      <RequestId>3BFB4989-A108-46A4-954E-FF7EF02D1078</RequestId>
      <List>
            <InstanceId>rm-bp1e8t4q15sr3****</InstanceId>
            <riskCount>3</riskCount>
      </List>
</DescribeRiskListCheckResultResponse>

JSON format

{
	"RequestId": "3BFB4989-A108-46A4-954E-FF7EF02D1078",
	"List": [{
		"InstanceId": "rm-bp1e8t4q15sr3****",
		"riskCount": "3"
	}]
}

Error code

For a list of error codes, visit the API Error Center.