您需要合適的權限,才能在 Google Cloud 專案中列出或使用公開 API 與服務。舉例來說,如要啟用服務,您需要 serviceusage.services.enableIdentity and Access Management 權限。如要瞭解使用「服務使用情形」所需的 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"]],["上次更新時間: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)."]]