批量导出任务信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ClusterId | string | 是 | 集群 ID。 | xxljob-b6ec1xxxx |
AppName | string | 是 | 应用名称。 | test-app |
JobIds | array | 否 | ||
long | 否 | 任务 ID。 | 74 | |
ExportJobType | integer | 否 | 导出任务类型,默认值为 1。 | 1 |
返回参数
示例
正常返回示例
JSON
格式
{
"kind": "SchedulerXJobs",
"type": "JSON",
"version": 2,
"content": [
{
"appName": "test-app",
"groupId": "test-app",
"description": "测试应用",
"jobConfigInfo": [
{
"jobHandler": "jobDemoHandler",
"dataOffset": 0,
"executeMode": "standalone",
"monitorConfigInfo": {
"alarmType": "CustomContacts",
"failLimitTimes": 1,
"failEnable": true,
"failRate": 100,
"timeoutKillEnable": false,
"missWorkerEnable": false,
"sendChannel": "webhook,mail",
"timeoutEnable": true,
"timeout": 300,
"daysOfDeadline": 0,
"successNotice": false
},
"attemptInterval": 30,
"cleanMode": {
"cleanMode": "NUM_ONLY",
"totalRemain": 300
},
"description": "",
"routeStrategy": 1,
"userName": 1827811800526502,
"userId": 1827811800526502,
"content": {
"jobHandler": "helloworld"
},
"maxConcurrency": 1,
"maxAttempt": 0,
"name": "指定IP测试",
"xattrs": "",
"jobType": "xxljob",
"contentType": 1,
"parameters": 123,
"timeConfig": {
"dataOffset": 0,
"timeType": 1,
"paramMap": {},
"timeExpression": "0 * * * * ?"
},
"contactInfoList": [
{
"name": "xiaoming",
"contactType": 1
}
],
"status": 1
}
]
}
]
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidParameter | Parameter error: %s. | 参数错误: %s |
401 | IllegalRequest | IllegalRequest: %s. | 非法请求:%s |
403 | NoPermission | No permission to perform this operation: %s. | 没有权限去执行该操作:%s |
404 | NotFound | Not found: %s. | 资源不存在:%s |
500 | InternalError | InternalError: %s. | 系统内部错误:%s |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史