Documentation Index

Fetch the complete documentation index at: https://cli-fin.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

changeServerInstanceSpec

Prev Next

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

구문

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

./ncloud vserver changeServerInstanceSpec \
    --serverInstanceNo <server-instance-no> \
    --serverSpecCode <server-spec-code> | --serverProductCode <server-product-code> \
    [--regionCode <FKR>] \
    [--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 옵션을 참조해 주십시오.

예시

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

명령

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

./ncloud vserver changeServerInstanceSpec \
    --serverInstanceNo 34567890 \
    --serverProductCode SVR.VSVR.HIMEM.C008.M064.NET.SSD.B050.G001 \
    --regionCode FKR \
    --output json

출력

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

{
  "changeServerInstanceSpecResponse": {
    "totalRows": 1,
    "serverInstanceList": [
      {
        "serverInstanceNo": "34567890",
        "serverName": "test-server-renamed-01",
        "cpuCount": 2,
        "memorySize": 8589934592,
        "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-27T16:38:35+0900",
        "uptime": "2026-05-27T16:43:19+0900",
        "serverImageProductCode": "SW.VSVR.OS.LNX64.ROCKY.0810.B050",
        "serverProductCode": "SVR.VSVR.STAND.C002.M008.NET.SSD.B050.G001",
        "isProtectServerTermination": false,
        "zoneCode": "FKR-1",
        "regionCode": "FKR",
        "vpcNo": "12345678",
        "subnetNo": "23456789",
        "networkInterfaceNoList": [
          "56789012"
        ],
        "serverInstanceType": {
          "code": "STAND",
          "codeName": "Standard"
        },
        "baseBlockStorageDiskType": {
          "code": "NET",
          "codeName": "네트웍 스토리지"
        },
        "baseBlockStorageDiskDetailType": {
          "code": "SSD",
          "codeName": "SSD"
        },
        "hypervisorType": {
          "code": "XEN",
          "codeName": "XEN"
        },
        "serverImageNo": "45678901",
        "serverSpecCode": "s2-g1-s50",
        "eventList": [],
        "isPreInstallGpuDriver": false
      }
    ],
    "requestId": "4b82f201-6ba9-485d-8336-d82395685a2b",
    "returnCode": "0",
    "returnMessage": "success"
  }
}