All Products
Search
Document Center

Bastionhost:DisableInstancePublicAccess

Last Updated:Apr 18, 2024

Disables 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 whose Internet access you want to disable.

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 disabled.

bastionhost-cn-78v1gh****
RequestIdstring

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

76FAAF15-D3A3-4099-9941-FC408D9FDB4C

Examples

Sample success responses

JSONformat

{
  "InstanceId": "bastionhost-cn-78v1gh****",
  "RequestId": "76FAAF15-D3A3-4099-9941-FC408D9FDB4C"
}

Error codes

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