GET
/dashboard/service/{id}/dedicated/console Get console access
Returns VNC console connection details for accessing the server console.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | integer | path | The service ID of the dedicated server |
Response
200
403
404
successbooleandataobjectconnectionIdstringUnique connection identifier
requestedPortintegerwebsocketUrlstringWebSocket URL for VNC connection
passwordstringVNC password for authentication
Request
curl -X GET "https://api.royalehosting.net/dashboard/service/{id}/dedicated/console" \
-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}/dedicated/console", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.get(
"https://api.royalehosting.net/dashboard/service/{id}/dedicated/console",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true,
"data": {
"connectionId": "string",
"requestedPort": 443,
"websocketUrl": "wss://vnc.royalehosting.net/device-123-console-a1b2c3d4",
"password": "string"
}
}