---
title: "createPlacementGroup"
slug: "cli-vserver-server-placementgroup-createplacementgroup"
tags: ["Server", "VPC"]
updated: 2026-04-23T08:56:52Z
published: 2026-04-23T08:58:50Z
canonical: "cli.ncloud-docs.com/cli-vserver-server-placementgroup-createplacementgroup"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# createPlacementGroup

VPC 환경에서 이용 가능합니다.

## 개요

서버 인스턴스(VM)가 소속되는 물리 배치 그룹을 생성합니다.

## 요청

### 요청 파라미터

| 파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 |
| --- | --- | --- | --- | --- |
| regionCode | No | String |  | - 리전 코드 물리 배치 그룹이 생성될 리전(Region) 결정 가능 regionCode는 [getRegionList](/docs/cli-vserver-server-common-getregionlist) 액션을 통해 획득 가능 Default : getRegionList 조회 결과의 첫 번째 리전을 선택 |
| placementGroupName | No | String | Min : 3, Max : 30 소문자, 숫자, "-"의 특수문자만 허용하며 알파벳 문자로 시작해야 함 | - 생성할 물리 배치 그룹 이름 Default : NAVER Cloud Platform가 자동으로 부여함 |
| placementGroupTypeCode | No | String |  | - 물리 배치 그룹 유형 코드 Options : AA (Anti-Affinity) Default : AA |
| output | No | String |  | 응답 결과의 포맷 타입 - Options : xml \| json - Default : json |

## 응답

### 응답 데이터 타입

- PlacementGroupList 타입

| PlacementGroupList extends CommonResponse |
| --- |
| private Integer totalRows; |
| private List<PlacementGroup> placementGroupList = new ArrayList<>(); |

| PlacementGroup |
| --- |
| private String placementGroupNo; |
| private String placementGroupName; |
| private CommonCode placementGroupType; |

## 예시

### 요청 예시

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

### 응답 예시

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