addNetworkAclOutboundRule
    • PDF

    addNetworkAclOutboundRule

    • PDF

    Article Summary

    VPC環境で利用できます。

    概要

    ネットワークACLのアウトバウンドルールリストを追加します。

    リクエスト

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    regionCodeNoString- リージョンコード
    アウトバウンドルールが追加されるネットワークACLのリージョン(Region)を決定できる
    regionCodeはgetRegionListアクションを通じて取得できる
    デフォルト:getRegionList照会結果の最初のリージョンを選択
    networkAclNoYesString- ネットワークACL番号
    networkAclNoはgetNetworkAclListアクションを通じて取得できる
    networkAclRuleList.N.priorityYesInteger最小:0, 最大:199- ネットワークACLルールの優先順位
    他のアウトバウンドルールの優先順位と重複不可
    networkAclRuleList.N.protocolTypeCodeYesString- ネットワークACLルールのプロトコルタイプコード
    オプション:TCP | UDP | ICMP
    networkAclRuleList.N.ipBlockConditionalString- ネットワークACLルールのアクセスソースIPアドレスブロック
    例:0.0.0.0/0, 100.10.20.0/24, 192.168.0.10/32
    networkAclRuleList.N.denyAllowGroupNoConditionalString- ネットワークACLルールのアクセスソースDeny-Allowグループ番号
    アクセスソースとしてIPアドレスブロックの代わりにDeny-Allowグループを指定できる
    denyAllowGroupNoはgetNetworkAclDenyAllowGroupListアクションを通じて取得できる
    networkAclRuleList.N.portRangeConditionalString- ネットワークACLルールのポート範囲
    例1) 単一ポート:22
    例2) 範囲を指定:1-65535
    protocolTypeCodeがICMPの場合は入力しない
    networkAclRuleList.N.ruleActionCodeYesString- ネットワークACLルールのルールアクションコード
    オプション:ALLOW | DROP
    networkAclRuleList.N.networkAclRuleDescriptionNoString最小:0, 最大:1000 BytesネットワークACLルールの説明
    responseFormatTypeNoString- レスポンス結果のフォーマットタイプ
    オプション:xml | json
    デフォルト:xml

    レスポンス

    レスポンスボディ

    リクエスト例

    GET {API_URL}/vpc/v2/addNetworkAclOutboundRule
    ?regionCode=KR
    &networkAclNo=***31
    &networkAclRuleList.1.priority=0
    &networkAclRuleList.1.protocolTypeCode=TCP
    &networkAclRuleList.1.ipBlock=***.***.0.0/0
    &networkAclRuleList.1.portRange=22-23
    &networkAclRuleList.1.ruleActionCode=ALLOW
    

    レスポンス例

    リクエストの実行後、そのネットワークACLのアウトバウンドルールリスト

    <addNetworkAclOutboundRuleResponse>
      <requestId>7bfc87eb-8830-426a-8c3a-66e68ef8cfbd</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-23</portRange>
          <ruleAction>
            <code>ALLOW</code>
            <codeName>Allow</codeName>
          </ruleAction>
          <createDate>2020-08-05T20:00:42+0900</createDate>
          <ipBlock>***.***.0.0/0</ipBlock>
          <denyAllowGroupNo/>
          <networkAclRuleType>
            <code>OTBND</code>
            <codeName>Outbound</codeName>
          </networkAclRuleType>
          <networkAclRuleDescription></networkAclRuleDescription>
        </networkAclRule>
      </networkAclRuleList>
    </addNetworkAclOutboundRuleResponse>
    

    この記事は役に立ちましたか?

    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.