Copies the rules of a network access control list (ACL).
Usage notes
- The CopyNetworkAclEntries operation is asynchronous. After you send the request, the system returns a request
ID. However, the operation is still being performed in the system background. You
can call the DescribeNetworkAclAttributes operation to query the status of a network ACL:
- If the network ACL is in the Modifying state, the rules of the network ACL are being copied.
- If the network ACL is in the Available state, the rules of the network ACL are copied.
- You cannot repeatedly call the CopyNetworkAclEntries operation to copy the rules of a network ACL within the specified period of time.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
RegionId | String | Yes | cn-hangzhou |
The region where the network ACL is deployed. You can call the DescribeRegions operation to query the most recent region list. |
NetworkAclId | String | Yes | nacl-a2do9e413e0spxxxxxxxx |
The ID of the network ACL. |
SourceNetworkAclId | String | Yes | nacl-ghuo9ehg3e0spxxxxxxxx |
The ID of the network ACL whose rules you want to copy. |
ClientToken | String | No | 123 |
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 client token can contain only ASCII characters. Note If you do not set this parameter, the system uses RequestId as ClientToken. RequestId may be different for each API request.
|
Action | String | Yes | CopyNetworkAclEntries |
The operation that you want to perform. Set the value to CopyNetworkAclEntries. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 6608E72F-F276-440F-ABEF-419971CEC4D1 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?RegionId=cn-hangzhou
&NetworkAclId=nacl-a2do9e413e0spxxxxxxxx
&SourceNetworkAclId=nacl-ghuo9ehg3e0spxxxxxxxx
&ClientToken=123
&Action=CopyNetworkAclEntries
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<CopyNetworkAclEntriesResponse>
<RequestId>6608E72F-F276-440F-ABEF-419971CEC4D1</RequestId>
</CopyNetworkAclEntriesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "6608E72F-F276-440F-ABEF-419971CEC4D1"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
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, visit the API Error Center.