MENU
      addAccessControlGroupOutboundRule

        addAccessControlGroupOutboundRule


        Article summary

        Available in VPC

        Overview

        Adding outbound rules to an ACG

        Requests

        Request parameters

        Parameter nameRequirement statusTypeRestrictionsDescription
        regionCodeNoString- Region code
        Sets the region of the ACG to which outbound rules will be added
        regionCode can be obtained via the getRegionList action
        Default: Selects the first region of the getRegionList query results
        vpcNoYesString- VPC number
        Sets the VPC of the ACG to which outbound rules will be added
        vpcNo can be obtained via getVpcList action
        accessControlGroupNoYesString- ACG number
        accessControlGroupNo can be obtained via the getAccessControlGroupList action
        accessControlGroupRuleList.N.protocolTypeCodeYesString- Protocol type code of the ACG rule
        Protocol numbers 1–254 allowed
        Options : TCP | UDP | ICMP | 1-254
        accessControlGroupRuleList.N.ipBlockConditionalString- Access source IP address block of the ACG rule
        Access source can be registered as either an IP address block or an ACG number
        .e.g. 0.0.0.0/0, 100.10.20.0/24, 192.168.0.10/32
        accessControlGroupRuleList.N.accessControlGroupSequenceConditionalString- Access source ACG number of the ACG rule
        Access source can be registered as either an IP address block or an ACG number
        - accessControlGroupNo can be obtained via the getAccessControlGroupList action
        accessControlGroupRuleList.N.portRangeConditionalString- Port range of the ACG rule
        Example 1: 22 for single port
        Example 2: Specify a range from 1 to 65535
        Do not enter a port range except when protocolTypeCode TCP is 6 and UDP is 17
        accessControlGroupRuleList.N.accessControlGroupRuleDescriptionNoStringMin : 0, Max : 1000 BytesACG rule description
        responseFormatTypeNoString- Format type of the response result
        Options : xml

        Responses

        Response bodies

        Examples

        Request examples

        GET {API_URL}/addAccessControlGroupOutboundRule
        ?regionCode=KR
        &vpcNo=***04
        &accessControlGroupNo=***63
        &accessControlGroupRuleList.1.protocolTypeCode=TCP
        &accessControlGroupRuleList.1.ipBlock=***.***.0.0/0
        &accessControlGroupRuleList.1.portRange=80
        HTTP

        Response examples

        Outbound rule list of the ACG after request execution

        <addAccessControlGroupOutboundRuleResponse>
          <requestId>2dc83aed-e495-4cc2-a695-e6e253200f42</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>80</portRange>
              <accessControlGroupRuleType>
                <code>OTBND</code>
                <codeName>Outbound</codeName>
              </accessControlGroupRuleType>
              <accessControlGroupDescription></accessControlGroupDescription>
            </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>
              <accessControlGroupDescription></accessControlGroupDescription>
            </accessControlGroupRule>
          </accessControlGroupRuleList>
        </addAccessControlGroupOutboundRuleResponse>
        XML

        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.