The connection management capability is provided by Management Center. APIs of Management Center are recommended.
This API is used to query a connection list.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain a project ID, see Project ID and Account ID. |
offset |
No |
Integer |
The value is no less than 0. The default value is 0. |
limit |
No |
Integer |
The maximum number of records on each page. Value range: 1 to 100 Default value: 10 |
connectionName |
No |
String |
Name of a connection. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
workspace |
No |
String |
Workspace ID.
|
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
total |
Yes |
Integer |
The total number of connections. |
connections |
Yes |
List<Connections> |
Connection list. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
Connection name. The name contains a maximum of 100 characters, including only letters, numbers, hyphens (-), and underscores (_). The connection name must be unique. |
type |
Yes |
String |
Connection type.
|
config |
No |
Map<String,String> |
Connection configuration item. The configuration item varies with the connection type. You do not need to set the config parameter for DLI connections. For other types of connections, see the description of connection configuration items. |
description |
No |
String |
Description of the connection. The description contains a maximum of 255 characters. |
GET /v1/b384b9e9ab9b4ee8994c8633aabc9505/connections
{ "total":1, "connections":[ { "name":"connection1", "type":"DWS", "config":{ "clusterName":"test", "userName":"dbadmin", "password":"*********", "kmsKey":"cdm-dlf", "agentName":"cdm-donotdelete", "sslEnable":false } } ] }
{ "error_code":"DLF.3051", "error_msg":"The request parameter is invalid." }