Queries the details about an instance, such as instance ID and description.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeInstanceAttribute

The operation that you want to perform.

Set the value to DescribeInstanceAttribute.

InstanceId String Yes bastionhost-cn-78v1ghxxxxx

The ID of the Bastionhost instance.

RegionId String No cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
RequestId String 082FAB35-6AB9-4FD5-8750-D36673548E76

The ID of the request.

InstanceAttribute Struct

The attribute information of the instance.

InstanceId String bastionhost-cn-78v1ghxxxxx

The ID of the instance.

InstanceStatus String RUNNING

The status of the instance. Valid values:

  • PENDING: The instance is not initialized.
  • CREATING: The instance is being created.
  • RUNNING: The instance is running.
  • EXPIRED: The instance expired.
  • CREATE_FAILED: The instance fails to be created.
  • UPGRADING: The configurations of the instance are being changed.
  • UPGRADE_FAILED: The configurations of the instance fail to be changed.
VpcId String vpc-bp1c85tzgqu1bf5bxxxxx

The ID of the VPC to which the instance belongs.

VSwitchId String vsw-bp1xfwzzfti0kjbfxxxxx

The ID of the vSwitch to which the instance belongs.

IntranetEndpoint String drawvxalwb.bastionhost.aliyuncs.com

The private endpoint.

InternetEndpoint String drawvxalwb-public.bastionhost.aliyuncs.com

The public endpoint.

PublicNetworkAccess Boolean true

Indicates whether the Bastionhost instance can be accessed over the Internet.

EniInstanceId String eni-bp1455jrzwm7moaxxxxx

The ID of the Elastic Network Interface (ENI).

StartTime Long 1577681345000

The time when the instance started.

ExpireTime Long 1578326400000

The time when the instance expires.

Description String Test API operation

The description of the instance.

LicenseCode String bhah_ent_50_asset

The license code.

PublicWhiteList List [10.162.168.xx/32]

The public IP addresses that are allowed to access the instance.

PrivateWhiteList List []

The private IP addresses that are allowed to access the instance.

SecurityGroupIds List []

The IDs of the security groups to which the instance belongs.

AuthorizedSecurityGroups List [sg-bp14u00sh39jvw5xxxxx]

The IDs of authorized security groups.


Sample requests

&<Common request parameters>

Sample success responses

XML format

        <Description>Test API operation</Description>

JSON format

        "Description":"Test API operation",

Error codes

For a list of error codes, visit the API Error Center.