Method: projects.locations.migrationJobs.demoteDestination

Demotes the destination database to become a read replica of the source. This is applicable for the following migrations: 1. MySQL to Cloud SQL for MySQL 2. PostgreSQL to Cloud SQL for PostgreSQL 3. PostgreSQL to AlloyDB for PostgreSQL.

HTTP request

POST https://datamigration.googleapis.com/v1/{name}:demoteDestination

Path parameters

Parameters
name

string

Name of the migration job resource to demote its destination.

Authorization requires the following IAM permission on the specified resource name:

  • datamigration.migrationjobs.demoteDestination

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.