# Get a server's live configuration

`GET https://console.advinservers.com/api/v1/client/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.

## Authorization

Send `Authorization: Bearer <token>` with the request. 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.

## Path parameters

- `server` (string, required): The server uuid short

## Response 200

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

- `id` (string, required): The short uuid, as everywhere else in the customer's payloads.
- `uuid` (string, required): The uuid UUID.
- `state` (string, required): The billing state, province, or region, or null or an empty string to clear it.
- `locked` (boolean, required): The value of `locked`.
- `config` (object, required): The value of `config`.
  - `mac_address` (string, required): The value of `mac_address`.
  - `boot_order` (object[], required): The devices the VM will try in order. Derived from the same config document as the disk list, so the two cannot disagree.
    - `interface` (string, required): 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_disk` (boolean, required): Whether the resource is primary disk.
    - `is_media` (boolean, required): Whether the resource is media.
    - `media_name` (string | null, required): The value of `media_name`.
    - `size` (integer, required): The value of `size`.
    - `storage` (string | null, required): The value of `storage`.
  - `disks` (object[], required): The value of `disks`.
    - `interface` (string, required): 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_disk` (boolean, required): Whether the resource is primary disk.
    - `is_media` (boolean, required): Whether the resource is media.
    - `media_name` (string | null, required): The value of `media_name`.
    - `size` (integer, required): The value of `size`.
    - `storage` (string | null, required): The value of `storage`.
- `internal_id` (integer, required): The primary key. See the note on `id`.

```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
}
```

## 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.

## Example request

```bash
curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/servers/{server}/details' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
```
