GET /api/v1/jobs-management/schedules/{id}
Use this method to return information about a specific schedule job.
Authentication
Authentication with username and password is required.
Resource URI
GET https://{orchestrator_server_IP}/api/v1/jobs-management/schedules/{id}
where {id} is the ID of the scheduled job. To obtain the scheduled job ID, use GET /api/v1/jobs-management/schedules.
Query parameters
None
Request body
None
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
When the request is successful, the following attributes are returned. If the request fails, standard message attributes are returned (see Status messages).
Attribute | Type | Description | |
---|---|---|---|
id | String | Scheduled job ID | |
createdBy | String | Name of the user that created the schedule | |
creationTimestamp | String | Timestamp when the scheduled job was created. This timestamp is specified using ISO-8601 format (for example, 2019-05-02T19:28:14.000Z). For information about ISO-8601 format, see the W3C Date and Time Formats webpage. | |
jobID | String | Job ID | |
launchedTimestamp | String | Timestamp when the scheduled job ran This timestamp is specified using ISO-8601 format (for example, 2019-05-02T19:28:14.000Z). For information about ISO-8601 format, see the W3C Date and Time Formats webpage. | |
metadata | Object | Information about the operation to be performed for this job | |
body | Object | Request body of the operation | |
method | String | Method. This value is always POST. | |
path | String | URI of the operation, including query parameters | |
status | String | Job status (translated). For a job with subtasks, this is most severe status of all subtsaks. This can be one of the following values.
| |
statusKey | String | Job status key. For a job with subtasks, this is most severe status of all subtsaks. This can be one of the following values.
| |
scheduleTimestamp | String | Timestamp when the scheduled job is to run This timestamp is specified using ISO-8601 format (for example, 2019-05-02T19:28:14.000Z). For information about ISO-8601 format, see the W3C Date and Time Formats webpage. | |
title | String | Scheduled job title | |
_links | Object | Resource URI (see Links) |
{
"id": "c3047feb4ad44ba2b956950c812ce36e",
"createdBy": "user1",
"creationTimestamp": "2024-01-29T17:41:03.429Z",
"jobID": "156",
"launchedTimestamp": "2024-01-29T17:41:08.355Z",
"metadata": {
"method": "POST",
"path": "/api/v1/updates-management/updates",
"body": {
"activationRule": "ImmediateActivation",
"forceUpdate": false,
"groupIDs": [],
"installPrerequisiteFirmware": false,
"resourceIDs": [ "CFEC7691C59F3613A1D47ABA0113C99C-5B421B48D19F46FBAD1A20F620D670D2" ],
"updateRule": "ContinueOnError"
}
},
"scheduleTimestamp": "2024-01-10T13:00:00.000Z",
"status": "Launched",
"statusKey": "launched",
"title": "test",
"_links": {
"rel": "self",
"uri": "/api/v1/jobs-management/schedules/c3047feb4ad44ba2b956950c812ce36e"
}
}