aws ec2 describe-network-acls
Describes your network ACLs. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To describe your network ACLs
The following describe-network-acls example retrieves details about your network ACLs.
aws ec2 describe-network-aclsIdentifyIts output, shortened
{
"NetworkAcls": [
{
"Associations": [
{
"NetworkAclAssociationId": "aclassoc-0c1679dc41EXAMPLE",
"NetworkAclId": "acl-0ea1f54ca7EXAMPLE",
"SubnetId": "subnet-0931fc2fa5EXAMPLE"
}
],
"Entries": [
{
"CidrBlock": "0.0.0.0/0",
"Egress": true,
"Protocol": "-1",
"RuleAction": "allow",
"RuleNumber": 100
},
{
"CidrBlock": "0.0.0.0/0",
"Egress": true,
"Protocol": "-1",
"RuleAction": "deny",
"RuleNumber": 32767
},
{
"CidrBlock": "0.0.0.0/0",
"Egress": false,
"Protocol": "-1",
"RuleAction": "allow",
… 84 more linesFor more information, see Network ACLs in the AWS VPC User Guide.
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--filtersThe filters.--max-resultsThe maximum number of items to return for this request.--network-acl-idsThe IDs of the network ACLs.--next-tokenThe token returned from a previous paginated request.