List Jar Packages
Interface Overview
Query the custom jar package list under the specified DataJob.
Interface Address
/cloudcanal/console/api/v1/openapi/jarpackage/list
Request Manner
POST
Request Parameters
| ParameterName | Parameter Description | RequestType | Whether Required | DataType |
|---|---|---|---|---|
| dataJobId | DataJob ID | Body | True | long |
Public Response Results
| ParameterName | Parameter Description | Type(Java) | NotNull |
|---|---|---|---|
| code | 1: Success, others: Failure | string | True |
| data | Jar package list | object | False |
| msg | Response message | string | False |
| requestId | Request ID | string | True |
信息
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 is an array. Each element is a jar package with the following fields:
| ParameterName | Parameter Description | Type(Java) | NotNull |
|---|---|---|---|
| id | Jar package ID | long | True |
| gmtCreate | Creation time | string | True |
| gmtModified | Modification time | string | True |
| fileName | Jar package file name | string | True |
| md5 | MD5 of the jar package file (uppercase) | string | True |
| pkgInstanceName | Jar package instance name | string | True |
| description | Jar package description | string | False |
| dataJobId | ID of the owning DataJob | long | True |
| uploadUserName | User name of the uploader; SYSTEM if the user does not exist | string | True |
| active | Whether the package is activated | boolean | True |
| fileSizeMb | Package size in MB (integer, 0 when less than 1 MB) | long | False |
信息
An empty array is returned when the DataJob has no jar package. This is not an error.
Response Example
{
"requestId": "9181193f-2be3-11ec-b616-231d2f6b0021",
"code": "1",
"msg": "request success",
"data": [
{
"id": 9,
"gmtCreate": "2026-11-23T17:12:45",
"gmtModified": "2026-11-23T17:12:45",
"fileName": "test-pkg.jar",
"md5": "E520E394D89922A259C213867FC31E3B",
"pkgInstanceName": "pkgk2xt7b9c7l",
"description": "test package",
"dataJobId": 1,
"uploadUserName": "Trial",
"active": true,
"fileSizeMb": 0
}
]
}