Get server details
GET
apiToken services:readheader
AuthorizationBearer <token>A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.
Scope: services:read
serviceId*numberOperation completed or accepted; asynchronous actions may still be running.
application/json- response
powerState*string|string|stringpowerActions*array<string|string|string|string>type*null|stringhostname*null|stringos*null|stringprimaryIp*null|stringips*array<>hardware*traffic*null|console*booleanreinstall*booleanbusy*booleanrescueRunning*booleancurl -X GET 'https://api.deluxhost.net/v1/services/0/tenantos/detail' \ -H "Authorization: Bearer $DELUXHOST_TOKEN"Example Response
{ "powerState": "running", "powerActions": [ "on" ], "type": null, "hostname": null, "os": null, "primaryIp": null, "ips": [ { "ip": "string", "family": 4, "primary": true, "isSubnet": true, "cidr": null, "gateway": null, "netmask": null, "rdns": true } ], "hardware": { "cpu": { "model": null, "cores": null, "mhz": null, "count": null }, "memory": { "totalMb": null, "modules": [ { "model": null, "sizeMb": null } ] }, "disks": [ { "model": null, "sizeMb": null } ] }, "traffic": null, "console": true, "reinstall": true, "busy": true, "rescueRunning": true}List server tasks GET
What the panel has done to this server, newest first: the way to find out whether the action `POST /v1/services/{id}/power` accepted actually finished. Match the `taskId` that call returned against `id` here, and read `status`. A task is `running` until the panel finishes it, then `completed` or `failed`. Why a task failed is not published — the upstream message is not ours to hand out. Staff-side rows (an operator suspending the service) are not in this feed.
Change server power state POST