addAccessControlGroupOutboundRule
    • PDF

    addAccessControlGroupOutboundRule

    • PDF

    Article summary

    Available in VPC

    Overview

    Adds rules to the outbound rule list of ACG.

    Request

    Request parameter

    Parameter nameRequirement statusTypeRestrictionsDescription
    regionCodeNoString- Region code
    Able to determine the region to which an outbound rule is to be added.
    regionCode is obtained via getRegionList
    Default: the first region from the getRegionList search results is selected.
    vpcNoYesString- VPC number
    Determines the VPC of the ACG to which an outbound rule is to be added.
    vpcNo is obtained via getVpcList
    accessControlGroupNoYesString- ACG number
    accessControlGroupNo is obtained via getAccessControlGroupList
    accessControlGroupRuleList.N.protocolTypeCodeYesString- Protocol type code of the ACG rule
    Protocol number is valid within 1-254.
    Options: TCP | UDP | ICMP | 1-254
    accessControlGroupRuleList.N.ipBlockConditionalString- Access the source IP address block of ACG rule
    You can register either an IP address block or an ACG number as an access source.
    E.g., 0.0.0.0/0, 100.10.20.0/24, 192.168.0.10/32
    accessControlGroupRuleList.N.accessControlGroupSequenceConditionalString- Access the source ACG number of the ACG rule
    You can register either an IP address block or an ACG number as an access source.
    accessControlGroupNo is obtained via getAccessControlGroupList
    accessControlGroupRuleList.N.portRangeConditionalString- Port range of ACG rule
    E.g., 1. Single port: 22
    E.g., 2. Custom range: 1-65535
    No port range is required except for protocolTypeCode TCP(6), UDP(17)
    accessControlGroupRuleList.N.accessControlGroupRuleDescriptionNoStringMin: 0, Max: 1000 BytesACG rule description
    responseFormatTypeNoString- Format type of response
    Options: xml | json
    Default: xml

    Response

    Response data type

    • AccessControlGroupRuleList type
    AccessControlGroupRuleList extends CommonResponse
    private Integer totalRows;
    private List 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 examples

    ncloud vserver addAccessControlGroupOutboundRule --regionCode KR --vpcNo ***04 --accessControlGroupNo ***63 --accessControlGroupRuleList "protocolTypeCode='TCP', ipBlock='***.***.0.0/0', portRange='81'" "protocolTypeCode='TCP', ipBlock='***.***.0.0/0', portRange='82'"
    

    Response examples

    Outbound rule list of the ACG after the request is performed

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

    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.