--- title: "setProtectServerTermination" slug: "cli-vserver-server-setprotectservertermination" tags: ["VPC", "Server"] updated: 2026-09-17T10:08:33Z published: 2026-09-17T10:08:33Z canonical: "cli.ncloud-docs.com/cli-vserver-server-setprotectservertermination" --- > ## 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. # setProtectServerTermination Available in VPC Set the termination protection status for a server instance (VM). ## Syntax The `setProtectServerTermination` syntax is as follows: ``` ./ncloud vserver setProtectServerTermination \ --serverInstanceNo \ --isProtectServerTermination \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `setProtectServerTermination`. ### Required options The following options are required for `setProtectServerTermination`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--serverInstanceNo` | String | Required | Server instance number - See [getServerInstanceList](/docs/en/cli-vserver-server-getserverinstancelist). | | `--isProtectServerTermination` | Boolean | Required | Termination protection status - `true` \| `false` - `true`: Protected - `false`: Not protected | ### Common options For information about the options common to all `vserver` subcommands, see [Server (VPC) options](/docs/en/cli-vserver#%EC%98%B5%EC%85%98). ## Examples If the request to set termination protection is successful, the latest information about the server is returned. ### Command The command example is as follows: ``` ./ncloud vserver setProtectServerTermination \ --serverInstanceNo 34567890 \ --isProtectServerTermination true \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "setProtectServerTerminationResponse": { "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": "Server RUN status" }, "serverInstanceOperation": { "code": "NULL", "codeName": "Server NULL OP" }, "serverInstanceStatusName": "running", "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": true, "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": "c2-g2-s50", "eventList": [], "isPreInstallGpuDriver": false } ], "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "returnCode": "0", "returnMessage": "success" } } ```