Queries the list of instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:ListInstance |
list |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
InstanceName
deprecated
|
string |
No |
The instance name. |
test |
| InstanceStatus |
string |
No |
The instance status. Valid values:
|
RUNNING |
| PageNo |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The page size. |
30 |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmv36i4is**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A2A9BA68-B264-4953-9154-CE61B1C03BA6 |
| Code |
string |
The return code. |
success |
| PageNo |
integer |
The page number. Default value: 1. |
1 |
| IsSuccess |
boolean |
Indicates whether the operation is successful. |
true |
| PageSize |
integer |
The page size. Default value: 30. |
30 |
| TotalCount |
integer |
The total number of returned results. |
12121 |
| Instances |
array<object> |
The instance information. |
|
|
array<object> |
The instance information. |
||
| ModifiedTime |
string |
The last modification time, in UNIX timestamp format. Unit: milliseconds. |
1562849760000 |
| InstanceName |
string |
The instance name. |
test |
| CreateTime |
string |
The creation time, in UNIX timestamp format. Unit: milliseconds. |
1562849679000 |
| InstanceSpecification |
string |
The Enterprise Edition specification. |
Enterprise_Basic |
| InstanceStatus |
string |
The instance status. |
RUNNING |
| InstanceId |
string |
The instance ID. |
cri-sgedpenzw80e**** |
| RegionId |
string |
The region ID. |
cn-shanghai |
| ResourceGroupId |
string |
The resource group ID. |
rg-aek2h3aexpy**** |
| InstanceIssue |
string |
The instance issue. |
Instance issue. Valid values: OSS_TOO_MANY_BUCKETS: The number of OSS buckets exceeds the limit. OSS_BUCKET_ALREADY_EXISTS: An OSS bucket with the same name already exists. OSS_SERVICE_ROLE_UNAUTHORIZED: OSS permissions are not authorized. USER_NOT_REGISTERED_BY_REAL_NAME: The China site account has not completed real-name verification when purchasing an OSS bucket on the China site |
| Tags |
array<object> |
The collection of instance tags. |
|
|
object |
The instance tag. |
||
| TagKey |
string |
The tag key. |
test_key |
| TagValue |
string |
The tag value. |
test_value |
Examples
Success response
JSON format
{
"RequestId": "A2A9BA68-B264-4953-9154-CE61B1C03BA6",
"Code": "success",
"PageNo": 1,
"IsSuccess": true,
"PageSize": 30,
"TotalCount": 12121,
"Instances": [
{
"ModifiedTime": "1562849760000",
"InstanceName": "test",
"CreateTime": "1562849679000",
"InstanceSpecification": "Enterprise_Basic",
"InstanceStatus": "RUNNING",
"InstanceId": "cri-sgedpenzw80e****",
"RegionId": "cn-shanghai",
"ResourceGroupId": "rg-aek2h3aexpy****",
"InstanceIssue": "实例问题,取值:\nOSS_TOO_MANY_BUCKETS:OSS Bucket 数量超限\n\nOSS_BUCKET_ALREADY_EXISTS:同名 OSS Bucket 已存在\n\nOSS_SERVICE_ROLE_UNAUTHORIZED:OSS 权限未授权\n\nUSER_NOT_REGISTERED_BY_REAL_NAME:国际站账号在购买中国站 OSS Bucket 时未进行实名认证",
"Tags": [
{
"TagKey": "test_key",
"TagValue": "test_value"
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.