getNetworkAclRuleList

Prev Next

Can be used in a VPC environment.

Overview

Query the rule list for a Network ACL using the Network ACL number.

Request

Request parameter

Parameter Name Required Status Type Restrictions Description
regionCode No String Region Code
You can decide the region where the rule list for the Network ACL will be queried.
The regionCode can be obtained through the getRegionList action.
Default: Select the first region of the getRegionList query results.
networkAclNo Yes String Network ACL number
The networkAclNo can be obtained through the getNetworkAclList action.
n/docs/en/cli-vpc-networkacl-getnetworkacllistetworkAclRuleTypeCode No String Network ACL rule type code
You can search by filtering with the Network ACL rule type code.
Options: INBND (Inbound rule) | OTBND (Outbound rule)
Default: All rules for the Network ACL are queried.
responseFormatType No String Format type for the response result
Options : xml | json
Default : xml

Response

Response data type

  • NetworkAclRuleList type
NetworkAclRuleList extends CommonResponse
private Integer totalRows;
private List networkAclRuleList = new ArrayList<>();
NetworkAclRule
private String networkAclNo;
private Integer priority;
private CommonCode protocolType;
private String portRange;
private CommonCode ruleAction;
private Date createDate;
private String ipBlock;
private String denyAllowGroupNo;
private CommonCode networkAclRuleType;
private String networkAclRuleDescription;

Example

Request example

ncloud vpc getNetworkAclRuleList --regionCode KR --networkAclNo ***31

Response example

<getNetworkAclRuleListResponse>
  <requestId>952f10f8-e8a8-4aae-b427-f1d74529db46</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <networkAclRuleList>
    <networkAclRule>
      <networkAclNo>***31</networkAclNo>
      <priority>0</priority>
      <protocolType>
        <code>TCP</code>
        <codeName>tcp</codeName>
      </protocolType>
      <portRange>22</portRange>
      <ruleAction>
        <code>ALLOW</code>
        <codeName>Allow</codeName>
      </ruleAction>
      <createDate>2020-07-31T18:29:38+0900</createDate>
      <ipBlock>***.***.0.0/0</ipBlock>
      <denyAllowGroupNo/>
      <networkAclRuleType>
        <code>INBND</code>
        <codeName>Inbound</codeName>
      </networkAclRuleType>
      <networkAclRuleDescription></networkAclRuleDescription>
    </networkAclRule>
  </networkAclRuleList>
</getNetworkAclRuleListResponse>