If you select the Public IP connection method when creating a data source or a data migration task for Google Cloud, you must first add the data source IP address displayed on the page to the allowlist of the MySQL database instance (including Cloud MySQL and self-managed MySQL), self-managed Oracle database instance, self-managed OceanBase database instance, Kafka instance (including cloud Kafka and self-managed Kafka), PostgreSQL database instance (including Cloud PostgreSQL and self-managed PostgreSQL), and self-managed TiDB database instance. This ensures the data source can access the target.
Obtain the IP address to add to the allowlist
Log in to the OceanBase Cloud console.
Go to the Create Data Source dialog box.
This topic uses the operation on the Create Data Source page as an example. You can also click Data Services > Data Migration > Data Migration to obtain the IP address to add to the allowlist on the Create Migration Task page.
In the left-side navigation pane, click Data Services > Data Sources.
On the Data Source page, click Create Data Source in the upper-right corner and select the type of data source you want to create based on your actual situation.
In the Create Data Source dialog box, set Cloud Vendor to Google Cloud, Connection Type to Public IP, and select the appropriate instance type based on your needs.
Copy the IP address displayed below the Connection Information text box.
Note
The region selected here must match the region where the Google Cloud instance is located.

Add to the allowlist
Log in to the Firewall Policies page of the Google Cloud console.
Click Create Firewall Rule.

In the Create Firewall Rule dialog box, configure the parameters.
For details, see Create a firewall rule. Configure several parameters according to the instructions in the following table.
ParameterDescriptionTraffic Direction Select Inbound. Action on Match Select Allow. Destination Select All Instances in Network. Source filter condition Select IPv4 Range. Source IPv4 Range Enter the IP address copied from the Create Data Source or Data Migration Task page. Protocol and Port If you select Specified Protocol and Port, select the TCP protocol. The default port for a MySQL instance is 3306, and the default port for a Kafka instance is 9092. After configuration, click Create.
