Viewing a Job File
Function
This API is used to check whether there are jobs and scripts in the job file to be imported from OBS to DLF.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
- Parameter description
Table 1 URI parameter 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.
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
path |
Yes |
String |
If OBS is deployed, the job definition file is stored on OBS, for example, obs://myBucket/jobs.zip. |
|
workspace |
No |
String |
Workspace ID
|
Response Parameters
|
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. |
Example Request
POST /v1/b384b9e9ab9b4ee8994c8633aabc9505/jobs/check-file
{
"path": "obs://aaaaa/DLF_myJob.zip"
}
Example Response
- Success response
{ "jobs":[ { "name":"test", "path":"/test", "params":{ "ddd":"dddd" } }, { "name":"test1", "path":"/test", "params":{ "ddd":"dddd" } } ], "scripts":[ { "name":"script1", "path":"/path1" }, { "name":"script2", "path":"/path1" } ] }
Status Codes
See Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot