全部產品
Search
文件中心

Bastionhost:DescribeInstanceAttribute - 查詢執行個體屬性資訊

更新時間:Feb 04, 2026

查詢執行個體所有的屬性資訊,例如:執行個體ID、執行個體的備忘資訊。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

yundun-bastionhost:DescribeInstanceAttribute

get

*Instance

acs:yundun-bastionhost:{#regionId}:{#accountId}:instance/{#InstanceId}

請求參數

名稱

類型

必填

描述

樣本值

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:開啟

  • Disable:關閉

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:支援網路域代理模式。

  • Disable:不支援網路域代理模式。

Enable

WebTerminalModule

string

Web Terminal 狀態。

  • Enable:支援 Web 遠端連線。

  • Disable:不支援 Web 遠端連線。

Enable

InstanceStatus

string

執行個體狀態。取值範圍:

  • PENDING:未初始化

  • CREATING:建立中

  • RUNNING:運行中

  • EXPIRED:已到期

  • CREATE_FAILED:建立失敗

  • UPGRADING:變更配置中

  • UPGRADE_FAILED:變更配置失敗

RUNNING

LicenseCode

string

許可 Code。

bhah_ent_50_asset

PublicNetworkAccess

boolean

公網是否可以訪問該Bastionhost執行個體。取值:

  • true:公網可以訪問該Bastionhost

  • false:公網不可訪問該Bastionhost

true

Storage

integer

已購買Bastionhost的儲存總量。單位:Byte

2199023255552

Ports

array<object>

Bastionhost營運連接埠。

object

Bastionhost營運連接埠。

StandardPort

integer

Bastionhost標準連接埠。取值如下:

  • SSH :60022

  • RDP :63389

  • HTTPS :443

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

資料庫營運狀態。

  • Enable:支援資料庫營運。

  • Disable:不支援資料庫營運。

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": ""
  }
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情