已启用的服务

在使用大多数 Google Cloud API 和服务之前,您必须先在Google Cloud 项目中启用它们。在 Google Cloud 项目中启用 API 和服务会导致以下更改:

  • 将 API 和服务与项目关联起来。
  • 在 Google Cloud 控制台中添加“监控”页面。
  • 如果为项目启用了结算,则也会为 API 和服务启用结算。
  • 在某些情况下,只有在启用关联服务时,才会显示 Identity and Access Management (IAM) 角色。

调用服务

使用 Google Cloud API 和服务的典型高级要求如下:

  1. 您应该有一个 Google Cloud 项目。如需详细了解如何创建Google Cloud 项目,请参阅创建项目

  2. 您应为项目启用相应 API 或服务。如需了解如何启用 API 和服务,请参阅启用和停用服务

  3. 您应拥有已启用服务的身份验证凭据。如需了解如何向 Google Cloud API 进行身份验证,请参阅 Google Cloud API 和服务的身份验证

您用于调用 Google Cloud API 和服务的凭据与您创建它们时使用的项目相关联。

IAM 角色可见性

仅当在 Google Cloud 项目中启用了关联的服务时,某些 IAM 角色才可见。例如,只有在项目中启用 compute.googleapis.com API 后,roles/compute.admin 角色才可见。如需了解如何列出可在项目中授予的角色,请参阅查看资源的可授予角色

默认启用的服务

使用 Google Cloud 控制台或 Google Cloud CLI 创建 Google Cloud 项目时,默认情况下会启用以下 API 和服务:

服务名称 API 端点
BigQuery Sharing(以前称为 Analytics Hub) analyticshub.googleapis.com
BigQuery API bigquery.googleapis.com
BigQuery Connection API bigqueryconnection.googleapis.com
BigQuery Data Policy API bigquerydatapolicy.googleapis.com
BigQuery Data Transfer Service bigquerydatatransfer.googleapis.com
BigQuery Migration API bigquerymigration.googleapis.com
BigQuery Reservation API bigqueryreservation.googleapis.com
BigQuery Storage API bigquerystorage.googleapis.com
Cloud Datastore API datastore.googleapis.com
Cloud Dataform API dataform.googleapis.com
Cloud Dataplex API dataplex.googleapis.com
Cloud Logging API logging.googleapis.com
Cloud Monitoring API monitoring.googleapis.com
Cloud SQL sql-component.googleapis.com
Cloud Storage storage-component.googleapis.com
Cloud Storage API storage.googleapis.com
Cloud Trace API cloudtrace.googleapis.com
Google Cloud API cloudapis.googleapis.com
Google Cloud Storage JSON API storage-api.googleapis.com
Service Management API servicemanagement.googleapis.com
Service Usage API serviceusage.googleapis.com
Telemetry API telemetry.googleapis.com