Skip to content

Restore Backup

POST
/deployments/{deployment_id}/backups/{backup_name}/restore
curl --request POST \
--url https://api.mengi.cloud/deployments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/backups/example/restore

Overwrite this deployment with a completed backup.

A safety backup of the current state is taken first. Then the deployment’s volumes and its Kubernetes objects that git does not own are replaced with the backup’s; its configuration (image, environment, replicas) stays as it is now. The deployment is down while the restore runs; a failed restore rolls back to the safety backup. Dedicated clusters only. Requires org ADMIN on the deployment. Progress: GET /deployments/{id}/restores.

deployment_id
required
Deployment Id
string format: uuid
backup_name
required
Backup Name
string

Successful Response

Media typeapplication/json
DeploymentRestoreQueued
object
status
required
Status
string
restore_id
required
Restore Id
string format: uuid

Example generated

{
"status": "example",
"restore_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}