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"
  }
}