インスタンスの詳細を照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
hologram:GetInstance |
get |
*Instance
|
なし | なし |
リクエスト構文
GET /api/v1/instances/{instanceId} HTTP/1.1
パスパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| instanceId |
string |
任意 |
インスタンス ID。このパラメーターは必須です。 |
hgprecn-cn-i7m2v08uu00a |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
リクエストパラメーターは必要ありません。
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
865A02C2-B374-5DD4-9B34-0CA15DA1AEBD |
| Instance |
object |
インスタンスの詳細。 |
|
| InstanceChargeType |
string |
インスタンスの課金方法。 列挙値:
|
PrePaid |
| CommodityCode |
string |
商品コード。 列挙値:
|
hologram_combo_public_cn |
| Cpu |
integer |
CPU コア数。 |
32 |
| CreationTime |
string |
インスタンスの作成時刻。 |
2021-02-03T13:06:06Z |
| Disk |
string |
標準ストレージ容量。単位:GB。 |
500 |
| Endpoints |
array<object> |
エンドポイントのリスト。 |
|
|
object |
エンドポイントの詳細。 |
||
| Endpoint |
string |
エンドポイントのドメイン名。 |
hgprecn-cn-uqm362o1b001-cn-hangzhou-internal.hologres.aliyuncs.com:80 |
| Type |
string |
ネットワークタイプ。 列挙値:
|
Internet |
| Enabled |
boolean |
エンドポイントが有効かどうかを示します。 列挙値:
|
true |
| VSwitchId |
string |
vSwitch ID。 |
vsw-bp1jqwp2ys6kp7tc9t983 |
| VpcId |
string |
VPC ID。 |
vpc-uf66jjber3hgvwhki3wna |
| VpcInstanceId |
string |
VPC インスタンス ID。 |
hgprecn-cn-uqm362o1b001-frontend-st |
| AlternativeEndpoints |
string |
一部の古いインスタンスでは、AnyTunnel と SingleTunnel の両方が有効になっています。AnyTunnel から SingleTunnel に切り替えると、両方のエンドポイントが保持されます。このフィールドは、余分なエンドポイントを格納するために使用されます。 |
hgprecn-cn-uqm362o1b001-cn-hangzhou-internal.hologres.aliyuncs.com:80 |
| ExpirationTime |
string |
有効期限。このパラメーターは、従量課金インスタンスの場合は返されません。 |
2021-02-03T13:06:06Z |
| InstanceId |
string |
インスタンス ID。 |
hgpostcn-cn-tl32s6cgw00b |
| InstanceName |
string |
インスタンス名。名前の長さは 2〜64 文字である必要があります。 |
test |
| InstanceType |
string |
インスタンスタイプ。 列挙値:
|
Standard |
| Memory |
integer |
メモリサイズ。単位:GB。 |
128 |
| InstanceOwner |
string |
インスタンス所有者。 |
12345678900000 |
| InstanceStatus |
string |
インスタンスステータス。 列挙値:
|
Running |
| Version |
string |
インスタンスバージョン。 |
r1.3.37 |
| SuspendReason |
string |
インスタンスが停止した理由。 列挙値:
|
Manual |
| Tags |
array<object> |
インスタンスのタグ。 |
|
|
object |
タグの詳細。 |
||
| Key |
string |
タグキー。 |
tag |
| Value |
string |
タグ値。 |
value |
| LeaderInstanceId |
string |
プライマリインスタンスの ID。 |
hgpostcn-cn-i7m2ncd6w002 |
| EnableHiveAccess |
string |
データレイクアクセラレーションが有効かどうかを示します。 |
true |
| ResourceGroupId |
string |
リソースグループの ID。 |
rg-aekzuq7hpybze2i |
| ComputeNodeCount |
integer |
計算ノード数。ノードは通常、16 個の CPU コアと 32 GB のメモリを持ちます。 |
2 |
| ZoneId |
string |
ゾーン ID。 |
cn-hangzhou-h |
| ColdStorage |
integer |
コールドストレージ容量。単位:GB。SSD はホットストレージ (標準ストレージ) を提供し、HDD はコールドストレージを提供します。 |
800 |
| AutoRenewal |
string |
自動更新が有効かどうかを示します。 列挙値:
|
true |
| GatewayCount |
integer |
ゲートウェイノードの数。 |
2 |
| GatewayCpu |
integer |
ゲートウェイの CPU リソース。単位:コア。 |
4 |
| GatewayMemory |
integer |
ゲートウェイのメモリリソース。単位:GB。 |
16 |
| RegionId |
string |
リージョン ID。 |
cn-hangzhou |
| ReplicaRole |
string |
ディザスタリカバリシナリオにおけるインスタンスのロール。有効な値:Active、Passive、PreActive。Active:プライマリインスタンス。Passive:ディザスタリカバリインスタンス。PreActive:望ましい状態に達していないプライマリインスタンス。 |
Active |
| EnableServerless |
boolean |
Serverless コンピューティングが有効かどうかを示します。 列挙値:
|
true |
| StorageType |
string |
ストレージタイプ。有効な値:
|
redundant |
| EnableSSL |
boolean |
||
| Success |
boolean |
リクエストが成功したかどうかを示します。このパラメーターはビジネスロジックとは関係ありません。 |
true |
| ErrorCode |
string |
エラーコード。 |
null |
| ErrorMessage |
string |
エラーメッセージ。 |
null |
| HttpStatusCode |
string |
HTTP ステータスコード。 |
200 |
例
成功レスポンス
JSONJSON
{
"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",
"EnableSSL": false
},
"Success": true,
"ErrorCode": "null",
"ErrorMessage": "null",
"HttpStatusCode": "200"
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。