Retrieves instances that failed a cloud platform configuration check item.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListCheckInstanceResult |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CheckId |
integer |
Yes |
The check item ID. |
23 |
| Statuses |
array |
No |
The collection of check item statuses. |
|
|
string |
No |
The status of the check item. Valid values:
|
PASS |
|
| InstanceIdKey |
string |
No |
The instance ID of the check item. |
i-uf64w4q6p9jti5gl**** |
| InstanceNameKey |
string |
No |
The instance name of the check item. |
i-uf64w4q6p9jti5gl**** |
| RegionIdKey |
string |
No |
The region ID of the instance. |
cn-qingdao |
| CurrentPage |
integer |
No |
The page number of the current page in a paged query. This parameter is used for paging. |
1 |
| PageSize |
integer |
No |
The maximum number of entries per page in a paged query. Maximum value: 100. This parameter is used for paging. |
20 |
| InstanceIds |
array |
No |
The collection of cloud service instance IDs to query. |
|
|
string |
No |
The cloud service instance ID to query. |
i-uf64w4q6p9jti5gl**** |
|
| Lang |
string |
No |
The language type for the request and response messages. Default value: zh. Valid values:
|
zh |
| SortTypes |
array |
No |
The list of sort types for the check item. |
|
|
string |
No |
The sort type of the check item. Currently, the value is fixed to STATUS. |
STATUS |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for this request. You can use it to troubleshoot issues. |
3AB18264-8A1B-52A6-A9AF-A886556E0F2E |
| BasicData |
array<object> |
The list of basic information about affected instances. |
|
|
array<object> |
The basic information about an affected instance. |
||
| Id |
integer |
The check result ID of the instance. |
300054 |
| Status |
string |
The status list of the check item. Multiple statuses are separated by commas (,). Valid values:
|
NOT_PASS |
| RegionId |
string |
The region ID of the instance. |
ap-southeast-1 |
| InstanceId |
string |
The instance ID of the server. |
rm-m5es7ch1s62i4**** |
| InstanceName |
string |
The name of the server instance. |
sg-t4nbk2aodzio52xv**** |
| StatusMessage |
string |
The exception status message of the check item. |
Check task failed |
| InstanceInfo |
object |
The instance information displayed for the corresponding check item. |
|
| FirstUpdateTime |
integer |
The time of the first check. The value is a UNIX timestamp. Unit: milliseconds. |
1716447535531 |
| LastUpdateTime |
integer |
The time of the latest check. The value is a UNIX timestamp. Unit: milliseconds. |
1716447535531 |
| Config |
array<object> |
The current instance information displayed for the corresponding remediation configuration. |
|
|
object |
The instance information struct. |
||
| Name |
string |
The unique name of the corresponding configuration. |
prot |
| Value |
string |
The value of the corresponding configuration for the current asset. |
8080 |
| ShowName |
string |
The internationalized name of the corresponding configuration item. |
prot |
| VendorUserName |
string |
The multi-cloud vendor account name. |
test |
| Columns |
array<object> |
The metadata of the affected instance information display list. |
|
|
array<object> |
The metadata information of the affected instance information display list. |
||
| Type |
string |
The property type of the check instance result. Valid values:
|
text |
| Key |
string |
The key of the list property. |
RegionIdShow |
| ShowName |
string |
The display name. |
Region |
| Search |
boolean |
Indicates whether search is supported. Valid values:
|
true |
| SearchKey |
string |
The key used for search. |
InstanceIdKey |
| Grids |
array<object> |
The list of list-type metadata. |
|
|
object |
The list-type metadata. |
||
| Type |
string |
The type of the check instance result. Valid values:
|
text |
| Key |
string |
The search value. |
RegionIdShow |
| ShowName |
string |
The search display name. |
Region |
| Checks |
array<object> |
The list of extended information about affected instances. |
[{ "SecurityGroupNameShow": { "value": "Sas_Malicious_Ip_Security_Group" }, "InstanceIdShow": { "link": "https://ecs.console.alibabacloud.com/#/securityGroupDetail/region/ap-southeast-1/groupId/sg-t4nbk2aodzio52xvj00s/rule/intranetIngress", "value": "sg-t4nbk2aodzio52xv****" } }] |
|
object |
The extended information about an affected instance. |
[{ "SecurityGroupNameShow": { "value": "Sas_Malicious_Ip_Security_Group" }, "InstanceIdShow": { "link": "https://ecs.console.alibabacloud.com/#/securityGroupDetail/region/ap-southeast-1/groupId/sg-t4nbk2aodzio52xvj00s/rule/intranetIngress", "value": "sg-t4nbk2aodzio52xv****" } }] |
|
|
any |
The check item information. |
{ "InstanceIdShow": { "link": "https://vpc.console.alibabacloud.com/vpc/cn-beijing/vpcs", "value": "ngw-2zenx8j1lf5w8rcdhdqs5" }, "RegionIdShow": { "value": "China(Beijing)" } } |
|
| PageInfo |
object |
The paging information displayed on the page in a paged query. |
|
| CurrentPage |
integer |
The page number of the current page in a paged query. This parameter is used for paging. |
1 |
| PageSize |
integer |
The maximum number of entries per page in a paged query. This parameter is used for paging. |
20 |
| TotalCount |
integer |
The total number of entries. |
100 |
| Count |
string |
The number of entries returned on the current page. |
20 |
Examples
Success response
JSON format
{
"RequestId": "3AB18264-8A1B-52A6-A9AF-A886556E0F2E",
"BasicData": [
{
"Id": 300054,
"Status": "NOT_PASS",
"RegionId": "ap-southeast-1",
"InstanceId": "rm-m5es7ch1s62i4****",
"InstanceName": "sg-t4nbk2aodzio52xv****",
"StatusMessage": "检查任务失败。",
"InstanceInfo": {
"FirstUpdateTime": 1716447535531,
"LastUpdateTime": 1716447535531,
"Config": [
{
"Name": "prot",
"Value": "8080",
"ShowName": "prot"
}
]
},
"VendorUserName": "test"
}
],
"Columns": [
{
"Type": "text",
"Key": "RegionIdShow",
"ShowName": "Region",
"Search": true,
"SearchKey": "InstanceIdKey",
"Grids": [
{
"Type": "text",
"Key": "RegionIdShow",
"ShowName": "Region"
}
]
}
],
"Checks": [
{
"key": "{\n \"InstanceIdShow\": {\n \"link\": \"https://vpc.console.alibabacloud.com/vpc/cn-beijing/vpcs\",\n \"value\": \"ngw-2zenx8j1lf5w8rcdhdqs5\"\n },\n \"RegionIdShow\": {\n \"value\": \"China(Beijing)\"\n }\n }"
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 100,
"Count": "20"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.