createPlacementGroup

Prev Next

Can be used in a VPC environment.

Overview

This creates the physical batch group number to which the server instance belongs.

Request

Request parameter

Parameter Name Required Status Type Restrictions Description
regionCode No String Region Code
You can decide the region where the physical batch group will be created.
The regionCode can be obtained through the getRegionList action.
Default: Select the first region of the getRegionList query results.
placementGroupName No String Min : 3, Max : 30
Only lowercase letters, numbers, and special characters "-" are allowed and it must start with an alphabetic character.
Name of the physical batch group to be created
Default: NAVER Cloud Platform automatically assigns it.
placementGroupTypeCode No String Type code of the physical batch group
Options : AA (Anti-Affinity)
Default : AA
responseFormatType No String Format type for the response result
Options : xml | json
Default : xml

Response

Response data type

  • PlacementGroupList type
PlacementGroupList extends CommonResponse
private Integer totalRows;
private List<PlacementGroup> placementGroupList = new ArrayList<>();
PlacementGroup
private String placementGroupNo;
private String placementGroupName;
private CommonCode placementGroupType;

Example

Request example

ncloud vserver createPlacementGroup --regionCode KR --placementGroupName test-*** --placementGroupTypeCode AA

Response example

<createPlacementGroupResponse>
  <requestId></requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <placementGroupList>
    <placementGroup>
      <placementGroupNo>***61</placementGroupNo>
      <placementGroupName>test-***</placementGroupName>
      <placementGroupType>
        <code>AA</code>
        <codeName>Anti-Affinity</codeName>
      </placementGroupType>
    </placementGroup>
  </placementGroupList>
</createPlacementGroupResponse>