ExportJobs - 批量导出任务

更新时间:
复制为 MD 格式

批量导出任务信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

ClusterId

string

集群 ID。

xxljob-b6ec1xxxx

AppName

string

应用名称。

test-app

JobIds

array

任务 ID 列表。

integer

任务 ID。

74

ExportJobType

integer

导出任务类型,默认值为 1。

1

返回参数

名称

类型

描述

示例值

string

返回内容。

{ "kind": "SchedulerXJobs", "type": "JSON", "version": "2.0", "content": [ { "appName": "test-app", "groupId": "test-app", "description": "Test App", "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": "Specified IP test", "xattrs": "", "jobType": "xxljob", "contentType": 1, "parameters": "123", "timeConfig": { "dataOffset": 0, "timeType": 1, "paramMap": { }, "timeExpression": "0 * * * * ?" }, "contactInfoList": [ { "name": "xiaoming", "contactType": 1 } ], "status": 1 } ] } ] }

示例

正常返回示例

JSON格式

"{\n  \"kind\": \"SchedulerXJobs\",\n  \"type\": \"JSON\",\n  \"version\": \"2.0\",\n  \"content\": [\n    {\n      \"appName\": \"test-app\",\n      \"groupId\": \"test-app\",\n      \"description\": \"Test App\",\n      \"jobConfigInfo\": [\n        {\n          \"jobHandler\": \"jobDemoHandler\",\n          \"dataOffset\": 0,\n          \"executeMode\": \"standalone\",\n          \"monitorConfigInfo\": {\n            \"alarmType\": \"CustomContacts\",\n            \"failLimitTimes\": 1,\n            \"failEnable\": true,\n            \"failRate\": 100,\n            \"timeoutKillEnable\": false,\n            \"missWorkerEnable\": false,\n            \"sendChannel\": \"webhook,mail\",\n            \"timeoutEnable\": true,\n            \"timeout\": 300,\n            \"daysOfDeadline\": 0,\n            \"successNotice\": false\n          },\n          \"attemptInterval\": 30,\n          \"cleanMode\": \"{\\\"cleanMode\\\":\\\"NUM_ONLY\\\",\\\"totalRemain\\\":300}\",\n          \"description\": \"\",\n          \"routeStrategy\": 1,\n          \"userName\": \"1827811800526502\",\n          \"userId\": \"1827811800526502\",\n          \"content\": \"{\\\"jobHandler\\\":\\\"helloworld\\\"}\",\n          \"maxConcurrency\": 1,\n          \"maxAttempt\": 0,\n          \"name\": \"Specified IP test\",\n          \"xattrs\": \"\",\n          \"jobType\": \"xxljob\",\n          \"contentType\": 1,\n          \"parameters\": \"123\",\n          \"timeConfig\": {\n            \"dataOffset\": 0,\n            \"timeType\": 1,\n            \"paramMap\": {\n              \n            },\n            \"timeExpression\": \"0 * * * * ?\"\n          },\n          \"contactInfoList\": [\n            {\n              \"name\": \"xiaoming\",\n              \"contactType\": 1\n            }\n          ],\n          \"status\": 1\n        }\n      ]\n    }\n  ]\n}\n"

错误码

HTTP status code

错误码

错误信息

描述

400 InvalidParameter Parameter error: %s. 参数错误: %s
401 IllegalRequest IllegalRequest: %s. 非法请求:%s
500 InternalError InternalError: %s. 系统内部错误:%s
403 NoPermission No permission to perform this operation: %s. 没有权限去执行该操作:%s
404 NotFound Not found: %s. 资源不存在:%s

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情