Manage data sources
A data source is a database instance registered in Agent Data Gateway. You must register a database in Agent Data Gateway before agents can securely access its data through the gateway. This topic describes how to register, view, edit, and delete data sources.
Prerequisites
Your account has been granted access to the Agent Data Gateway invitational preview.
Register a data source
-
Log on to the AI-Native Database Service console.
-
In the left-side navigation pane, click Data Gateway to go to the Agent Gateway console.
-
In the left-side navigation pane of the console, click Data Sources.
-
On the Data Sources page, click Add Data Source.
-
In the Add Data Source dialog box, configure the basic parameters.
Parameter
Description
Database Type
Select a database type, such as MySQL.
Cross-Account Access
Turn on this switch if the database instance belongs to a different Alibaba Cloud account. This switch is turned off by default.
Registration Method
Select a method to register the data source:
-
Instance ID: Select an instance from the list of ApsaraDB instances under the current account.
-
Connection String: Manually enter the database endpoint and port number.
Select Instance
If you set Registration Method to Instance ID, select the target ApsaraDB instance from the drop-down list.
Connection String
If you set Registration Method to Connection String, enter the database endpoint and port number. Example:
rm-xxxxxx.mysql.rds.aliyuncs.com:3306.Database Account
Enter the username of the database account.
Database Password
Enter the password of the database account.
-
-
(Optional) Click Advanced Settings to expand the advanced configuration section.
Parameter
Description
Environment Type
Select the environment type of the data source.
Instance Name
Select Auto Sync to synchronize the instance name from the ApsaraDB instance, or select Manual Input to specify a custom instance name.
Catalog Name
Specify a custom catalog name. Only lowercase letters and underscores (_) are supported.
Enable SSL
Turn on this switch to enable SSL-encrypted connections. This switch is turned off by default.
-
(Optional) Click Test Connection to verify that the data source connection works properly.
-
Click Submit.
View data sources
The Data Sources page displays all registered data sources in a list with the following columns:
|
Column |
Description |
|
Instance Address |
The endpoint and port number of the database instance. |
|
Instance Name |
The name of the database instance. |
|
Catalog Name |
The catalog identifier of the data source in the gateway. |
|
Status |
The connection status of the data source. |
|
Environment |
The environment type of the data source. |
|
Database Type |
The database engine type of the data source, such as MySQL. |
You can enter a keyword in the search box to search for data sources, or click Filter to filter the data source list by specific criteria.
Edit a data source
In the Actions column of the data source that you want to edit, click the
icon. On the Edit Data Source page, modify the configuration of the data source. The parameters are the same as those used to register a data source.
View data source details
In the Actions column of the data source that you want to view, click the
icon. On the details page, view the complete configuration and connection status of the data source.
Delete a data source
In the Actions column of the data source that you want to delete, click the
icon. In the dialog box that appears, click OK to delete the data source.
Deleting a data source does not delete the database instance or its data. However, after the data source is deleted, agents can no longer access it through Agent Data Gateway. Proceed with caution.