cURL
curl --request POST \ --url https://cloud.laravel.com/api/databases/clusters/{database}/restore \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "restore_time": "2023-11-07T05:31:56Z", "database_snapshot_id": "<string>" } '
{ "data": { "id": "<string>", "type": "databases", "attributes": { "name": "<string>", "type": "laravel_mysql_8", "status": "creating", "region": "us-east-2", "created_at": "2023-11-07T05:31:56Z", "config": { "cu_min": 0.25, "cu_max": 0.25, "suspend_seconds": 123, "retention_days": 123 }, "connection": { "hostname": "<string>", "port": 3306, "protocol": "mysql", "driver": "mysql", "username": "<string>", "password": "<string>" } }, "relationships": { "schemas": { "data": [ { "type": "databaseSchemas", "id": "<string>" } ] } } }, "included": [ { "id": "<string>", "type": "databaseSchemas", "attributes": { "name": "<string>", "created_at": "2023-11-07T05:31:56Z" }, "relationships": { "database": { "data": { "type": "databases", "id": "<string>" } } } } ] }
Restore a database cluster from a point in time or snapshot. Returns the newly created database.
The Bearer Token generated on the Cloud UI.
The database identifier
The name of the new database created from the restore.
3 - 40
The point in time to restore the database to. Must not be used with database_snapshot_id.
DatabaseResource
Show child attributes
Was this page helpful?