您需要具有适当的权限才能列出或使用 Google Cloud 项目中的公共 API 和服务。例如,要启用服务,您需要具备 serviceusage.services.enableIdentity and Access Management 权限。如需了解 Service Usage 所需的 IAM 权限,请参阅访问权限控制。
专用 API 和服务
专用服务通常是使用在另一个 Google Cloud 项目中运行的 Cloud Endpoints 实现的 API。要发现或使用专用 API 和服务,必须首先由具有必要权限的主账号授予相应的访问权限。如需了解如何在 Google Cloud 项目中授予权限以启用 Cloud Endpoints API,请参阅以下介绍各个 Cloud Endpoints API 框架的页面:
[[["易于理解","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,["# Public and Private Services\n===========================\n\nThis page compares the concepts of public and private services on Google Cloud.\n\nPublic APIs and services\n------------------------\n\nPublic APIs and services are globally visible across all Google Cloud\nprojects. Examples of public Google Cloud APIs and services include:\n\n- [BigQuery API](/bigquery)\n- [Cloud Storage](/storage)\n- [Cloud Monitoring API](/monitoring)\n\nYou need the appropriate permissions to list or use public\nAPIs and services in a Google Cloud project. For example, to enable a service,\nyou need the `serviceusage.services.enable` [Identity and Access Management](/iam) permission. To\nlearn about the required IAM permissions for\nService Usage, see\n[Access Control](/service-usage/docs/access-control).\n\nPrivate APIs and services\n-------------------------\n\nPrivate services are\ntypically APIs implemented using [Cloud Endpoints](/endpoints) running in\nanother Google Cloud project. To discover or use private APIs and services,\nyou must be first be granted access by a principal with the necessary\npermissions. To learn how to grant access to enable Cloud Endpoints APIs from\na Google Cloud project, see the following pages for each of the respective\nCloud Endpoints API frameworks:\n\n- [Controlling Who Can Enable Your API](/endpoints/docs/openapi/control-api-callers) for the OpenAPI Specification.\n- [Controlling Who Can Enable Your API](/endpoints/docs/frameworks/control-api-callers) for Endpoints Frameworks.\n- [Controlling Who Can Enable Your API](/endpoints/docs/grpc/control-api-callers) for gRPC.\n\nYou must also have the appropriate IAM permissions to list or use\nprivate APIs and services. For example, to call the\n[`services.enable`](/service-usage/docs/reference/rest/v1/services/enable)\nmethod for a private service, the `servicemanagement.services.bind` permission\nis required. To learn about the necessary permissions for\nService Usage, see [Access Control](/service-usage/docs/access-control).\n\nWhen you list available or enabled APIs and services in a Google Cloud project\n, the results include any public and private APIs you have access to. To learn\nmore about listing enabled and available services in your\nGoogle Cloud projects, see\n[Listing Services](/service-usage/docs/list-services)."]]