Test data source connectivity skill

Updated at:

You can use natural language commands to instruct code agents, such as Qoder and CodeX, to test the connectivity of a data source connection configuration without creating the data source. This topic describes the features, prerequisites, example usage, and expected results of this skill. An appendix provides a list of input information for your reference.

Overview

The data source connectivity testing skill lets you use natural language commands to test if a connection configuration is reachable before creating the data source. The test is a read-only probe and does not create or modify any data source. This skill is often used for pre-checks before data source creation, for validation after a password change, and for connectivity troubleshooting without creating a data source.

Use cases:

  • Before creating a data source, verify that configuration details such as the endpoint, account, and password are correct.

  • After changing the password for an existing data source, verify the connection.

  • Perform ad hoc connectivity checks without creating a data source.

Note

Limitations: This skill performs a read-only probe and does not create or modify any data source. The connection configuration contains the account and password for the target database. To prevent accidental connections to a production database, ensure that this information is correct. A successful connectivity test does not guarantee that data source creation will succeed, as creation also requires name uniqueness and permission checks. For databases in an on-premises deployment, you must add the Dataphin egress IP to the target database's allowlist to avoid connection timeouts.

Prerequisites

  • Your account has the necessary permissions to test data source connectivity.

  • You have the connection information for the target data source, including the data source type, endpoint, account, and password.

Example usage

You can describe your request to the code agent in natural language. The following are example commands:

  • Test the connectivity of this MySQL data source.

  • Verify this connection configuration before creating the data source.

  • Confirm if a data source is still connectable after a password change.

Interaction steps:

  1. After you issue a test command, the code agent prompts you to confirm the target tenant, data source type, and connection parameters, such as the endpoint, account, and password.

  2. Because the configuration includes credentials for the target database, the code agent requires confirmation to prevent accidental connections to a production database. After you confirm, the agent initiates a read-only probe.

  3. After the test, the code agent reports whether the connection was successful. If the connection fails, it usually provides troubleshooting suggestions based on the returned information, such as authentication failure, an allowlist issue, or a network unreachable error.

Execution results

After the operation completes, you receive the following results:

  • Returned content: The connectivity result for the data source connection configuration. If the connection fails, an error message is typically included.

  • Completion status: A successful response indicates that the connectivity test is complete. No data source is created or modified.

  • Viewing and verification: Use the returned result to determine if the configuration is valid. After a successful test, you can use the create data source skill to create the data source.

Note

This skill performs a read-only probe and does not create or modify any data source. The connectivity result is based on the output from the command.

Appendix: Input information

The following table lists the information that may be required to test data source connectivity. This list is for reference only. The code agent automatically identifies the necessary information from your command and prompts you if any details are missing. You do not need to provide system-generated items.

Parameter

Required

Description

Example

Tenant ID

Yes

The 19-digit ID of the target Dataphin tenant.

1234567890123456789

Data source type

Yes

The enumeration of the data source type to test, in uppercase. The required connection parameters vary by data source type.

MYSQL, MaxCompute

Connection parameters

Yes

Connection details for the target database, such as the endpoint, account, and password. The required items vary by data source type.

jdbc:mysql://host:port/db