已启用的服务

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

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

调用服务

使用 Google Cloud API 和 服务通常需满足的高级要求如下:

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

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

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

用于调用 Google Cloud API 和服务的凭据与用于创建这些 API 和服务的项目 相关联。

IAM 角色可见性

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

默认启用的服务

使用 Google Cloud 控制台或 Google Cloud Google Cloud CLI 创建项目时,默认情况下会启用以下 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