Enables a bastion host.
Debugging
Request parameters
Name | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | StartInstance |
The operation that you want to perform. Set the value to StartInstance. |
InstanceId | String | Yes | bastionhost-cn-78v1gh**** |
The ID of the bastion host that you want to enable. Note You can call the DescribeInstances operation to obtain the ID of the bastion host.
|
VswitchId | String | No | vsw-bp1xfwzzfti0kjbf**** |
The ID of the vSwitch to which the bastion host belongs. |
RegionId | String | No | cn-hangzhou |
The region ID of the bastion host. |
SecurityGroupIds.N | String | Yes | sg-bp1aiupc4yjqgmm**** |
The ID of security group N to which the bastion host is added. |
Response parameters
Name | Type | Example | Description |
---|---|---|---|
InstanceId | String | bastionhost-cn-78v1gh**** |
The ID of the bastion host that you enable. |
RequestId | String | 0F85AE0A-6A87-48F3-A0C7-90B998788A36 |
The ID of the request, which is used to locate and troubleshoot issues. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=StartInstance
&InstanceId=bastionhost-cn-78v1gh****
&VswitchId=vsw-bp1xfwzzfti0kjbf****
&RegionId=cn-hangzhou
&SecurityGroupIds=["sg-bp1aiupc4yjqgmm****"]
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<StartInstanceResponse>
<InstanceId>bastionhost-cn-78v1gh****</InstanceId>
<RequestId>0F85AE0A-6A87-48F3-A0C7-90B998788A36</RequestId>
</StartInstanceResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"InstanceId" : "bastionhost-cn-78v1gh****",
"RequestId" : "0F85AE0A-6A87-48F3-A0C7-90B998788A36"
}
Error codes
For a list of error codes, visit the API Error Center.