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
| ParameterName | Parameter Description | RequestType | Whether Required | DataType |
|---|---|---|---|---|
| dataJobId | DataJob ID | Body | True | long |
| activePkgId | ID of the jar package to activate | Body | True | long |
Public Response Results
| ParameterName | Parameter Description | Type(Java) | NotNull |
|---|---|---|---|
| code | 1: Success, others: Failure | string | True |
| data | Fixed value success | string | False |
| msg | Response message | string | False |
| requestId | Request ID | string | True |
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.
| ParameterName | Parameter Description | Type(Java) | NotNull |
|---|---|---|---|
| data | Fixed value success | string | True |
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"
}