Getting Started with the Service Networking API

This page describes how to enable and start using the Service NetworkingAPI. For most operational use cases, Google recommends thegcloudcommandline interface. If you needto program against the Service Networking API, you can use one ofour providedclient libraries.

Enabling the service

Enable Service Networking in the private services managementproject. This project handles the private connections with consumerVPC networks. For more information, seeEnabling privateservices access.

console

  1. Select or create a private services management project.

    Go to the manage resources page

  2. Enable the Service Networking API.

    Enable the API

gcloud

Activate the Service Networking API:

gcloud services enable servicenetworking.googleapis.com \    --project=PROJECT_ID

ReplacePROJECT_ID with the Google Cloud project ID of yourprivate services management project.

Service Networking enables you to offer yourmanagedservices on internal IP addresses to service consumers.Service consumers useprivate servicesaccess to privatelyconnect to your service. To set up your service for private services access,reach out to your Google representative for more information.

Note: When you use private services access as a service producer, you are solelyresponsible for securing VPC networks and all resources and data available onthem. Google is not responsible for how data and resources may be accessed orused by the service consumers that you are connecting with.Note: When the Service Networking API is enabled, the service account provisioningwill happen just-in-time. This means that unless we do not have a resource (forexample: configuration of Private Google Access) configured which calls the API,we won't see the service account getting created. Once the service accountgets provisioned, it is visible in the format service-{project number}@service-networking.iam.gserviceaccount.comand is added with roles/servicenetworking.serviceAgent policy binding on theconsumer project.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-18 UTC.