DescribeNetworkAcls - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Describes one or more of your network ACLs.

For more information, see Network ACLs in the Amazon VPC User Guide.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.


Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No


The filters.

  • association.association-id - The ID of an association ID for the ACL.

  • - The ID of the network ACL involved in the association.

  • association.subnet-id - The ID of the subnet involved in the association.

  • default - Indicates whether the ACL is the default network ACL for the VPC.

  • entry.cidr - The IPv4 CIDR range specified in the entry.

  • entry.icmp.code - The ICMP code specified in the entry, if any.

  • entry.icmp.type - The ICMP type specified in the entry, if any.

  • entry.ipv6-cidr - The IPv6 CIDR range specified in the entry.

  • entry.port-range.from - The start of the port range specified in the entry.

  • - The end of the port range specified in the entry.

  • entry.protocol - The protocol specified in the entry (tcp | udp | icmp or a protocol number).

  • entry.rule-action - Allows or denies the matching traffic (allow | deny).

  • entry.egress - A Boolean that indicates the type of rule. Specify true for egress rules, or false for ingress rules.

  • entry.rule-number - The number of an entry (in other words, rule) in the set of ACL entries.

  • network-acl-id - The ID of the network ACL.

  • owner-id - The ID of the Amazon Web Services account that owns the network ACL.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • vpc-id - The ID of the VPC for the network ACL.

Type: Array of Filter objects

Required: No


The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.

Type: Integer

Valid Range: Minimum value of 5. Maximum value of 1000.

Required: No


The IDs of the network ACLs.

Default: Describes all your network ACLs.

Type: Array of strings

Required: No


The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

Type: String

Required: No

Response Elements

The following elements are returned by the service.


Information about one or more network ACLs.

Type: Array of NetworkAcl objects


The token to include in another request to get the next page of items. This value is null when there are no more items to return.

Type: String


The ID of the request.

Type: String


For information about the errors that are common to all actions, see Common client error codes.



This example describes all your network ACLs.

Sample Request &AUTHPARAMS

Sample Response

<DescribeNetworkAclsResponse xmlns=""> <requestId>be8171a0-2b2a-4a02-8b13-9c3436f2f02d</requestId> <networkAclSet> <item> <networkAclId>acl-0ea1f54ca7EXAMPLE</networkAclId> <vpcId>vpc-06e4ab6c6cEXAMPLE</vpcId> <ownerId>111122223333</ownerId> <default>true</default> <entrySet> <item> <ruleNumber>100</ruleNumber> <protocol>-1</protocol> <ruleAction>allow</ruleAction> <egress>true</egress> <cidrBlock></cidrBlock> </item> <item> <ruleNumber>32767</ruleNumber> <protocol>-1</protocol> <ruleAction>deny</ruleAction> <egress>true</egress> <cidrBlock></cidrBlock> </item> <item> <ruleNumber>100</ruleNumber> <protocol>-1</protocol> <ruleAction>allow</ruleAction> <egress>false</egress> <cidrBlock></cidrBlock> </item> <item> <ruleNumber>32767</ruleNumber> <protocol>-1</protocol> <ruleAction>deny</ruleAction> <egress>false</egress> <cidrBlock></cidrBlock> </item> </entrySet> <associationSet> <item> <networkAclAssociationId>aclassoc-0c1679dc41EXAMPLE</networkAclAssociationId> <networkAclId>acl-0ea1f54ca7EXAMPLE</networkAclId> <subnetId>subnet-0931fc2fa5EXAMPLE</subnetId> </item> </associationSet> <tagSet/> </item> <item> <networkAclId>acl-09a47ac966EXAMPLE</networkAclId> <vpcId>vpc-06b7830650EXAMPLE</vpcId> <ownerId>111122223333</ownerId> <default>true</default> <entrySet> <item> <ruleNumber>100</ruleNumber> <protocol>-1</protocol> <ruleAction>allow</ruleAction> <egress>true</egress> <cidrBlock></cidrBlock> </item> <item> <ruleNumber>32767</ruleNumber> <protocol>-1</protocol> <ruleAction>deny</ruleAction> <egress>true</egress> <cidrBlock></cidrBlock> </item> <item> <ruleNumber>100</ruleNumber> <protocol>-1</protocol> <ruleAction>allow</ruleAction> <egress>false</egress> <cidrBlock></cidrBlock> </item> <item> <ruleNumber>32767</ruleNumber> <protocol>-1</protocol> <ruleAction>deny</ruleAction> <egress>false</egress> <cidrBlock></cidrBlock> </item> </entrySet> <associationSet/> <tagSet/> </item> </networkAclSet> </DescribeNetworkAclsResponse>

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: