All Products
Search
Document Center

Bastionhost:EnableInstancePublicAccess

Last Updated:Mar 01, 2024

Enables Internet access for a bastion host.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the bastion host.

Note You can call the DescribeInstances operation to query the ID of the bastion host.
bastionhost-cn-78v1gh****
RegionIdstringNo

The region ID of the bastion host.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
InstanceIdstring

The ID of the bastion host whose Internet access is enabled.

bastionhost-cn-78v1gh****
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

D47B5043-FDD6-4FBE-976E-5FC67A23578F

Examples

Sample success responses

JSONformat

{
  "InstanceId": "bastionhost-cn-78v1gh****",
  "RequestId": "D47B5043-FDD6-4FBE-976E-5FC67A23578F"
}

Error codes

For a list of error codes, visit the Service error codes.