migrations
Overview
Name | migrations |
Type | Resource |
Id | digitalocean.databases.migrations |
Fields
Name | Datatype | Description |
---|---|---|
id | string | The ID of the most recent migration. |
created_at | string | The time the migration was initiated, in ISO 8601 format. |
status | string | The current status of the migration. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_migrationStatus | SELECT | database_cluster_uuid | To retrieve the status of the most recent online migration, send a GET request to /v2/databases/$DATABASE_ID/online-migration . |
delete_onlineMigration | DELETE | database_cluster_uuid, migration_id | To stop an online migration, send a DELETE request to /v2/databases/$DATABASE_ID/online-migration/$MIGRATION_ID .A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed. |
update_onlineMigration | EXEC | database_cluster_uuid | 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, and Redis clusters. |
update_region | EXEC | database_cluster_uuid, data__region | To migrate a database cluster to a new region, send a PUT request to/v2/databases/$DATABASE_ID/migrate . The body of the request must specify aregion attribute.A successful request will receive a 202 Accepted status code with no body in response. Querying the database cluster will show that its status attributewill now be set to migrating . This will transition back to online when themigration has completed. |