Create an In-Memory DB Restore

The request creates a new restore. You must provide a full restore to create the object.

Endpoint

Use a region-specific endpoint from the list to create a new restore: https://in-memory-db.{region}.ionos.com/snapshots/{snapshotId}/restores

Note: Remember to replace the snapshotId with a relevant UUID.

Request

curl -X 'POST' \
  'https://in-memory-db.de-txl.ionos.com/snapshots/a8784665-3d99-5464-af32-30a2967f58e7/restores' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $Token' \
--data 
'{
"metadata": { },
"properties": {
"replicasetId": "ac71d588-f2bb-481c-8905-52d37b5cb3b4",
"displayName": "In-Memory DB snapshot",
"description": "Snapshot of an In-Memory DB replica set."
}
}'

To make authenticated requests to the API, the following fields are mandatory in the request header:

Header Parameters
Required
Type
Description

Authorization

yes

string

Provide a header value as Bearer followed by your token.

Content-Type

yes

string

Set this to application/json.

Response

Your values will differ from those in the sample code. It may contain different IDs, timestamps etc.

202 Successful operation

Last updated

Was this helpful?