VPC 환경에서 이용 가능합니다.
운영 중 상태인 서버 인스턴스(VM)를 정지합니다.
구문
stopServerInstances 구문은 다음과 같습니다.
./ncloud vserver stopServerInstances \
--serverInstanceNoList <server-instance-no-list> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
옵션
stopServerInstances 실행 시 지정할 수 있는 옵션을 설명합니다.
필수 옵션
stopServerInstances의 필수 옵션입니다.
| 옵션 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
--serverInstanceNoList |
List | Required | 서버 인스턴스 번호 목록
|
공통 옵션
vserver 명령에서 공통으로 사용하는 옵션에 대한 정보는 Server (VPC) 옵션을 참조해 주십시오.
예시
서버 정지 요청이 성공하면 서버의 최신 정보가 반환됩니다.
명령
명령 예시는 다음과 같습니다.
./ncloud vserver stopServerInstances \
--serverInstanceNoList 34567890 \
--regionCode KR \
--output json
출력
출력 예시는 다음과 같습니다.
{
"stopServerInstancesResponse": {
"totalRows": 1,
"serverInstanceList": [
{
"serverInstanceNo": "34567890",
"serverName": "test-server-renamed-01",
"cpuCount": 2,
"memorySize": 4294967296,
"platformType": {
"code": "LNX64",
"codeName": "Linux 64 Bit"
},
"loginKeyName": "test-server-instance-key-01",
"serverInstanceStatus": {
"code": "RUN",
"codeName": "서버 RUN 상태"
},
"serverInstanceOperation": {
"code": "SHTDN",
"codeName": "서버 SHUTDOWN OP"
},
"serverInstanceStatusName": "shutting down",
"createDate": "2026-05-14T17:29:35+0900",
"uptime": "2026-05-14T17:40:21+0900",
"serverImageProductCode": "SW.VSVR.OS.LNX64.ROCKY.0810.B050",
"serverProductCode": "SVR.VSVR.HICPU.C002.M004.NET.SSD.B050.G002",
"isProtectServerTermination": false,
"zoneCode": "KR-1",
"regionCode": "KR",
"vpcNo": "12345678",
"subnetNo": "23456789",
"networkInterfaceNoList": [
"56789012"
],
"serverInstanceType": {
"code": "HICPU",
"codeName": "High-CPU"
},
"baseBlockStorageDiskType": {
"code": "NET",
"codeName": "네트웍 스토리지"
},
"baseBlockStorageDiskDetailType": {
"code": "SSD",
"codeName": "SSD"
},
"hypervisorType": {
"code": "XEN",
"codeName": "XEN"
},
"serverImageNo": "45678901",
"serverSpecCode": "c2-g2-s50",
"eventList": [],
"isPreInstallGpuDriver": false
}
],
"requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"returnCode": "0",
"returnMessage": "success"
}
}