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.

changeServerInstanceSpec

Prev Next

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

정지 상태인 서버 인스턴스(VM)의 스펙을 변경합니다.

구문

changeServerInstanceSpec 구문은 다음과 같습니다.

./ncloud vserver changeServerInstanceSpec \
    --serverInstanceNo <server-instance-no> \
    --serverSpecCode <server-spec-code> | --serverProductCode <server-product-code> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

옵션

changeServerInstanceSpec 실행 시 지정할 수 있는 옵션을 설명합니다.

필수 옵션

changeServerInstanceSpec의 필수 옵션입니다.

옵션 타입 필수 여부 설명
--serverInstanceNo String Required 서버 인스턴스 번호
--serverSpecCode String Conditional 서버 스펙 코드 (KVM, RHV, XEN)
  • 동일한 상품 유형(productType) 및 디스크 상세 유형(diskDetailType[HDD, SSD]) 내에서만 변경 가능
  • serverProductCode와 동시 사용 불가
  • getServerSpecList 참조
--serverProductCode String Conditional 서버 상품 코드 (RHV, XEN)
  • 동일한 상품 유형(productType) 및 디스크 상세 유형(diskDetailType[HDD, SSD]) 내에서만 변경 가능
  • serverSpecCode와 동시 사용 불가
  • getServerProductList 참조

공통 옵션

vserver 명령에서 공통으로 사용하는 옵션에 대한 정보는 Server (VPC) 옵션을 참조해 주십시오.

예시

서버 스펙 변경 요청이 성공하면 서버의 최신 정보가 반환됩니다.

명령

명령 예시는 다음과 같습니다.

./ncloud vserver changeServerInstanceSpec \
    --serverInstanceNo 34567890 \
    --serverProductCode SVR.VSVR.HICPU.C004.M008.NET.SSD.B050.G002 \
    --regionCode KR \
    --output json

출력

출력 예시는 다음과 같습니다.

{
  "changeServerInstanceSpecResponse": {
    "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": "NSTOP",
          "codeName": "서버 NORMAL STOPPED 상태"
        },
        "serverInstanceOperation": {
          "code": "CHNG",
          "codeName": "서버 SPEC CHANGE OP"
        },
        "serverInstanceStatusName": "changingSpec",
        "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"
  }
}