Disabling the DMS API returns error
Stay organized with collections
Save and categorize content based on your preferences.
Problem
When trying to disable the Database Migration Service (DMS) API, the following error is thrown:
If datamigration.googleapis.com has resources in use, please deactivate them and try again
The same error is thrown after all the Migration Jobs and Connection Profiles are deleted in the DMS UI.
Environment
Solution
- Use the gcloud tool or call the DMS API to list the connection profiles for the locations that were used previously for resource creation.
- Delete the corresponding connection profiles using the API or gcloud tool.
Cause
The resources that are not visible in the Cloud Console are the destination connection profiles. These are not shows as independent connection profiles in the UI because they are auto-generated by Cloud SQL as part of the migration job creation.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-12 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-12 UTC."],[],[]]