Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Elenco dei servizi
Questo documento descrive come elencare le API e i servizi abilitati o disponibili in un Google Cloud progetto. L'elenco di API e servizi disponibili o abilitati può contenere sia Google Cloud servizi pubblici come Pub/Sub sia API e servizi condivisi privatamente con te, come i servizi creati utilizzando Cloud Endpoints. Per ulteriori informazioni sulle differenze tra API e servizi pubblici e privati, consulta Servizi pubblici e privati.
Per elencare i servizi in un progetto, ti consigliamo di utilizzare la
Google Cloud console o Google Cloud CLI. Questo documento descrive come utilizzare entrambe le interfacce.
Per programmare con l'API Service Usage, utilizza una delle nostre librerie client fornite.
Per eseguire esperimenti con l'API, ti consigliamo di utilizzare il comando curl.
Non è necessario configurare un ambiente di applicazione completo, ma è necessaria qualche configurazione.
Prima di iniziare
Per elencare le API e i servizi abilitati e disponibili di cui hai bisogno:
Un Google Cloud progetto. Per scoprire come creare un Google Cloud progetto, consulta
Creare e gestire progetti.
Se vuoi utilizzare gli esempi curl in questa guida, assicurati di seguire le istruzioni per completare la configurazione iniziale in Per iniziare. Questi passaggi includono la definizione di gcurl, che è un alias autenticato per il comando curl standard, e la definizione della variabile di ambiente PROJECT_NUMBER.
Elenco dei servizi abilitati in un'organizzazione
Per elencare i servizi abilitati in un'organizzazione, utilizza Cloud Asset Inventory, che consente di esportare lo stato di tutti i progetti sotto il controllo di un'organizzazione in un'unica chiamata RPC. Cloud Asset Inventory può essere utilizzato anche per monitorare le modifiche dello stato.
Per esportare tutti i servizi abilitati per una determinata organizzazione, consulta la documentazione di Cloud Asset Inventory relativa agli asset di elenco.
Per elencare le API abilitate per un'organizzazione, esegui il seguente comando dopo aver impostato gli ID progetto dell'organizzazione e di fatturazione:
NOW=$(TZ=GMT date +"%Y-%m-%dT%H:%M:%SZ")
gcloud asset list \
--organization='ORGANIZATION_ID' \
--billing-project='BILLING_PROJECT_ID' \
--asset-types='serviceusage.googleapis.com/Service' \
--snapshot-time=$NOW \
--content-type='resource'
L'esecuzione del comando precedente consente a un utente con privilegi sufficienti di elencare l'insieme
di servizi abilitati per tutti i progetti di un'organizzazione.
Per eseguire esperimenti con i comandi di Cloud Asset Inventory, applicali a un progetto specifico. Ad esempio, il seguente comando elenca tutti i servizi abilitati per un determinato progetto:
NOW=$(TZ=GMT date +"%Y-%m-%dT%H:%M:%SZ")
gcloud asset list \
--project='PROJECT_ID' \
--billing-project='BILLING_PROJECT_ID' \
--asset-types='serviceusage.googleapis.com/Service' \
--snapshot-time=$NOW \
--content-type='resource'
Elenco dei servizi abilitati in un progetto
I servizi abilitati per le schede utilizzano la quota della metrica serviceusage.googleapis.com/list_enabled_requests. La quota predefinita disponibile è 10 query al secondo (QPS).
console
Per elencare le API e i servizi abilitati in un progetto:
Seleziona il Google Cloud progetto eseguendo una delle seguenti operazioni:
Fai clic su un Google Cloud progetto in Seleziona un progetto recente.
Utilizza il Google Cloud browser dei progetti seguendo questa procedura:
Fai clic su Seleziona progetto per aprire il Google Cloud browser dei progetti.
Individua il progetto e fai clic sul Google Cloud nome del progetto.
Fai clic su Apri per aprire il progetto.
Viene visualizzata la pagina API e servizi. Puoi trovare l'elenco delle API attivate nel tuo Google Cloud progetto nella tabella di questa pagina.
gcloud
Per elencare le API e i servizi abilitati nel progetto corrente, esegui il seguente comando:
gcloud services list
Il comando produce un output simile al seguente:
NAME TITLE
pubsub.googleapis.com Google Cloud Pub/Sub API
bigquery.googleapis.com BigQuery API
cloudtrace.googleapis.com Stackdriver Trace API
servicemanagement.googleapis.com Google Service Management API
monitoring.googleapis.com Stackdriver Monitoring API
storage-api.googleapis.com Google Cloud Storage JSON API
logging.googleapis.com Stackdriver Logging API
clouddebugger.googleapis.com Stackdriver Debugger API
...
curl
Per elencare i servizi abilitati, chiama il metodo
services.list
con il filtro state:ENABLED.
Per elencare le API e i servizi abilitati nel progetto, esegui il seguente
comando:
L'elenco di tutti i servizi disponibili utilizza la quota della quota serviceusage.googleapis.com/list_available_requests. La quota disponibile predefinita è 1 QPS. L'insieme di servizi disponibili cambia raramente e può essere memorizzato nella cache per periodi di tempo prolungati.
console
Per elencare le API e i servizi a tua disposizione in un progetto:
Seleziona il tuo Google Cloud progetto eseguendo una delle seguenti operazioni:
Fai clic su un Google Cloud progetto in Seleziona un progetto recente.
Utilizza il Google Cloud browser dei progetti seguendo questa procedura:
Fai clic su Seleziona progetto per aprire il Google Cloud browser dei progetti.
Individua il progetto e fai clic sul Google Cloud nome del progetto.
Fai clic su Apri per aprire il progetto.
Viene visualizzata la schermata Libreria API. Da questa schermata puoi cercare o scorrere le API disponibili.
gcloud
Per elencare le API e i servizi a tua disposizione nel
tuo progetto corrente, esegui il seguente comando:
gcloud services list --available
I risultati includono tutti i servizi già abilitati, nonché i servizi che possono essere attivati per il progetto corrente.
Il comando produce un output simile al seguente:
NAME TITLE
places-backend.googleapis.com Google Places API Web Service
clouderrorreporting.googleapis.com Stackdriver Error Reporting API
analyticsreporting.googleapis.com Google Analytics Reporting API
youtube.googleapis.com YouTube Data API v3
adsense.googleapis.com AdSense Management API
sqladmin.googleapis.com Google Cloud SQL API
genomics.googleapis.com Genomics API
adexchangebuyer.googleapis.com Ad Exchange Buyer API II
...
curl
Per elencare i servizi disponibili, chiama il metodo
services.list.
Per elencare le API e i servizi disponibili nel tuo progetto, esegui il seguente comando:
Il risultato include tutti i servizi pubblici, tutti i servizi per i quali l'utente chiamante dispone dell'autorizzazione servicemanagement.services.bind e tutti i servizi che sono già stati attivati nel progetto.
È possibile escludere i servizi attualmente attivi nel progetto passando filter=state:DISABLED alla chiamata precedente.
Passaggi successivi
Per informazioni su come attivare o disattivare i servizi nel tuo
Google Cloud progetto, consulta
Attivare e disattivare i servizi.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-10 UTC."],[],[],null,["# Listing Services\n================\n\nThis document describes how to list the APIs and services that are enabled or\navailable in a Google Cloud project. The list of available or enabled\nAPIs and services can contain both public\n[Google Cloud services](/terms/services) such as\n[Pub/Sub](/pubsub), and any APIs and services shared privately with you,\nsuch as services created using [Cloud Endpoints](/endpoints). For more\ninformation on the differences between public and private APIs and services,\nsee\n[Public and Private Services](/service-usage/docs/public-vs-private).\n\n- To get or monitor the enabled services for an organization, see [List enabled services in an organization](#org-list-enabled).\n- To list services in a project, we recommend that you use the Google Cloud console or the Google Cloud CLI. This document describes how to use both interfaces.\n- To program against the Service Usage API, use one of our provided [client libraries](/service-usage/docs/libraries).\n- To experiment with the API, we recommend that you use the `curl` command. You don't need to set up a full application environment; however, there is some required setup.\n\nBefore you begin\n----------------\n\nTo list the enabled and available APIs and services you need:\n\n- A Google Cloud project. To learn how to create a Google Cloud project, see [Creating and Managing Projects](/resource-manager/docs/creating-managing-projects).\n- The correct [Identity and Access Management](/iam) permissions. To learn about the IAM requirements for Service Usage, see [Access Control](/service-usage/docs/access-control).\n- To install the [Google Cloud CLI](/sdk/docs/install).\n- If you want to use the `curl` examples in this guide, make sure you follow the instructions to complete the initial setup in [Getting Started](/service-usage/docs/set-up-development-environment). These steps include defining `gcurl`, which is an authenticated alias for the standard `curl` command, and defining the environment variable `PROJECT_NUMBER`.\n\nList enabled services in an organization\n----------------------------------------\n\nTo list which services are enabled across an organization use\n[Cloud Asset Inventory](/asset-inventory/docs/overview), which allows exporting\nthe state of all projects under the control of an organization in a single RPC\ncall. Cloud Asset Inventory can also be used to\n[monitor for state changes](/asset-inventory/docs/monitoring-asset-changes).\nTo export all enabled services for a particular organization, follow the Cloud Asset Inventory docs for [Listing Assets](/asset-inventory/docs/listing-assets).\n\nTo list the enabled APIs for an organization, run the following command after\nyou set your organization and billing project IDs: \n\n```\nNOW=$(TZ=GMT date +\"%Y-%m-%dT%H:%M:%SZ\")\ngcloud asset list \\\n--organization='ORGANIZATION_ID' \\\n--billing-project='BILLING_PROJECT_ID' \\\n--asset-types='serviceusage.googleapis.com/Service' \\\n--snapshot-time=$NOW \\\n--content-type='resource'\n```\n\nExecuting the previous command lets a sufficiently privileged user list the set\nof enabled services for all projects in an organization.\n\nTo experiment with Cloud Asset Inventory commands, apply these commands to a\nspecific project. For example, the following command\nlists all enabled services for a particular project: \n\n```\nNOW=$(TZ=GMT date +\"%Y-%m-%dT%H:%M:%SZ\")\ngcloud asset list \\\n--project='PROJECT_ID' \\\n--billing-project='BILLING_PROJECT_ID' \\\n--asset-types='serviceusage.googleapis.com/Service' \\\n--snapshot-time=$NOW \\\n--content-type='resource'\n```\n\nList enabled services in a project\n----------------------------------\n\nListing enabled services uses quota from the\n`serviceusage.googleapis.com/list_enabled_requests` quota metric. The default\navailable quota is 10 queries per second (QPS). \n\n### console\n\nTo list the enabled APIs and services in a project:\n\n1. Go to the Google Cloud console [API Dashboard](https://console.cloud.google.com/project/_/apis/dashboard) page. \n [go to the API Dashboard page](https://console.cloud.google.com/project/_/apis/dashboard)\n2. Select your Google Cloud project by performing one of the following:\n\n - Click on a Google Cloud project under **Select a recent project**.\n\n - Use the Google Cloud project browser by performing the following\n steps:\n\n 1. Click **Select project** to open the Google Cloud project browser.\n 2. Find your project and then click on the Google Cloud project name.\n 3. Click **Open** to open the project.\n\n The **APIs \\& Services** page appears. You can find the list of APIs\n enabled in your Google Cloud project in the table on this page.\n\n### gcloud\n\nTo list the enabled APIs and services in your current project, run the\nfollowing command: \n\n```\ngcloud services list\n```\n\nThe command produces output similar to the following: \n\n```\nNAME TITLE\npubsub.googleapis.com Google Cloud Pub/Sub API\nbigquery.googleapis.com BigQuery API\ncloudtrace.googleapis.com Stackdriver Trace API\nservicemanagement.googleapis.com Google Service Management API\nmonitoring.googleapis.com Stackdriver Monitoring API\nstorage-api.googleapis.com Google Cloud Storage JSON API\nlogging.googleapis.com Stackdriver Logging API\nclouddebugger.googleapis.com Stackdriver Debugger API\n...\n```\n\n### curl\n\nTo list enabled services, call the\n[`services.list`](/service-usage/docs/reference/rest/v1/services/list)\nmethod with the `state:ENABLED` filter.\n\nTo list the enabled APIs and services in your project, run the following\ncommand: \n\n gcurl \"https://serviceusage.googleapis.com/v1/projects/${PROJECT_NUMBER}/services?filter=state:ENABLED\"\n\nList available services in a project\n------------------------------------\n\n| **Caution:** The list of available services is substantially larger than the list of enabled services. If you only need the set of enabled services, then use the instructions in the previous section, List enabled services in a project. Listing all services might take as long as 30 seconds due to the amount of data returned. We recommend that you save the list of all available services, as changes to this list are infrequent.\n\nListing all available services uses quota from the\n`serviceusage.googleapis.com/list_available_requests` quota. The default\navailable quota is 1 QPS. The set of available services rarely changes and\ncan be cached for extended periods of time. \n\n### console\n\nTo list the APIs and services available to you in a project:\n\n1. Go to the Google Cloud console [API Library](https://console.cloud.google.com/project/_/apis/library) page. \n [Go to the API Library page](https://console.cloud.google.com/project/_/apis/library)\n2. Select your Google Cloud project by performing one of the following:\n\n - Click on a Google Cloud project under **Select a recent project**.\n\n - Use the Google Cloud project browser by performing the following\n steps:\n\n 1. Click **Select project** to open the Google Cloud project browser.\n 2. Find your project and then click on the Google Cloud project name.\n 3. Click **Open** to open the project.\n\n The **API Library** screen appears. You can search for or scroll through\n available APIs from this screen.\n\n### gcloud\n\nTo list the APIs and services available to you in\nyour current project, run the following command: \n\n```\ngcloud services list --available\n```\n\nThe results include any services that have already been enabled, as\nwell as services that are available to be enabled for the current project.\nThe command produces output similar to the following: \n\n```\nNAME TITLE\nplaces-backend.googleapis.com Google Places API Web Service\nclouderrorreporting.googleapis.com Stackdriver Error Reporting API\nanalyticsreporting.googleapis.com Google Analytics Reporting API\nyoutube.googleapis.com YouTube Data API v3\nadsense.googleapis.com AdSense Management API\nsqladmin.googleapis.com Google Cloud SQL API\ngenomics.googleapis.com Genomics API\nadexchangebuyer.googleapis.com Ad Exchange Buyer API II\n...\n```\n\n### curl\n\nTo list available services, call the\n[`services.list`](/service-usage/docs/reference/rest/v1/services/list)\nmethod.\n\nTo list the available APIs and services in your project, run the following command: \n\n gcurl \"https://serviceusage.googleapis.com/v1/projects/${PROJECT_NUMBER}/services\"\n\nThe result includes all public services, all services for which the calling\nuser has the `servicemanagement.services.bind` permission, and all services\nthat have already been enabled on the project.\n\nIt is possible to exclude the services that are currently active on the\nproject by passing `filter=state:DISABLED` to the previous call.\n\nNext steps\n----------\n\nFor information about how to enable or disable services in your\nGoogle Cloud project, see\n[Enabling and Disabling Services](/service-usage/docs/enable-disable)."]]