查詢執行個體所有的屬性資訊,例如:執行個體ID、執行個體的備忘資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
yundun-bastionhost:DescribeInstanceAttribute |
get |
*Instance
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
要查詢的Bastionhost執行個體所在的地區 ID。 |
cn-hangzhou |
| InstanceId |
string |
是 |
要查詢的Bastionhost的執行個體的 ID。 說明
可通過調用 DescribeInstances 介面擷取Bastionhost執行個體 ID。 |
bastionhost-cn-78v1ghxxxxx |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
響應參數。 |
||
| RequestId |
string |
本次調用請求的 ID,是由阿里雲為該請求產生的唯一識別碼,可用於排查和定位問題。 |
082FAB35-6AB9-4FD5-8750-D36673548E76 |
| InstanceAttribute |
object |
執行個體屬性資訊。 |
|
| VpcId |
string |
執行個體綁定的 VPC ID。 |
vpc-bp1c85tzgqu1bf5bxxxxx |
| VswitchId |
string |
執行個體綁定的交換器 ID。 |
vsw-bp1xfwzzfti0kjbfxxxxx |
| Description |
string |
備忘資訊。 |
測試API |
| ExpireTime |
integer |
Bastionhost執行個體的到期的時間戳記。單位為毫秒。 |
1578326400000 |
| ModifyPasswordModule |
string |
改密任務功能狀態。
|
Enable |
| EniInstanceId |
string |
彈性網卡 ID。 |
eni-bp1455jrzwm7moaxxxxx |
| InstanceId |
string |
執行個體 ID。 |
bastionhost-cn-78v1ghxxxxx |
| InternetEndpoint |
string |
公網網域名稱。 |
******lwb-public.bastionhost.aliyuncs.com |
| RegionId |
string |
執行個體所在的地區 ID。 |
cn-hangzhou |
| IntranetEndpoint |
string |
內網網域名稱。 |
******xalwb.bastionhost.aliyuncs.com |
| StartTime |
integer |
Bastionhost執行個體的購買或續約的時間戳記。單位為毫秒。 |
1577681345000 |
| ResourceGroupId |
string |
執行個體所在的企業資源組的 ID。 |
rg-aekzc427db****** |
| NetworkProxyModule |
string |
網路域代理程式狀態。
|
Enable |
| WebTerminalModule |
string |
Web Terminal 狀態。
|
Enable |
| InstanceStatus |
string |
執行個體狀態。取值範圍:
|
RUNNING |
| LicenseCode |
string |
許可 Code。 |
bhah_ent_50_asset |
| PublicNetworkAccess |
boolean |
公網是否可以訪問該Bastionhost執行個體。取值:
|
true |
| Storage |
integer |
已購買Bastionhost的儲存總量。單位:Byte |
2199023255552 |
| Ports |
array<object> |
Bastionhost營運連接埠。 |
|
|
object |
Bastionhost營運連接埠。 |
||
| StandardPort |
integer |
Bastionhost標準連接埠。取值如下:
|
60022 |
| CustomPort |
integer |
使用者自訂連接埠。 說明
僅 SSH、RDP 支援修改 ,如果未自訂Bastionhost營運連接埠,返回與標準連接埠一致。 |
600xx |
| PublicExportIps |
array |
Bastionhost公網出口 IP 列表。 |
|
|
string |
Bastionhost公網出口 IP。 |
[10.162.168.xx/32] |
|
| PublicWhiteList |
array |
Bastionhost公網白名單列表。 |
|
|
string |
Bastionhost公網白名單 IP。 |
[10.162.168.xx/32] |
|
| AuthorizedSecurityGroups |
array |
已授權的安全性群組 ID 列表。 |
|
|
string |
已授權的安全性群組 ID。 |
[sg-bp14u00sh39jvw5xxxxx] |
|
| PrivateExportIps |
array |
Bastionhost內網出口 IP 列表。 |
|
|
string |
Bastionhost內網出口 IP。 |
192.168.xx.xx |
|
| PublicIps |
array |
Bastionhost公網 IP 列表。 |
|
|
string |
Bastionhost公網 IP。 |
116.62.xx.xx |
|
| SecurityGroupIds |
array |
執行個體所屬安全性群組 ID 列表。 |
|
|
string |
執行個體所屬安全性群組 ID。 |
sg-bp15ed6xe1yxeycg7o**** |
|
| PrivateWhiteList |
array |
內網白名單 IP 列表。 |
|
|
string |
內網白名單 IP。 |
192.168.xx.xx |
|
| Bandwidth |
string |
Bastionhost執行個體總頻寬。 |
30 |
| BandwidthPackage |
string |
Bastionhost擴充頻寬包。 |
5 |
| DbOperationModule |
string |
資料庫營運狀態。
|
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 |
樣本
正常返回樣本
JSON格式
{
"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": ""
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。