Creates a whitelist that is allowed to access an instance from the Internet.
Debugging
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. Set the value to Internet. |
Entry | String | Yes | 192.168.1.1/32 |
The Classless Inter-Domain Routing (CIDR) block that is allowed to access the instance. |
InstanceId | String | Yes | cri-xkx6vujuhay0**** |
The ID of the instance. |
RegionId | String | Yes | cn-shanghai |
The ID of the region. |
Comment | String | No | test |
The description. |
ModuleName | String | No | Registry |
The name of the module in the instance for which the whitelist is configured. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | success |
The return value. |
IsSuccess | Boolean | true |
Indicates whether the operation is successful. |
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-xkx6vujuhay0****
&RegionId=cn-shanghai
&<Common request parameters>
Sample success responses
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>D735C5EC-4206-4F48-A090-307BF56BEB99</RequestId>
<Code>success</Code>
JSON
format
{
"IsSuccess": true,
"RequestId": "D735C5EC-4206-4F48-A090-307BF56BEB99",
"Code": "success"
}
Error codes
For a list of error codes, visit API Error Center.