Modifies the attributes of a network 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
NetworkAclId String Yes acl-bp1lhl0taikrxxxxxxxx

The ID of the network ACL.

NetworkAclName String No acl-1

The name of the network ACL.

The name must be 1 to 128 characters in length and cannot start with http:// or https://.

Description String No This is my NetworkAcl.

The description of the network ACL.

The description must be 1 to 256 characters in length and cannot start with http:// or https://.

RegionId String Yes cn-hangzhou

The region ID of the network ACL.

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

ClientToken String No 123e4567-e89b-12d3-a456-426655440000

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters.

Note If you do not specify this parameter, the system uses RequestId as ClientToken. RequestId may be different for each API request.
Action String Yes ModifyNetworkAclAttributes

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

Response parameters

Parameter Type Example Description
RequestId String 8F76C3E4-B39F-465D-B8B3-50BAF03CA833

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?NetworkAclId=acl-bp1lhl0taikrxxxxxxxx
&NetworkAclName=acl-1
&Description=This is my NetworkAcl.
&RegionId=cn-hangzhou
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&Action=ModifyNetworkAclAttributes
&Common request parameters

Sample success responses

XML format

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

<ModifyNetworkAclAttributesResponse>
    <RequestId>8F76C3E4-B39F-465D-B8B3-50BAF03CA833</RequestId>
</ModifyNetworkAclAttributesResponse>

JSON format

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

{
  "RequestId" : "8F76C3E4-B39F-465D-B8B3-50BAF03CA833"
}

Error codes

HTTP status code Error code Error message Description
400 ParameterLengthIllegal.Name ParameterLengthIllegal.Name The error message returned because the length of the rule name is invalid.
400 ParameterIllegal.Name ParameterIllegal.Name The error message returned because the name of the rule is invalid.
400 InvalidNetworkAcl.NotFound The special Network Acl is not found. The error message returned because the network ACL is not found.
500 InternalError The request processing has failed due to some unknown error. The error message returned because some unknown errors occurred.

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