Available in VPC
Set the termination protection status of a NAS volume instance.
Syntax
The setNasVolumeReturnProtection syntax is as follows:
./ncloud vnas setNasVolumeReturnProtection \
--nasVolumeInstanceNo <nas-volume-instance-no> \
--isReturnProtection <true|false> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running setNasVolumeReturnProtection.
Required options
The following options are required for setNasVolumeReturnProtection.
| Options | Type | Required | Description |
|---|---|---|---|
--nasVolumeInstanceNo |
String | Required | NAS volume instance number |
--isReturnProtection |
Boolean | Required | Set termination protection
|
Common options
For information about the options common to all vnas subcommands, see NAS (VPC) options.
Examples
If the request to set termination protection is successful, the instance's configuration information and the status of the termination protection setting are returned.
Command
The command example is as follows:
./ncloud vnas setNasVolumeReturnProtection \
--nasVolumeInstanceNo 10234568 \
--isReturnProtection true \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"setNasVolumeReturnProtectionResponse": {
"totalRows": 1,
"nasVolumeInstanceList": [
{
"nasVolumeInstanceNo": "10234568",
"nasVolumeInstanceStatus": {
"code": "CREAT",
"codeName": "NAS creation status"
},
"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"
}
}