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.

setBlockStorageReturnProtection

Prev Next

Available in VPC

Set the termination protection status for a block storage instance.

Syntax

The setBlockStorageReturnProtection syntax is as follows:

./ncloud vserver setBlockStorageReturnProtection \
    --blockStorageInstanceNo <block-storage-instance-no> \
    --isReturnProtection <true|false> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running setBlockStorageReturnProtection.

Required options

The following options are required for setBlockStorageReturnProtection.

Options Type Required Description
--blockStorageInstanceNo String Required Block storage instance number
--isReturnProtection 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.

Examples

If the request to set up termination protection is successful, the latest information about the block storage is returned.

Command

The command example is as follows:

./ncloud vserver setBlockStorageReturnProtection \
    --blockStorageInstanceNo 89012345 \
    --isReturnProtection true \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "setBlockStorageReturnProtectionResponse": {
    "totalRows": 1,
    "blockStorageInstanceList": [
      {
        "blockStorageInstanceNo": "89012345",
        "blockStorageName": "test-block-storage-01",
        "blockStorageType": {
          "code": "SVRBS",
          "codeName": "Server BS"
        },
        "blockStorageSize": 75161927680,
        "blockStorageProductCode": "SPBSTBSTAD000006",
        "blockStorageInstanceStatus": {
          "code": "CREAT",
          "codeName": "Block storage CREATED status"
        },
        "blockStorageInstanceOperation": {
          "code": "NULL",
          "codeName": "Block storage NULL OP"
        },
        "blockStorageInstanceStatusName": "detached",
        "createDate": "2026-05-14T20:18:21+0900",
        "blockStorageDescription": "Test block storage",
        "blockStorageDiskType": {
          "code": "NET",
          "codeName": "Network storage"
        },
        "blockStorageDiskDetailType": {
          "code": "SSD",
          "codeName": "SSD"
        },
        "maxIopsThroughput": 4000,
        "isEncryptedVolume": false,
        "zoneCode": "KR-1",
        "regionCode": "KR",
        "isReturnProtection": true,
        "blockStorageVolumeType": {
          "code": "SSD",
          "codeName": "SSD"
        },
        "hypervisorType": {
          "code": "XEN",
          "codeName": "XEN"
        }
      }
    ],
    "requestId": "c4d5e6f7-a8b9-0123-defa-789012345678",
    "returnCode": "0",
    "returnMessage": "success"
  }
}