批量導入任務。
調試
您可以在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 |
訪問錯誤中心查看更多錯誤碼。