Enables the specified bastion host.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the bastion host that you want to enable. Note
You can call the DescribeInstances operation to query the ID of the bastion host.
| bastionhost-cn-78v1gh**** |
VswitchId | string | No | The ID of the vSwitch to which the bastion host belongs. | vsw-bp1xfwzzfti0kjbf**** |
RegionId | string | No | The region ID of the bastion host. | cn-hangzhou |
SecurityGroupIds | array | Yes | An array consisting of the IDs of security groups to which the bastion host is added. | |
string | Yes | The ID of the security group to which the bastion host is added. | sg-bp1aiupc4yjqgmm**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"InstanceId": "bastionhost-cn-78v1gh****",
"RequestId": "0F85AE0A-6A87-48F3-A0C7-90B998788A36"
}
Error codes
For a list of error codes, visit the Service error codes.