Skip to main content

DescribeNetworkAcls

Description

call the DescribeNetworkAcls interface to view the list of network ACLs.

Request Method

POST

Request Path

/apsara/route/Vpc/DescribeNetworkAcls

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
NetworkAclIdBODYstringNonacl-bp1lhl0taikrbgnh****ID of network ACL.
VpcIdBODYstringNovpc-1234****ID of VPC associated with network ACL.
PageSizeBODYintegerNo10The number of rows per page during paging query, the maximum value is 50, the default value is 10.
ResourceIdBODYstringNovsw-bp1de348lntdwnhbg****ID of the associated instance. ResourceType and ResourceId needs to be specified at the same time to take effect.
PageNumberBODYintegerNo1page number of the list, the default value is 1.
regionIdBODYstringYesNo sample value for this parameter.region id
NetworkAclNameBODYstringNoacl-1the name of the network ACL. is 2 to 128 characters in length and must start with a letter or Chinese, and can contain numbers, underscores (_) and dashes (-), but you cannot use http:// or https:// start.
ResourceTypeBODYstringNoVSwitchThe type of associated instance, only the value is VSwitch. ResourceType and ResourceId needs to be specified at the same time to take effect.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID to which the network ACL belongs. you can obtain the region by calling DescribeRegions interface ID.
ClientTokenBODYstringNo0c593ea1-3bea-11e9-b96b-88e9fe63****Ensure request idempotence. Generate a parameter value from your client to ensure that the parameter value is unique between different requests. ClientToken only ASCII characters are supported and cannot exceed 64 characters.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
Policystringacceptauthorization policy, value: accept: allowed. drop: reject.
IngressAclEntriesarray of ingressaclentryNo sample value for this parameter.incoming direction rule information.
DescriptionstringThis is IngressAclEntries.description information of the entry direction rule.
PageSizestring10the number of entries currently contained in the page.
Portstring-1/-1source port range.
NetworkAclNo sample value for this parameter.No description for this parameter.
OwnerIdlong12345678the account ID of the network ACL.
EgressAclEntriesarray of egressaclentryNo sample value for this parameter.exit direction rule information.
IngressAclEntryNo sample value for this parameter.No description for this parameter.
PageNumberstring1current page number.
SourceCidrIpstring10.0.0.0/24source address segment.
Protocolstringalltransport layer protocol, value: icmp: network control message protocol. gre: universal routing encapsulation protocol. tcp: transmission control protocol. udp: user datagram protocol. all: All protocols are supported.
StatusstringAvailablestatus of network ACL. Available: available. Modifying: under configuration.
NetworkAclsarray of networkaclNo sample value for this parameter.details of network ACL.
DestinationCidrIpstring10.0.0.0/24destination address segment.
NetworkAclIdstringnacl-a2do9e413e0spxscd****ID of network ACL.
RequestIdstringF7DDDC17-FA06-4AC2-8F35-59D2470FCFC1request ID.
ResourceNo sample value for this parameter.No description for this parameter.
ResourceTypestringVSwitchthe type of associated resource.
EgressAclEntryNo sample value for this parameter.No description for this parameter.
NetworkAclEntryNamestringacl-3The name of the entry direction rule.
TotalCountstring2Number of entries in the list.
EntryTypestringcustomrule type, value: custom: custom. system: system.
VpcIdstringvpc-a2d33rfpl72k5defr****ID of the associated VPC.
ResourceIdstringvsw-bp1de348lntdwcdf****ID of the associated resource.
CreationTimestring2019-04-25 11:44:17the creation time of the network ACL.
NetworkAclNamestringacl-8the name of the network ACL.
RegionIdstringcn-qingdao-env17-d01the region ID to which the network ACL belongs.
Resourcesarray of resourceNo sample value for this parameter.associated resource.
NetworkAclEntryIdstringnae-a2dk86arlydmezasw****ID of the entry direction rule entry.

Example

Successful Response example

{
"Policy":"accept",
"IngressAclEntries":"",
"Description":"This is IngressAclEntries.",
"PageSize":"10",
"Port":"-1/-1",
"NetworkAcl":"",
"OwnerId":"12345678",
"EgressAclEntries":"",
"IngressAclEntry":"",
"PageNumber":"1",
"SourceCidrIp":"10.0.0.0/24",
"Protocol":"all",
"Status":"Available",
"NetworkAcls":"",
"DestinationCidrIp":"10.0.0.0/24",
"NetworkAclId":"nacl-a2do9e413e0spxscd****",
"RequestId":"F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1",
"Resource":"",
"ResourceType":"VSwitch",
"EgressAclEntry":"",
"NetworkAclEntryName":"acl-3",
"TotalCount":"2",
"EntryType":"custom",
"VpcId":"vpc-a2d33rfpl72k5defr****",
"ResourceId":"vsw-bp1de348lntdwcdf****",
"CreationTime":"2019-04-25 11:44:17",
"NetworkAclName":"acl-8",
"RegionId":"cn-qingdao-env17-d01",
"Resources":"",
"NetworkAclEntryId":"nae-a2dk86arlydmezasw****"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}