getNetworkAclRuleList
    • PDF

    getNetworkAclRuleList

    • PDF

    Article summary

    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 NameRequired StatusTypeRestrictionsDescription
    regionCodeNoStringRegion 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.
    networkAclNoYesStringNetwork ACL number
    The networkAclNo can be obtained through the getNetworkAclList action.
    n/docs/en/cli-vpc-networkacl-getnetworkacllistetworkAclRuleTypeCodeNoStringNetwork 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.
    responseFormatTypeNoStringFormat 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>
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.