Retrieves the details of an instance.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
hologram:GetInstance | get | *Instance
| None | None |
Request syntax
GET /api/v1/instances/{instanceId} HTTP/1.1Path Parameters
Parameter | Type | Required | Description | Example |
instanceId | string | No | The instance ID. Required. | hgprecn-cn-i7m2v08uu00a |
Request parameters
Parameter | Type | Required | Description | Example |
No parameters required.
Response elements
Element | Type | Description | Example |
object | |||
RequestId | string | The request ID. | 865A02C2-B374-5DD4-9B34-0CA15DA1AEBD |
| Instance | object | The instance information. | |
InstanceChargeType | string | The billing method of the instance. Valid values:
| PrePaid |
CommodityCode | string | The commodity code. Valid values:
| hologram_combo_public_cn |
Cpu | integer | The number of vCPUs. | 32 |
CreationTime | string | The creation time. | 2021-02-03T13:06:06Z |
Disk | string | The size of the standard storage. Unit: GB. | 500 |
| Endpoints | array<object> | The list of endpoints. | |
object | The details of the endpoint. | ||
Endpoint | string | The endpoint. | hgprecn-cn-uqm362o1b001-cn-hangzhou-internal.hologres.aliyuncs.com:80 |
Type | string | The network type. Valid values:
| Internet |
Enabled | boolean | Indicates whether the network is enabled. Valid values:
| true |
VSwitchId | string | The vSwitch ID. | vsw-bp1jqwp2ys6kp7tc9t983 |
VpcId | string | The VPC ID. | vpc-uf66jjber3hgvwhki3wna |
VpcInstanceId | string | The VPC instance ID. | hgprecn-cn-uqm362o1b001-frontend-st |
AlternativeEndpoints | string | Some earlier instances have both AnyTunnel and SingleTunnel enabled. When you switch from AnyTunnel to SingleTunnel, the endpoints for both are retained. This field is used to store the extra endpoint. | hgprecn-cn-uqm362o1b001-cn-hangzhou-internal.hologres.aliyuncs.com:80 |
ExpirationTime | string | The expiration time. Pay-as-you-go instances do not expire. | 2021-02-03T13:06:06Z |
InstanceId | string | The instance ID. | hgpostcn-cn-tl32s6cgw00b |
InstanceName | string | The instance name. | test |
InstanceType | string | The instance type. Valid values:
| Standard |
Memory | integer | The memory size. Unit: GB | 128 |
InstanceOwner | string | The owner of the instance. | 12345678900000 |
InstanceStatus | string | The instance status. Valid values:
| Running |
Version | string | The instance version. | r1.3.37 |
SuspendReason | string | The reason why the instance was stopped. Valid values:
| Manual |
| Tags | array<object> | The tags of the instance. | |
object | The details of the tag. | ||
Key | string | The tag key. | tag |
Value | string | The tag value. | value |
LeaderInstanceId | string | The ID of the primary instance. | hgpostcn-cn-i7m2ncd6w002 |
EnableHiveAccess | string | Indicates whether data lake acceleration is enabled. | true |
ResourceGroupId | string | The ID of the resource group. | rg-aekzuq7hpybze2i |
ComputeNodeCount | integer | The number of compute nodes. A node typically has 16 vCPUs and 32 GB of memory. | 2 |
ZoneId | string | The ID of the zone. | cn-hangzhou-h |
ColdStorage | integer | The cold storage capacity, in GB. SSD is hot storage, which is also standard storage. HDD is cold storage. | 800 |
AutoRenewal | string | Indicates whether auto-renewal is enabled. Valid values:
| true |
GatewayCount | integer | The number of gateway nodes. | 2 |
GatewayCpu | integer | The vCPU resources of the gateway. Unit: cores. | 4 |
GatewayMemory | integer | The memory resources of the gateway. Unit: GB. | 16 |
RegionId | string | The region ID. | cn-hangzhou |
ReplicaRole | string | The role of instance in disaster recovery.
| Active |
EnableServerless | boolean | Indicates whether Serverless Computing is enabled. Valid values:
| true |
StorageType | string | The storage class:
| redundant |
Success | boolean | The result of the request, which indicates whether an exception occurred. This parameter is not related to the business logic. | 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": "865A02C2-B374-5DD4-9B34-0CA15DA1AEBD",
"Instance": {
"InstanceChargeType": "PrePaid",
"CommodityCode": "hologram_combo_public_cn",
"Cpu": 32,
"CreationTime": "2021-02-03T13:06:06Z",
"Disk": "500",
"Endpoints": [
{
"Endpoint": "hgprecn-cn-uqm362o1b001-cn-hangzhou-internal.hologres.aliyuncs.com:80",
"Type": "Internet",
"Enabled": true,
"VSwitchId": "vsw-bp1jqwp2ys6kp7tc9t983",
"VpcId": "vpc-uf66jjber3hgvwhki3wna",
"VpcInstanceId": "hgprecn-cn-uqm362o1b001-frontend-st",
"AlternativeEndpoints": "hgprecn-cn-uqm362o1b001-cn-hangzhou-internal.hologres.aliyuncs.com:80"
}
],
"ExpirationTime": "2021-02-03T13:06:06Z",
"InstanceId": "hgpostcn-cn-tl32s6cgw00b",
"InstanceName": "test",
"InstanceType": "Standard",
"Memory": 128,
"InstanceOwner": "12345678900000",
"InstanceStatus": "Running",
"Version": "r1.3.37",
"SuspendReason": "Manual",
"Tags": [
{
"Key": "tag",
"Value": "value"
}
],
"LeaderInstanceId": "hgpostcn-cn-i7m2ncd6w002",
"EnableHiveAccess": "true",
"ResourceGroupId": "rg-aekzuq7hpybze2i",
"ComputeNodeCount": 2,
"ZoneId": "cn-hangzhou-h",
"ColdStorage": 800,
"AutoRenewal": "true",
"GatewayCount": 2,
"GatewayCpu": 4,
"GatewayMemory": 16,
"RegionId": "cn-hangzhou",
"ReplicaRole": "Active",
"EnableServerless": true,
"StorageType": "redundant"
},
"Success": true,
"ErrorCode": "null",
"ErrorMessage": "null",
"HttpStatusCode": "200"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.