Batch Exporting Jobs
Function
This API is used to batch export jobs, including job dependency scripts and CDM job definitions.
URI
- Parameter description
Table 1 URI parameter description Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.
Request Message
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| workspace | No | String | Workspace ID.
|
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| jobList | Yes | List data structure | 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 Message
The response message of batch exporting jobs is the same as that of exporting jobs. For details, see Response Message.
Example
Export two jobs named job_batch and job_stream.
- Request
POST /v1/b384b9e9ab9b4ee8994c8633aabc9505/jobs/batch-export { "jobList":["job_batch","job_stream"], "exportDepend":true }
- Success response
The name of the exported file is jobs.zip. The file structure after decompression is as follows:
jobs +---job_batch | rds_sql.script | job_batch.job \---job_stream job_stream.job
job_batch.job and job_stream.job are job definition files.
dli_sql.script is the DLI SQL script file used by job_batch.job.
Last Article: Exporting a Job
Next Article: Viewing a Job File
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.