Change VM Status

Control VM status by starting, stopping, or restarting it.

You will need first to:

Request URL Format:

https://api.ssdnodes.com/servers/{vm_id}/action/{action}

Header Format:

Authorization: Bearer 123456789123456789123456789123456789
Content-Type: application/json

Request Parameters:

Parameter Values Allowed Default Value Description
vm_id* <VM ID>
N/A
ID of the VM
action* [stop,start,restart]
N/A
Specify action to start, stop, or restart the VM

Success Response Format:

[ { "status": "success", "msg": "Service action successfully completed. Check your dashboard or use the API request "List VM Details" for updates." } ]

Error Response Format:

[ { "status": "error", "msg": "Action not allowed." } ]

CURL Example

                curl -X POST https://api.ssdnodes.com/servers/1234/action/stop -H "Authorization: Bearer 123456789123456789123456789123456789"

            

Copied!