Available in VPC
Restore a NAS volume using a snapshot. When you restore a NAS volume, only the snapshot used for recovery and any snapshots created before it are retained; snapshots created after the point of recovery are lost.
Syntax
The restoreNasVolumeWithSnapshot syntax is as follows:
./ncloud vnas restoreNasVolumeWithSnapshot \
--nasVolumeInstanceNo <nas-volume-instance-no> \
--nasVolumeSnapshotName <nas-volume-snapshot-name> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running restoreNasVolumeWithSnapshot.
Required options
The following options are required for restoreNasVolumeWithSnapshot.
| Options | Type | Required | Description |
|---|---|---|---|
--nasVolumeInstanceNo |
String | Required | NAS volume instance number |
--nasVolumeSnapshotName |
String | Required | Name of the snapshot to use for recovery |
Common options
For information about the options common to all vnas subcommands, see NAS (VPC) options.
Examples
If the NAS volume recovery request is successful, the identification and capacity information for the snapshot stored after recovery is returned.
Command
The command example is as follows:
./ncloud vnas restoreNasVolumeWithSnapshot \
--nasVolumeInstanceNo 10234567 \
--nasVolumeSnapshotName now.20260819.102353 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"restoreNasVolumeWithSnapshotResponse": {
"totalRows": 1,
"nasVolumeSnapshotList": [
{
"nasVolumeSnapshotName": "now.20260819.113331",
"createDate": "2026-08-19T11:33:31+0900",
"snapshotSize": 299008,
"isBusy": false
}
],
"requestId": "",
"returnCode": "0",
"returnMessage": "success"
}
}