createAccessControlGroup
    • PDF

    createAccessControlGroup

    • PDF

    Article summary

    Can be used in a VPC environment.

    Overview

    Create an ACG.

    Request

    Request parameter

    Parameter NameRequired StatusTypeRestrictionsDescription
    regionCodeNoStringRegion Code
    You can decide the region where an ACG will be created.
    The regionCode can be obtained through the getRegionList action.
    Default: Select the first region of the getRegionList query results.
    vpcNoYesStringVPC number
    This determines the VPC where the ACG will be created.
    vpcNo can be obtained through the getVpcList action.
    accessControlGroupNameNoStringMin : 3, Max : 30
    Only lowercase letters, numbers, and special characters "-" are allowed and it must start with an alphabetic character.
    It must end with an alphabet letter or number.
    The name of the ACG to be created
    Default: Naver Cloud Platform automatically assigns it.
    accessControlGroupDescriptionNoStringMin : 0, Max : 1000 BytesThe description about the ACG to be created
    responseFormatTypeNoStringFormat type for the response result
    Options : xml | json
    Default : xml

    Response

    Response data type

    • AccessControlGroupList type
    AccessControlGroupList extends CommonResponse
    private Integer totalRows;
    private List accessControlGroupList = new ArrayList<>();
    AccessControlGroup
    private String accessControlGroupNo;
    private String accessControlGroupName;
    private Boolean isDefault;
    private String vpcNo;
    private CommonCode accessControlGroupStatus;
    private String accessControlGroupDescription;

    Example

    Request example

    ncloud vserver createAccessControlGroup --regionCode KR --vpcNo ***04 --accessControlGroupName test-***
    

    Response example

    <createAccessControlGroupResponse>
      <requestId>cf08459a-2f8e-4a73-9b1c-cc31d74466ae</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <accessControlGroupList>
        <accessControlGroup>
          <accessControlGroupNo>***63</accessControlGroupNo>
          <accessControlGroupName>test-***</accessControlGroupName>
          <isDefault>false</isDefault>
          <vpcNo>***04</vpcNo>
          <accessControlGroupStatus>
            <code>RUN</code>
            <codeName>run</codeName>
          </accessControlGroupStatus>
          <accessControlGroupDescription></accessControlGroupDescription>
        </accessControlGroup>
      </accessControlGroupList>
    </createAccessControlGroupResponse>
    

    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.