此时会显示 API 和服务页面。您可以在本页表格中找到您的 Google Cloud 项目中启用的 API 列表。
gcloud
如需列出当前项目中已启用的 API 和服务,请运行以下命令:
gcloud services list
该命令生成类似于以下内容的输出:
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
...
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
...
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],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)."]]