Creates an access control list (ACL).


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 CreateACL

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

RegionId String Yes cn-shanghai

The ID of the region where the ACL is deployed.

Name String Yes test

The name of the ACL.

The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

Response parameters

Parameter Type Example Description
RequestId String EE837E9F-BD50-4C2B-9E47-260F9D848480

The ID of the request.

AclId String acl-o6yol7zowii5n2****

The ID of the ACL.

ResourceGroupId String rg-acfm2iu4fnc****

The ID of the resource group to which the ACL belongs.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "EE837E9F-BD50-4C2B-9E47-260F9D848480",
  "AclId" : "acl-o6yol7zowii5n2****",
  "ResourceGroupId" : "rg-acfm2iu4fnc****"

Error codes

HttpCode Error code Error message Description
403 Forbidden User not authorized to operate on the specified resource. The error message returned because you do not have the permissions to manage the specified resource.
403 MissingParameter The input parameter is missing, please check your input. The error message returned because one or more required parameters are not set. Check whether you have set all required parameters.
403 InvalidName Name not valid. The error message returned because the name of the ACL is invalid.
403 AclAmountLimit No more ACL can be created. You can open a ticket to increase the quota of ACLs. The error message returned because the number of created ACLs have reached the upper limit. To increase the quota, submit a ticket.
403 InternalError An internal server error occurred. The error message returned because an internal server error has occurred.

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