BackupsKeyRestore
Restore a database backup from S3
Downloads the backup identified by the S3 object key, runs `pg_restore` into the target `client_name` Postgres pool, and returns the key plus client.
Path Parameters
key*string
S3 object key for the backup (URL-encoded, may contain slashes).
Header Parameters
apikey*string
The static admin key configured as ATHENA_KEY_12. Authorization headers (Bearer <key>), X-API-Key, X-Athena-Key, or ?api_key= are also accepted.
Request Body
application/json
client_name*string
Logical client whose Postgres URI is the restore target.
Response Body
application/json
curl -X POST "https://athena-cluster.com/admin/backups/string/restore" \ -H "apikey: string" \ -H "Content-Type: application/json" \ -d '{ "client_name": "string" }'{
"key": "string",
"client_name": "string"
}Empty
Empty
Empty