Restore Backup
POST
/deployments/{deployment_id}/backups/{backup_name}/restore
const url = 'https://api.mengi.cloud/deployments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/backups/example/restore';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.mengi.cloud/deployments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/backups/example/restoreOverwrite 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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”deployment_id
required
Deployment Id
string format: uuid
backup_name
required
Backup Name
string
Responses
Section titled “Responses”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>
ValidationErrorobject
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": {} } ]}