Adds an access control entry to control access from the Internet to an 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 CreateInstanceEndpointAclPolicy

The operation that you want to perform. Set the value to CreateInstanceEndpointAclPolicy.

EndpointType String Yes internet

The type of the endpoint.

Entry String Yes 192.168.1.1/32

The IP address range that is allowed to access the instance.

InstanceId String Yes cri-xkx6vujuhay0t1qw

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

Comment String No test

The description of the entry.

ModuleName String No Registry

The name of the module in the instance for which a whitelist is configured. Valid values: Registry and Chart.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The code returned for the request.

RequestId String D735C5EC-4206-4F48-A090-307BF56BEB99

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=CreateInstanceEndpointAclPolicy
&EndpointType=internet
&Entry=192.168.1.1/32
&InstanceId=cri-xkx6vujuhay0t1qw
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

JSON format

{
    "IsSuccess":true,
    "RequestId":"D735C5EC-4206-4F48-A090-307BF56BEB99",
    "Code":"success"
}

XML format

<IsSuccess>true</IsSuccess>
<RequestId>D735C5EC-4206-4F48-A090-307BF56BEB99</RequestId>
<Code>success</Code>

Error codes

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