Renames an access control list (ACL).

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 ModifyACL

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

RegionId String Yes cn-shanghai

The ID of the region where the ACL is deployed.

You can call the DescribeRegions operation to query the most recent region list.

AclId String Yes acl-e30a66to95cs****

The ID of the ACL.

Name String Yes newname

The new name of the ACL.

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

Response parameters

Parameter Type Example Description
RequestId String 076FD0BE-67D5-4338-A2A1-C54DE7D78B16

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifyACL
&RegionId=cn-shanghai
&AclId=acl-e30a66to95cs****
&Name=newname
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyACLResponse>
    <RequestId>076FD0BE-67D5-4338-A2A1-C54DE7D78B16</RequestId>
</ModifyACLResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "076FD0BE-67D5-4338-A2A1-C54DE7D78B16"
}

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 InvalidId.ACL The specified ACL ID is invalid. The error message returned because the specified ACL ID is invalid.
403 InternalError An internal server error occurred. The error message returned because an internal server error occurred.

For a list of error codes, see Service error codes.