Creates a whitelist policy for an instance access endpoint (public network only).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:CreateInstanceEndpointAclPolicy |
create |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-xkx6vujuhay0**** |
| EndpointType |
string |
Yes |
The endpoint type. Only Internet is supported. |
internet |
Entry
deprecated
|
string |
Yes |
The IP address range that is allowed to access the instance. |
192.168.1.1/32 |
Comment
deprecated
|
string |
No |
The description. |
test |
| ModuleName |
string |
No |
The module for which you want to set the access policy. Valid values:
|
Registry |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Indicates whether the call is successful. Valid values:
|
true |
| RequestId |
string |
The request ID. |
D735C5EC-4206-4F48-A090-307BF56BEB99 |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "D735C5EC-4206-4F48-A090-307BF56BEB99"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SLB_SERVICE_ERROR | Bad request for this user. | An exception occurred while calling the SLB service, the call failed |
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.