https://api.ssdnodes.com/servers/{vm_id}/action/{action}
Authorization: Bearer 123456789123456789123456789123456789
Content-Type: application/json
Parameter | Values Allowed | Default Value | Description |
---|---|---|---|
vm_id* | <VM ID> | ID of the VM | |
action* | [stop,start,restart] | Specify action to start, stop, or restart the VM |
[
{
"status": "success",
"msg": "Service action successfully completed. Check your dashboard or use the API request "List VM Details" for updates."
}
]
[
{
"status": "error",
"msg": "Action not allowed."
}
]
curl -X POST https://api.ssdnodes.com/servers/1234/action/stop -H "Authorization: Bearer 123456789123456789123456789123456789"
Copied!