Queries bastion hosts.
debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageNumber | integer | No | The number of the page to return. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Default value: 10. | 10 |
RegionId | string | No | The region ID of the bastion host. | cn-hangzhou |
InstanceStatus | string | No | The status of the bastion host. Valid values:
| RUNNING |
ResourceGroupId | string | No | The ID of the resource group to which the bastion host belongs. | rg-acfm26ougi**** |
InstanceId | array | No | An array that consists of the IDs of the bastion hosts. | |
string | No | The ID of the bastion host. | 2 | |
Tag | object [] | No | An array consisting of the tags that are added to the bastion hosts. | |
Key | string | No | The key of the tag. | test |
Value | string | No | The value of the tag. | testapi |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 4,
"RequestId": "61D36C55-AAFC-4678-8FAD-34FEF9E7182E",
"Instances": [
{
"VpcId": "vpc-bp1c85tzgqu1bf5b****",
"VswitchId": "vsw-bp1xfwzzfti0kjbf****",
"ImageVersion": "3.0.0",
"PlanCode": "cloudbastion_ha",
"Description": "Test API\n",
"ExpireTime": 1578326400000,
"Legacy": false,
"InstanceId": "bastionhost-cn-78v1gh****",
"InternetEndpoint": "drawvxalwb-public.bastionhost.aliyuncs.com",
"RegionId": "cn-hangzhou",
"IntranetEndpoint": "drawvxalwb.bastionhost.aliyuncs.com",
"StartTime": 1577681345000,
"ResourceGroupId": "g-acfm26ougi****",
"InstanceStatus": "RUNNING",
"LicenseCode": "bhah_ent_50_asset",
"PublicNetworkAccess": true
}
]
}
Error codes
For a list of error codes, visit the Service error codes.