インスタンスの詳細を取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
hologram:GetInstance |
get |
*インスタンス。
|
なし | なし |
リクエスト構文
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 |
作成時間。時間は協定世界時 (UTC) の ISO 8601 標準形式です。 |
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 |
有効期限時間。時間は協定世界時 (UTC) の ISO 8601 標準形式です。 従量課金インスタンスには有効期限時間はありません。 |
2021-02-03T13:06:06Z |
| InstanceId |
string |
インスタンスの ID。 |
hgpostcn-cn-tl32s6cgw00b |
| InstanceName |
string |
インスタンス名。名前の長さは 2~64 文字です。英字または漢字は 1 文字としてカウントされます。 |
test |
| InstanceType |
string |
インスタンスタイプ。 列挙値:
|
標準 |
| 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 |
タグ値。 |
値 |
| LeaderInstanceId |
string |
プライマリインスタンスの ID。 |
hgpostcn-cn-i7m2ncd6w002 |
| EnableHiveAccess |
string |
データレイクアクセラレーションが有効かどうかを示します。 |
true |
| ResourceGroupId |
string |
リソースグループの ID。 |
rg-aekzuq7hpybze2i |
| ComputeNodeCount |
integer |
コンピューティングノード数。シングルノードの標準的な構成は 16 コア、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 |
| EnableServerless |
boolean |
ServerlessComputing が有効かどうかを示します。 列挙値:
|
true |
| StorageType |
string |
ストレージタイプ。有効な値:
|
redundant |
| EnableSSL |
boolean |
SSL が有効かどうかを示します。 |
true |
| 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": true
},
"Success": true,
"ErrorCode": "null",
"ErrorMessage": "null",
"HttpStatusCode": "200"
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。