Skip to content

Get a server's live configuration

GET/servers/{server}/details

Overview

Returns the server's live disks, boot order, network adapter and operation lock. This request may be slower than reading saved server details. Returns 503 with a message if the configuration cannot be read; retry later.

Permissions

Requires the server.read (View servers) permission for the selected team. Resources outside that team return 404.

curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/servers/{server}/details' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
{
  "id": "ecc6f4f1",
  "uuid": "ecc6f4f1-c89b-4dce-a20b-a330641c5b0b",
  "state": "running",
  "locked": false,
  "config": {
    "mac_address": "52:54:00:3a:7c:91",
    "boot_order": [
      {
        "interface": "scsi0",
        "is_primary_disk": true,
        "is_media": false,
        "media_name": null,
        "size": 85899345920,
        "storage": "local-zfs"
      }
    ],
    "disks": [
      {
        "interface": "scsi0",
        "is_primary_disk": true,
        "is_media": false,
        "media_name": null,
        "size": 85899345920,
        "storage": "local-zfs"
      },
      {
        "interface": "ide3",
        "is_primary_disk": false,
        "is_media": true,
        "media_name": "Ubuntu 24.04.1 Live Server",
        "size": 2773874688,
        "storage": "iso"
      }
    ]
  },
  "internal_id": 4821
}

Authorization

Authorizationstringheaderrequired

Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

Send it as Bearer <token>.

Path parameters

serverstringrequired

The server uuid short

Response 200

application/json

The record, as a JSON object. There is no envelope.

idstringrequired

The short uuid, as everywhere else in the customer's payloads.

uuidstringrequired

The uuid UUID.

statestringrequired

The billing state, province, or region, or null or an empty string to clear it.

lockedbooleanrequired

The value of locked.

configobjectrequired

The value of config.

Show child attributes
mac_addressstringrequired

The value of mac_address.

boot_orderobject[]required

The devices the VM will try in order. Derived from the same config document as the disk list, so the two cannot disagree.

Show child attributes
interfacestringrequired

The value of interface.

One of: ide0, ide1, ide2, ide3, scsi0, scsi1, scsi2, scsi3, scsi4, scsi5, scsi6, scsi7, scsi8, scsi9, scsi10, scsi11, scsi12, scsi13, scsi14, scsi15, scsi16, scsi17, scsi18, scsi19, scsi20, scsi21, scsi22, scsi23, scsi24, scsi25, scsi26, scsi27, scsi28, scsi29, scsi30, virtio0, virtio1, virtio2, virtio3, virtio4, virtio5, virtio6, virtio7, virtio8, virtio9, virtio10, virtio11, virtio12, virtio13, virtio14, virtio15, sata0, sata1, sata2, sata3, sata4, sata5, efidisk0, tpmstate0

is_primary_diskbooleanrequired

Whether the resource is primary disk.

is_mediabooleanrequired

Whether the resource is media.

media_namestring | nullrequired

The value of media_name.

sizeintegerrequired

The value of size.

storagestring | nullrequired

The value of storage.

disksobject[]required

The value of disks.

Show child attributes
interfacestringrequired

The value of interface.

One of: ide0, ide1, ide2, ide3, scsi0, scsi1, scsi2, scsi3, scsi4, scsi5, scsi6, scsi7, scsi8, scsi9, scsi10, scsi11, scsi12, scsi13, scsi14, scsi15, scsi16, scsi17, scsi18, scsi19, scsi20, scsi21, scsi22, scsi23, scsi24, scsi25, scsi26, scsi27, scsi28, scsi29, scsi30, virtio0, virtio1, virtio2, virtio3, virtio4, virtio5, virtio6, virtio7, virtio8, virtio9, virtio10, virtio11, virtio12, virtio13, virtio14, virtio15, sata0, sata1, sata2, sata3, sata4, sata5, efidisk0, tpmstate0

is_primary_diskbooleanrequired

Whether the resource is primary disk.

is_mediabooleanrequired

Whether the resource is media.

media_namestring | nullrequired

The value of media_name.

sizeintegerrequired

The value of size.

storagestring | nullrequired

The value of storage.

internal_idintegerrequired

The primary key. See the note on id.

Errors

401
The key was missing, malformed, revoked, or belongs to an account that no longer exists.
403
Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
404
The resource was not found in the selected team. Resources in another account or team also return 404.
429
Too many requests. The Retry-After header says how many seconds to wait. Limits are per account, so several keys on one account share them.
503
The server configuration could not be read.