find_instance_by_ip
Locate a database instance by internal VIP address and region, returning InstanceId, Name, and DbType across TDSQL-C and TDSQL databases.
Instructions
Find a database instance by its internal Vip (proxy IP). Searches both TDSQL-C (CynosDB) and TDSQL (DCDB) instances.
Typical workflow:
Read the JDBC URL from your config file (e.g. 10.0.0.1:3306)
Call find_instance_by_ip("10.0.0.1", region="ap-guangzhou") to get the InstanceId
Call login_instance with the InstanceId (use the DbType from results, and match region_id)
Call execute_select
Args: ip: Internal Vip address, e.g. "10.0.0.1" region: Tencent Cloud region string, e.g. "ap-shanghai" (default), "ap-beijing", "ap-guangzhou". Must match the region where your cluster is deployed.
Returns: Matching instance info (InstanceId, Name, Vip, DbType) or "not found".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | ||
| region | No | ap-shanghai |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |