BladePipe 1.5.0 brings Reverse ETL and powerful new features.
Skip to main content

Update Configuration

Interface Overview

Batch update or insert task kv configuration based on data source id

Interface Address

/cloudcanal/console/api/v1/openapi/datasource/upsertdsconfig

Request Manner

POST

Request Parameters

ParameterNameParameter DescriptionRequestTypeWhether RequiredDataType
dataSourceIdData source IDBodyTrueLong
updateConfigsUpdate configurationBodyFalseMap<String, String>
needCreateConfigsInsert configurationBodyFalseMap<String, String>
{
"dataSourceId": 52,
"updateConfigs": {
"pdHost": "192.168.0.195:3333"
// more configs
},
"needCreateConfigs": {
"test": ""
// more configs
}
}

Public response result

ParameterNameParameter DescriptionType(Java)NotNull
code1: success, 0: failureStringTrue
dataObjectFalse
msgStringFalse
requestIdStringTrue

Response Example

{
"requestId": "8aa8b0f9-dd95-11ed-a147-d7efab8bdcbb",
"taskId": 0,
"workerIdentity": null,
"sendBackToTask": false,
"code": "1",
"msg": "request success",
"data": null,
"success": true,
"fail": false,
"rsocketDirectionType": null
}