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.

terminateServerInstances

Prev Next

Available in VPC

Terminate a server instance (VM) in the Stopped status.

Syntax

The terminateServerInstances syntax is as follows:

./ncloud vserver terminateServerInstances \
    --serverInstanceNoList <server-instance-no-list> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running terminateServerInstances.

Required options

The following options are required for terminateServerInstances.

Options Type Required Description
--serverInstanceNoList List Required Server instance number list
  • You can enter multiple items separated by spaces. (e.g., --serverInstanceNoList 1234 2345)
  • See getServerInstanceList.

Common options

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

Examples

If the server termination request is successful, the server's identification information and shutdown status are returned.

Command

The command example is as follows:

./ncloud vserver terminateServerInstances \
    --serverInstanceNoList 34567890 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "terminateServerInstancesResponse": {
    "totalRows": 1,
    "serverInstanceList": [
      {
        "serverInstanceNo": "34567890",
        "serverName": "test-server-renamed-01",
        "cpuCount": 4,
        "memorySize": 8589934592,
        "platformType": {
          "code": "LNX64",
          "codeName": "Linux 64 Bit"
        },
        "loginKeyName": "test-server-instance-key-01",
        "serverInstanceStatus": {
          "code": "NSTOP",
          "codeName": "Server NORMAL STOPPED status"
        },
        "serverInstanceOperation": {
          "code": "TERMT",
          "codeName": "Server TERMINATE OP"
        },
        "serverInstanceStatusName": "terminating",
        "createDate": "2026-05-14T17:29:35+0900",
        "uptime": "2026-05-14T17:44:31+0900",
        "serverImageProductCode": "SW.VSVR.OS.LNX64.ROCKY.0810.B050",
        "serverProductCode": "SVR.VSVR.HICPU.C004.M008.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": "Network storage"
        },
        "baseBlockStorageDiskDetailType": {
          "code": "SSD",
          "codeName": "SSD"
        },
        "hypervisorType": {
          "code": "XEN",
          "codeName": "XEN"
        },
        "serverImageNo": "45678901",
        "serverSpecCode": "c4-g2-s50",
        "eventList": [],
        "isPreInstallGpuDriver": false
      }
    ],
    "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "returnCode": "0",
    "returnMessage": "success"
  }
}