POST
/dashboard/service/{id}/vps/snapshots/{name}/restore Restore snapshot
Restore the VPS from a specific snapshot.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | integer | path | The service ID of the VPS. |
name* | string | path | The name of the snapshot to restore. |
Response
200
403
404
successbooleanRequest
curl -X POST "https://api.royalehosting.net/dashboard/service/{id}/vps/snapshots/{name}/restore" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID"Request
const response = await fetch("https://api.royalehosting.net/dashboard/service/{id}/vps/snapshots/{name}/restore", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.post(
"https://api.royalehosting.net/dashboard/service/{id}/vps/snapshots/{name}/restore",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true
}