Batch Exporting Jobs

Function

This API is used to batch export jobs, including job dependency scripts and CDM job definitions.

URI

Request Parameters

Table 2 Request header parameter

Parameter

Mandatory

Type

Description

workspace

No

String

Workspace ID.

  • If this parameter is not set, data in the default workspace is queried by default.
  • To query data in other workspaces, this header must be carried.
Table 3 Parameters

Parameter

Mandatory

Type

Description

jobList

Yes

List

A list of jobs to be exported. A maximum of 100 jobs can be exported at a time.

exportDepend

No

boolean

Specifies whether to export the scripts and resources that the job depends on.

Default value: true

Response Parameters

The response message of batch exporting jobs is the same as that of exporting jobs. For details, see Response Parameters.

Example Request

Export two jobs named job_batch and job_stream, respectively. Scripts and resources on which the job depends are exported by default.
POST /v1/b384b9e9ab9b4ee8994c8633aabc9505/jobs/batch-export
{
   "jobList":["job_batch","job_stream"],
   "exportDepend":true
}

Example Response