drs__ListConnections
Lists Data Replication Service connections and filters them by database type, name, IP, instance ID, or creation time to locate target connections.
Instructions
[DRS] 查询连接列表,可根据连接类型进行查询。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>"
},
"name": "drs__ListConnections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | 连接IP。 | |
| name | No | 连接名称,忽略大小写。 | |
| limit | No | 查询返回记录的数量限制,默认值为10。 | |
| offset | No | 偏移量,默认值为0,表示查询该偏移量后面的记录。 | |
| db_type | No | 连接类型。 | |
| inst_id | No | 云上数据库实例ID。 | |
| sort_dir | No | 降序或升序(分别对应desc和asc,默认为“desc”)。 | |
| sort_key | No | 返回结果按该关键字排序,默认为“created_at”。 | |
| fetch_all | No | 值为“true”时会使得offset和limit参数失效并返回所有记录。 | |
| project_id | Yes | 租户在某一Region下的Project ID。 获取方法请参见[获取项目ID。](https://support.huaweicloud.com/api-drs/drs_api_0106.html) | |
| create_time | No | 时间区间用“,”分割。示例:2024-05-17T07:46:00.414Z,2024-05-20T07:46:00.999Z。 | |
| description | No | 连接描述。 | |
| connection_id | No | 连接ID。 | |
| enterprise_project_id | No | 企业项目ID。 |