blob: c38dc6f270cc24d717a135738809a0ed80aafb5d [file] [log] [blame]
Ed Tanous530520e2019-01-02 13:41:37 -08001{
Marri Devender Raod45d2d02019-01-21 10:11:34 -06002 "$id": "http://redfish.dmtf.org/schemas/v1/Job.v1_0_1.json",
Ed Tanous530520e2019-01-02 13:41:37 -08003 "$ref": "#/definitions/Job",
4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5 "copyright": "Copyright 2014-2018 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": "This property contains the available OEM specific actions for this resource.",
29 "longDescription": "This property shall contain any additional OEM actions for this resource."
30 }
31 },
32 "type": "object"
33 },
34 "Job": {
35 "additionalProperties": false,
36 "description": "This resource contains information about a specific Job scheduled or being executed by a Redfish service's Job Service.",
37 "longDescription": "This resource shall be used to represent 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_0_3.json#/definitions/context"
55 },
56 "@odata.etag": {
57 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/etag"
58 },
59 "@odata.id": {
60 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/id"
61 },
62 "@odata.type": {
63 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/type"
64 },
65 "Actions": {
66 "$ref": "#/definitions/Actions",
67 "description": "The available actions for this resource.",
68 "longDescription": "The Actions 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": "The value of this property shall be the user name, 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-time stamp that the job was completed.",
89 "format": "date-time",
90 "longDescription": "The value of this property shall indicate the time the job was completed. This property shall not appear if the job is running or has otherwise not been completed. This property shall appear only if the JobState is Completed, Cancelled, or Exception.",
91 "readonly": true,
92 "type": [
93 "string",
94 "null"
95 ]
96 },
97 "HidePayload": {
98 "description": "Indicates that the contents of the Payload should be hidden from view after the Job has been created. When set to True, the Payload object will not be returned on GET.",
99 "longDescription": "This property shall be set to True if the Payload object shall not be returned on GET operations, and set to False if the contents can be returned normally. If this property is not specified when the Job is created, the default value shall be False.",
100 "readonly": true,
101 "type": "boolean"
102 },
103 "Id": {
104 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
105 "readonly": true
106 },
107 "JobState": {
108 "$ref": "#/definitions/JobState",
109 "description": "The state of the job.",
110 "longDescription": "The value of this property shall indicate the state of the job.",
111 "readonly": false
112 },
113 "JobStatus": {
114 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Health",
115 "description": "The status of the job.",
116 "longDescription": "The value of this property shall indicate the health status of the job.",
117 "readonly": true
118 },
119 "MaxExecutionTime": {
120 "description": "The maximum amount of time the job is allowed to execute.",
121 "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.",
122 "readonly": false,
123 "type": [
124 "string",
125 "null"
126 ]
127 },
128 "Messages": {
129 "description": "This is an array of messages associated with the job.",
130 "items": {
131 "$ref": "http://redfish.dmtf.org/schemas/v1/Message.json#/definitions/Message"
132 },
133 "longDescription": "The value of this property shall be an array of messages associated with the job.",
134 "type": "array"
135 },
136 "Name": {
137 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
138 "readonly": true
139 },
140 "Oem": {
141 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
142 "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.",
143 "longDescription": "The value of this string shall be of the format for the reserved word *Oem*."
144 },
145 "Payload": {
146 "$ref": "#/definitions/Payload",
147 "description": "The HTTP and JSON payload details for this job.",
148 "longDescription": "This object shall contain information detailing the HTTP and JSON payload information for executing this job. This object shall not be included in the response if the HidePayload property is set to True."
149 },
150 "PercentComplete": {
151 "description": "The completion percentage of this job.",
152 "longDescription": "The value of this property shall indicate the completion progress of the job, reported in percent of completion. If the job has not been started, the value shall be zero.",
153 "readonly": true,
154 "type": [
155 "integer",
156 "null"
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600157 ],
158 "units": "%"
Ed Tanous530520e2019-01-02 13:41:37 -0800159 },
160 "Schedule": {
161 "$ref": "http://redfish.dmtf.org/schemas/v1/Schedule.json#/definitions/Schedule",
162 "description": "The Schedule Settings for this Job.",
163 "longDescription": "This object shall contain information detailing the scheduling for this job and the re-occurrence frequency for future instances of this job."
164 },
165 "StartTime": {
166 "description": "The date-time stamp that the job was started or is scheduled to start.",
167 "format": "date-time",
168 "longDescription": "The value of this property shall indicate the time the job was last started or will start as scheduled.",
169 "readonly": true,
170 "type": "string"
171 },
172 "StepOrder": {
173 "description": "This represents the serialized execution order of the Job Steps.",
174 "items": {
175 "type": "string"
176 },
177 "longDescription": "The value of this property shall be an array of Ids 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 not specified and may occur in parallel or in series as determined by the service.",
178 "readonly": true,
179 "type": "array"
180 },
181 "Steps": {
182 "$ref": "http://redfish.dmtf.org/schemas/v1/JobCollection.json#/definitions/JobCollection",
183 "description": "A link to a collection of Steps for this Job.",
184 "longDescription": "This property shall contain the link to a collection of type Job.",
185 "readonly": true
186 }
187 },
188 "required": [
189 "@odata.id",
190 "@odata.type",
191 "Id",
192 "Name"
193 ],
194 "type": "object"
195 },
196 "JobState": {
197 "enum": [
198 "New",
199 "Starting",
200 "Running",
201 "Suspended",
202 "Interrupted",
203 "Pending",
204 "Stopping",
205 "Completed",
206 "Cancelled",
207 "Exception",
208 "Service",
209 "UserIntervention",
210 "Continue"
211 ],
212 "enumDescriptions": {
213 "Cancelled": "Job was cancelled..",
214 "Completed": "Job has completed.",
215 "Continue": "Job is to resume operation.",
216 "Exception": "Job has stopped due to an exception condition.",
217 "Interrupted": "Job has been interrupted.",
218 "New": "A new job.",
219 "Pending": "Job is pending and has not started.",
220 "Running": "Job is running normally.",
221 "Service": "Job is running as a service.",
222 "Starting": "Job is starting.",
223 "Stopping": "Job is in the process of stopping.",
224 "Suspended": "Job has been suspended.",
225 "UserIntervention": "Job is waiting for user intervention."
226 },
227 "enumLongDescriptions": {
228 "Cancelled": "This value shall represent that the operation is complete because the job was cancelled by an operator.",
229 "Completed": "This value shall represent that the operation is complete and completed successfully or with warnings.",
230 "Continue": "This value shall represent that the operation has been resumed from a paused condition and should return to a Running state.",
231 "Exception": "This value shall represent that the operation is complete and completed with errors.",
232 "Interrupted": "This value shall represent that the operation has been interrupted but is expected to restart and is therefore not complete.",
233 "New": "This value shall represent that this job is newly created but the operation has not yet started.",
234 "Pending": "This value shall represent that the operation is pending some condition and has not yet begun to execute.",
235 "Running": "This value shall represent that the operation is executing.",
236 "Service": "This value shall represent that the operation is now running as a service and expected to continue operation until stopped or killed.",
237 "Starting": "This value shall represent that the operation is starting.",
238 "Stopping": "This value shall represent that the operation is stopping but is not yet complete.",
239 "Suspended": "This value shall represent that the operation has been suspended but is expected to restart and is therefore not complete.",
240 "UserIntervention": "This value shall represent that the operation is waiting for a user to intervene and must be manually continued, stopped or cancelled."
241 },
242 "type": "string"
243 },
244 "OemActions": {
245 "additionalProperties": true,
246 "description": "The available OEM specific actions for this resource.",
247 "longDescription": "This type shall contain any additional OEM actions for this resource.",
248 "patternProperties": {
249 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
250 "description": "This property shall specify a valid odata or Redfish property.",
251 "type": [
252 "array",
253 "boolean",
254 "integer",
255 "number",
256 "null",
257 "object",
258 "string"
259 ]
260 }
261 },
262 "properties": {},
263 "type": "object"
264 },
265 "Payload": {
266 "additionalProperties": false,
267 "description": "The HTTP and JSON payload details for this job.",
268 "longDescription": "This object shall contain information detailing the HTTP and JSON payload information for executing this job.",
269 "patternProperties": {
270 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
271 "description": "This property shall specify a valid odata or Redfish property.",
272 "type": [
273 "array",
274 "boolean",
275 "integer",
276 "number",
277 "null",
278 "object",
279 "string"
280 ]
281 }
282 },
283 "properties": {
284 "HttpHeaders": {
285 "description": "This represents the HTTP headers used in the operation of this job.",
286 "items": {
287 "type": "string"
288 },
289 "longDescription": "The value of this property shall be an array of HTTP headers used in the execution of this job.",
290 "readonly": true,
291 "type": "array"
292 },
293 "HttpOperation": {
294 "description": "The HTTP operation to perform to execute this job.",
295 "longDescription": "This property shall contain the HTTP operation to execute for this job.",
296 "readonly": true,
297 "type": "string"
298 },
299 "JsonBody": {
300 "description": "This property contains the JSON payload to use in the execution of this Job.",
301 "longDescription": "The value of this property shall be JSON formatted payload used for this job.",
302 "readonly": true,
303 "type": "string"
304 },
305 "TargetUri": {
306 "description": "The URI of the target for this job.",
307 "format": "uri",
308 "longDescription": "This property shall contain a URI referencing a location to be used as the target for an HTTP operation.",
309 "readonly": true,
310 "type": "string"
311 }
312 },
313 "type": "object"
314 }
315 },
316 "owningEntity": "DMTF",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600317 "release": "2018.2",
318 "title": "#Job.v1_0_1.Job"
Ed Tanous530520e2019-01-02 13:41:37 -0800319}