SoftNAS API Guide
Menu
Index

3.26. addspare

 
Description
 
This method is used to add a spare disk to a storage pool.
POST writelog
 
 
 
Request
 
In addition the the Standard Request Structure, the following parameters are required.
 
For definitions of parameters, see section Properties
Parameter
Parameter name
Required?
disk devices
disk_devices
Y
pool name
pool_name
Y
forced spare
forced_spare
Y
 
Response
 
 
Example
{
    "result": {
        "msg": "Add Spare pool 'pool3' was successful.",
        "records": [],
        "success": true,
        "total": 0
    },
    "session_id": 11255,
    "success": true
}
 
 
 
Made with help of Dr.Explain