All Products
Search
Document Center

ENS:AccosicateNetworkAcl

Last Updated:Mar 12, 2024

Associates a network access control list (ACL) with a network.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
NetworkAclIdstringYes

The ID of the network ACL.

nacl-a2do9e413e0sp****
Resourceobject []Yes

The information about the resources with which you want to associate the network ACL.

ResourceTypestringYes

The type of resource with which you want to associate the network ACL. Set the value to Network.


Network
ResourceIdstringYes

The ID of the resource with which you want to associate the network ACL.

n-5****

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

CEF72CEB-54B6-4AE8-B225-F876FF7BA984

Examples

Sample success responses

JSONformat

{
  "RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}

Error codes

HTTP status codeError codeError message
400Missing%sYou must specify the parameter %s.
400Invalid%sThe specified parameter %s is invalid.
400ens.interface.errorAn error occurred while call the API.
400InvalidNetworkAcl.NotFoundThe special Network Acl is not found.
400InvalidResource.NotFoundThe binding instance is not found.
400InvalidResource.AssociatedThis instance has already associated network acl.
400RegionAccessDeniedCould not operate this region's resource.
400InvalidResource.NotSupportNetwork type not support.
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

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

Change history

Change timeSummary of changesOperation
No change history