VPC 환경에서 이용 가능합니다.
물리 배치 그룹에 서버 인스턴스를 추가합니다.
구문
addPlacementGroupServerInstance 구문은 다음과 같습니다.
./ncloud vserver addPlacementGroupServerInstance \
--placementGroupNo <placement-group-no> \
--serverInstanceNo <server-instance-no> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
옵션
addPlacementGroupServerInstance 실행 시 지정할 수 있는 옵션을 설명합니다.
필수 옵션
addPlacementGroupServerInstance의 필수 옵션입니다.
| 옵션 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
--placementGroupNo |
String | Required | 물리 배치 그룹 번호 |
--serverInstanceNo |
String | Required | 서버 인스턴스 번호 |
공통 옵션
vserver 명령에서 공통으로 사용하는 옵션에 대한 정보는 Server (VPC) 옵션을 참조해 주십시오.
예시
물리 배치 그룹에 서버 인스턴스 추가 요청이 성공하면 추가된 서버 인스턴스의 식별 정보와 구성 정보가 반환됩니다.
명령
명령 예시는 다음과 같습니다.
./ncloud vserver addPlacementGroupServerInstance \
--placementGroupNo 91234567 \
--serverInstanceNo 34567890 \
--regionCode KR \
--output json
출력
출력 예시는 다음과 같습니다.
{
"addPlacementGroupServerInstanceResponse": {
"totalRows": 1,
"serverInstanceList": [
{
"serverInstanceNo": "34567890",
"serverName": "test-server-01",
"cpuCount": 2,
"memorySize": 8589934592,
"platformType": {
"code": "LNX64",
"codeName": "Linux 64 Bit"
},
"loginKeyName": "test-login-key-01",
"serverInstanceStatus": {
"code": "RUN",
"codeName": "서버 RUN 상태"
},
"serverInstanceOperation": {
"code": "NULL",
"codeName": "서버 NULL OP"
},
"serverInstanceStatusName": "running",
"createDate": "2026-04-28T13:01:30+0900",
"uptime": "2026-04-28T13:03:43+0900",
"serverImageProductCode": "SW.VSVR.OS.LNX64.NAVIX.09.G003",
"serverProductCode": "SVR.VSVR.AMD.STAND.C002.M008.G003",
"isProtectServerTermination": false,
"zoneCode": "KR-1",
"regionCode": "KR",
"vpcNo": "12345678",
"subnetNo": "23456789",
"networkInterfaceNoList": [
"56789012"
],
"serverInstanceType": {
"code": "STAND",
"codeName": "Standard"
},
"baseBlockStorageDiskType": {
"code": "NET",
"codeName": "네트웍 스토리지"
},
"baseBlockStorageDiskDetailType": {
"code": "SSD",
"codeName": "SSD"
},
"placementGroupNo": "91234567",
"placementGroupName": "test-pg-01",
"hypervisorType": {
"code": "KVM",
"codeName": "KVM"
},
"serverImageNo": "45678901",
"serverSpecCode": "s2-g3a",
"eventList": [],
"isPreInstallGpuDriver": false
}
],
"requestId": "d4e5f6a7-b8c9-0123-def0-456789012345",
"returnCode": "0",
"returnMessage": "success"
}
}