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

VPC環境で利用できます。

ブロックストレージインスタンスを返却保護にするかどうかを設定します。

構文

setBlockStorageReturnProtection構文は次の通りです。

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

オプション

setBlockStorageReturnProtectionの実行時に指定できるオプションについて説明します。

必須オプション

setBlockStorageReturnProtectionの必須オプションです。

オプション タイプ 必須の有無 説明
--blockStorageInstanceNo String Required ブロックストレージインスタンス番号
--isReturnProtection Boolean Required 返却保護にするかどうか
  • true | false
    • true: 保護
    • false: 保護しない

共通オプション

vserverコマンドで共通して使用するオプションについては、Server (VPC)のオプションをご参照ください。

返却保護設定のリクエストが成功すると、ブロックストレージの最新情報が返されます。

コマンド

コマンドの例は次の通りです。

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

出力

出力の例は次の通りです。

{
  "setBlockStorageReturnProtectionResponse": {
    "totalRows": 1,
    "blockStorageInstanceList": [
      {
        "blockStorageInstanceNo": "89012345",
        "blockStorageName": "test-block-storage-01",
        "blockStorageType": {
          "code": "SVRBS",
          "codeName": "サーバ BS"
        },
        "blockStorageSize": 75161927680,
        "blockStorageProductCode": "SPBSTBSTAD000006",
        "blockStorageInstanceStatus": {
          "code": "CREAT",
          "codeName": "ブロックストレージ CREATED状態"
        },
        "blockStorageInstanceOperation": {
          "code": "NULL",
          "codeName": "ブロックストレージ NULL OP"
        },
        "blockStorageInstanceStatusName": "detached",
        "createDate": "2026-05-14T20:18:21+0900",
        "blockStorageDescription": "Test block storage",
        "blockStorageDiskType": {
          "code": "NET",
          "codeName": "ネットワークストレージ"
        },
        "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"
  }
}