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.

getNetworkAclRuleList

Prev Next

VPC環境で利用できます。

概要

Network ACL番号を利用してNetwork ACLのRuleリストを照会します。

リクエスト

リクエストパラメータ

パラメータ名 必須の有無 タイプ 制約事項 説明
regionCode No String リージョンコード
Network ACLのRuleリストが照会されるリージョン(Region)を決定できます。
regionCodeはgetRegionListアクションを通じて取得できます。
Default:getRegionList照会結果の最初のリージョンを選択
networkAclNo Yes String Network ACL番号
networkAclNoはgetNetworkAclListアクションを通じて取得できます。
networkAclRuleTypeCode No String Network ACL Ruleのタイプコード
Network ACL Ruleのタイプコードでフィルタリングして検索できます。
Options:INBND (Inboundルール) | OTBND (Outboundルール)
Default:Network ACLのすべてのRuleを照会します。
responseFormatType No String レスポンス結果のフォーマットタイプ
Options : xml | json
Default : xml

レスポンス

レスポンスデータタイプ

  • NetworkAclRuleListタイプ
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;

リクエスト例

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

レスポンス例

<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>