Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Service Networking API 使用入门
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页介绍如何启用和开始使用 Service Networking API。对于大多数操作用例,Google 建议使用 gcloud 命令行界面。如果您需要针对 Service Networking API 进行编程,则可以使用我们提供的某一客户端库。
启用 Service Networking
在专用服务管理项目中启用 Service Networking。此项目处理与使用方 VPC 网络之间的专用连接。如需了解更多信息,请参阅启用专用服务访问通道。
gcloud
激活 Service Networking API:
gcloud services enable servicenetworking.googleapis.com \
--project=PROJECT_ID
将 PROJECT_ID 替换为您的专用服务管理项目的 Google Cloud 项目 ID。
借助 Service Networking,您可将内部 IP 地址上的托管式服务提供给服务使用方。
服务使用方使用专用服务访问通道以私密方式连接您的服务。如要设置您的服务以实现专用服务访问通道,请与您的 Google 代表联系以获取更多信息。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-01-14。
[[["易于理解","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):2026-01-14。"],[],[]]