DescribeInstanceAttribute

Updated at:

Queries all the attributes of an instance, such as the instance ID and description.

Operation description

You can directly call this operation to purchase an HSM instance. For prepaid products, the payment is deducted synchronously.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-bastionhost:DescribeInstanceAttribute

get

*Instance

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

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID of the Bastionhost instance to query.

cn-hangzhou

InstanceId

string

Yes

The ID of the Bastionhost instance to query.

Note

You can obtain the Bastionhost instance ID by calling the DescribeInstances operation.

bastionhost-cn-78v1ghxxxxx

Response elements

Element

Type

Description

Example

object

The response parameters.

InstanceAttribute

object

The instance attribute information.

AiCreditStatus

string

The AI credit status (Available/Exhausted).

Available

AiCreditsTotal

integer

The total number of AI credits in the package.

1

AiCreditsUs

integer

The number of used AI credits in the package.

1

AiOpsAuditStatus

string

The AI O&M audit status.

Disabled

AiOpsModule

string

The switch status of the intelligent O&M module (Enable/Disable).

Enable

AppOperationModule

string

The application O&M module. Valid values: Enable and Disable.

Enable

AuthorizedSecurityGroups

array

The list of authorized security group IDs.

string

The authorized security group ID.

[sg-bp14u00sh39jvw5xxxxx]

Bandwidth

string

The total bandwidth of the Bastionhost instance.

30

BandwidthPackage

string

The extended bandwidth plan of the Bastionhost instance.

5

DbOperationModule

string

The database O&M status. Valid values:

  • Enable: Database O&M is supported.

  • Disable: Database O&M is not supported.

Disable

Description

string

The description.

Test API

EniInstanceId

string

The ID of the elastic network interface controller (NIC).

eni-bp1455jrzwm7moaxxxxx

ExpireTime

integer

The expiration timestamp of the Bastionhost instance. Unit: milliseconds.

1578326400000

HSMModule

string

The status of the HSM hardware encryption module. Indicates whether the Bastionhost instance is integrated with an HSM.

IDaaSModule

string

The IDaaS integration module. Valid values: Enable and Disable.

Enable

InstanceId

string

The instance ID.

bastionhost-cn-78v1ghxxxxx

InstanceStatus

string

The instance status. Valid values:

  • PENDING: Uninitialized.

  • CREATING: Creating.

  • RUNNING: Running.

  • EXPIRED: Expired.

  • CREATE_FAILED: Creation failed.

  • UPGRADING: Upgrading or downgrading.

  • UPGRADE_FAILED: Upgrade or downgrade failed.

RUNNING

InternetEndpoint

string

The public domain name.

******lwb-public.bastionhost.aliyuncs.com

IntranetEndpoint

string

The internal domain name.

******xalwb.bastionhost.aliyuncs.com

KmsSecretModule

string

The KMS Secrets Manager integration module. Valid values: Enable and Disable.

Enable

LicenseCode

string

The license code.

bhah_ent_50_asset

ModifyPasswordModule

string

The status of the password change task feature. Valid values:

  • Enable: Enabled.

  • Disable: Disabled.

Enable

NetworkProxyModule

string

The network domain proxy status. Valid values:

  • Enable: The network domain proxy mode is supported.

  • Disable: The network domain proxy mode is not supported.

Enable

Ports

array<object>

The O&M ports of the Bastionhost instance.

object

The O&M ports of the Bastionhost instance.

CustomPort

integer

The custom port.

Note

Only SSH and RDP ports can be modified. If no custom O&M port is specified for the Bastionhost instance, the standard port is returned.

600xx

StandardPort

integer

The standard port of the Bastionhost instance. Valid values:

  • SSH: 60022

  • RDP: 63389

  • HTTPS: 443

60022

PrivateExportIps

array

The list of internal outbound IP addresses of the Bastionhost instance.

string

The internal outbound IP address of the Bastionhost instance.

192.168.xx.xx

PrivateWhiteList

array

The list of IP addresses in the internal network whitelist.

string

The IP address in the internal network whitelist.

192.168.xx.xx

PublicExportIps

array

The list of public outbound IP addresses of the Bastionhost instance.

string

The public outbound IP address of the Bastionhost instance.

[10.162.168.xx/32]

PublicIps

array

The list of public IP addresses of the Bastionhost instance.

string

The public IP address of the Bastionhost instance.

116.62.xx.xx

PublicNetworkAccess

boolean

Indicates whether the Bastionhost instance can be accessed over the Internet. Valid values:

  • true: The Bastionhost instance can be accessed over the Internet.

  • false: The Bastionhost instance cannot be accessed over the Internet.

true

PublicWhiteList

array

The list of IP addresses in the public network whitelist of the Bastionhost instance.

string

The IP address in the public network whitelist of the Bastionhost instance.

[10.162.168.xx/32]

RDModule

string

The multi-account module. Valid values: Enable and Disable.

Enable

RegionId

string

The region ID of the instance.

cn-hangzhou

ResourceGroupId

string

The ID of the resource group to which the instance belongs.

rg-aekzc427db******

RouterRules

array

The list of rules for the Bastionhost instance.

string

The list of rules for the Bastionhost instance.

ScriptDeliverModule

string

The script O&M module. Valid values: Enable and Disable.

Enable

SecurityGroupIds

array

The list of security group IDs to which the instance belongs.

string

The security group ID to which the instance belongs.

sg-bp15ed6xe1yxeycg7o****

SlaveVswitchId

string

The ID of the secondary vSwitch bound to the Bastionhost instance.

vsw-uf6cmnae7hu5****

StartTime

integer

The timestamp when the Bastionhost instance was purchased or renewed. Unit: milliseconds.

1577681345000

Storage

integer

The total purchased storage capacity of the Bastionhost instance. Unit: bytes.

2199023255552

VpcId

string

The ID of the VPC to which the instance is connected.

vpc-bp1c85tzgqu1bf5bxxxxx

VswitchId

string

The ID of the vSwitch to which the instance is connected.

vsw-bp1xfwzzfti0kjbfxxxxx

WebTerminalModule

string

The Web Terminal status. Valid values:

  • Enable: Web remote connection is supported.

  • Disable: Web remote connection is not supported.

Enable

WhiteListPolicies

array<object>

The IP address whitelist to be configured.

object

The IP address whitelist to be configured.

Description

string

The description of the whitelist rule.

description

Entry

string

The IP address whitelist to be configured. You can configure up to 50 IP addresses. Separate multiple IP addresses with commas (,).

94.74.xx.xx/32

RequestId

string

The request ID.

082FAB35-6AB9-4FD5-8750-D36673548E76

Examples

Success response

JSON format

{
  "InstanceAttribute": {
    "AiCreditStatus": "Available",
    "AiCreditsTotal": 1,
    "AiCreditsUs": 1,
    "AiOpsAuditStatus": "Disabled",
    "AiOpsModule": "Enable",
    "AppOperationModule": "Enable",
    "AuthorizedSecurityGroups": [
      "[sg-bp14u00sh39jvw5xxxxx]"
    ],
    "Bandwidth": "30",
    "BandwidthPackage": "5",
    "DbOperationModule": "Disable",
    "Description": "TestAPI",
    "EniInstanceId": "eni-bp1455jrzwm7moaxxxxx",
    "ExpireTime": 1578326400000,
    "HSMModule": "",
    "IDaaSModule": "Enable",
    "InstanceId": "bastionhost-cn-78v1ghxxxxx",
    "InstanceStatus": "RUNNING",
    "InternetEndpoint": "******lwb-public.bastionhost.aliyuncs.com",
    "IntranetEndpoint": "******xalwb.bastionhost.aliyuncs.com",
    "KmsSecretModule": "Enable",
    "LicenseCode": "bhah_ent_50_asset",
    "ModifyPasswordModule": "Enable",
    "NetworkProxyModule": "Enable",
    "Ports": [
      {
        "CustomPort": 0,
        "StandardPort": 60022
      }
    ],
    "PrivateExportIps": [
      "192.168.xx.xx"
    ],
    "PrivateWhiteList": [
      "192.168.xx.xx"
    ],
    "PublicExportIps": [
      "[10.162.168.xx/32]"
    ],
    "PublicIps": [
      "116.62.xx.xx"
    ],
    "PublicNetworkAccess": true,
    "PublicWhiteList": [
      "[10.162.168.xx/32]"
    ],
    "RDModule": "Enable",
    "RegionId": "cn-hangzhou",
    "ResourceGroupId": "rg-aekzc427db******",
    "RouterRules": [
      ""
    ],
    "ScriptDeliverModule": "Enable",
    "SecurityGroupIds": [
      "sg-bp15ed6xe1yxeycg7o****"
    ],
    "SlaveVswitchId": "vsw-uf6cmnae7hu5****",
    "StartTime": 1577681345000,
    "Storage": 2199023255552,
    "VpcId": "vpc-bp1c85tzgqu1bf5bxxxxx",
    "VswitchId": "vsw-bp1xfwzzfti0kjbfxxxxx",
    "WebTerminalModule": "Enable",
    "WhiteListPolicies": [
      {
        "Description": "description",
        "Entry": "94.74.xx.xx/32"
      }
    ]
  },
  "RequestId": "082FAB35-6AB9-4FD5-8750-D36673548E76"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.