Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view a list all enabled API services for Google Cloud Platform project

We manage a couple dozen GCP projects, and I've never figured out how to list all the enabled API services for each project on the website. There is a way to do it via Cloud Shell by running the console command: gcloud services list

If I visit https://console.cloud.google.com/apis/library?project=PROJECT_NAME, I can see whether a specific API service is enabled, but then I'd have to individually visit 300 separate API pages per project, which is not feasible.

There has to be a better way for end users to do that without having to install Google Cloud SDK.

like image 532
HSuke Avatar asked Jun 09 '20 14:06

HSuke


People also ask

How can I see enabled API in GCP?

In the console, go to APIs & services for your project. On the Library page, click Private APIs. If you don't see the API listed, that means you haven't been granted access to enable the API.

How do I see all resources in GCP project?

You can use search-all-resources to search all the resources across services (or APIs) and projects for a given organization, folder, or project.

How do you check is a API is enabled?

API are enabled at the profile level which users are associated to. TO check this go to SETUP, PROFILES, click on the profile, THEN system permissions and make sure the API ENABLED checkbox is clicked.

Which APIs to enabled by default in GCP?

And, only these 14 APIs below are enabled by default: BigQuery API. BigQuery Storage API. Cloud Datastore API.


2 Answers

gcloud services list --enabled --project <PROJECT>
like image 121
Sebastian Avatar answered Oct 03 '22 22:10

Sebastian


Follow this reference link (1)

(1) https://cloud.google.com/service-usage/docs/list-services#gcloud_1

like image 27
Neelam Avatar answered Oct 04 '22 00:10

Neelam