DescribeNetworkAclAttributes
Description
call the DescribeNetworkAclAttributes interface to query the details of the network ACL.
Request Method
POST
Request Path
/apsara/route/Vpc/DescribeNetworkAclAttributes
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
NetworkAclId | BODY | string | Yes | nacl-a2do9e413e0spzasx**** | ID of network ACL. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID where the network ACL is located. You can obtain the region ID by calling the DescribeRegions interface. |
ClientToken | BODY | string | No | 0c593ea1-3bea-11e9-b96b-88e9fe**** | 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. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
Policy | string | accept | authorization policy, value: accept: allowed. drop: reject. |
IngressAclEntries | array of ingressaclentry | No sample value for this parameter. | network ACL inbound rule information. |
Description | string | This is IngressAclEntries. | description information of the entry direction rule. |
Port | string | -1/-1 | source port range. |
NetworkAclAttribute | struct | No sample value for this parameter. | details of network ACL. |
OwnerId | long | 12345678 | account d to which the network ACL belongs. |
EgressAclEntries | array of egressaclentry | No sample value for this parameter. | network ACL outbound rule information. |
IngressAclEntry | No sample value for this parameter. | No description for this parameter. | |
SourceCidrIp | string | 10.0.0.0/24 | the network segment of the source address. |
Protocol | string | all | transport 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. |
Status | string | Available | the state of the associated resource. Available: available. Modifying: under configuration. |
DestinationCidrIp | string | 10.0.0.0/24 | destination address segment. |
NetworkAclId | string | nacl-a2do9e413e0spnhmj**** | ID of network ACL. |
RequestId | string | F5905F9C-0161-4E72-9CB1-1F3F3CF6268A | request ID. |
Resource | No sample value for this parameter. | No description for this parameter. | |
ResourceType | string | VSwitch | the type of associated resource. |
EgressAclEntry | No sample value for this parameter. | No description for this parameter. | |
NetworkAclEntryName | string | acl-3 | The name of the entry direction rule. |
EntryType | string | custom | rule type, value: custom: custom. system: system. |
VpcId | string | vpc-a2d33rfpl72k5defr**** | ID of VPC associated with network ACL. |
ResourceId | string | vsw-bp1de348lntdwxscd**** | the instance ID of the associated resource. |
CreationTime | string | 2019-04-25 11:33:27 | the time when the network ACL was created. |
NetworkAclName | string | acl-1 | the name of the network ACL. |
RegionId | string | cn-qingdao-env17-d01 | the region ID to which the network ACL belongs. |
Resources | array of resource | No sample value for this parameter. | associated resource. |
NetworkAclEntryId | string | nae-a2dk86arlydmevfbg**** | ID of the entry direction rule entry. |
Example
Successful Response example
{
"Policy":"accept",
"IngressAclEntries":"",
"Description":"This is IngressAclEntries.",
"Port":"-1/-1",
"NetworkAclAttribute":"",
"OwnerId":"12345678",
"EgressAclEntries":"",
"IngressAclEntry":"",
"SourceCidrIp":"10.0.0.0/24",
"Protocol":"all",
"Status":"Available",
"DestinationCidrIp":"10.0.0.0/24",
"NetworkAclId":"nacl-a2do9e413e0spnhmj****",
"RequestId":"F5905F9C-0161-4E72-9CB1-1F3F3CF6268A",
"Resource":"",
"ResourceType":"VSwitch",
"EgressAclEntry":"",
"NetworkAclEntryName":"acl-3",
"EntryType":"custom",
"VpcId":"vpc-a2d33rfpl72k5defr****",
"ResourceId":"vsw-bp1de348lntdwxscd****",
"CreationTime":"2019-04-25 11:33:27",
"NetworkAclName":"acl-1",
"RegionId":"cn-qingdao-env17-d01",
"Resources":"",
"NetworkAclEntryId":"nae-a2dk86arlydmevfbg****"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}