Retrieves a list of instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:ListInstances |
list |
*Instance
|
None | None |
Request syntax
POST /api/v1/instances HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| resourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfmvscak73zmby |
| tag |
array<object> |
No |
The tags of the instance. |
|
|
object |
No |
The details of the tag. |
||
| key |
string |
No |
The tag key. |
mytag |
| value |
string |
No |
The tag value. |
value |
| cmsInstanceType |
string |
No |
The instance type for Cloud Monitor. Valid values:
Note
This parameter is for Cloud Monitor. |
standard |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D1303CD4-AA70-5998-8025-F55B22C50840 |
| InstanceList |
array<object> |
The list of instances. |
|
|
array<object> |
The instance details. |
||
| CommodityCode |
string |
The commodity code. This code is the same as the product detail code in the User Center. |
hologram_postpay_public_cn |
| CreationTime |
string |
The time when the instance was created. |
2022-12-16T02:24:05Z |
| ExpirationTime |
string |
The time when the instance expires. |
2023-05-04T16:00:00.000Z |
| InstanceId |
string |
The instance ID. |
hgpostcn-cn-aaab9ad2d8fb |
| InstanceName |
string |
The instance name. |
test_instance |
| InstanceStatus |
string |
The instance status. Valid values:
|
Running |
| InstanceType |
string |
The instance type. Valid values:
|
Standard |
| Tags |
array<object> |
The list of tags. |
|
|
object |
The details of the tag. |
||
| Key |
string |
The tag key. |
tag |
| Value |
string |
The tag value. |
value |
| InstanceChargeType |
string |
The billing method of the instance. Valid values:
|
PrePaid |
| LeaderInstanceId |
string |
The ID of the primary instance. |
hgprecn-cn-2r42sqvxm006 |
| SuspendReason |
string |
The reason why the instance was suspended. |
Manual |
| EnableHiveAccess |
string |
Indicates whether lakehouse acceleration is enabled. Valid values:
|
true |
| Version |
string |
The instance version. |
1.3.37 |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-acfmvscak73zmby |
| Endpoints |
array<object> |
The list of endpoints. |
|
|
object |
The endpoint details. |
||
| Endpoint |
string |
Domain name. |
hgpostcn-cn-aaab9ad2d8fb-cn-hangzhou-internal.hologres.aliyuncs.com:80 |
| Type |
string |
The network type. Valid values:
|
Internet |
| Enabled |
boolean |
Indicates whether the endpoint is enabled. Valid values:
|
true |
| VSwitchId |
string |
The ID of the virtual switch. |
vsw-wz9oap28raidjevhuszg4 |
| VpcId |
string |
The VPC ID. |
vpc-uf6mrahzyu7uorlqqpz5f |
| VpcInstanceId |
string |
The VPC instance ID. |
hgpostcn-cn-wwo3665tx004-frontend-st |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-h |
| StorageType |
string |
The storage class:
|
redundant |
| EnableSSL |
string |
Indicates whether SSL encryption is enabled. |
true |
| Success |
string |
Indicates whether the call was successful. |
true |
| ErrorCode |
string |
The error code. |
null |
| ErrorMessage |
string |
The error message. |
null |
| HttpStatusCode |
string |
The HTTP status code. |
200 |
Examples
Success response
JSON format
{
"RequestId": "D1303CD4-AA70-5998-8025-F55B22C50840",
"InstanceList": [
{
"CommodityCode": "hologram_postpay_public_cn",
"CreationTime": "2022-12-16T02:24:05Z",
"ExpirationTime": "2023-05-04T16:00:00.000Z",
"InstanceId": "hgpostcn-cn-aaab9ad2d8fb",
"InstanceName": "test_instance",
"InstanceStatus": "Running",
"InstanceType": "Standard",
"Tags": [
{
"Key": "tag",
"Value": "value"
}
],
"InstanceChargeType": "PrePaid",
"LeaderInstanceId": "hgprecn-cn-2r42sqvxm006",
"SuspendReason": "Manual",
"EnableHiveAccess": "true",
"Version": "1.3.37",
"ResourceGroupId": "rg-acfmvscak73zmby",
"Endpoints": [
{
"Endpoint": "hgpostcn-cn-aaab9ad2d8fb-cn-hangzhou-internal.hologres.aliyuncs.com:80",
"Type": "Internet",
"Enabled": true,
"VSwitchId": "vsw-wz9oap28raidjevhuszg4",
"VpcId": "vpc-uf6mrahzyu7uorlqqpz5f",
"VpcInstanceId": "hgpostcn-cn-wwo3665tx004-frontend-st"
}
],
"RegionId": "cn-hangzhou",
"ZoneId": "cn-hangzhou-h",
"StorageType": "redundant",
"EnableSSL": "true"
}
],
"Success": "true",
"ErrorCode": "null",
"ErrorMessage": "null",
"HttpStatusCode": "200"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | NoPermission | RAM user permission is insufficient, please grant AliyunHologresReadOnlyAccess permission. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.