Skip to main content

Connect DataSource

Interface Overview

Link the data source to confirm the connectivity between the selected cluster machine and the datasource.

Interface Address

/cloudcanal/console/api/v1/openapi/datasource/connectds

Request Manner

POST

Request Parameters

ParameterNameParameter DescriptionRequestTypeWhether RequiredDataType
clusterIdCluster ID for connecting to the data sourceBodyTrueLong
dataSourceIdTarget data source IDBodyTrueLong
hostTypeSelected network type for the data source

PRIVATE (intranet)
PUBLIC (public network)
BodyTrueString

Public Response Results

ParameterNameParameter DescriptionType(Java)NotNull
code1: Success
0: Failure
StringTrue
dataObjectFalse
msgStringFalse
requestIdStringTrue

Response Example

{
"requestId": "4f9f0b23-2b4a-11ec-8c7e-d98fc83f029e",
"code": "1",
"msg": "request success",
"data": []
}