Starts a specified Bastionhost instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter 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 Bastionhost instance.

Note You can call the DescribeInstances operation to obtain the ID of the Bastionhost instance.
SecurityGroupIds.N RepeatList Yes sg-bp1aiupc4yjqgmm****

The ID of security group N to which the Bastionhost instance is added.

VswitchId String No vsw-bp1xfwzzfti0kjbf****

The ID of the vSwitch to which the Bastionhost instance belongs.

RegionId String No cn-hangzhou

The region ID of the Bastionhost instance.

Response parameters

Parameter Type Example Description
InstanceId String bastionhost-cn-78v1gh****

The ID of the started Bastionhost instance.

RequestId String 0F85AE0A-6A87-48F3-A0C7-90B998788A36

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=StartInstance
&InstanceId=bastionhost-cn-78v1gh****
&SecurityGroupIds.1=sg-bp1aiupc4yjqgmm****
&<Common request parameters>

Sample success responses

XML format

<StartInstanceResponse>
      <InstanceId>bastionhost-cn-78v1gxxxxx</InstanceId>
      <RequestId>0F85AE0A-6A87-48F3-A0C7-90B998788A36</RequestId>
</StartInstanceResponse>

JSON format

{   
    "InstanceId":"bastionhost-cn-78v1gh****",
    "RequestId":"0F85AE0A-6A87-48F3-A0C7-90B998788A36"
}

Error codes

For a list of error codes, visit the API Error Center.