Turn off App Topology

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.

  1. 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.

  2. To turn off App Topology, do the following:

    gcloud

    1. In the Google Cloud console, activate Cloud Shell.

      Activate Cloud Shell

    2. Turn off the App Topology API (apptopology.googleapis.com) using the command gcloud 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 the services.disable method:

    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_ID with the ID of the project for which you are disabling App Topology.

    If the command succeeds, it returns a long-running operation, which includes a name field. You can use the value in the name field to check the status of the operation.

What's next

Learn more about enabling and disabling services.