Mengambil semua atribut suatu instans, seperti ID instans dan deskripsi.
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 dari instans Bastionhost. |
cn-hangzhou |
| InstanceId |
string |
Yes |
ID instans Bastionhost. Catatan
Panggil operasi DescribeInstances untuk mendapatkan ID instans Bastionhost. |
bastionhost-cn-78v1ghxxxxx |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. Alibaba Cloud menghasilkan ID ini untuk mengidentifikasi permintaan secara unik. Gunakan ID ini untuk memecahkan 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. |
测试API |
| ExpireTime |
integer |
Waktu kedaluwarsa instans Bastionhost. Nilai ini berupa stempel waktu UNIX. Satuan: milidetik. |
1578326400000 |
| ModifyPasswordModule |
string |
Status fitur perubahan password.
|
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 instans. |
cn-hangzhou |
| IntranetEndpoint |
string |
Titik akhir internal di wilayah yang sama. |
******xalwb.bastionhost.aliyuncs.com |
| StartTime |
integer |
Waktu pembelian atau perpanjangan instans Bastionhost. Nilai ini berupa stempel waktu UNIX. Satuan: milidetik. |
1577681345000 |
| ResourceGroupId |
string |
ID kelompok sumber daya tempat instans berada. |
rg-aekzc427db****** |
| NetworkProxyModule |
string |
Status proxy domain jaringan.
|
Enable |
| WebTerminalModule |
string |
Status terminal web.
|
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 melalui Internet. Nilai yang valid:
|
true |
| Storage |
integer |
Kapasitas penyimpanan total instans Bastionhost. Satuan: byte. |
2199023255552 |
| Ports |
array<object> |
Port operasi dan pemeliharaan (O&M) instans Bastionhost. |
|
|
object |
Port O&M instans Bastionhost. |
||
| StandardPort |
integer |
Port standar instans Bastionhost. Nilai yang valid:
|
60022 |
| CustomPort |
integer |
Port kustom. Catatan
Hanya port SSH dan RDP yang dapat diubah. Jika port kustom tidak ditentukan, nilai parameter ini sama dengan nilai port standar. |
600xx |
| PublicExportIps |
array |
Daftar alamat IP egress publik instans Bastionhost. |
|
|
string |
Alamat IP egress publik. |
[10.162.168.xx/32] |
|
| PublicWhiteList |
array |
Daftar putih publik. |
|
|
string |
Alamat IP pada daftar putih publik. |
[10.162.168.xx/32] |
|
| AuthorizedSecurityGroups |
array |
Daftar ID security group yang diotorisasi. |
|
|
string |
ID security group yang diotorisasi. |
[sg-bp14u00sh39jvw5xxxxx] |
|
| PrivateExportIps |
array |
Daftar alamat IP egress privat instans Bastionhost. |
|
|
string |
Alamat IP egress privat. |
192.168.xx.xx |
|
| PublicIps |
array |
Daftar alamat IP publik instans Bastionhost. |
|
|
string |
Alamat IP publik. |
116.62.xx.xx |
|
| SecurityGroupIds |
array |
Daftar ID security group tempat instans berada. |
|
|
string |
ID security group tempat instans berada. |
sg-bp15ed6xe1yxeycg7o**** |
|
| PrivateWhiteList |
array |
Daftar putih privat. |
|
|
string |
Alamat IP pada daftar putih privat. |
192.168.xx.xx |
|
| Bandwidth |
string |
Total bandwidth instans Bastionhost. |
30 |
| BandwidthPackage |
string |
Paket bandwidth tambahan. |
5 |
| DbOperationModule |
string |
Status O&M database.
|
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.