Databases

Create a new database of the same engine with a copy of this one's data (runs as a live database import)

post/databases/{databaseId}/clone

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/databases/{databaseId}/clone
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

databaseIdstring uuid required

Request body

namestring required

name of the new database

projectIdstring uuid

attach the new database to this project (DATABASE_URL, or REDIS_URL for Redis)

backupsboolean

give the new database the default daily backups (see CreateDatabaseInput.backups)

Response

Clone started

databaseIdstring uuid required

the new database (provisioning until the copy is done)

Changes

No recorded changes to this operation across all 1 revision of this API.