drs__CreateConnection
Creates a single DRS connection to an on-premises or cloud database such as MySQL, PostgreSQL, Oracle, or MongoDB for replication and migration setup.
Instructions
[DRS] 创建单个连接,该连接可以为线下自建库或云上RDS等,目前支持的数据库引擎包括MySQL、PostgreSQL、Oracle和MongoDB。
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": {
"db_type": "<db_type>",
"endpoint": "<endpoint>",
"name": "<name>",
"project_id": "<project_id>"
},
"name": "drs__CreateConnection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ssl | No | 数据库SSL证书信息。 | |
| vpc | No | 数据库实例所在VPC,子网,安全组等信息。 | |
| name | Yes | 连接名称。 约束:连接名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。 | |
| cloud | No | 数据库实例所在Region,项目等信息。 | |
| config | No | 连接配置,不同类型的连接配置不同。 | |
| db_type | Yes | 连接类型,包含: | |
| endpoint | Yes | 数据库基本信息体。 | |
| project_id | Yes | 租户在某一Region下的Project ID。 获取方法请参见[获取项目ID。](https://support.huaweicloud.com/api-drs/drs_api_0106.html) | |
| description | No | 描述,长度不能超过255个字符。 | |
| enterprise_project_id | No | 企业项目ID。 |