blob: 7d6af6466896cc3fd8e3f3343b3c70774db3c550 [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
Ed Tanousa8d8f9d2023-01-26 13:57:00 -08002 "$id": "http://redfish.dmtf.org/schemas/v1/Task.v1_7_0.json",
Ed Tanous118b1c72018-09-13 13:45:51 -07003 "$ref": "#/definitions/Task",
Ed Tanous530520e2019-01-02 13:41:37 -08004 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
Ed Tanoused761212022-09-23 15:03:29 -07005 "copyright": "Copyright 2014-2022 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
Ed Tanous118b1c72018-09-13 13:45:51 -07006 "definitions": {
7 "Actions": {
8 "additionalProperties": false,
Asmitha Karunanithi009c6452022-09-22 01:07:59 -05009 "description": "The available actions for this resource.",
10 "longDescription": "This type shall contain the available actions for this resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -070011 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070012 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070013 "description": "This property shall specify a valid odata or Redfish property.",
14 "type": [
15 "array",
16 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080017 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070018 "number",
19 "null",
20 "object",
21 "string"
22 ]
23 }
24 },
25 "properties": {
26 "Oem": {
Ed Tanous530520e2019-01-02 13:41:37 -080027 "$ref": "#/definitions/OemActions",
Asmitha Karunanithi009c6452022-09-22 01:07:59 -050028 "description": "The available OEM-specific actions for this resource.",
29 "longDescription": "This property shall contain the available OEM-specific actions for this resource.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -060030 "versionAdded": "v1_1_0"
Ed Tanous118b1c72018-09-13 13:45:51 -070031 }
32 },
33 "type": "object"
34 },
Ed Tanousa8d8f9d2023-01-26 13:57:00 -080035 "Links": {
36 "additionalProperties": false,
37 "description": "The links to other resources that are related to this resource.",
38 "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.",
39 "patternProperties": {
40 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
41 "description": "This property shall specify a valid odata or Redfish property.",
42 "type": [
43 "array",
44 "boolean",
45 "integer",
46 "number",
47 "null",
48 "object",
49 "string"
50 ]
51 }
52 },
53 "properties": {
54 "CreatedResources": {
55 "description": "An array of URIs referencing the resources created as the result of the operation that produced this task.",
56 "items": {
57 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef"
58 },
59 "longDescription": "This property shall contain an array of links to resources indicating the resources created as the result of the operation that produced this task. Services shall set this property prior to the task entering its final state.",
60 "readonly": true,
61 "type": "array",
62 "versionAdded": "v1_7_0"
63 },
64 "CreatedResources@odata.count": {
65 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
66 },
67 "Oem": {
68 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
69 "description": "The OEM extension property.",
70 "longDescription": "This property shall contain the OEM extensions. All values for properties contained in this object shall conform to the Redfish Specification-described requirements."
71 }
72 },
73 "type": "object"
74 },
Ed Tanous118b1c72018-09-13 13:45:51 -070075 "OemActions": {
76 "additionalProperties": true,
Asmitha Karunanithi009c6452022-09-22 01:07:59 -050077 "description": "The available OEM-specific actions for this resource.",
78 "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -070079 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070080 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070081 "description": "This property shall specify a valid odata or Redfish property.",
82 "type": [
83 "array",
84 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080085 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070086 "number",
87 "null",
88 "object",
89 "string"
90 ]
91 }
92 },
93 "properties": {},
94 "type": "object"
95 },
Ed Tanous530520e2019-01-02 13:41:37 -080096 "Payload": {
97 "additionalProperties": false,
98 "description": "The HTTP and JSON payload details for this Task.",
Asmitha Karunanithi009c6452022-09-22 01:07:59 -050099 "longDescription": "This type shall contain information detailing the HTTP and JSON payload information for executing this task.",
Ed Tanous530520e2019-01-02 13:41:37 -0800100 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -0700101 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous530520e2019-01-02 13:41:37 -0800102 "description": "This property shall specify a valid odata or Redfish property.",
103 "type": [
104 "array",
105 "boolean",
106 "integer",
107 "number",
108 "null",
109 "object",
110 "string"
111 ]
112 }
113 },
114 "properties": {
115 "HttpHeaders": {
Ed Tanouscb103132019-10-08 11:34:22 -0700116 "description": "An array of HTTP headers that this task includes.",
Ed Tanous530520e2019-01-02 13:41:37 -0800117 "items": {
118 "type": "string"
119 },
Ed Tanouscb103132019-10-08 11:34:22 -0700120 "longDescription": "This property shall contain an array of HTTP headers that this task includes.",
Ed Tanous530520e2019-01-02 13:41:37 -0800121 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600122 "type": "array",
123 "versionAdded": "v1_3_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800124 },
125 "HttpOperation": {
Ed Tanouscb103132019-10-08 11:34:22 -0700126 "description": "The HTTP operation to perform to execute this task.",
127 "longDescription": "This property shall contain the HTTP operation to execute for this task.",
Ed Tanous530520e2019-01-02 13:41:37 -0800128 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600129 "type": "string",
130 "versionAdded": "v1_3_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800131 },
132 "JsonBody": {
Ed Tanouscb103132019-10-08 11:34:22 -0700133 "description": "The JSON payload to use in the execution of this task.",
134 "longDescription": "This property shall contain JSON formatted payload used for this task.",
Ed Tanous530520e2019-01-02 13:41:37 -0800135 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600136 "type": "string",
137 "versionAdded": "v1_3_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800138 },
139 "TargetUri": {
140 "description": "The URI of the target for this task.",
Ed Tanouscb103132019-10-08 11:34:22 -0700141 "format": "uri-reference",
142 "longDescription": "This property shall contain a link to the location to use as the target for an HTTP operation.",
Ed Tanous530520e2019-01-02 13:41:37 -0800143 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600144 "type": "string",
145 "versionAdded": "v1_3_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800146 }
147 },
148 "type": "object"
149 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700150 "Task": {
151 "additionalProperties": false,
Asmitha Karunanithi009c6452022-09-22 01:07:59 -0500152 "description": "The Task schema contains information about a task that the Redfish task service schedules or executes. Tasks represent operations that take more time than a client typically wants to wait.",
153 "longDescription": "This resource contains a task for a Redfish implementation.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700154 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -0700155 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700156 "description": "This property shall specify a valid odata or Redfish property.",
157 "type": [
158 "array",
159 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800160 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700161 "number",
162 "null",
163 "object",
164 "string"
165 ]
166 }
167 },
168 "properties": {
169 "@odata.context": {
Ed Tanouscb103132019-10-08 11:34:22 -0700170 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
Ed Tanous118b1c72018-09-13 13:45:51 -0700171 },
172 "@odata.etag": {
Ed Tanouscb103132019-10-08 11:34:22 -0700173 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
Ed Tanous118b1c72018-09-13 13:45:51 -0700174 },
175 "@odata.id": {
Ed Tanouscb103132019-10-08 11:34:22 -0700176 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
Ed Tanous118b1c72018-09-13 13:45:51 -0700177 },
178 "@odata.type": {
Ed Tanouscb103132019-10-08 11:34:22 -0700179 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
Ed Tanous118b1c72018-09-13 13:45:51 -0700180 },
181 "Actions": {
182 "$ref": "#/definitions/Actions",
Asmitha Karunanithi009c6452022-09-22 01:07:59 -0500183 "description": "The available actions for this resource.",
184 "longDescription": "The actions property shall contain the available actions for this resource.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600185 "versionAdded": "v1_1_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700186 },
187 "Description": {
188 "anyOf": [
189 {
190 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
191 },
192 {
193 "type": "null"
194 }
195 ],
196 "readonly": true
197 },
198 "EndTime": {
Ed Tanouscb103132019-10-08 11:34:22 -0700199 "description": "The date and time when the task was completed. This property will only appear when the task is complete.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700200 "format": "date-time",
Ed Tanouscb103132019-10-08 11:34:22 -0700201 "longDescription": "This property shall indicate the date and time when the task was completed. This property shall not appear if the task is running or otherwise has not been completed. This property shall appear only if the TaskState is Completed, Killed, Cancelled, or Exception.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700202 "readonly": true,
203 "type": "string"
204 },
Ed Tanoused761212022-09-23 15:03:29 -0700205 "EstimatedDuration": {
206 "description": "The estimated total time required to complete the task.",
207 "longDescription": "This property shall indicate the estimated total time needed to complete the task. The value is not expected to change while the task 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.",
208 "pattern": "-?P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?",
209 "readonly": true,
210 "type": [
211 "string",
212 "null"
213 ],
214 "versionAdded": "v1_6_0"
215 },
Ed Tanous530520e2019-01-02 13:41:37 -0800216 "HidePayload": {
Gunnar Mills09b9d452020-02-11 13:27:39 -0600217 "description": "An indication of whether the contents of the payload are hidden from view after the task 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 task is created, the default is `false`.",
218 "longDescription": "This property shall indicate whether the contents of the payload should be hidden from view after the task 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 task is created, the default is `false`. This property shall be supported if the Payload property is supported.",
Ed Tanous530520e2019-01-02 13:41:37 -0800219 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600220 "type": "boolean",
221 "versionAdded": "v1_3_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800222 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700223 "Id": {
224 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
225 "readonly": true
226 },
Ed Tanousa8d8f9d2023-01-26 13:57:00 -0800227 "Links": {
228 "$ref": "#/definitions/Links",
229 "description": "Contains references to other resources that are related to this resource.",
230 "longDescription": "The Links property, as described by the Redfish Specification, shall contain references to resources that are related to, but not contained by (subordinate to), this resource.",
231 "versionAdded": "v1_7_0"
232 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700233 "Messages": {
Ed Tanouscb103132019-10-08 11:34:22 -0700234 "description": "An array of messages associated with the task.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700235 "items": {
236 "$ref": "http://redfish.dmtf.org/schemas/v1/Message.json#/definitions/Message"
237 },
Ed Tanouscb103132019-10-08 11:34:22 -0700238 "longDescription": "This property shall contain an array of messages associated with the task.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700239 "type": "array"
240 },
241 "Name": {
242 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
243 "readonly": true
244 },
245 "Oem": {
246 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
Ed Tanouscb103132019-10-08 11:34:22 -0700247 "description": "The OEM extension property.",
248 "longDescription": "This property shall contain the OEM extensions. All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
Ed Tanous118b1c72018-09-13 13:45:51 -0700249 },
Ed Tanous530520e2019-01-02 13:41:37 -0800250 "Payload": {
251 "$ref": "#/definitions/Payload",
Ed Tanousa8d8f9d2023-01-26 13:57:00 -0800252 "description": "The HTTP and JSON request payload details for this task, unless they are hidden from view by the service.",
253 "longDescription": "This object shall contain information detailing the HTTP and JSON request payload information for executing this task. This property shall not be included in the response if the HidePayload property is `true`.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600254 "versionAdded": "v1_3_0"
255 },
256 "PercentComplete": {
Ed Tanouscb103132019-10-08 11:34:22 -0700257 "description": "The completion percentage of this task.",
258 "longDescription": "This property shall indicate the completion progress of the task, reported in percent of completion. If the task has not been started, the value shall be zero.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600259 "readonly": true,
260 "type": [
261 "integer",
262 "null"
263 ],
264 "units": "%",
265 "versionAdded": "v1_4_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800266 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700267 "StartTime": {
Ed Tanouscb103132019-10-08 11:34:22 -0700268 "description": "The date and time when the task was started.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700269 "format": "date-time",
Ed Tanouscb103132019-10-08 11:34:22 -0700270 "longDescription": "This property shall indicate the date and time when the task was started.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700271 "readonly": true,
272 "type": "string"
273 },
Asmitha Karunanithic8ccb772020-09-22 10:56:46 -0500274 "SubTasks": {
275 "$ref": "http://redfish.dmtf.org/schemas/v1/TaskCollection.json#/definitions/TaskCollection",
276 "description": "The link to a collection of sub-tasks for this task.",
277 "longDescription": "This property shall contain a link to a resource collection of type TaskCollection. This property shall not be present if this resource represents a sub-task for a task.",
278 "readonly": true,
279 "versionAdded": "v1_5_0"
280 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700281 "TaskMonitor": {
282 "description": "The URI of the Task Monitor for this task.",
Ed Tanouscb103132019-10-08 11:34:22 -0700283 "format": "uri-reference",
Asmitha Karunanithi009c6452022-09-22 01:07:59 -0500284 "longDescription": "This property shall contain a URI to task monitor as defined in the Redfish Specification.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700285 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600286 "type": "string",
287 "versionAdded": "v1_2_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700288 },
289 "TaskState": {
290 "$ref": "#/definitions/TaskState",
291 "description": "The state of the task.",
Ed Tanouscb103132019-10-08 11:34:22 -0700292 "longDescription": "This property shall indicate the state of the task.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700293 "readonly": true
294 },
295 "TaskStatus": {
296 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Health",
Ed Tanouscb103132019-10-08 11:34:22 -0700297 "description": "The completion status of the task.",
Asmitha Karunanithi009c6452022-09-22 01:07:59 -0500298 "longDescription": "This property shall contain the completion status of the task and shall not be set until the task completes. 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 no messages contain the severity `Critical`. This property should contain `OK` if all messages in the Messages array contain the severity `OK` or the array is empty.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700299 "readonly": true
300 }
301 },
302 "required": [
Ed Tanous530520e2019-01-02 13:41:37 -0800303 "@odata.id",
304 "@odata.type",
Ed Tanous118b1c72018-09-13 13:45:51 -0700305 "Id",
306 "Name"
307 ],
308 "type": "object"
309 },
310 "TaskState": {
311 "enum": [
312 "New",
313 "Starting",
314 "Running",
315 "Suspended",
316 "Interrupted",
317 "Pending",
318 "Stopping",
319 "Completed",
320 "Killed",
321 "Exception",
322 "Service",
323 "Cancelling",
324 "Cancelled"
325 ],
326 "enumDeprecated": {
Asmitha Karunanithi009c6452022-09-22 01:07:59 -0500327 "Killed": "This value has been deprecated and is being replaced by the `Cancelled` value, which has more determinate semantics."
Ed Tanous118b1c72018-09-13 13:45:51 -0700328 },
329 "enumDescriptions": {
330 "Cancelled": "Task has been cancelled by an operator or internal process.",
331 "Cancelling": "Task is in the process of being cancelled.",
Ed Tanouscb103132019-10-08 11:34:22 -0700332 "Completed": "Task was completed.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700333 "Exception": "Task has stopped due to an exception condition.",
334 "Interrupted": "Task has been interrupted.",
335 "Killed": "Task was terminated.",
336 "New": "A new task.",
337 "Pending": "Task is pending and has not started.",
338 "Running": "Task is running normally.",
339 "Service": "Task is running as a service.",
340 "Starting": "Task is starting.",
341 "Stopping": "Task is in the process of stopping.",
342 "Suspended": "Task has been suspended."
343 },
344 "enumLongDescriptions": {
Asmitha Karunanithi009c6452022-09-22 01:07:59 -0500345 "Cancelled": "This value shall represent that either a DELETE operation on a task monitor or Task resource or by an internal process cancelled the task.",
Ed Tanouscb103132019-10-08 11:34:22 -0700346 "Cancelling": "This value shall represent that the task is in the process of being cancelled.",
Gunnar Mills262d7d42021-01-20 16:28:41 -0600347 "Completed": "This value shall represent that the task completed successfully or with warnings.",
Ed Tanouscb103132019-10-08 11:34:22 -0700348 "Exception": "This value shall represent that the task completed with errors.",
349 "Interrupted": "This value shall represent that the task has been interrupted but is expected to restart and is therefore not complete.",
350 "Killed": "This value shall represent that the task is complete because an operator killed it.",
351 "New": "This value shall represent that the task is newly created, but has not started.",
352 "Pending": "This value shall represent that the task is pending some condition and has not yet begun to execute.",
353 "Running": "This value shall represent that the task is executing.",
354 "Service": "This value shall represent that the task is now running as a service and expected to continue operation until stopped or killed.",
355 "Starting": "This value shall represent that the task is starting.",
356 "Stopping": "This value shall represent that the task is stopping but is not yet complete.",
357 "Suspended": "This value shall represent that the task has been suspended but is expected to restart and is therefore not complete."
Ed Tanous118b1c72018-09-13 13:45:51 -0700358 },
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600359 "enumVersionAdded": {
360 "Cancelled": "v1_2_0",
361 "Cancelling": "v1_2_0"
362 },
363 "enumVersionDeprecated": {
364 "Killed": "v1_2_0"
365 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700366 "type": "string"
367 }
368 },
369 "owningEntity": "DMTF",
Ed Tanousa8d8f9d2023-01-26 13:57:00 -0800370 "release": "2022.3",
371 "title": "#Task.v1_7_0.Task"
Ed Tanous118b1c72018-09-13 13:45:51 -0700372}