Skip to main content
GET
/
v1
/
regions
/
{region}
/
infrastructure
/
servers
List servers
const options = {method: 'GET'};

fetch('https://api.example.com/v1/regions/{region}/infrastructure/servers', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": [
    {
      "id": "<string>",
      "hostname": "<string>",
      "status": "available",
      "health": "healthy",
      "regionId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "serialNumber": "<string>",
      "bmcAddress": "<string>",
      "profileId": "<string>",
      "specs": {
        "cpu": "<string>",
        "memoryGB": 123,
        "storageGB": 123,
        "nics": 123
      },
      "tags": {},
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "meta": {
    "total": 123,
    "limit": 123,
    "offset": 123
  }
}

Path Parameters

region
string
required

Region identifier

Query Parameters

status
enum<string>

Filter by status

Available options:
available,
provisioning,
provisioned,
maintenance,
decommissioned,
error
health
enum<string>

Filter by health

Available options:
healthy,
degraded,
unhealthy,
unknown
profileId
string

Filter by assigned profile

limit
number
default:50

Maximum results

offset
number
default:0

Results to skip

Response

200 - application/json

List of servers

success
enum<boolean>
Available options:
true
data
object[]
meta
object