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.

getServerSpecList

Prev Next

Available in VPC

Get the list of server specifications.

Syntax

The getServerSpecList syntax is as follows:

./ncloud vserver getServerSpecList \
    [--zoneCode <zone-code>] \
    [--serverImageNo <server-image-no>] \
    [--serverSpecCodeList <server-spec-code-list>] \
    [--hypervisorTypeCodeList <XEN|KVM>] \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running getServerSpecList.

Optional options

These are the optional options for getServerSpecList. Options that are not specified will use their default values.

Options Type Required Description
--zoneCode String Optional Zone code
--serverImageNo String Optional Server image number
--serverSpecCodeList List Optional Server spec code list
  • You can enter multiple items separated by spaces. (e.g., --serverSpecCodeList s2-g3 c2-g3)
--hypervisorTypeCodeList List Optional Hypervisor type code list
  • XEN | KVM
  • You can enter multiple items separated by spaces. (e.g., --hypervisorTypeCodeList XEN KVM)

Common options

For information about the options common to all vserver subcommands, see Server (VPC) options.

Examples

If the request to retrieve the server specifications list is successful, the identification information and specifications for each server are returned.

Command

The command example is as follows:

./ncloud vserver getServerSpecList \
    --zoneCode KR-1 \
    --serverSpecCodeList s2-g3 c2-g3 \
    --hypervisorTypeCodeList KVM \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "getServerSpecListResponse": {
    "totalRows": 2,
    "serverSpecList": [
      {
        "serverSpecNo": 239,
        "serverSpecCode": "s2-g3",
        "hypervisorType": {
          "code": "KVM",
          "codeName": "KVM"
        },
        "generationCode": "G3",
        "cpuArchitectureType": {
          "code": "X86_64",
          "codeName": "x86 64bit"
        },
        "cpuCount": 2,
        "memorySize": 8589934592,
        "blockStorageMaxCount": 20,
        "blockStorageMaxIops": 4725,
        "blockStorageMaxThroughput": 84934656,
        "networkPerformance": 1000000000,
        "networkInterfaceMaxCount": 3,
        "serverSpecDescription": "vCPU 2EA, Memory 8GB",
        "serverProductCode": "SVR.VSVR.STAND.C002.M008.G003"
      },
      {
        "serverSpecNo": 236,
        "serverSpecCode": "c2-g3",
        "hypervisorType": {
          "code": "KVM",
          "codeName": "KVM"
        },
        "generationCode": "G3",
        "cpuArchitectureType": {
          "code": "X86_64",
          "codeName": "x86 64bit"
        },
        "cpuCount": 2,
        "memorySize": 4294967296,
        "blockStorageMaxCount": 20,
        "blockStorageMaxIops": 5250,
        "blockStorageMaxThroughput": 84934656,
        "networkPerformance": 1000000000,
        "networkInterfaceMaxCount": 3,
        "serverSpecDescription": "vCPU 2EA, Memory 4GB",
        "serverProductCode": "SVR.VSVR.HICPU.C002.M004.G003"
      }
    ],
    "requestId": "f6a7b8c9-d0e1-2345-fabc-678901234567",
    "returnCode": "0",
    "returnMessage": "success"
  }
}