createAccessControlGroup

Prev Next

Available in VPC

Overview

Create a ACG.

Request

Request parameters

Parameter name Required Type Restrictions Description
regionCode No String - Region code
You can determine the Region in which the ACG will be created
regionCode can be obtained through the getRegionList action
Default: Select the first Region of the getRegionList search results
vpcNo Yes String - VPC number
Determine the VPC in which the ACG will be created
vpcNo can be obtained through the getVpcList action
accessControlGroupName No String Min: 3, Max: 30
Only lowercase English letters, numbers, and "-" are allowed, and it must start with an English letter
It must end with an English letter or number
- The name of ACG to be created
Default: NAVER Cloud Platform automatically assigns it
accessControlGroupDescription No String Min: 0, Max: 1000 Bytes Description of the ACG to be created
responseFormatType No String - Format type of the response result
Options: xml | json
Default: xml

Response

Response data type

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

Examples

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>