Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite erfahren Sie, wie Sie eine Konfiguration für private Verbindungen erstellen.
Dieser Konfigurationstyp enthält Informationen, die Datastream für die Kommunikation mit einer Datenquelle über ein privates Netzwerk (intern inGoogle Cloudoder mit externen Quellen, die über VPN oder Interconnect verbunden sind) verwendet. Diese Kommunikation erfolgt über eine Verbindung mit einer Private Service Connect-Schnittstelle oder eine VPC-Peering-Verbindung (Virtual Private Cloud).
Bei einer Verbindung über eine Private Service Connect-Schnittstelle wird eine VM mit einer Netzwerkschnittstelle verwendet, die von Datastream erstellt wird.
Die Netzwerkschnittstelle wird dann über den von Ihnen angegebenen Netzwerkanhang mit Ihrem VPC-Netzwerk verbunden. Die IP-Adresse wird aus dem Subnetz des Netzwerkanhangs zugewiesen.
Eine VPC-Peering-Verbindung ist eine Netzwerkverbindung zwischen zwei VPCs, mit der Sie Traffic mithilfe interner, privater IPv4-Adressen zwischen ihnen weiterleiten können. Sie müssen die privaten IP-Adressen angeben, wenn Sie die Konfiguration für die private Verbindung einrichten, da Datastream die DNS-Auflösung (Domain Name System) in privaten Verbindungen nicht unterstützt.
Hinweise
Bevor Sie Ihre Konfiguration für private Verbindungen erstellen, sollten Sie die Voraussetzungen prüfen:
Verwenden Sie die folgende Tabelle, um die Felder im Abschnitt Private Verbindung konfigurieren der Seite Konfiguration für private Verbindungen erstellen auszufüllen:
Feld
Beschreibung
Konfigurationsname
Geben Sie den Anzeigenamen der Konfiguration für private Verbindungen ein.
Konfigurations-ID
Datastream füllt dieses Feld automatisch basierend auf dem von Ihnen eingegebenen Konfigurationsnamen aus. Sie können die automatisch generierte ID beibehalten oder ändern.
Region
Wählen Sie die Region aus, in der die Konfiguration für private Verbindungen gespeichert ist.
Wählen Sie im Bereich Verbindung einrichten im Drop-down-Menü Methode für private Verbindung eine Option aus:
PSC-Schnittstellen: Wählen Sie diese Option aus, um die Private Service Connect-Schnittstelle als Methode für die private Verbindung zu verwenden:
Feld
Beschreibung
Projekt-ID
Wählen Sie die Kennung des Projekts aus, in dem sich die Netzwerkverbindung befindet, die Sie verwenden möchten. Standardmäßig ist dies Ihr aktuelles Projekt. Wenn Sie den Wert ändern möchten, klicken Sie auf Ändern und wählen Sie ein anderes Projekt aus.
Netzwerkanhang
Wählen Sie den Netzwerkanhang aus, den Sie für Ihre VPC erstellt haben.
Zulassungsliste aktualisieren
Klicken Sie auf diese Schaltfläche, um Verbindungen von den Datastream-IP-Adressen zuzulassen. Sie benötigen die Rolle compute.networkAdmin, um eine Verbindung zum Netzwerk-Attachment herzustellen.
VPC-Peering: Wählen Sie diese Option aus, um VPC-Peering als private Verbindungsmethode zu verwenden:
Feld
Beschreibung
Autorisiertes VPC-Netzwerk
Wählen Sie das von Ihnen erstellte VPC-Netzwerk aus.
IP-Bereich zuweisen
Geben Sie einen verfügbaren IP-Bereich im VPC-Netzwerk ein.
[[["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: 2025-09-04 (UTC)."],[[["\u003cp\u003ePrivate connectivity configurations enable Datastream to communicate with data sources over a private network via a Virtual Private Cloud (VPC) peering connection.\u003c/p\u003e\n"],["\u003cp\u003eCreating a private connectivity configuration requires a VPC network that can peer with Datastream's private network and an available IP range (with a /29 CIDR block) within the VPC.\u003c/p\u003e\n"],["\u003cp\u003eDatastream does not support DNS resolution in private connections, so private IP addresses must be provided when setting up the configuration.\u003c/p\u003e\n"],["\u003cp\u003eIf using a Shared VPC, the Datastream service account needs \u003ccode\u003ecompute.networkAdmin\u003c/code\u003e IAM role permission in the host project, and the service project must have the Datastream API enabled.\u003c/p\u003e\n"],["\u003cp\u003eUnused private connectivity configurations are automatically deleted after six consecutive months of inactivity, so they need to be used in an active connection profile to be retained.\u003c/p\u003e\n"]]],[],null,["# Create a private connectivity configuration\n\nIn this page, you learn how to create a private connectivity configuration.\nThis type of configuration contains information that Datastream uses to\ncommunicate with a data source over a private network (internally within\nGoogle Cloud, or with external sources connected over VPN or\nInterconnect). This communication happens through a\n*Private Service Connect interface* connection or a\n*Virtual Private Cloud (VPC) peering* connection.\n\nA **Private Service Connect interface** connection uses a virtual\nmachine (VM) with a network interface that Datastream creates.\nThe network interface then connects to your VPC network using the network\nattachment that you supply, with the IP address assigned from the network\nattachment subnetwork.\n\nA **VPC peering** connection is a networking connection between two VPCs that\nlets you route traffic between them using internal, private IPv4 addresses. You\nneed to provide the private IP addresses when setting up the private connectivity\nconfiguration because Datastream doesn't support Domain Name System\n(DNS) resolution in private connections.\n| Datastream automatically deletes private connectivity configurations that haven't been used for a period of six consecutive months. To retain your private connectivity configurations, make sure they are used in at least one active connection profile.\n\nBefore you begin\n----------------\n\nBefore you create your private connectivity configuration, review the\nprerequisites:\n\n- For VPC peering, see [VPC peering prerequisites](/datastream/docs/vpc-peering#vpc-prereqs).\n- For Shared VPC, see [Shared VPC prerequisites](/datastream/docs/vpc-peering#shared-vpc).\n- For Private Service Connect interfaces, see [Private Service Connect prerequisites](/datastream/docs/psc-interfaces#psci-prereqs).\n\nCreate the configuration\n------------------------\n\nTo create a private connectivity configuration, perform the following steps:\n\n1. Go to the **Private connectivity configurations** page in the Google Cloud console.\n\n [Go to the Private connectivity configurations page](https://console.cloud.google.com/datastream/private-connections)\n2. Click **Create configuration**.\n\n3. Use the following table to populate the fields of the\n **Configure private connectivity** section of the\n **Create private connectivity configuration** page:\n\n4. In the **Set up connection** section, select an option from the\n **Private connectivity method** drop-down:\n\n - **PSC interfaces** : select this option to use Private Service Connect interface as your private connectivity method:\n\n - **VPC peering** : select this option to use VPC peering as your private connectivity method:\n\n5. Click **CREATE**.\n\n | It takes a few minutes for your private connectivity configuration to be created. Background resources need to be created so that the configuration can be created.\n\nAfter creating a private connectivity configuration, you can\n[view high-level and detailed information](/datastream/docs/view-a-private-connectivity-configuration)\nabout it.\n\nWhat's next\n-----------\n\n- Learn how to [view your private connectivity configuration](/datastream/docs/create-a-private-connectivity-configuration).\n- Find out how to [delete a private connectivity configuration](/datastream/docs/delete-a-private-connectivity-configuration).\n- Learn about the [Private Service Connect interfaces](/datastream/docs/psc-interfaces) private connectivity method.\n- Learn about the [VPC peering](/datastream/docs/vpc-peering) private connectivity method."]]