Managed Databases

Restore a managed database

post/managed-databases/{md_uuid}/restore

Create a new database from the backups of an existing one (or of one you deleted in the last 32 days), optionally to an exact moment. PostgreSQL and MySQL restore to the second; Valkey restores the last backup taken before that moment. The original is never modified. The new database is billed like any other.

Autorización

Authorization
Authorization*string

Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.

Parámetros de ruta

md_uuid*string

Cuerpo de la petición

Create a new database from the backups of an existing one. The original is never touched.

application/jsonObligatorio
name*string

Name of the new database: lowercase letters, digits and hyphens.

Rango2 ≤ length ≤ 60Rangopattern ^[a-z0-9][a-z0-9-]*[a-z0-9]$
restore_to_time?string | null

Moment to restore to (ISO 8601, UTC if no offset is given). PostgreSQL and MySQL restore to the exact second; Valkey restores the last backup taken at or before that moment. Omit it for the most recent data.

Formatodate-time
project_id?integer | null

Project of the new database. Defaults to the one of the original.

plan_uuid?string | null

Plan of the new database: same engine and location, with at least the original's disk. Defaults to the original's plan.

Rangolength ≤ 36

Respuestas

Successful Response

application/json

detail*string
uuid*string
name*string
engine*string
version*string
status*string