BladePipe 1.13.0: Custom message parsing and faster Binlog processing.
Skip to main content

Activate Jar Package

Interface Overview​

Activate the custom jar package under the specified DataJob.

Interface Address​

/cloudcanal/console/api/v1/openapi/jarpackage/active

Request Manner​

POST

Request Parameters​

ParameterNameParameter DescriptionRequestTypeWhether RequiredDataType
dataJobIdDataJob IDBodyTruelong
activePkgIdID of the jar package to activateBodyTruelong

Public Response Results​

ParameterNameParameter DescriptionType(Java)NotNull
code1: Success, others: FailurestringTrue
dataFixed value successstringFalse
msgResponse messagestringFalse
requestIdRequest IDstringTrue
info

Whether the request succeeds is determined by code: 1 for success, 0001 for a business exception, 0002 for parameter validation failure. See msg for details.

Data Parameter Description​

data returns the fixed string success directly, no nested object.

ParameterNameParameter DescriptionType(Java)NotNull
dataFixed value successstringTrue
info

The jar package to activate must belong to the DataJob specified by dataJobId. Activation deactivates the other jar packages under the same DataJob. Restart the DataJob afterwards so that the package is delivered to the worker nodes and takes effect.

Response Example​

{
"requestId": "9181193f-2be3-11ec-b616-231d2f6b0021",
"code": "1",
"msg": "request success",
"data": "success"
}