addNetworkAclOutboundRule
    • PDF

    addNetworkAclOutboundRule

    • PDF

    Article Summary

    Can be used in a VPC environment.

    Overview

    Add the outbound rule list of network ACL.

    Request

    Request parameter

    Parameter nameRequirement statusTypeRestrictionsDescription
    regionCodeNoString- Region code
    You can decide the region of the network ACL where the outbound rules will be added.
    You can obtain regionCode through the getRegionList action.
    Default: Selects the first region of the getRegionList search results.
    networkAclNoYesString- Network ACL number
    You can obtain networkAclNo through the getNetworkAclList action.
    networkAclRuleList.N.priorityYesIntegerMin: 0, Max: 199- Priority of network ACL rules
    It can't overlap with the priority of other outbound rules.
    networkAclRuleList.N.protocolTypeCodeYesString- The protocol type code of network ACL rule
    Options: TCP | UDP | ICMP
    networkAclRuleList.N.ipBlockConditionalString- The access source IP address block of network ACL rules
    E.g., 0.0.0.0/0, 100.10.20.0/24, 192.168.0.10/32
    networkAclRuleList.N.denyAllowGroupNoConditionalString- The Deny-Allow group number of network ACL rules' access sources
    You can designate Deny-Allow groups instead of IP address blocks as access sources.
    You can obtain denyAllowGroupNo through the getNetworkAclDenyAllowGroupList action.
    networkAclRuleList.N.portRangeConditionalString- The port range of network ACL rules
    Example 1. Single port: 22
    Example 2. Specifying range: 1-65535
    Not entered when protocolTypeCode is ICMP.
    networkAclRuleList.N.ruleActionCodeYesString- The rule action code of network ACL rules
    Options: ALLOW | DROP
    networkAclRuleList.N.networkAclRuleDescriptionNoStringMin: 0, Max: 1000 BytesNetwork ACL rule description
    responseFormatTypeNoString- Format type of the response result
    Options: xml | json
    Default: xml

    Response

    Response body

    Examples

    Request examples

    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
    

    Response examples

    The outbound rule list of the network ACL after completing the request

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

    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.