All Products
Search
Document Center

API Gateway:CreateAccessControlList

Last Updated:Oct 19, 2024

This feature provides instance-level access control capabilities for dedicated instances. Creates an Access Control List (ACL). Each user is allowed to create five ACLs in each region.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
AclNamestringYes

The name of the ACL. The name must be 1 to 30 characters in length, and can contain letters, digits, periods (.), hyphens (-), forward slashes (/), and underscores (_). The name must be unique within the region.

testAcl
AddressIPVersionstringNo

The IP protocol version of the ACL. Valid values:

  • IPv4
  • IPv6
ipv4

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

CEF72CEB-54B6-4AE8-B225-F876FF7BZ015
AclIdstring

The ACL ID.

acl-bp1uqwgwmkbutnzq2r59z

Examples

Sample success responses

JSONformat

{
  "RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BZ015",
  "AclId": "acl-bp1uqwgwmkbutnzq2r59z"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-05-08The response structure of the API has changedView Change Details
2022-06-24Add OperationView Change Details