Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
API y referencia
En esta página, se describen los comandos y las APIs de Google Cloud CLI que se pueden usar con redes de nube privada virtual (VPC).
La mayoría de los comandos y las APIs de gcloud CLI de herramientas de redes son parte de Compute Engine. Sin embargo, algunos servicios de esta página usan comandos de gcloud CLI o APIs que no forman parte de Compute Engine, por ejemplo, el Acceso a VPC sin servidores y las rutas basadas en políticas.
CLI de gcloud y referencias de la API
Cuando trabajes con redes de VPC, usa los siguientes recursos y métodos:
Dirección: Úsala para crear recursos de direcciones IP internas y externas, asignarlos a recursos de Google Cloud y modificarlos.
Reglas de firewall: Úsalas para crear y modificar las reglas de firewall en la red de VPC de Google Cloud. Con las reglas de firewall, puedes aceptar o denegar el tráfico hacia o desde las instancias de máquinas virtuales (VM) según las direcciones IP, los puertos y el protocolo.
Reglas de reenvío: Úsalas para crear y modificar reglas de reenvío en la red de VPC. Las reglas de reenvío indican a la red a dónde debe enviar los paquetes coincidentes que ingresan o pasan a través de la red.
Backends: se usa para conectarse a servicios administrados compatibles mediante un balanceador de cargas.
Los backends usan recursos de Cloud Load Balancing. Para obtener más información, consulta la API de Cloud Load Balancing y las referencias de gcloud.
Adjuntos de red: Úsalos para permitir que las redes de VPC del productor de servicios inicien conexiones a redes de VPC del consumidor.
Recursos para productores de servicios: Úsalos para alojar servicios administrados en sus propias redes de VPC independientes y ofrecer una conexión privada a sus consumidores.
Adjuntos de servicio: Úsalos para publicar servicios.
Rutas: Úsalas para crear y modificar rutas estáticas de redes de VPC.
Rutas estáticas: Úsalas para configurar de forma manual las instrucciones en la red de VPC sobre cómo reenviar el tráfico que sale de las instancias de VM.
Rutas basadas en políticas: Úsalas para reenviar el tráfico según las políticas que crees.
Las rutas basadas en políticas tienen mayor prioridad que las estáticas.
VPC compartida: Úsala para compartir una red de VPC con otros proyectos y controlar ese uso compartido. En la API, modifica esta configuración mediante el recurso projects.
Registros de flujo de VPC: Úsalos para supervisar redes de VPC y obtener información sobre el uso de la red. En gcloud CLI y en la API, configura los registros de flujo de VPC mediante el grupo de comandos subnets y el recurso, respectivamente.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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)"]]