From 6d094441f2e87bcf0813e4ec2d8b1ff3c4a6606c Mon Sep 17 00:00:00 2001 From: NedPK Date: Thu, 26 Sep 2024 17:25:13 +0300 Subject: [PATCH] Snapshot call format fix --- .../Bring Your Own Bucket Examples.md | 2 +- .../Snapshot Backup Examples.md | 31 +++++++++---------- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/docs/Backup and Restore/Bring Your Own Bucket Examples.md b/docs/Backup and Restore/Bring Your Own Bucket Examples.md index 1a8af6d7..c08414e0 100644 --- a/docs/Backup and Restore/Bring Your Own Bucket Examples.md +++ b/docs/Backup and Restore/Bring Your Own Bucket Examples.md @@ -87,7 +87,7 @@ To set up an external storage backup, you need to make the following API call: --data '{ "backup_type": "full", "schedule": "0 2 ** *", - "service_id": "dbtgf28044362", + "service_id": "dbpgf28044362", "external_storage": { "bucket": { "path": "s3://my_backup_bucket", diff --git a/docs/Backup and Restore/Snapshot Backup Examples.md b/docs/Backup and Restore/Snapshot Backup Examples.md index 720785b6..71a3d1d6 100644 --- a/docs/Backup and Restore/Snapshot Backup Examples.md +++ b/docs/Backup and Restore/Snapshot Backup Examples.md @@ -30,14 +30,12 @@ Use it on subsequent request, e.g: curl --location 'https://api.skysql.com/skybackup/v1/backups/schedules' \ --header 'Content-Type: application/json' \ - --header 'Accept: application/json' \ - --header "X-API-Key: $API_KEY" \ - --data "{ - \"backup_type\": \"snapshot\", - \"schedule\": \"once\", - \"service_id\": \"$SERVICE_ID\" - }" - + --header 'X-API-Key: $API_KEY' \ + --data '{ + "backup_type": "snapshot", + "schedule": "once", + "service_id": "$SERVICE_ID" + }' - API_KEY : SKYSQL API KEY, see [SkySQL API Keys](https://app.skysql.com/user-profile/api-keys/) - SERVICE_ID : SkySQL serivce identifier, format dbtxxxxxx. You can fetch the service ID from the Fully qualified domain name(FQDN) of your service. E.g: in dbpgf17106534.sysp0000.db2.skysql.com, 'dbpgf17106534' is the service ID.You will find the FQDN in the [Connect window](https://app.skysql.com/dashboard) @@ -45,19 +43,18 @@ Use it on subsequent request, e.g: #### Cron Snapshot Example - curl --location 'https://api.skysql.com/skybackup/v1/backups/schedules' + curl --location 'https://api.skysql.com/skybackup/v1/backups/schedules' \ --header 'Content-Type: application/json' \ - --header 'Accept: application/json' \ - --header "X-API-Key: $API_KEY" \ - --data "{ - \"backup_type\": \"snapshot\", - \"schedule\": \"0 3 * * *\", - \"service_id\": \"$SERVICE_ID\" - }" + --header 'X-API-Key: $API_KEY' \ + --data '{ + "backup_type": "snapshot", + "schedule": "0 3 * * *", + "service_id": "$SERVICE_ID" + }' - API_KEY : SKYSQL API KEY, see [SkySQL API Keys](https://app.skysql.com/user-profile/api-keys/) - SCHEDULE : Cron schedule, see [Cron](https://en.wikipedia.org/wiki/Cron) -- SERVICE_ID : SkySQL serivce identifier, format dbtxxxxxx +- SERVICE_ID : SkySQL serivce identifier, format dbxxxxxx ##### Backup status can be fetch using 'https://api.skysql.com/skybackup/v1/backups'. See the 'Backup Status' section for an example.