dots.v2.databases.byDatabase_cluster_uuid().onlineMigration.put()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.databases.byDatabase_cluster_uuid(database_cluster_uuid).onlineMigration.put(body: Source_database, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Online_migration>Description
To start an online migration, send a PUT request to /v2/databases/{database_cluster_uuid}/online-migration endpoint. Migrating a cluster establishes a connection with an existing cluster and replicates its contents to the target cluster. Online migration is only available for MySQL, PostgreSQL, Caching, and Valkey clusters.
If the existing database is continuously being written to, the migration process will continue for up to two weeks unless it is manually stopped. Online migration is only available for MySQL, PostgreSQL, Caching, and Valkey clusters.
Parameters
Path Parameters
database_cluster_uuidstring requiredExample:
9cc10173-e9ea-4176-9dbc-a4cee4c4ff30A unique identifier for a database cluster.
Request Body
sourceobject requiredShow child properties
hoststring optionalExample:
db.example.comThe FQDN pointing to the database cluster's current primary node.
portinteger optionalExample:
25060The port on which the database cluster is listening.
dbnamestring optionalExample:
defaultdbThe name of the default database.
usernamestring optionalExample:
doadminThe default user for the database.
passwordstring optionalExample:
example_passwordThe randomly generated password for the default user.
disableSslboolean optionalExample:
falseEnables SSL encryption when connecting to the source database.
ignoreDbsarray of strings optionalExample:
["db0", "db1"]List of databases that should be ignored during migration.
Request Sample
Response Example
More Information
See /v2/databases/{database_cluster_uuid}/online-migration in the API reference for additional detail on responses, headers, parameters, and more.