Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

getAccessControlGroupRuleList

Prev Next

Available in VPC

Overview

Get the rule list of ACG using the ACG number.

Request

Request parameters

Parameter name Required Type Restrictions Description
regionCode No String - Region code
Determine the Region in which the ACG's rule list will be queried
regionCode can be obtained through the getRegionList action
Default: Select the first Region of the getRegionList search results
accessControlGroupNo Yes String - ACG number
accessControlGroupNo can be obtained through the getAccessControlGroupList action
accessControlGroupRuleTypeCode No String - ACG rule type code
You can search by filtering with the type code of ACG rule
Options: INBND (inbound rule) | OTBND (outbound rule)
Default: Get all rules of the ACG
responseFormatType No String - Format type of the response result
Options: xml | json
Default: xml

Response

Response data type

  • AccessControlGroupRuleList type
AccessControlGroupRuleList extends CommonResponse
private Integer totalRows;
private List<AccessControlGroupRule> accessControlGroupRuleList = new ArrayList<>();
AccessControlGroupRule
private String accessControlGroupNo;
private ProtocolType protocolType;
private String ipBlock;
private String accessControlGroupSequence;
private String portRange;
private CommonCode accessControlGroupRuleType;
private String accessControlGroupRuleDescription;

Examples

Request example

ncloud vserver getAccessControlGroupRuleList --regionCode KR --accessControlGroupNo ***63

Response example

<getAccessControlGroupRuleListResponse>
  <requestId>a6fe4c12-b592-41c6-acf9-dff0369f09b0</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>2</totalRows>
  <accessControlGroupRuleList>
    <accessControlGroupRule>
      <accessControlGroupNo>***63</accessControlGroupNo>
      <protocolType>
        <code>TCP</code>
        <codeName>tcp</codeName>
        <number>6</number>
      </protocolType>
      <ipBlock>***.***.0.0/0</ipBlock>
      <accessControlGroupSequence></accessControlGroupSequence>
      <portRange>22</portRange>
      <accessControlGroupRuleType>
        <code>INBND</code>
        <codeName>Inbound</codeName>
      </accessControlGroupRuleType>
      <accessControlGroupRuleDescription></accessControlGroupRuleDescription>
    </accessControlGroupRule>
    <accessControlGroupRule>
      <accessControlGroupNo>***63</accessControlGroupNo>
      <protocolType>
        <code>TCP</code>
        <codeName>tcp</codeName>
        <number>6</number>
      </protocolType>
      <ipBlock>***.***.0.0/0</ipBlock>
      <accessControlGroupSequence></accessControlGroupSequence>
      <portRange>22</portRange>
      <accessControlGroupRuleType>
        <code>OTBND</code>
        <codeName>Outbound</codeName>
      </accessControlGroupRuleType>
      <accessControlGroupRuleDescription></accessControlGroupRuleDescription>
    </accessControlGroupRule>
  </accessControlGroupRuleList>
</getAccessControlGroupRuleListResponse>