Make a record of the unique identifier (UUID) of the Database Instance you wish to migrate from, as well as the UUID of the target Database Instance you intend to migrate to.
Run the following command to retrieve the public endpoint of your Database Instance. Make sure you replace $DB_INSTANCE_ID with the UUID of the original Database Instance.
Important
Before migrating the endpoint, keep in mind that:
If you want to migrate a load_balancer endpoint type the target Database Instance must not have a load_balancer endpoint
If you want to migrate a private_network endpoint type the target Database Instance must not have a private_network endpoint
You can remove existing endpoints in the target Database Instance via the Scaleway console or the CLI.