Queries all instances under a Cloud Security Posture Management (CSPM) rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListCheckRuleInstances |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceList |
array<object> |
No |
The list of instances. |
|
|
object |
No |
The list of instances. |
||
| RegionId |
string |
No |
The region where the asset resides. Note
Call the ListCheckInstanceResult operation to obtain this parameter. |
cn-hongkong |
| InstanceId |
string |
No |
The instance ID of the asset. Note
Call the ListCheckInstanceResult operation to obtain this parameter. |
i-wz9fdluqx20mp2x7**** |
| RuleId |
integer |
Yes |
The rule ID. Note
Call the LisCheckRule operation to obtain this parameter. |
123 |
| CurrentPage |
integer |
No |
The page number to return when paging is used. |
1 |
| PageSize |
integer |
No |
The maximum number of entries to return per page when paging is used. Default value: 20. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned message data. |
||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for this request. You can use it to troubleshoot issues. |
7532B7EE-7CE7-5F4D-BF04-B12447DD**** |
| CheckRuleInstances |
array<object> |
The list of instance rule information. |
|
|
object |
|||
| RegionId |
string |
The region ID. |
cn-shanghai |
| InstanceId |
string |
The instance ID of the asset. |
i-j6c76lh1kvrcvwl***** |
| InstanceName |
string |
The instance name of the asset. |
testEcs |
| AliUid |
string |
The Alibaba Cloud account ID. |
103784262032**** |
| CheckId |
string |
The check item ID. |
23 |
| Vendor |
string |
The cloud service provider. Valid values:
|
Aliyun |
| AssetType |
string |
The type of the cloud asset. |
ECS |
| AssetSubType |
string |
The subtype of the cloud service. |
Disk |
Examples
Success response
JSON format
{
"RequestId": "7532B7EE-7CE7-5F4D-BF04-B12447DD****",
"CheckRuleInstances": [
{
"RegionId": "cn-shanghai",
"InstanceId": "i-j6c76lh1kvrcvwl*****",
"InstanceName": "testEcs"
}
],
"AliUid": "103784262032****",
"CheckId": "23",
"Vendor": "Aliyun",
"AssetType": "ECS",
"AssetSubType": "Disk"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.