이 페이지에서는 Virtual Private Cloud(VPC) 네트워크와 함께 사용할 수 있는 Google Cloud CLI 명령어와 API를 설명합니다.
대부분의 네트워킹 gcloud CLI 명령어 및 API는 Compute Engine의 일부입니다. 하지만 이 페이지의 일부 서비스에서는 서버리스 VPC 액세스 및 정책 기반 경로와 같이 Compute Engine에 포함되지 않은 gcloud CLI 명령어나 API를 사용합니다.
gcloud CLI 및 API 참조
VPC 네트워크로 작업할 때는 다음 리소스와 해당 메서드를 사용하세요.
주소: 내부 및 외부 IP 주소 리소스를 만들고, 주소 리소스를 Google Cloud 리소스에 할당하고, 주소 리소스를 수정하는 데 사용합니다.
[[["이해하기 쉬움","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-03(UTC)"],[],[],null,["# APIs and reference\n==================\n\nThis page describes Google Cloud CLI commands and APIs that can be used with\nVirtual Private Cloud (VPC) networks.\n\nMost networking gcloud CLI commands and APIs are\npart of Compute Engine. However, some services on this page use gcloud CLI commands\nor APIs that are not part of Compute Engine--- for example,\nServerless VPC Access and policy-based routes.\n\ngcloud CLI and API references\n-----------------------------\n\nUse the following resources and their methods when working with\nVPC networks.\n\n- **Addresses**: Use to create internal and external IP address\n resources, assign those address resources to Google Cloud resources, and modify\n address resources.\n\n [gcloud](/sdk/gcloud/reference/compute/addresses),\n [API](/compute/docs/reference/rest/v1/addresses)\n- **Firewall rules**: Use to create and modify firewall rules\n in your Google Cloud VPC network. Firewall rules enable you to allow or deny traffic to or from virtual machine (VM) instances based on IP addresses, protocol, and ports.\n\n\n [gcloud](/sdk/gcloud/reference/compute/firewall-rules),\n [API](/compute/docs/reference/rest/v1/firewalls)\n- **Forwarding rules**: Use to create and modify forwarding rules in your VPC\n network. Forwarding rules tell the network where to send matching packets\n that enter or pass through the network.\n\n [gcloud](/sdk/gcloud/reference/compute/forwarding-rules),\n [API](/compute/docs/reference/rest/v1/forwardingRules)\n- **Networks**: Use to create, modify, and peer VPC networks.\n\n [gcloud](/sdk/gcloud/reference/compute/networks),\n [API](/compute/docs/reference/rest/v1/networks)\n- **Private Service Connect** : Use to access managed services and offer managed services to service consumers.\n - Resources for service consumers: Use to access managed services privately from inside your VPC network.\n - Endpoints: Use to access managed services. Endpoints are deployed by\n using forwarding rules.\n\n [gcloud](/sdk/gcloud/reference/compute/forwarding-rules),\n [API](/compute/docs/reference/rest/v1/forwardingRules)\n - Backends: Use to connect to supported managed services by using a load balancer. Backends use Cloud Load Balancing resources. For more information, see Cloud Load Balancing [API and gcloud references](/load-balancing/docs/apis).\n - Network attachments: Use to let service producer VPC networks initiate connections to consumer networks.\n\n [gcloud](/sdk/gcloud/reference/compute/network-attachments),\n [API](/compute/docs/reference/rest/v1/networkAttachments)\n - Service connection policies: Use to automate deployment and connectivity\n for eligible managed service instances.\n\n [gcloud](/sdk/gcloud/reference/network-connectivity/service-connection-policies),\n [API](/network-connectivity/docs/reference/networkconnectivity/rest/v1/projects.locations.serviceConnectionPolicies)\n - Resources for service producers: Use to host managed services in their own separate VPC networks and offer a private connection to their consumers.\n - Service attachments: Use to publish services.\n\n [gcloud](/sdk/gcloud/reference/compute/service-attachments),\n [API](/compute/docs/reference/rest/v1/serviceAttachments)\n - Interfaces: Use to let service producer VPC networks initiate connections to consumer VPC networks.\n\n [gcloud](/sdk/gcloud/reference/compute/instances),\n [API](/compute/docs/reference/rest/v1/instances)\n- **Routes** : Use to create and modify VPC network routes.\n - Static routes: Use to manually configure instructions to\n the VPC network for how to forward traffic\n that is leaving VM instances.\n\n [gcloud](/sdk/gcloud/reference/compute/routes),\n [API](/compute/docs/reference/rest/v1/routes)\n - Policy-based routes: Use to forward traffic based on policies you create.\n Policy-based routes have higher priority than static routes.\n\n [gcloud](/sdk/gcloud/reference/network-connectivity/policy-based-routes),\n [API](/network-connectivity/docs/reference/networkconnectivity/rest/v1/projects.locations.global.policyBasedRoutes)\n- **Shared VPC** : Use to share a VPC network with other\n projects and control that sharing. In the API, modify these settings by\n using the `projects` resource.\n\n [gcloud](/sdk/gcloud/reference/compute/shared-vpc),\n [API](/compute/docs/reference/rest/v1/projects)\n- **Subnets**: Use to create, modify, and delete subnets in a VPC network.\n\n [gcloud](/sdk/gcloud/reference/compute/networks/subnets),\n [API](/compute/docs/reference/rest/v1/subnetworks)\n- **Serverless VPC Access**: Use to create, modify, and delete\n Serverless VPC Access connectors.\n\n\n [gcloud](/sdk/gcloud/reference/beta/compute/networks/vpc-access),\n [API](/vpc/docs/reference/vpcaccess/rest)\n- **VPC Flow Logs**: Use to monitor VPC\n networks and understand your network usage.\n\n - Manage VPC Flow Logs configurations for subnets:\n\n [gcloud](/sdk/gcloud/reference/compute/networks/subnets),\n [API](/compute/docs/reference/rest/v1/subnetworks)\n - Manage VPC Flow Logs configurations for VLAN\n attachments for Cloud Interconnect and Cloud VPN tunnels:\n\n [gcloud](/sdk/gcloud/reference/network-management/vpc-flow-logs-configs),\n [API](/network-intelligence-center/docs/reference/networkmanagement/rest/v1/projects.locations.vpcFlowLogsConfigs)"]]