Queries instance information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:GetInstance |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-xkx6vujuhay0**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| ModifiedTime |
integer |
The modification time, in UNIX timestamp format. Unit: milliseconds. |
1571926560000 |
| RequestId |
string |
The request ID. |
6EF34B18-4228-470C-860C-D28597CF010E |
| CreateTime |
integer |
The creation time, in UNIX timestamp format. Unit: milliseconds. |
1571926439000 |
| InstanceName |
string |
The instance name. |
shanghai-instance1 |
| InstanceSpecification |
string |
The instance specification. Valid values: Enterprise_Basic: basic instance. Enterprise_Standard: standard instance. Enterprise_Advanced: advanced instance. |
Enterprise_Basic |
| Code |
string |
The return code. |
success |
| InstanceStatus |
string |
The instance status. Valid values:
|
RUNNING |
| InstanceId |
string |
The instance ID. |
cri-xkx6vujuhay0**** |
| IsSuccess |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmv36i4isx**** |
| InstanceIssue |
string |
The instance issue. |
The 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 tag collection of the instance. |
|
|
object |
The instance tag. |
||
| TagKey |
string |
The tag key. |
test_key |
| TagValue |
string |
The tag value. |
test_value |
Examples
Success response
JSON format
{
"ModifiedTime": 1571926560000,
"RequestId": "6EF34B18-4228-470C-860C-D28597CF010E",
"CreateTime": 1571926439000,
"InstanceName": "shanghai-instance1",
"InstanceSpecification": "Enterprise_Basic",
"Code": "success",
"InstanceStatus": "RUNNING",
"InstanceId": "cri-xkx6vujuhay0****",
"IsSuccess": true,
"ResourceGroupId": "rg-acfmv36i4isx****",
"InstanceIssue": "The issue occurs on the instance. Valid values: OSS_TOO_MANY_BUCKETS: The number of Object Storage Service (OSS) buckets exceeds the upper limit. OSS_BUCKET_ALREADY_EXISTS: An OSS bucket that has the duplicate name already exists. OSS_SERVICE_ROLE_UNAUTHORIZED: The OSS service-linked role is not granted permissions. USER_NOT_REGISTERED_BY_REAL_NAME: The Alibaba Cloud account has not passed a real name verification.\n",
"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.