이 페이지에서는 Service Networking API를 사용 설정하고 시작하는 방법을 설명합니다. 대부분의 운영 사례에서는 gcloud명령줄 인터페이스를 사용하는 것이 좋습니다. Service Networking API과 달리 프로그래밍해야 하는 경우에는 제공된 클라이언트 라이브러리 중에 하나를 사용할 수 있습니다.
서비스 사용 설정
비공개 서비스 관리 프로젝트에서 Service Networking을 사용 설정합니다. 이 프로젝트는 소비자 VPC 네트워크와의 비공개 연결을 처리합니다. 자세한 내용은 비공개 서비스 액세스 사용 설정을 참조하세요.
PROJECT_ID를 비공개 서비스 관리 프로젝트의 Google Cloud 프로젝트 ID로 바꿉니다.
Service Networking은 서비스 소비자의 내부 IP 주소에서 관리형 서비스를 제공할 수 있도록 해줍니다.
서비스 소비자는 비공개 서비스 액세스를 사용하여 서비스에 비공개적으로 연결합니다. 비공개 서비스 액세스에 맞게 서비스를 설정하려면 Google 담당자에게 추가 정보를 문의하세요.
[[["이해하기 쉬움","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-04-21(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."]]