Delete Secondary Disk¶
| Supported Versions | Last Updated |
|---|---|
| 1.27.01 & higher | 2022/05/30 |
| Note: This API function deletes specified secondary disk and softly restarts the VM. |
| Action | vserver-secondary-disk-delete |
|---|---|
| Method | GET, POST |
| Variables | vserverid [id of the virtual server] diskid [id of the secondary disk] rdtype [json] For json output specify json or for default output leave blank. This variable is optional |
| Example Output | XMLSuccess:
<status>success</status> <statusmsg>Disk ID 7 has been deleted. VM ID 5 has been softly rebooted to apply the change.</statusmsg> Error: <status>error</status> <statusmsg>ERROR MESSAGE</statusmsg> JSONSuccess:
{ "status":"success", "statusmsg":"Disk ID 7 has been deleted. VM ID 5 has been softly rebooted to apply the change." } Error: {"status":"error","statusmsg":"ERROR MESSAGE"} |