Queries all attributes of an instance, such as the instance ID and description.
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. |
cn-hangzhou |
| InstanceId |
string |
Yes |
The ID of the Bastionhost instance. Note
Call the DescribeInstances operation to obtain the ID of the Bastionhost instance. |
bastionhost-cn-78v1ghxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. Alibaba Cloud generates this ID to uniquely identify the request. Use this ID to troubleshoot issues. |
082FAB35-6AB9-4FD5-8750-D36673548E76 |
| InstanceAttribute |
object |
The attributes of the instance. |
|
| VpcId |
string |
The ID of the VPC to which the instance is attached. |
vpc-bp1c85tzgqu1bf5bxxxxx |
| VswitchId |
string |
The ID of the vSwitch to which the instance is attached. |
vsw-bp1xfwzzfti0kjbfxxxxx |
| Description |
string |
The description. |
测试API |
| ExpireTime |
integer |
The time when the Bastionhost instance expires. This value is a UNIX timestamp. Unit: milliseconds. |
1578326400000 |
| ModifyPasswordModule |
string |
The status of the password change feature.
|
Enable |
| EniInstanceId |
string |
The ID of the Elastic Network Interface (ENI). |
eni-bp1455jrzwm7moaxxxxx |
| InstanceId |
string |
The instance ID. |
bastionhost-cn-78v1ghxxxxx |
| InternetEndpoint |
string |
The public domain name. |
******lwb-public.bastionhost.aliyuncs.com |
| RegionId |
string |
The region ID of the instance. |
cn-hangzhou |
| IntranetEndpoint |
string |
The internal endpoint in the same region. |
******xalwb.bastionhost.aliyuncs.com |
| StartTime |
integer |
The time when the Bastionhost instance was purchased or renewed. This value is a UNIX timestamp. Unit: milliseconds. |
1577681345000 |
| ResourceGroupId |
string |
The ID of the resource group to which the instance belongs. |
rg-aekzc427db****** |
| NetworkProxyModule |
string |
The status of the network domain proxy.
|
Enable |
| WebTerminalModule |
string |
The status of the web terminal.
|
Enable |
| InstanceStatus |
string |
The status of the instance. Valid values:
|
RUNNING |
| LicenseCode |
string |
The license code. |
bhah_ent_50_asset |
| PublicNetworkAccess |
boolean |
Indicates whether the Bastionhost instance is accessible over the Internet. Valid values:
|
true |
| Storage |
integer |
The total storage capacity of the Bastionhost instance. Unit: bytes. |
2199023255552 |
| Ports |
array<object> |
The operations and maintenance (O&M) ports of the Bastionhost instance. |
|
|
object |
An O&M port of the Bastionhost instance. |
||
| StandardPort |
integer |
The standard port of the Bastionhost instance. Valid values:
|
60022 |
| CustomPort |
integer |
The custom port. Note
Only the SSH and RDP ports can be changed. If a custom port is not specified, the value of this parameter is the same as the value of the standard port. |
600xx |
| PublicExportIps |
array |
The list of public egress IP addresses of the Bastionhost instance. |
|
|
string |
The public egress IP address. |
[10.162.168.xx/32] |
|
| PublicWhiteList |
array |
The public whitelist. |
|
|
string |
The IP address on the public whitelist. |
[10.162.168.xx/32] |
|
| AuthorizedSecurityGroups |
array |
The list of IDs of authorized security groups. |
|
|
string |
The ID of the authorized security group. |
[sg-bp14u00sh39jvw5xxxxx] |
|
| PrivateExportIps |
array |
The list of private egress IP addresses of the Bastionhost instance. |
|
|
string |
The private egress IP address. |
192.168.xx.xx |
|
| PublicIps |
array |
The list of public IP addresses of the Bastionhost instance. |
|
|
string |
The public IP address. |
116.62.xx.xx |
|
| SecurityGroupIds |
array |
The list of IDs of security groups to which the instance belongs. |
|
|
string |
The ID of a security group to which the instance belongs. |
sg-bp15ed6xe1yxeycg7o**** |
|
| PrivateWhiteList |
array |
The private whitelist. |
|
|
string |
The IP address on the private whitelist. |
192.168.xx.xx |
|
| Bandwidth |
string |
The total bandwidth of the Bastionhost instance. |
30 |
| BandwidthPackage |
string |
The extra bandwidth plan. |
5 |
| DbOperationModule |
string |
The status of database O&M.
|
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 |
Examples
Success response
JSON format
{
"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": ""
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.