App Topology is enabled by default when you create a project using Google Cloud console or Google Cloud CLI and is automatically enabled for an App Hub management project.
To turn off App Topology in a project, disable the App Topology API
(apptopology.googleapis.com). You can block API activation using
an organization policy constraint, or you can selectively disable the API in
specific projects.
Restrict API activation using policies
To block usage of the App Topology API, use the Restrict Resource Service Usage organization policy constraint. You can define restrictions at the organization, folder, or project level. For details, see Restrict service usage.
Disable the App Topology API
The following instructions describe how to disable the App Topology API on individual projects. If you want to disable the API at the folder or organization level without using an organization policy constraint, see Hierarchical-service-activation.
-
To get the permissions that you need to disable the API, ask your administrator to grant you the Service Usage Admin (
roles/serviceusage.serviceUsageAdmin) IAM role on your project. For more information about granting roles, see Manage access to projects, folders, and organizations.You might also be able to get the required permissions through custom roles or other predefined roles.
To turn off App Topology, do the following:
gcloud
-
In the Google Cloud console, activate Cloud Shell.
Turn off the App Topology API (
apptopology.googleapis.com) using the commandgcloud services disable:gcloud services disable apptopology.googleapis.com
If successful, the command returns the following message:
Operation finished successfully.
API
Turn off the API (
apptopology.googleapis.com) using theservices.disablemethod:curl -X POST
-H "Authorization: Bearer $(gcloud auth print-access-token)"
"https://serviceusage.googleapis.com/v1/projects/PROJECT_ID/services/apptopology.googleapis.com:disable"Replace
PROJECT_IDwith the ID of the project for which you are disabling App Topology.If the command succeeds, it returns a
long-running operation, which includes anamefield. You can use the value in thenamefield to check the status of the operation.-
What's next
Learn more about enabling and disabling services.