ImportJobs_任务调度XXLJOB版 _API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

当前云产品API请求速率暂未透出。

授权信息

当前云产品暂无权限信息透出。

请求参数

字段名称字段详情
ClusterIdstring

集群 ID

示例值:xxljob-b6ec1xxxx
Overwriteboolean

如果已存在,是否覆盖。展开详情

示例值:true
Contentstring

导入内容

示例值:{ "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 } ] } ] }
AutoCreateAppboolean

自动创建应用

示例值:true

返回参数

字段名称字段详情
Codeinteger<int32>

响应码

示例值:200
RequestIdstring

本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。

示例值:9A48E22F-F30A-5CE5-AC7A-E0FED1B6942E
Messagestring

错误信息

示例值:Parameter check error
Successboolean

是否调用成功。展开详情

示例值:true

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidParameter
Parameter error: %s.诊断
401
IllegalRequest
IllegalRequest: %s.诊断
403
NoPermission
No permission to perform this operation: %s.诊断
404
NotFound
Not found: %s.诊断
500
InternalError
InternalError: %s.诊断

变更历史

变更时间变更内容概要操作
2024-11-26
新增OpenAPI,批量导入任务

相关示例

2024年08月20日