--- title: "setNasVolumeReturnProtection" slug: "cli-vnas-volume-setnasvolumereturnprotection" updated: 2026-10-08T09:52:11Z published: 2026-10-08T09:52:11Z canonical: "cli.ncloud-docs.com/cli-vnas-volume-setnasvolumereturnprotection" --- > ## 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. # setNasVolumeReturnProtection VPC環境で利用できます。 NASボリュームインスタンスを返却保護するかどうかを設定します。 ## 構文 `setNasVolumeReturnProtection`構文は次の通りです。 ``` ./ncloud vnas setNasVolumeReturnProtection \ --nasVolumeInstanceNo \ --isReturnProtection \ [--regionCode ] \ [--output ] ``` ## オプション `setNasVolumeReturnProtection`の実行時に指定できるオプションについて説明します。 ### 必須オプション `setNasVolumeReturnProtection`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--nasVolumeInstanceNo` | String | Required | NASボリュームインスタンス番号 - [getNasVolumeInstanceList](/docs/ja/cli-vnas-volume-getnasvolumeinstancelist)を参照 | | `--isReturnProtection` | Boolean | Required | 返却保護を設定 - `true` \| `false` - `true`: 設定 - `false`: 設定しない | ### 共通オプション `vnas`コマンドで共通して使用するオプションについては、[NAS (VPC)のオプション](/docs/ja/cli-vnas#%EC%98%B5%EC%85%98)をご参照ください。 ## 例 返却保護の設定リクエストが成功すると、インスタンスの構成情報と返却保護の設定状態が返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./ncloud vnas setNasVolumeReturnProtection \ --nasVolumeInstanceNo 10234568 \ --isReturnProtection true \ --regionCode KR \ --output json ``` ### 出力 出力の例は次の通りです。 ``` { "setNasVolumeReturnProtectionResponse": { "totalRows": 1, "nasVolumeInstanceList": [ { "nasVolumeInstanceNo": "10234568", "nasVolumeInstanceStatus": { "code": "CREAT", "codeName": "NAS作成状態" }, "nasVolumeInstanceOperation": { "code": "NULL", "codeName": "NAS NULL OP" }, "nasVolumeInstanceStatusName": "created", "createDate": "2026-08-19T11:33:18+0900", "nasVolumeDescription": "", "mountInformation": "192.0.2.11:/n123456_testnas02", "volumeAllotmentProtocolType": { "code": "NFS", "codeName": "NFS" }, "volumeName": "n123456_testnas02", "volumeTotalSize": 644245094400, "volumeSize": 644245094400, "snapshotVolumeConfigurationRatio": 0.0, "snapshotVolumeSize": 0, "isSnapshotConfiguration": false, "isEventConfiguration": false, "regionCode": "KR", "zoneCode": "KR-1", "nasVolumeServerInstanceNoList": [], "isEncryptedVolume": false, "nasVolumeInstanceCustomIpList": [], "isReturnProtection": true } ], "requestId": "", "returnCode": "0", "returnMessage": "success" } } ```