Mengkueri informasi instance.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
GET /v2/openapi/getinstance HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceName |
string |
Yes |
Nama instance. |
instance-test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Struct yang dikembalikan. |
||
| RequestId |
string |
ID permintaan, yang dapat digunakan untuk memecahkan masalah. |
757E172A-F94B-5E78-8A23-D9068E42F2E9 |
| InstanceName |
string |
Nama instance. |
instance-test |
| ResourceGroupId |
string |
ID grup sumber daya tempat instance berada. |
rg-acfmxh4em5jncda |
| RegionId |
string |
ID region instance. |
cn-chengdu |
| SPInstanceId |
string |
ID instance. |
ots_standard_public_cn-9lb34u7u5001 |
| AliasName |
string |
Alias instance. |
instance-test |
| UserId |
string |
ID pengguna. |
16542312566 |
| Network |
string |
Jenis jaringan instance. Nilai yang valid:
|
VPC |
| InstanceDescription |
string |
Deskripsi instance. |
Description of the test instance. |
| InstanceSpecification |
string |
Jenis instance.
|
SSD |
| PaymentType |
string |
Metode penagihan. Nilai yang valid:
|
Subscription |
| StorageType |
string |
Jenis penyimpanan.
|
HYBRID |
| VCUQuota |
integer |
Kuota VCU. |
20 |
| TableQuota |
integer |
Jumlah total tabel dalam instance. |
100 |
| InstanceStatus |
string |
Status instance.
|
normal |
| CreateTime |
string |
Waktu saat instance dibuat. |
2019-12-23T07:24:33Z |
| Tags |
array<object> |
Tag instance. |
|
|
object |
Tag instance. |
||
| Key |
string |
Kunci tag. |
tag |
| Value |
string |
Nilai tag. |
333 |
| TagKey |
string |
(Tidak digunakan lagi) Kunci tag. |
keyTestA |
| TagValue |
string |
(Tidak digunakan lagi) Nilai tag. |
00004a20240452b0 |
| NetworkTypeACL |
array |
Jenis jaringan dari mana akses diizinkan. Nilai yang valid:
|
|
|
string |
Jenis jaringan dari mana akses diizinkan. |
INTERNET |
|
| NetworkSourceACL |
array |
Sumber jaringan dari mana akses diizinkan. Nilai yang valid: TRUST_PROXY: konsol |
|
|
string |
Sumber jaringan dari mana akses diizinkan. |
TRUST_PROXY |
|
| Policy |
string |
Kebijakan instance. |
{ "Version": "1", "Statement": [ { "Action": [ "ots:*" ], "Resource": [ "acs:ots:*:13791xxxxxxxxxxx:instance/myinstance*" ], "Principal": [ "*" ], "Effect": "Allow", "Condition": { "StringEquals": { "ots:TLSVersion": [ "1.2" ] }, "IpAddress": { "acs:SourceIp": [ "192.168.0.1", "198.51.100.1" ] } } } ] } |
| PolicyVersion |
integer |
Versi kebijakan instance. |
1 |
| IsMultiAZ |
boolean |
Menunjukkan apakah zone-redundant storage (ZRS) diaktifkan untuk instance.
|
true |
| ElasticVCUUpperLimit |
number |
Batas atas untuk VCU instance. |
6 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "757E172A-F94B-5E78-8A23-D9068E42F2E9",
"InstanceName": "instance-test",
"ResourceGroupId": "rg-acfmxh4em5jncda",
"RegionId": "cn-chengdu",
"SPInstanceId": "ots_standard_public_cn-9lb34u7u5001",
"AliasName": "instance-test",
"UserId": "16542312566",
"Network": "VPC",
"InstanceDescription": "Description of the test instance.",
"InstanceSpecification": "SSD",
"PaymentType": "Subscription",
"StorageType": "HYBRID",
"VCUQuota": 20,
"TableQuota": 100,
"InstanceStatus": "normal",
"CreateTime": "2019-12-23T07:24:33Z",
"Tags": [
{
"Key": "tag",
"Value": "333",
"TagKey": "keyTestA",
"TagValue": "00004a20240452b0"
}
],
"NetworkTypeACL": [
"INTERNET"
],
"NetworkSourceACL": [
"TRUST_PROXY"
],
"Policy": "{\n \"Version\": \"1\",\n \"Statement\": [\n {\n \"Action\": [\n \"ots:*\"\n ],\n \"Resource\": [\n \"acs:ots:*:13791xxxxxxxxxxx:instance/myinstance*\"\n ],\n \"Principal\": [\n \"*\"\n ],\n \"Effect\": \"Allow\",\n \"Condition\": {\n \"StringEquals\": {\n \"ots:TLSVersion\": [\n \"1.2\"\n ]\n },\n \"IpAddress\": {\n \"acs:SourceIp\": [\n \"192.168.0.1\",\n \"198.51.100.1\"\n ]\n }\n }\n }\n ]\n}",
"PolicyVersion": 1,
"IsMultiAZ": true,
"ElasticVCUUpperLimit": 6
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.