Restores

How to use a snapshot information to restore a database cluster.

In-place restore of a cluster

post

Triggers an in-place restore of the given MongoDB cluster.

Authorizations
Path parameters
clusterIdstringRequired

The unique ID of the cluster.

Body

The restore request.

snapshotIdstringOptional

The unique ID of the snapshot you want to restore.

Example: dcd31531-3ac8-11eb-9feb-046c59cc737e
recoveryTargetTimestring · date-timeOptional

If this value is supplied as ISO 8601 timestamp, the backup will be replayed up until the given timestamp.

Example: 2023-04-21T13:37:50+01:00
Responses
202
Successful operation.
post
POST /databases/mongodb/clusters/{clusterId}/restore HTTP/1.1
Host: api.ionos.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 102

{
  "snapshotId": "dcd31531-3ac8-11eb-9feb-046c59cc737e",
  "recoveryTargetTime": "2023-04-21T13:37:50+01:00"
}

No content

Was this helpful?