1{
2    "$id": "http://redfish.dmtf.org/schemas/v1/Job.v1_2_4.json",
3    "$ref": "#/definitions/Job",
4    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6    "definitions": {
7        "Actions": {
8            "additionalProperties": false,
9            "description": "The available actions for this resource.",
10            "longDescription": "This type shall contain the available actions for this resource.",
11            "patternProperties": {
12                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13                    "description": "This property shall specify a valid odata or Redfish property.",
14                    "type": [
15                        "array",
16                        "boolean",
17                        "integer",
18                        "number",
19                        "null",
20                        "object",
21                        "string"
22                    ]
23                }
24            },
25            "properties": {
26                "Oem": {
27                    "$ref": "#/definitions/OemActions",
28                    "description": "The available OEM-specific actions for this resource.",
29                    "longDescription": "This property shall contain the available OEM-specific actions for this resource."
30                }
31            },
32            "type": "object"
33        },
34        "Job": {
35            "additionalProperties": false,
36            "description": "The `Job` schema contains information about a job that a Redfish job service schedules or executes.  Clients create jobs to describe a series of operations that occur at periodic intervals.",
37            "longDescription": "This resource shall contain a job in a Redfish implementation.",
38            "patternProperties": {
39                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
40                    "description": "This property shall specify a valid odata or Redfish property.",
41                    "type": [
42                        "array",
43                        "boolean",
44                        "integer",
45                        "number",
46                        "null",
47                        "object",
48                        "string"
49                    ]
50                }
51            },
52            "properties": {
53                "@odata.context": {
54                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
55                },
56                "@odata.etag": {
57                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
58                },
59                "@odata.id": {
60                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
61                },
62                "@odata.type": {
63                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
64                },
65                "Actions": {
66                    "$ref": "#/definitions/Actions",
67                    "description": "The available actions for this resource.",
68                    "longDescription": "This property shall contain the available actions for this resource."
69                },
70                "CreatedBy": {
71                    "description": "The person or program that created this job entry.",
72                    "longDescription": "This property shall contain the username, software program name, or other identifier indicating the creator of this job.",
73                    "readonly": true,
74                    "type": "string"
75                },
76                "Description": {
77                    "anyOf": [
78                        {
79                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
80                        },
81                        {
82                            "type": "null"
83                        }
84                    ],
85                    "readonly": true
86                },
87                "EndTime": {
88                    "description": "The date and time when the job was completed.",
89                    "format": "date-time",
90                    "longDescription": "This property shall indicate the date and time when the job was completed.  This property shall not appear if the job is running or was not completed.  This property shall appear only if the `JobState` is `Completed`, `Cancelled`, or `Exception`.",
91                    "readonly": true,
92                    "type": "string"
93                },
94                "EstimatedDuration": {
95                    "description": "The estimated total time required to complete the job.",
96                    "longDescription": "This property shall indicate the estimated total time needed to complete the job.  The value is not expected to change while the job is in progress, but the service may update the value if it obtains new information that significantly changes the expected duration.  Services should be conservative in the reported estimate and clients should treat this value as an estimate.",
97                    "pattern": "^P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?$",
98                    "readonly": true,
99                    "type": [
100                        "string",
101                        "null"
102                    ],
103                    "versionAdded": "v1_1_0"
104                },
105                "HidePayload": {
106                    "description": "An indication of whether the contents of the payload should be hidden from view after the job has been created.  If `true`, responses do not return the payload.  If `false`, responses return the payload.  If this property is not present when the job is created, the default is `false`.",
107                    "longDescription": "This property shall indicate whether the contents of the payload should be hidden from view after the job has been created.  If `true`, responses shall not return the `Payload` property.  If `false`, responses shall return the `Payload` property.  If this property is not present when the job is created, the default is `false`.",
108                    "readonly": true,
109                    "type": "boolean"
110                },
111                "Id": {
112                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
113                    "readonly": true
114                },
115                "JobState": {
116                    "$ref": "#/definitions/JobState",
117                    "description": "The state of the job.",
118                    "longDescription": "This property shall indicate the state of the job.",
119                    "readonly": false
120                },
121                "JobStatus": {
122                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Health",
123                    "description": "The status of the job.",
124                    "longDescription": "This property shall indicate the health status of the job.  This property should contain `Critical` if one or more messages in the `Messages` array contains the severity `Critical`.  This property should contain `Warning` if one or more messages in the `Messages` array contains the severity `Warning` and if no messages contain the severity `Critical`.  This property should contain `OK` if all messages in the `Messages` array contain the severity `OK` or if the array is empty.",
125                    "readonly": true
126                },
127                "Links": {
128                    "$ref": "#/definitions/Links",
129                    "description": "The links to other resources that are related to this resource.",
130                    "longDescription": "This property shall contain links to resources that are related to but are not contained by, or subordinate to, this resource.",
131                    "versionAdded": "v1_2_0"
132                },
133                "MaxExecutionTime": {
134                    "description": "The maximum amount of time the job is allowed to execute.",
135                    "longDescription": "The value shall be an ISO 8601 conformant duration describing the maximum duration the job is allowed to execute before being stopped by the service.",
136                    "readonly": false,
137                    "type": [
138                        "string",
139                        "null"
140                    ]
141                },
142                "Messages": {
143                    "description": "An array of messages associated with the job.",
144                    "items": {
145                        "$ref": "http://redfish.dmtf.org/schemas/v1/Message.json#/definitions/Message"
146                    },
147                    "longDescription": "This property shall contain an array of messages associated with the job.",
148                    "type": "array"
149                },
150                "Name": {
151                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
152                    "readonly": true
153                },
154                "Oem": {
155                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
156                    "description": "The OEM extension property.",
157                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
158                },
159                "Payload": {
160                    "$ref": "#/definitions/Payload",
161                    "description": "The HTTP and JSON request payload details for this job.",
162                    "longDescription": "This property shall contain the HTTP and JSON request payload information for executing this job.  This property shall not be included in the response if the `HidePayload` property is `true`."
163                },
164                "PercentComplete": {
165                    "description": "The completion percentage of this job.",
166                    "longDescription": "This property shall indicate the completion progress of the job, reported in percent of completion, `0` to `100`.  If the job has not been started, the value shall be zero.",
167                    "maximum": 100,
168                    "minimum": 0,
169                    "readonly": true,
170                    "type": [
171                        "integer",
172                        "null"
173                    ],
174                    "units": "%"
175                },
176                "Schedule": {
177                    "$ref": "http://redfish.dmtf.org/schemas/v1/Schedule.json#/definitions/Schedule",
178                    "description": "The schedule settings for this job.",
179                    "longDescription": "This object shall contain the scheduling details for this job and the recurrence frequency for future instances of this job."
180                },
181                "StartTime": {
182                    "description": "The date and time when the job was started or is scheduled to start.",
183                    "format": "date-time",
184                    "longDescription": "This property shall indicate the date and time when the job was last started or is scheduled to start.",
185                    "readonly": true,
186                    "type": "string"
187                },
188                "StepOrder": {
189                    "description": "The serialized execution order of the job steps.",
190                    "items": {
191                        "type": "string"
192                    },
193                    "longDescription": "This property shall contain an array of `Id` property values for the job steps in the order that they shall be executed.  Each step shall be completed prior to the execution of the next step in array order.  An incomplete list of steps shall be considered an invalid configuration.  If this property is not present or contains an empty array it shall indicate that the step execution order is omitted and may occur in parallel or in series as determined by the service.",
194                    "readonly": true,
195                    "type": "array"
196                },
197                "Steps": {
198                    "$ref": "http://redfish.dmtf.org/schemas/v1/JobCollection.json#/definitions/JobCollection",
199                    "description": "The link to a collection of steps for this job.",
200                    "longDescription": "This property shall contain the link to a resource collection of type `JobCollection`.  This property shall not be present if this resource represents a step for a job.",
201                    "readonly": true
202                }
203            },
204            "required": [
205                "@odata.id",
206                "@odata.type",
207                "Id",
208                "Name"
209            ],
210            "type": "object"
211        },
212        "JobState": {
213            "enum": [
214                "New",
215                "Starting",
216                "Running",
217                "Suspended",
218                "Interrupted",
219                "Pending",
220                "Stopping",
221                "Completed",
222                "Cancelled",
223                "Exception",
224                "Service",
225                "UserIntervention",
226                "Continue"
227            ],
228            "enumDescriptions": {
229                "Cancelled": "Job was cancelled.",
230                "Completed": "Job was completed.",
231                "Continue": "Job is to resume operation.",
232                "Exception": "Job has stopped due to an exception condition.",
233                "Interrupted": "Job has been interrupted.",
234                "New": "A new job.",
235                "Pending": "Job is pending and has not started.",
236                "Running": "Job is running normally.",
237                "Service": "Job is running as a service.",
238                "Starting": "Job is starting.",
239                "Stopping": "Job is in the process of stopping.",
240                "Suspended": "Job has been suspended.",
241                "UserIntervention": "Job is waiting for user intervention."
242            },
243            "enumLongDescriptions": {
244                "Cancelled": "This value shall represent that the operation completed because the job was cancelled by an operator.",
245                "Completed": "This value shall represent that the operation completed successfully or with warnings.",
246                "Continue": "This value shall represent that the operation has been resumed from a paused condition and should return to a Running state.",
247                "Exception": "This value shall represent that the operation completed with errors.",
248                "Interrupted": "This value shall represent that the operation has been interrupted but is expected to restart and is therefore not complete.",
249                "New": "This value shall represent that this job is newly created but the operation has not yet started.",
250                "Pending": "This value shall represent that the operation is pending some condition and has not yet begun to execute.",
251                "Running": "This value shall represent that the operation is executing.",
252                "Service": "This value shall represent that the operation is now running as a service and expected to continue operation until stopped or killed.",
253                "Starting": "This value shall represent that the operation is starting.",
254                "Stopping": "This value shall represent that the operation is stopping but is not yet complete.",
255                "Suspended": "This value shall represent that the operation has been suspended but is expected to restart and is therefore not complete.",
256                "UserIntervention": "This value shall represent that the operation is waiting for a user to intervene and needs to be manually continued, stopped, or cancelled."
257            },
258            "type": "string"
259        },
260        "Links": {
261            "additionalProperties": false,
262            "description": "The links to other resources that are related to this resource.",
263            "longDescription": "This Redfish Specification-described type shall contain links to resources that are related to but are not contained by, or subordinate to, this resource.",
264            "patternProperties": {
265                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
266                    "description": "This property shall specify a valid odata or Redfish property.",
267                    "type": [
268                        "array",
269                        "boolean",
270                        "integer",
271                        "number",
272                        "null",
273                        "object",
274                        "string"
275                    ]
276                }
277            },
278            "properties": {
279                "CreatedResources": {
280                    "description": "An array of URIs referencing the resources created as the result of this job.",
281                    "items": {
282                        "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef"
283                    },
284                    "longDescription": "This property shall contain an array of links to resources indicating the resources created as the result of this job.  Services shall set this property prior to the job entering its final state.",
285                    "readonly": true,
286                    "type": "array",
287                    "versionAdded": "v1_2_0"
288                },
289                "CreatedResources@odata.count": {
290                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
291                },
292                "Oem": {
293                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
294                    "description": "The OEM extension property.",
295                    "longDescription": "This property shall contain the OEM extensions.  All values for properties contained in this object shall conform to the Redfish Specification-described requirements."
296                }
297            },
298            "type": "object"
299        },
300        "OemActions": {
301            "additionalProperties": true,
302            "description": "The available OEM-specific actions for this resource.",
303            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
304            "patternProperties": {
305                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
306                    "description": "This property shall specify a valid odata or Redfish property.",
307                    "type": [
308                        "array",
309                        "boolean",
310                        "integer",
311                        "number",
312                        "null",
313                        "object",
314                        "string"
315                    ]
316                }
317            },
318            "properties": {},
319            "type": "object"
320        },
321        "Payload": {
322            "additionalProperties": false,
323            "description": "The HTTP and JSON payload details for this job.",
324            "longDescription": "This object shall contain information detailing the HTTP and JSON payload information for executing this job.",
325            "patternProperties": {
326                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
327                    "description": "This property shall specify a valid odata or Redfish property.",
328                    "type": [
329                        "array",
330                        "boolean",
331                        "integer",
332                        "number",
333                        "null",
334                        "object",
335                        "string"
336                    ]
337                }
338            },
339            "properties": {
340                "HttpHeaders": {
341                    "description": "An array of HTTP headers in this job.",
342                    "items": {
343                        "type": "string"
344                    },
345                    "longDescription": "This property shall contain an array of HTTP headers in this job.",
346                    "readonly": true,
347                    "type": "array"
348                },
349                "HttpOperation": {
350                    "description": "The HTTP operation that executes this job.",
351                    "longDescription": "This property shall contain the HTTP operation that executes this job.",
352                    "readonly": true,
353                    "type": "string"
354                },
355                "JsonBody": {
356                    "description": "The JSON payload to use in the execution of this job.",
357                    "longDescription": "This property shall contain JSON-formatted payload for this job.",
358                    "readonly": true,
359                    "type": "string"
360                },
361                "TargetUri": {
362                    "description": "The link to the target for this job.",
363                    "format": "uri-reference",
364                    "longDescription": "This property shall contain link to a target location for an HTTP operation.",
365                    "readonly": true,
366                    "type": "string"
367                }
368            },
369            "type": "object"
370        }
371    },
372    "language": "en",
373    "owningEntity": "DMTF",
374    "release": "2022.3",
375    "title": "#Job.v1_2_4.Job"
376}