Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini menjelaskan cara mengaktifkan dan mulai menggunakan Service Networking API. Untuk sebagian besar kasus penggunaan operasional, Google merekomendasikan antarmuka
command linegcloud. Jika perlu
memprogram terhadap Service Networking API, Anda dapat menggunakan salah satu
library klien yang kami sediakan.
Mengaktifkan layanan
Aktifkan Jaringan Layanan di project pengelolaan layanan
pribadi. Project ini menangani koneksi pribadi dengan jaringan VPC konsumen. Untuk informasi selengkapnya, lihat Mengaktifkan akses layanan
pribadi.
console
Pilih atau buat project pengelolaan layanan pribadi.
Ganti PROJECT_ID dengan Google Cloud project ID project pengelolaan layanan pribadi Anda.
Jaringan Layanan memungkinkan Anda menawarkan layanan
terkelola di alamat IP internal kepada konsumen layanan.
Konsumen layanan menggunakan akses layanan
pribadi untuk terhubung secara
pribadi ke layanan Anda. Untuk menyiapkan layanan Anda agar dapat mengakses layanan pribadi,
hubungi perwakilan Google untuk mendapatkan informasi selengkapnya.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[],[],null,["# Getting Started with the Service Networking API\n\nThis page describes how to enable and start using the Service Networking\nAPI. For most operational use cases, Google recommends the `gcloud` [command\nline interface](/sdk/gcloud/reference/beta/services/vpc-peerings). If you need\nto program against the Service Networking API, you can use one of\nour provided [client libraries](/service-infrastructure/docs/service-networking/libraries).\n\nEnabling the service\n--------------------\n\nEnable Service Networking in the private services management\nproject. This project handles the private connections with consumer\nVPC networks. For more information, see [Enabling private\nservices access](/service-infrastructure/docs/enabling-private-services-access). \n\n### console\n\n1. Select or create a private services management project.\n\n [Go to the manage resources page](https://console.cloud.google.com/cloud-resource-manager)\n2. Enable the Service Networking API.\n\n [Enable the API](https://console.cloud.google.com/apis/library/servicenetworking.googleapis.com)\n\n### gcloud\n\nActivate the Service Networking API: \n\n```\ngcloud services enable servicenetworking.googleapis.com \\\n --project=PROJECT_ID\n```\n\nReplace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the Google Cloud project ID of your\nprivate services management project.\n\nService Networking enables you to offer your [managed\nservices](/service-infrastructure/docs/glossary#managed) on internal IP addresses to service consumers.\nService consumers use [private services\naccess](/vpc/docs/private-services-access) to privately\nconnect to your service. To set up your service for private services access,\nreach out to your Google representative for more information.\n| **Note:** When you use private services access as a service producer, you are solely responsible for securing VPC networks and all resources and data available on them. Google is not responsible for how data and resources may be accessed or used by the service consumers that you are connecting with.\n| **Note:** When the Service Networking API is enabled, the service account provisioning will happen just-in-time. This means that unless we do not have a resource (for example: configuration of Private Google Access) configured which calls the API, we won't see the service account getting created. Once the service account gets provisioned, it is visible in the format service-{project number}@service-networking.iam.gserviceaccount.com and is added with roles/servicenetworking.serviceAgent policy binding on the consumer project."]]