Queries bastion hosts.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-bastionhost:DescribeInstanceBastionhost | get | *Instance acs:yundun-bastionhost:{#regionId}:{#accountId}:instance/{#InstanceId} |
| none |
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 | array<object> | No | An array consisting of the tags that are added to the bastion hosts. | |
object | No | The tag that is added to the bastion host. | ||
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.