Skip to main content

DataSource Position Type

Interface Overview

Gets the data source site type for presentation

Interface Address

/cloudcanal/console/api/v1/openapi/constant/dspostypes

Request Manner

POST

Request Parameters

ParameterNameParameter DescriptionRequestTypeWhether RequiredDataType
dsTypeData source type, obtained through Get Source Data Source TypeBodyTrueString

Public Response Results

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

Data Parameters

The data is an array of strings whose values represent the site type of the data source

Response Example``

{
"requestId": "4a178313-2be6-11ec-b616-93507033b0a3",
"code": "1",
"msg": "request success",
"data": [
"MYSQL_LOG_FILE_POS",
"MYSQL_GTID_POS",
"MYSQL_TIMESTAMP_POS"
]
}