dws__CreateDataSource
Creates a data source for a Huawei Cloud DWS cluster using connection details, type, and credentials, enabling the cluster to connect to external databases for data loading and queries.
Instructions
[DWS] 该接口用于创建一个数据源。
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": {
"cluster_id": "<cluster_id>",
"data_source_name": "<data_source_name>",
"project_id": "<project_id>",
"type": "<type>",
"user_name": "<user_name>"
},
"name": "dws__CreateDataSource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | 类型 | |
| reboot | No | 重启 | |
| user_pwd | No | 密码 | |
| user_name | Yes | 用户名 | |
| cluster_id | Yes | **参数解释**: | |
| project_id | Yes | **参数解释**: | |
| description | No | 描述 | |
| connect_info | No | 数据库 | |
| data_source_id | No | 数据源id | |
| data_source_name | Yes | 数据源名称 |