批量导入任务。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ClusterId | string | 是 | 集群 ID | xxljob-b6ec1xxxx |
Overwrite | boolean | 否 | 如果已存在,是否覆盖。
默认值为 true | true |
Content | string | 否 | 导入内容 | { "kind": "SchedulerXJobs", "type": "JSON", "version": "2.0", "content": [ { "appName": "xxl-job-executor-perf-test-xx", "groupId": "xxl-job-executor-perf-test-xx", "description": "xxl-job-executor-xx", "jobConfigInfo": [ { "jobHandler": "testJobVoidHandler", "dataOffset": 0, "executeMode": "standalone", "monitorConfigInfo": { "alarmType": "CustomContacts", "failLimitTimes": 1, "failEnable": true, "failRate": 100, "timeoutKillEnable": false, "missWorkerEnable": false, "sendChannel": "webhook", "timeoutEnable": true, "timeout": 7200, "daysOfDeadline": 0, "successNotice": false }, "attemptInterval": 30, "cleanMode": "{\"cleanMode\":\"NUM_ONLY\",\"totalRemain\":300}", "description": "", "routeStrategy": 1, "userName": "xx", "userId": "xx", "content": "{\"jobHandler\":\"testJobVoidHandler\"}", "maxConcurrency": 1, "maxAttempt": 0, "name": "perf_auto_test_0", "xattrs": "", "jobType": "xxljob", "contentType": 1, "parameters": "success-withMsg", "timeConfig": { "calendar": "", "dataOffset": 0, "timeType": 1, "paramMap": {}, "timeExpression": "* * * * * ?" }, "contactInfoList": [], "status": 0 } ] } ] } |
AutoCreateApp | boolean | 否 | 自动创建应用 | true |
返回参数
示例
正常返回示例
JSON
格式
{
"Code": 200,
"RequestId": "9A48E22F-F30A-5CE5-AC7A-E0FED1B6942E",
"Message": "Parameter check error",
"Success": true
}
错误码
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 |
访问错误中心查看更多错误码。