# Client API: Cloud Compute: Rescue

> The 3 Client API operations for rescue.

Source: https://www.coritan.com/docs/api/reference/client/cloud-compute/vps-rescue/

Part of [Cloud Compute](/docs/api/reference/client/cloud-compute/).

## Operations

| Method | Path | Summary |
| --- | --- | --- |
| POST | [`/api/v1/client/vps/{uuid}/rescue/enter`](#op-post-api-v1-client-vps-uuid-rescue-enter) | Restart the instance from a rescue image, or from one of the account's ISOs |
| POST | [`/api/v1/client/vps/{uuid}/rescue/exit`](#op-post-api-v1-client-vps-uuid-rescue-exit) | Rescue exit |
| GET | [`/api/v1/client/vps/{uuid}/rescue/media`](#op-get-api-v1-client-vps-uuid-rescue-media) | The rescue images the instance can start from, the default first |

### Restart the instance from a rescue image, or from one of the account's ISOs {#op-post-api-v1-client-vps-uuid-rescue-enter}

`POST /api/v1/client/vps/{uuid}/rescue/enter`

Restart the instance from a rescue image, or from one of the account's ISOs.

``iso_volid`` is a ``volid`` from ``GET rescue/media``;
``custom_image_uuid`` is one of the account's ready ISO images. With
neither, or with no body, the default rescue image is used (the first in
that list). 422 names the images on offer for a volume that is not one of
them, 409 when the instance is already in rescue, 503 when there is no
rescue image to start from yet, and 502 when the instance did not start
from it (it is then started from its own disk again).

Authentication: an access token, sent as `Authorization: Bearer <token>`.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `uuid` | path | string | yes |

#### Request body

`application/json`

| Field | Type | Required |
| --- | --- | --- |
| `iso_volid` | string or null | no |
| `custom_image_uuid` | string or null | no |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Rescue exit {#op-post-api-v1-client-vps-uuid-rescue-exit}

`POST /api/v1/client/vps/{uuid}/rescue/exit`

Authentication: an access token, sent as `Authorization: Bearer <token>`.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `uuid` | path | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### The rescue images the instance can start from, the default first {#op-get-api-v1-client-vps-uuid-rescue-media}

`GET /api/v1/client/vps/{uuid}/rescue/media`

The rescue images the instance can start from, the default first.

Each has ``volid``, ``name``, ``storage``, ``size``, ``format`` and
``default``. The platform's rescue system is listed whether or not the
instance's host has fetched it yet. An empty list means rescue cannot be
offered right now.

Authentication: an access token, sent as `Authorization: Bearer <token>`.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `uuid` | path | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |
