This API is used to check whether there are jobs and scripts in the job file to be imported from OBS to DLF.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain a project ID, see Project ID and Account ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
path |
No |
String |
If OBS is deployed, the job definition file is stored on OBS, for example, obs://myBucket/jobs.zip. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
jobs |
No |
List<Job> |
Job information. For details, see Table 4. |
scripts |
No |
List<Script> |
Script information. For details, see Table 5. |
POST /v1/b384b9e9ab9b4ee8994c8633aabc9505/jobs/check-file { "path": "obs://aaaaa/DLF_myJob.zip" }
{ "jobs":[ { "name":"test", "path":"/test", "params":{ "ddd":"dddd" } }, { "name":"test1", "path":"/test", "params":{ "ddd":"dddd" } } ], "scripts":[ { "name":"script1", "path":"/path1" }, { "name":"script2", "path":"/path1" } ] }
See Status Codes.