Skip to content

Create Secondary Disk

Supported Versions Last Updated
1.27.01 & higher 2022/05/30
Note: This API function creates secondary disk of specified size. Restart of the VM in SolusVM UI or via API is required to apply the change.
Action vserver-secondary-disk-create
Method GET, POST
Variables

vserverid [id of the virtual server]

disksize [amount in GB]

tag - This variable is optional. Refer to tag mechanism documentation for details

rdtype [json] For json output specify json or for default output leave blank. This variable is optional

Example Output

XML

Success:

 

<status>success</status>

<statusmsg>Added Secondary Disk for VM ID 5. To apply the change reboot the VM in SolusVM UI or via API.</statusmsg>

<disk_id>7</disk_id>

Error:

<status>error</status>

<statusmsg>ERROR MESSAGE</statusmsg>

JSON

Success:

 

{

"status":"success",

"statusmsg":"Added Secondary Disk for VM ID 5. To apply the change reboot the VM in SolusVM UI or via API."

"disk_id":"7",

}

Error:

{"status":"error","statusmsg":"ERROR MESSAGE"}

Back to top