Editing a Connection
Function
This API is used to edit a connection.
- Parameter description
Table 1 URI parameter description Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.
connection_name
Yes
String
Name of the connection.
ischeck
No
String
Indicates whether to perform check. The default value is No.
Request Message
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| workspace | No | String | Workspace ID.
|
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | Yes | String | Name of the connection. It contains a maximum of 100 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed. The connection name must be unique. |
| type | Yes | String | Connection type. The options are as follows:
|
| config | Yes | Map<String,String> | Connection configuration item. The configuration item varies with the connection type. For details, see the description of the connection configuration items. |
| description | No | String | The description contains a maximum of 255 characters. |
Response Message
None.
Example
Modify a connection.
- Request
PUT /v1/b384b9e9ab9b4ee8994c8633aabc9505/connections/connection1?ischeck=true { "name":"connection1", "type":"DWS", "config":{ "clusterName":"test", "userName":"dbadmin", "password":"test1234", "kmsKey":"cdm-dlf", "agentName":"cdm-donotdelete", "sslEnable":false } }
- Success response
- Failure response
{ "error_code":"DLF.6322", "error_msg":"The data connection does not exist." }
Status Codes
For details about status codes, see Status Codes.
Last Article: Viewing Connection Details
Next Article: Deleting a Connection
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.