Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
APIs e referência
Nesta página, descrevemos os comandos e APIs da CLI do Google Cloud que podem ser usados com redes de nuvem privada virtual (VPC).
A maioria dos comandos e APIs da CLI gcloud de rede faz
parte do Compute Engine. No entanto, alguns serviços nesta página usam comandos ou APIs da gcloud CLI que não fazem parte do Compute Engine, como o acesso VPC sem servidor e as rotas com base na política.
Referências da API e CLI gcloud
Use os recursos abaixo e os respectivos métodos ao trabalhar com redes VPC.
Endereços: use para criar recursos de endereços IP internos e externos, atribuir esses recursos de endereço aos recursos do Google Cloud e modificar recursos de endereço.
Regras de firewall: use para criar e modificar regras de firewall em sua rede VPC do Google Cloud. Com as regras de firewall, é possível permitir ou negar o tráfego de instâncias de máquina virtual (VM) com base em endereços IP, protocolos e portas.
Regras de encaminhamento: use para criar e modificar regras de encaminhamento na sua rede VPC. As regras de encaminhamento dizem à rede para onde enviar os pacotes correspondentes que entram ou passam pela rede.
Back-ends: use para se conectar a serviços gerenciados compatíveis usando um balanceador de carga.
Os back-ends usam os recursos do Cloud Load Balancing. Para mais informações, consulte as referências da gcloud e API Cloud Load Balancing.
Anexos de rede: use para permitir que as redes VPC do produtor de serviços iniciem conexões com as redes do consumidor.
Recursos para produtores de serviços: use para hospedar serviços gerenciados nas próprias redes VPC separadas e oferecer uma conexão particular aos respectivos consumidores.
Rotas com base em políticas: use para encaminhar tráfego com base nas políticas que você criou.
As rotas baseadas na política têm prioridade mais alta do que as rotas estáticas.
VPC compartilhada: use para compartilhar uma rede VPC com outros projetos e controlar esse compartilhamento. Na API, modifique essas configurações usando o recurso projects.
Registros de fluxo de VPC: use para monitorar redes VPC e entender o uso da rede. Na gcloud CLI e API, configure os Registros de fluxo de VPC usando o grupo de comandos e recurso subnets, respectivamente.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2024-12-06 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)"]]