{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To start an online migration, send a PUT request to `/v2/databases/$DATABASE_ID/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.\nIf 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](https://docs.digitalocean.com/products/databases/mysql/how-to/migrate/#:~:text=To%20migrate%20a%20MySQL%20database,then%20select%20Set%20Up%20Migration),  [PostgreSQL](https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/),  [Caching](https://docs.digitalocean.com/products/databases/redis/how-to/migrate/), and [Valkey](https://docs.digitalocean.com/products/databases/valkey/how-to/migrate/) clusters. ","properties":{"path":{"type":"object","properties":{"database_cluster_uuid":{"type":"string","format":"uuid","examples":["9cc10173-e9ea-4176-9dbc-a4cee4c4ff30"],"description":"A unique identifier for a database cluster."}},"required":["database_cluster_uuid"],"additionalProperties":false},"body":{"$ref":"#/definitions/source_database","examples":[{"source":{"host":"source-db.example.com","dbname":"defaultdb","port":25060,"username":"doadmin","password":"example_password"},"disable_ssl":false,"ignore_dbs":["db0","db1"]}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"source_database":{"type":"object","required":["source"],"properties":{"source":{"type":"object","properties":{"host":{"type":"string","description":"The FQDN pointing to the database cluster's current primary node.","examples":["db.example.com"]},"port":{"type":"integer","description":"The port on which the database cluster is listening.","examples":[25060]},"dbname":{"type":"string","description":"The name of the default database.","examples":["defaultdb"]},"username":{"type":"string","description":"The default user for the database.","examples":["doadmin"]},"password":{"type":"string","description":"The randomly generated password for the default user.","examples":["example_password"]}}},"disable_ssl":{"type":"boolean","description":"Enables SSL encryption when connecting to the source database.","examples":[false]},"ignore_dbs":{"type":"array","items":{"type":"string"},"default":[],"description":"List of databases that should be ignored during migration.","examples":[["db0","db1"]]}}}}},"name":"Start an Online Migration","id":"digitalocean.databases_update_onlinemigration","example":{"path":{"database_cluster_uuid":"9cc10173-e9ea-4176-9dbc-a4cee4c4ff30"},"body":{"source":{}}},"maxRequests":1,"summary":false}}