Get server status
Read from the panel on every call, so it is slower than the service itself and can fail on its
own. powerState is running, stopped or unknown — the last means we could not read it
(usually an unreachable hypervisor), not that the server is off.
Answers for VirtFusion and TenantOS services alike: same question, same shape, different
source. building is only ever true on VirtFusion; cpuModel is only ever set on TenantOS.
Shared hosting is not a machine and lives at /v1/services/{id}/hosting.
A suspended service answers 400 here while still appearing in GET /v1/services.
apiToken services:readAuthorizationBearer <token>A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.
Scope: services:read
id*integerThe service id, as returned by GET /v1/services.
Live state.
application/json- response
powerState*string"running""stopped""unknown"hostname*string|nullsuspended*booleanbuilding*booleanTrue while the machine is still being built.
ips*array<string>cpuCores*integer|nullmemoryMb*integer|nullstorageGb*integer|nullosTemplate*|The OS as installed.
osRunning*|What the running system reports.
cpuModel*|The physical CPU, on platforms that report one. Null on VirtFusion.
curl -X GET 'https://api.deluxhost.net/v1/services/0/server' \ -H "Authorization: Bearer $DELUXHOST_TOKEN"{ "powerState": "running", "hostname": "string", "suspended": true, "building": true, "ips": [ "string" ], "cpuCores": 0, "memoryMb": 0, "storageGb": 0, "osTemplate": "string", "osRunning": "string", "cpuModel": "string"}