Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
APIs und Referenzen
Auf dieser Seite werden Google Cloud CLI-Befehle und APIs beschrieben, die mit VPC-Netzwerken (Virtual Private Cloud) verwendet werden können.
Die meisten gcloud-Kommandozeilenbefehle und -APIs sind Teil von Compute Engine. Für einige Dienste auf dieser Seite werden jedoch gcloud-Befehle oder APIs verwendet, die nicht zur Compute Engine gehören, z. B. serverloser VPC-Zugriff und richtlinienbasierte Routen.
gcloud CLI- und API-Referenzen
Die im Folgenden aufgeführten Ressourcen und ihre Methoden stehen für das Arbeiten mit VPC-Netzwerken zur Verfügung.
Adressen: Zum Erstellen interner und externer IP-Adressressourcen, zum Zuweisen dieser Adressressourcen zu Google Cloud-Ressourcen und zum Ändern von Adressressourcen.
Firewallregeln: Zum Erstellen und Ändern von Firewallregeln in Ihrem Google Cloud VPC-Netzwerk. Mit Firewallregeln können Sie Traffic zu oder von VM-Instanzen anhand von IP-Adressen, Protokollen und Ports zulassen oder ablehnen.
Weiterleitungsregeln: Wird zum Erstellen und Ändern von Weiterleitungsregeln in Ihrem VPC-Netzwerk verwendet. Weiterleitungsregeln steuern innerhalb des Netzwerks, wohin ihnen entsprechende Pakete gesendet werden sollen, die im Netzwerk eingehen oder es durchlaufen.
Backends: Wird verwendet, um eine Verbindung zu unterstützten verwalteten Diensten über einen Load-Balancer herzustellen.
Backends verwenden Cloud Load Balancing-Ressourcen. Weitere Informationen finden Sie in den Cloud Load-Balancing API- und gcloud-Referenzen.
Netzwerkanhänge: Wird verwendet, damit Dienstersteller-VPC-Netzwerke Verbindungen zu Nutzernetzwerken initiieren.
Richtlinien für Dienstverbindungen: Mit diesen Richtlinien können Sie die Bereitstellung und Konnektivität für berechtigte verwaltete Dienstinstanzen automatisieren.
Ressourcen für Dienstersteller: Wird zum Hosten verwalteter Dienste in ihren eigenen separaten VPC-Netzwerken verwendet und ihren Nutzern eine private Verbindung bieten.
Routen: Wird zum Erstellen und Ändern von VPC-Netzwerkrouten verwendet.
Statische Routen: Hiermit können Sie manuell Anweisungen für das VPC-Netzwerk konfigurieren, wie Traffic weitergeleitet werden soll, der VM-Instanzen verlässt.
Richtlinienbasierte Routen: Verwenden Sie diese Option, um Traffic basierend auf den von Ihnen erstellten Richtlinien weiterzuleiten.
Richtlinienbasierte Routen haben eine höhere Priorität als statische Routen.
Freigegebene VPC: Wird zur Freigabe eines VPC-Netzwerkes für andere Projekte und zur Steuerung dieser Freigabe verwendet. Ändern Sie diese Einstellungen in der API mithilfe der Ressource projects.
VPC-Fluss-Logs: Mit diesen Logs können Sie VPC-Netzwerke überwachen und die Netzwerknutzung analysieren. Konfigurieren Sie in der gcloud CLI und API VPC-Traffic-Logs mithilfe der Befehlsgruppe bzw. Ressource subnets.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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)"]]