Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
API dan referensi
Halaman ini menjelaskan perintah dan API Google Cloud CLI yang dapat digunakan dengan jaringan Virtual Private Cloud (VPC).
Sebagian besar perintah dan API gcloud CLI jaringan adalah
bagian dari Compute Engine. Namun, beberapa layanan di halaman ini menggunakan perintah gcloud CLI atau API yang bukan bagian dari Compute Engine—misalnya, Akses VPC Serverless dan rute berbasis kebijakan.
Referensi API dan gcloud CLI
Gunakan resource berikut dan metodenya saat mengelola jaringan VPC.
Addresses: Digunakan untuk membuat resource alamat IP internal dan eksternal, menetapkan resource alamat tersebut ke resource Google Cloud , dan mengubah resource alamat.
Aturan firewall: Digunakan untuk membuat dan mengubah aturan firewall di jaringan VPC Google Cloud Anda. Dengan aturan firewall, Anda dapat mengizinkan atau menolak traffic ke atau dari instance virtual machine (VM) berdasarkan alamat IP, protokol, dan port.
Aturan penerusan: Digunakan untuk membuat dan mengubah aturan penerusan di jaringan VPC Anda. Aturan penerusan memberi tahu jaringan tempat mengirim paket yang cocok yang masuk atau melewati jaringan.
Backend: Gunakan untuk terhubung ke layanan terkelola yang didukung menggunakan load balancer.
Backend menggunakan resource Cloud Load Balancing. Untuk mengetahui informasi selengkapnya,
lihat referensi API dan gcloud Cloud Load Balancing.
Lampiran jaringan: Gunakan untuk memungkinkan jaringan VPC produsen layanan memulai koneksi ke jaringan konsumen.
Referensi untuk produsen layanan: Gunakan untuk menghosting layanan terkelola di jaringan VPC mereka sendiri yang terpisah dan menawarkan koneksi pribadi kepada konsumen mereka.
Lampiran layanan: Gunakan untuk memublikasikan layanan.
Rute berbasis kebijakan: Gunakan untuk meneruskan traffic berdasarkan kebijakan yang Anda buat.
Rute berbasis kebijakan memiliki prioritas lebih tinggi daripada rute statis.
VPC Bersama: Digunakan untuk berbagi jaringan VPC dengan project lain dan mengontrol aktivitas berbagi tersebut. Di API, ubah setelan ini menggunakan resource projects.
[[["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-08-19 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)"]]