ExportJobs - 批量导出任务

批量导出任务信息。

调试

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

授权信息

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

请求参数

名称类型必填描述示例值
ClusterIdstring

集群 ID。

xxljob-b6ec1xxxx
AppNamestring

应用名称。

test-app
JobIdsarray
long

任务 ID。

74
ExportJobTypeinteger

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

1

返回参数

名称类型描述示例值
byte

返回内容。

{ "kind": "SchedulerXJobs", "type": "JSON", "version": "2.0", "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 } ] } ] }

示例

正常返回示例

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错误码错误信息描述
400InvalidParameterParameter error: %s.参数错误: %s
401IllegalRequestIllegalRequest: %s.非法请求:%s
403NoPermissionNo permission to perform this operation: %s.没有权限去执行该操作:%s
404NotFoundNot found: %s.资源不存在:%s
500InternalErrorInternalError: %s.系统内部错误:%s

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

变更历史

变更时间变更内容概要操作
暂无变更历史