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.1Request parameters
Parameter | Type | Required | Description | Example |
| body | object | No | The request body. | |
resourceGroupId | string | No | The resource group ID. | rg-acfmvscak73zmby |
| tag | array<object> | No | The instance tags. | |
object | No | The tag details. | ||
key | string | No | The tag key. | mytag |
value | string | No | The tag value. | value |
cmsInstanceType | string | No | The instance type. Valid values:
Note This parameter is used 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 details of the instance. | ||
CommodityCode | string | The commodity code | hologram_postpay_public_cn |
CreationTime | string | The instance creation time. | 2022-12-16T02:24:05Z |
ExpirationTime | string | The instance expiration time. | 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 tags. | |
object | The tag details. | ||
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 resource group ID. | rg-acfmvscak73zmby |
| Endpoints | array<object> | The endpoints. | |
object | The endpoint details. | ||
Endpoint | string | The endpoint. | 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 vSwitch ID. | 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 | ||
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": ""
}
],
"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.