BladePipe 1.6.0 supports Snowflake, Hologres and CloudBerry.
Skip to main content

Query DataJob Creation Detail

Interface Overview

Query the full configuration details used when a task was created, including all configuration parameters. Can be used to duplicate a task or review its configuration.

Interface Address

/cloudcanal/console/api/v1/openapi/datajob/queryjobcreatedetail

Request Manner

POST

Request Parameters

ParameterNameParameter DescriptionRequestTypeWhether RequiredDataType
jobIdDataJob IDbodyTruelong

Public Response Results

ParameterNameParameter DescriptionType(Java)NotNull
code1: Success, 0: FailurestringTrue
dataobjectFalse
msgstringFalse
requestIdstringTrue

Data Parameter Description

Returns the full configuration details used when the task was created.

Basic Configuration

ParameterNameParameter DescriptionNotNullType(Java)
clusterIdID of the cluster running the taskTruelong
srcDsIdSource data source IDTruelong
dstDsIdTarget data source IDTruelong
srcHostTypeSource data source HOST type. Options: PUBLIC, PRIVATETruestring
dstHostTypeTarget data source HOST type. Options: PUBLIC, PRIVATETruestring
specIdSpecification IDTruelong

Schema Configuration

ParameterNameParameter DescriptionNotNullType(Java)
schemaWhiteListLevelSchema whitelist levelFalsestring
srcSchemaSource schema configurationFalsestring
dstSchemaTarget schema configuration (JSON string)Falsestring
mappingDefMapping definition configuration (JSON string)Falsestring
srcCaseSensitiveTypeSource case-sensitive typeFalsestring
dstCaseSensitiveTypeTarget case-sensitive typeFalsestring
srcDsCharsetSource character setFalsestring
tarDsCharsetTarget character setFalsestring
srcSchemaLessFormatSource schema-less value formatFalsestring
dstSchemaLessFormatTarget schema-less value formatFalsestring

Task Configuration

ParameterNameParameter DescriptionNotNullType(Java)
jobTypeTask type. Options: MIGRATION, SYNC, CHECK, REVISE, STRUCT_MIGRATIONTruestring
dataJobDescTask descriptionFalsestring
keyConflictStrategyPrimary key conflict strategy. Options: IGNORE, REPLACE, EXCEPTIONFalsestring
structMigrationWhether to perform structure migrationTrueboolean
initialSyncWhether to initialize historical dataTrueboolean
filterDDLWhether to filter DDLTrueboolean
shortTermSyncWhether to perform short-term synchronizationTrueboolean
shortTermNumDuration of short-term synchronization (days)Falseint

Periodic Task Configuration

ParameterNameParameter DescriptionNotNullType(Java)
autoStartWhether to start automaticallyTrueboolean
checkOnceWhether to perform one-time verificationTrueboolean
checkPeriodWhether to perform periodic verificationTrueboolean
checkPeriodCronExprCronTab expression for periodic verificationFalsestring
fullPeriodWhether to perform periodic full migrationTrueboolean
fullPeriodCronExprCronTab expression for periodic full migrationFalsestring

Response Example

{
"code": "1",
"msg": "request success",
"data": {
"clusterId": 1,
"srcDsId": 156,
"dstDsId": 157,
"srcHostType": "PRIVATE",
"dstHostType": "PUBLIC",
"schemaWhiteListLevel": null,
"srcSchema": "[...]",
"dstSchema": "",
"mappingDef": "[{\"method\":\"DB_DB\",\"serializeMapping\":{},\"serializeAutoGenRules\":{},\"commonGenRule\":\"MIRROR\"},{\"serializeMapping\":{},\"method\":\"TABLE_TABLE\",\"serializeAutoGenRules\":{},\"commonGenRule\":\"TO_LOWER_CASE\"},{\"method\":\"COLUMN_COLUMN\",\"serializeMapping\":{},\"serializeAutoGenRules\":{},\"commonGenRule\":\"MIRROR\"}]",
"srcCaseSensitiveType": "Sensitive",
"dstCaseSensitiveType": "Sensitive",
"srcDsCharset": "utf8mb4",
"tarDsCharset": "utf8mb4",
"keyConflictStrategy": "IGNORE",
"jobType": "SYNC",
"dataJobDesc": "",
"structMigration": false,
"initialSync": true,
"shortTermSync": false,
"shortTermNum": 0,
"filterDDL": false,
"specId": 16,
"autoStart": false,
"checkOnce": false,
"checkPeriod": false,
"checkPeriodCronExpr": null,
"fullPeriod": false,
"fullPeriodCronExpr": null,
"srcSchemaLessFormat": null,
"dstSchemaLessFormat": null
},
"requestId": "0feaab4f-ce6d-11f0-8388-7386474fd961"
}