DescribeInstanceAttribute
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
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:DescribeInstanceAttribute |
get |
*Instance
|
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:
|
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:
|
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 |
| NetworkProxyModule |
string |
The network domain proxy status. Valid values:
|
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:
|
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 |
| 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 |
| 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.