Mengkueri informasi atribut dari instans ECS tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeInstanceAttribute |
get |
*Instance.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
i-uf6f5trc95ug8t33**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
Status instans. Nilai valid: |
Running |
| SerialNumber |
string |
Nomor seri instans. |
51d1353b-22bf-4567-a176-8b3e12e4**** |
| CreationTime |
string |
Waktu pembuatan instans. Waktu mengikuti standar ISO 8601 dalam format yyyy-MM-ddTHH:mmZ. Waktu ditampilkan dalam UTC. Untuk informasi lebih lanjut, lihat ISO 8601. |
2017-12-10T04:04Z |
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| Description |
string |
Deskripsi instans. |
testDescription |
| InstanceName |
string |
Nama instans. |
testInstanceName |
| InstanceNetworkType |
string |
Jenis jaringan instans. Nilai valid: |
vpc |
| Memory |
integer |
Ukuran memori. Unit: MiB. |
16384 |
| ImageId |
string |
ID image yang Berjalan pada instans. |
m-bp1h46wfpjsjastc**** |
| ClusterId |
string |
ID kluster tempat instans berada. |
cls-bp67acfmxazb4p**** |
| VlanId |
string |
ID VLAN instans. |
10 |
| StoppedMode |
string |
Apakah instans tetap ditagih setelah dihentikan. Nilai valid: |
KeepCharging |
| HostName |
string |
Hostname instans. |
testHostName |
| InstanceId |
string |
ID instans. |
i-uf6f5trc95ug8t33**** |
| InstanceType |
string |
Tipe instans dari instans. |
ecs.g5.large |
| InternetMaxBandwidthIn |
integer |
Bandwidth publik arah masuk maksimum. Unit: Mbit/s. |
50 |
| InternetMaxBandwidthOut |
integer |
Bandwidth publik arah keluar maksimum. Unit: Mbit/s. |
5 |
| RegionId |
string |
ID wilayah instans. |
cn-hangzhou |
| InstanceChargeType |
string |
Metode penagihan instans. Nilai valid: |
PrePaid |
| IoOptimized |
string |
Apakah instans dioptimalkan untuk I/O. Nilai valid: |
optimized |
| Cpu |
integer |
Jumlah core vCPU. |
8 |
| ExpiredTime |
string |
Waktu kedaluwarsa. Waktu mengikuti standar ISO 8601 dalam format yyyy-MM-ddTHH:mmZ. Waktu ditampilkan dalam UTC. Untuk informasi lebih lanjut, lihat ISO 8601. |
2017-12-10T04:04Z |
| ZoneId |
string |
ID zona instans. |
cn-hangzhou-g |
| InternetChargeType |
string |
Metode penagihan untuk bandwidth publik. Nilai valid: |
PayByTraffic |
| CreditSpecification |
string |
Mode operasi Instance Burstable. Nilai valid: |
Jenis Penyimpanan Standar |
| SecurityGroupIds |
object |
||
| SecurityGroupId |
array |
Grup keamanan tempat instans berada. |
|
|
string |
Grup keamanan tempat instans berada. |
sg-bp1fg655nh68xyz9i**** |
|
| PublicIpAddress |
object |
||
| IpAddress |
array |
Daftar alamat IP publik instans. |
|
|
string |
Alamat IP publik instans. |
121.40.**.** |
|
| InnerIpAddress |
object |
||
| IpAddress |
array |
Daftar alamat IP jaringan internal dari instans jenis jaringan klasik. |
|
|
string |
Alamat IP jaringan internal dari instans jenis jaringan klasik. |
192.168.**.** |
|
| VpcAttributes |
object |
Atribut VPC. |
|
| VpcId |
string |
ID VPC. |
vpc-wz9e4e9pmbcnj6ki6**** |
| NatIpAddress |
string |
Alamat IP layanan cloud, yang digunakan untuk komunikasi jaringan antara layanan cloud yang terhubung ke VPC. |
172.17.**.** |
| VSwitchId |
string |
ID vSwitch. |
vsw-uf6ixacqz8osrwnqb**** |
| PrivateIpAddress |
object |
||
| IpAddress |
array |
Daftar alamat IP privat. |
|
|
string |
Alamat IP privat. |
192.168.**.** |
|
| EipAddress |
object |
Informasi pengikatan Elastic IP Address (EIP). |
|
| InternetChargeType |
string |
Metode penagihan untuk bandwidth publik. Nilai valid: |
PayByTraffic |
| IpAddress |
string |
Alamat EIP. |
30.21.**.** |
| Bandwidth |
integer |
Batas bandwidth publik EIP. Unit: Mbit/s. |
8 |
| AllocationId |
string |
ID EIP. |
eip-wz9uilio26dfscamm**** |
| DedicatedHostAttribute |
object |
Atribut spesifikasi khusus, yang terdiri dari ID kluster spesifikasi khusus (DedicatedHostClusterId), ID spesifikasi khusus (DedicatedHostId), dan nama spesifikasi khusus (DedicatedHostName). |
|
| DedicatedHostName |
string |
Nama host khusus. |
ecs-autoui-create-ddh-temp |
| DedicatedHostId |
string |
ID host khusus. |
dh-2ze7qrzz6lvbfhr0**** |
| OperationLocks |
object |
||
| LockReason |
array<object> |
Daftar alasan penguncian. |
|
|
object |
Alasan penguncian. |
||
| LockReason |
string |
Alasan penguncian. Nilai valid: |
financial |
| EnableJumboFrame |
boolean |
Apakah fitur frame jumbo diaktifkan untuk Instans ECS. Nilai valid: |
false |
| EnableNetworkEncryption |
boolean |
Apakah enkripsi lalu lintas jaringan VPC diaktifkan untuk instans. Nilai valid: |
True |
| NetworkOptions |
object |
Atribut terkait jaringan. |
|
| EnableJumboFrame |
boolean |
Apakah fitur frame jumbo diaktifkan untuk Instans ECS. Nilai valid: |
false |
| EnableNetworkEncryption |
boolean |
Apakah enkripsi lalu lintas jaringan VPC diaktifkan untuk instans. Nilai valid: |
False |
| BandwidthWeighting |
string |
Bobot bandwidth. Valid values:
|
Vpc-L1 |
| SecurityOptions |
object |
||
| EnableSecureBoot |
boolean |
Contoh
Respons sukses
JSONformat
{
"Status": "Running",
"SerialNumber": "51d1353b-22bf-4567-a176-8b3e12e4****",
"CreationTime": "2017-12-10T04:04Z",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"Description": "testDescription",
"InstanceName": "testInstanceName",
"InstanceNetworkType": "vpc",
"Memory": 16384,
"ImageId": "m-bp1h46wfpjsjastc****",
"ClusterId": "cls-bp67acfmxazb4p****",
"VlanId": "10",
"StoppedMode": "KeepCharging",
"HostName": "testHostName",
"InstanceId": "i-uf6f5trc95ug8t33****",
"InstanceType": "ecs.g5.large",
"InternetMaxBandwidthIn": 50,
"InternetMaxBandwidthOut": 5,
"RegionId": "cn-hangzhou",
"InstanceChargeType": "PrePaid",
"IoOptimized": "optimized",
"Cpu": 8,
"ExpiredTime": "2017-12-10T04:04Z",
"ZoneId": "cn-hangzhou-g",
"InternetChargeType": "PayByTraffic",
"CreditSpecification": "Jenis Penyimpanan Standar",
"SecurityGroupIds": {
"SecurityGroupId": [
"sg-bp1fg655nh68xyz9i****"
]
},
"PublicIpAddress": {
"IpAddress": [
"121.40.**.**"
]
},
"InnerIpAddress": {
"IpAddress": [
"192.168.**.**"
]
},
"VpcAttributes": {
"VpcId": "vpc-wz9e4e9pmbcnj6ki6****",
"NatIpAddress": "172.17.**.**",
"VSwitchId": "vsw-uf6ixacqz8osrwnqb****",
"PrivateIpAddress": {
"IpAddress": [
"192.168.**.**"
]
}
},
"EipAddress": {
"InternetChargeType": "PayByTraffic",
"IpAddress": "30.21.**.**",
"Bandwidth": 8,
"AllocationId": "eip-wz9uilio26dfscamm****"
},
"DedicatedHostAttribute": {
"DedicatedHostName": "ecs-autoui-create-ddh-temp",
"DedicatedHostId": "dh-2ze7qrzz6lvbfhr0****"
},
"OperationLocks": {
"LockReason": [
{
"LockReason": "financial"
}
]
},
"EnableJumboFrame": false,
"EnableNetworkEncryption": true,
"NetworkOptions": {
"EnableJumboFrame": false,
"EnableNetworkEncryption": true,
"BandwidthWeighting": "Vpc-L1"
},
"SecurityOptions": {
"EnableSecureBoot": false
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | ID instans yang ditentukan tidak valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.