SoftNAS API Guide
Menu
Index

3.28. createvolume

 
Description
 
This method is used to create a volume.
POST createvolume
 
 
 
Request
 
In addition the the Standard Request Structure, the following parameters are required.
 
For definitions of parameters, see section Properties
Parameter
Parameter Name
Required?
volume name
vol_name
Y
pool name
pool
Y
volume type
vol_type
Y
provisioning
provisioning
Y
reserve space
reserve_space
Y
reserve units
reserve_units
Y
compression
compression
Y
dedup
dedup
Y
shareISCSI
shareISCSI
Y
shareCIFS
shareCIFS
Y
exportNFS
exportNFS
Y
enable snapshots
enable_snapshots
Y
schedule name
scedule_name
Y
hourlysnaps
hourlysnaps
Y
dailysnaps
dailysnaps
Y
weeklysnaps
weeklysnaps
Y
 
Response
 
 
Example
{
    "result": {
        "msg": "Volume 'volume5' created.",
        "records": [],
        "success": true,
        "total": 0
    },
    "session_id": 11255,
    "success": true
}
Example 2
{
    "result": {
        "msg": "Volume 'volume6' created.",
        "records": [],
        "success": true,
        "total": 0
    },
    "session_id": 11255,
    "success": true
}
 
 
 
 
Made with help of Dr.Explain