Mengembalikan semua atribut suatu instance, seperti ID dan deskripsinya.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:DescribeInstanceAttribute |
get |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah tempat instans Bastionhost berada. |
cn-hangzhou |
| InstanceId |
string |
Yes |
ID instans Bastionhost yang akan dikueri. Catatan
Anda dapat memanggil operasi DescribeInstances untuk memperoleh ID instans Bastionhost. |
bastionhost-cn-78v1ghxxxxx |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID unik yang dihasilkan untuk permintaan ini. Anda dapat menggunakan ID ini untuk pemecahan masalah. |
082FAB35-6AB9-4FD5-8750-D36673548E76 |
| InstanceAttribute |
object |
Atribut instans. |
|
| VpcId |
string |
ID VPC tempat instans terhubung. |
vpc-bp1c85tzgqu1bf5bxxxxx |
| VswitchId |
string |
ID vSwitch tempat instans terhubung. |
vsw-bp1xfwzzfti0kjbfxxxxx |
| Description |
string |
Deskripsi instans. |
测试API |
| ExpireTime |
integer |
Timestamp kedaluwarsa instans Bastionhost, dalam milidetik. |
1578326400000 |
| ModifyPasswordModule |
string |
Menunjukkan apakah fitur perubahan password diaktifkan. Nilai yang valid:
|
Enable |
| EniInstanceId |
string |
ID elastic network interface (ENI). |
eni-bp1455jrzwm7moaxxxxx |
| InstanceId |
string |
ID instans. |
bastionhost-cn-78v1ghxxxxx |
| InternetEndpoint |
string |
Nama domain publik. |
******lwb-public.bastionhost.aliyuncs.com |
| RegionId |
string |
ID wilayah tempat instans Bastionhost berada. |
cn-hangzhou |
| IntranetEndpoint |
string |
Titik akhir internal. |
******xalwb.bastionhost.aliyuncs.com |
| StartTime |
integer |
Timestamp pembelian atau perpanjangan instans Bastionhost, dalam milidetik. |
1577681345000 |
| ResourceGroupId |
string |
ID kelompok sumber daya tempat instans berada. |
rg-aekzc427db****** |
| NetworkProxyModule |
string |
Menunjukkan apakah fitur proxy domain jaringan diaktifkan. Nilai yang valid:
|
Enable |
| WebTerminalModule |
string |
Menunjukkan apakah fitur terminal web diaktifkan. Nilai yang valid:
|
Enable |
| InstanceStatus |
string |
Status instans. Nilai yang valid:
|
RUNNING |
| LicenseCode |
string |
Kode lisensi. |
bhah_ent_50_asset |
| PublicNetworkAccess |
boolean |
Menunjukkan apakah instans Bastionhost dapat diakses secara publik. Nilai yang valid:
|
true |
| Storage |
integer |
Kapasitas penyimpanan total instans Bastionhost, dalam byte. |
2199023255552 |
| Ports |
array<object> |
Port O&M instans Bastionhost. |
|
|
object |
Port O&M instans Bastionhost. |
||
| StandardPort |
integer |
Port O&M standar. Nilai yang valid:
|
60022 |
| CustomPort |
integer |
Port O&M kustom. Catatan
Hanya port SSH dan RDP yang dapat dikustomisasi. Jika port kustom tidak ditentukan, parameter ini mengembalikan nilai yang sama dengan |
600xx |
| PublicExportIps |
array |
Alamat IP egress publik instans Bastionhost. |
|
|
string |
Alamat IP egress publik. |
[10.162.168.xx/32] |
|
| PublicWhiteList |
array |
Daftar putih publik untuk instans Bastionhost. |
|
|
string |
Alamat IP pada daftar putih publik. |
[10.162.168.xx/32] |
|
| AuthorizedSecurityGroups |
array |
ID security group yang diotorisasi. |
|
|
string |
ID security group yang diotorisasi. |
[sg-bp14u00sh39jvw5xxxxx] |
|
| PrivateExportIps |
array |
Alamat IP egress privat instans Bastionhost. |
|
|
string |
Alamat IP egress privat. |
192.168.xx.xx |
|
| PublicIps |
array |
Alamat IP publik instans Bastionhost. |
|
|
string |
Alamat IP publik. |
116.62.xx.xx |
|
| SecurityGroupIds |
array |
ID security group tempat instans berada. |
|
|
string |
ID security group tempat instans berada. |
sg-bp15ed6xe1yxeycg7o**** |
|
| PrivateWhiteList |
array |
Daftar putih privat untuk instans. |
|
|
string |
Alamat IP pada daftar putih privat. |
192.168.xx.xx |
|
| Bandwidth |
string |
Total bandwidth instans Bastionhost, dalam Mbit/s. |
30 |
| BandwidthPackage |
string |
Ukuran paket bandwidth tambahan, dalam Mbit/s. |
5 |
| DbOperationModule |
string |
Menunjukkan apakah fitur O&M database diaktifkan. Nilai yang valid:
|
Disable |
| RouterRules |
array |
||
|
string |
|||
| IDaaSModule |
string |
||
| SlaveVswitchId |
string |
||
| ScriptDeliverModule |
string |
||
| KmsSecretModule |
string |
||
| RDModule |
string |
||
| HSMModule |
string |
||
| WhiteListPolicies |
array<object> |
||
|
object |
|||
| Entry |
string |
||
| Description |
string |
||
| AppOperationModule |
string |
Contoh
Respons sukses
JSONformat
{
"RequestId": "082FAB35-6AB9-4FD5-8750-D36673548E76",
"InstanceAttribute": {
"VpcId": "vpc-bp1c85tzgqu1bf5bxxxxx",
"VswitchId": "vsw-bp1xfwzzfti0kjbfxxxxx",
"Description": "测试API",
"ExpireTime": 1578326400000,
"ModifyPasswordModule": "Enable",
"EniInstanceId": "eni-bp1455jrzwm7moaxxxxx",
"InstanceId": "bastionhost-cn-78v1ghxxxxx",
"InternetEndpoint": "******lwb-public.bastionhost.aliyuncs.com",
"RegionId": "cn-hangzhou",
"IntranetEndpoint": "******xalwb.bastionhost.aliyuncs.com",
"StartTime": 1577681345000,
"ResourceGroupId": "rg-aekzc427db******",
"NetworkProxyModule": "Enable",
"WebTerminalModule": "Enable",
"InstanceStatus": "RUNNING",
"LicenseCode": "bhah_ent_50_asset",
"PublicNetworkAccess": true,
"Storage": 2199023255552,
"Ports": [
{
"StandardPort": 60022,
"CustomPort": 0
}
],
"PublicExportIps": [
"[10.162.168.xx/32]"
],
"PublicWhiteList": [
"[10.162.168.xx/32]"
],
"AuthorizedSecurityGroups": [
"[sg-bp14u00sh39jvw5xxxxx]"
],
"PrivateExportIps": [
"192.168.xx.xx"
],
"PublicIps": [
"116.62.xx.xx"
],
"SecurityGroupIds": [
"sg-bp15ed6xe1yxeycg7o****"
],
"PrivateWhiteList": [
"192.168.xx.xx"
],
"Bandwidth": "30",
"BandwidthPackage": "5",
"DbOperationModule": "Disable",
"RouterRules": [
""
],
"IDaaSModule": "",
"SlaveVswitchId": "",
"ScriptDeliverModule": "",
"KmsSecretModule": "",
"RDModule": "",
"HSMModule": "",
"WhiteListPolicies": [
{
"Entry": "",
"Description": ""
}
],
"AppOperationModule": ""
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.