Skip to content

Get rescue mode

GET/servers/{server}/rescue

Overview

Returns whether the server is in rescue mode. In rescue mode the server boots a rescue system from an ISO instead of its own disk, so you can repair or copy its disks over SSH. rescue is null when the server is not in rescue mode. Then unavailable_reason says why rescue mode cannot start, or is null when it can. While rescue.state is booting, the server is restarting and the panel is waiting to set up the rescue system. At ready you can sign in as rescue.username on the server's primary addresses with rescue.password, or with the SSH keys named in rescue.ssh_key_names. rescue.ssh_key_name repeats the first of them. At failed, rescue.failure says what went wrong.

Permissions

Requires the server.reinstall (Reinstall 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}/rescue' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
{
  "rescue": {
    "state": "ready",
    "failure": null,
    "image_name": "SystemRescue 13.03",
    "ipv4": "203.0.113.24",
    "ipv6": "2001:db8:4b2:18::1",
    "username": "root",
    "password": null,
    "ssh_key_names": [
      "gordon-workstation"
    ],
    "ssh_key_name": "gordon-workstation",
    "notify_customer": true,
    "created_at": "2026-09-14T16:42:09.000000Z",
    "ready_at": "2026-09-14T16:42:09.000000Z"
  },
  "unavailable_reason": null
}

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.

rescueobject | nullrequired

Null when the server is not in rescue mode.

Show child attributes
statestringrequired

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

One of: booting, ready, failed

failurestring | nullrequired

Why the rescue system could not be set up, when state is failed.

image_namestringrequired

The name of the image the server boots for rescue.

ipv4string | nullrequired

The rescue system answers SSH on the server's primary addresses.

ipv6string | nullrequired

The value of ipv6.

usernamestringrequired

The value of username.

passwordstring | nullrequired

Null when the login is SSH keys only, which also turns password logins off.

ssh_key_namesstring[]required

The value of ssh_key_names.

ssh_key_namestring | nullrequired

The first of ssh_key_names, kept for clients written when rescue mode took one key.

notify_customerbooleanrequired

Whether the account holder is emailed when the rescue system is ready.

created_atstring<date-time>required

The date and time for created at, in UTC.

ready_atstring<date-time> | nullrequired

The date and time for ready at, in UTC.

unavailable_reasonstring | nullrequired

Why rescue mode cannot be turned on right now, or null when it can.

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.