Configures a whitelist of public IP addresses for a Bastionhost instance. After Internet access is enabled, specified public IP addresses can be added to the whitelist for access to the 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 ConfigInstanceWhiteList

The operation that you want to perform.

Set the value to ConfigInstanceWhiteList.

InstanceId String Yes bastionhost-cn-78v1gh****

The ID of the Bastionhost instance for which a whitelist of public IP addresses is required.

WhiteList.N RepeatList No 10.162.168.xx/32

Public IP address N to be added to the whitelist.

Valid values of N: 1 to 30.

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 Bastionhost instance for which a whitelist of public IP addresses was configured.

RequestId String 47820E32-5968-45CF-982F-09CB80DC180B

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ConfigInstanceWhiteList
&InstanceId=bastionhost-cn-78v1gh****
&<Common request parameters>

Sample success responses

XML format

<ConfigInstanceWhiteListResponse>
      <RequestId>47820E32-5968-45CF-982F-09CB80DC180B</RequestId>
      <InstanceId>bastionhost-cn-78v1gh****</InstanceId>
</ConfigInstanceWhiteListResponse>

JSON format

{
    "RequestId":"47820E32-5968-45CF-982F-09CB80DC180B",
    "InstanceId":"bastionhost-cn-78v1gh****"
    }

Error codes

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