Skip to content

Resize Secondary Disk

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

vserverid [id of the virtual server]

diskid [id of the secondary disk]

disksize [amount in GB]

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>Disk ID 7 has been resized. To apply the change reboot VM ID 5 in SolusVM UI or via API.</statusmsg>

Error:

<status>error</status>

<statusmsg>ERROR MESSAGE</statusmsg>

JSON

Success:

 

{

"status":"success",

"statusmsg":"Disk ID 7 has been resized. To apply the change reboot VM ID 5 in SolusVM UI or via API."

}

Error:

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

Back to top