Queries the attribute information about the specified bastion host. The information includes the ID and remarks of the bastion host.
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The region ID of the bastion host to query. | cn-hangzhou |
InstanceId | string | Yes | The ID of the bastion host to query. | bastionhost-cn-78v1ghxxxxx |
Response parameters
Example
Normal return example
JSON
Format
{
"RequestId": "082FAB35-6AB9-4FD5-8750-D36673548E76",
"InstanceAttribute": {
"VpcId": "vpc-bp1c85tzgqu1bf5bxxxxx",
"VswitchId": "vsw-bp1xfwzzfti0kjbfxxxxx",
"Description": "Test API\n",
"ExpireTime": 1578326400000,
"ModifyPasswordModule": "Enable",
"EniInstanceId": "eni-bp1455jrzwm7moaxxxxx",
"InstanceId": "bastionhost-cn-78v1ghxxxxx",
"InternetEndpoint": "drawvxalwb-public.bastionhost.aliyuncs.com",
"RegionId": "cn-hangzhou",
"IntranetEndpoint": "drawvxalwb.bastionhost.aliyuncs.com",
"StartTime": 1577681345000,
"ResourceGroupId": "rg-aekzc427dbl2shy",
"NetworkProxyModule": "Enable",
"WebTerminalModule": "Enable",
"DbOperationModule": "Disable",
"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"
]
}
}
Error codes
For a list of error codes, visit the API error center.