Skip to content
Skip to Content

Get a server

GET
/servers/{serverId}

Authorization

bearer
headerAuthorizationBearer <token>

An API key (opk_…) or a CLI token (opc_…).

Path parameters

serverId*string

Response body

Get a server

application/json
  1. response
id*string
Formatuuid
name*string
host*string
status*string
Value in"connecting""ready""failed""disconnecting""released"
error*string|null
facts*|

What setup read: os, cpus, memoryMb, diskGb, arch, private-network address.

createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example request
curl "https://openpanel.sh/api/v1/servers/$SERVER_ID" \  -H "Authorization: Bearer $OPENPANEL_TOKEN"
Example response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "host": "string",  "status": "connecting",  "error": "string",  "facts": {    "property1": null,    "property2": null  },  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}