Restore Listing Examples

Authentication

Go to the MariaDB Cloud API Key management pagearrow-up-right and generate an API key. Export the value from the token field to an environment variable $API_KEYexport API_KEY='... key data ...'

Use it on subsequent request, e.g: bash curl --request

GET 'https://api.skysql.com/skybackup/v1/backups/schedules' \
    --header "X-API-Key: ${API_KEY}"

In order to get all Restores scheduled in the past you need to make api call:

curl --location 'https://api.skysql.com/skybackup/v1/restores' \
     --header 'Accept: application/json' \--header 'X-API-Key: ${API_KEY}'

Get Restore by ID

curl --location 'https://api.skysql.com/skybackup/v1/restores/<ID>' \
--header 'Accept: application/json' \
--header 'X-API-Key: ${API_KEY}'
  • ID : the MariaDB Cloud Restore ID.

  • To get the restore id, check the above sample call listing all

Typical response of those two APIs should look like:

In case restore is in progress:

In case restore completed:

Last updated

Was this helpful?