Enables Internet access for a 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. Note
You can call the DescribeInstances operation to query the ID of the bastion host.
| bastionhost-cn-78v1gh**** |
RegionId | string | No | The region ID of the bastion host. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"InstanceId": "bastionhost-cn-78v1gh****",
"RequestId": "D47B5043-FDD6-4FBE-976E-5FC67A23578F"
}
Error codes
For a list of error codes, visit the Service error codes.