blob: f00590be29bba08a9e5378687a0d0de1ce369a3f [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
Ed Tanoused761212022-09-23 15:03:29 -07002 "$id": "http://redfish.dmtf.org/schemas/v1/Task.v1_6_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,
Ed Tanouscb103132019-10-08 11:34:22 -07009 "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",
Ed Tanouscb103132019-10-08 11:34:22 -070028 "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 },
35 "OemActions": {
36 "additionalProperties": true,
Ed Tanouscb103132019-10-08 11:34:22 -070037 "description": "The available OEM-specific actions for this Resource.",
38 "longDescription": "This type shall contain the available OEM-specific actions for this Resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -070039 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070040 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070041 "description": "This property shall specify a valid odata or Redfish property.",
42 "type": [
43 "array",
44 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080045 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070046 "number",
47 "null",
48 "object",
49 "string"
50 ]
51 }
52 },
53 "properties": {},
54 "type": "object"
55 },
Ed Tanous530520e2019-01-02 13:41:37 -080056 "Payload": {
57 "additionalProperties": false,
58 "description": "The HTTP and JSON payload details for this Task.",
Ed Tanouscb103132019-10-08 11:34:22 -070059 "longDescription": "This type shall contain information detailing the HTTP and JSON payload information for executing this Task.",
Ed Tanous530520e2019-01-02 13:41:37 -080060 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070061 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous530520e2019-01-02 13:41:37 -080062 "description": "This property shall specify a valid odata or Redfish property.",
63 "type": [
64 "array",
65 "boolean",
66 "integer",
67 "number",
68 "null",
69 "object",
70 "string"
71 ]
72 }
73 },
74 "properties": {
75 "HttpHeaders": {
Ed Tanouscb103132019-10-08 11:34:22 -070076 "description": "An array of HTTP headers that this task includes.",
Ed Tanous530520e2019-01-02 13:41:37 -080077 "items": {
78 "type": "string"
79 },
Ed Tanouscb103132019-10-08 11:34:22 -070080 "longDescription": "This property shall contain an array of HTTP headers that this task includes.",
Ed Tanous530520e2019-01-02 13:41:37 -080081 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -060082 "type": "array",
83 "versionAdded": "v1_3_0"
Ed Tanous530520e2019-01-02 13:41:37 -080084 },
85 "HttpOperation": {
Ed Tanouscb103132019-10-08 11:34:22 -070086 "description": "The HTTP operation to perform to execute this task.",
87 "longDescription": "This property shall contain the HTTP operation to execute for this task.",
Ed Tanous530520e2019-01-02 13:41:37 -080088 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -060089 "type": "string",
90 "versionAdded": "v1_3_0"
Ed Tanous530520e2019-01-02 13:41:37 -080091 },
92 "JsonBody": {
Ed Tanouscb103132019-10-08 11:34:22 -070093 "description": "The JSON payload to use in the execution of this task.",
94 "longDescription": "This property shall contain JSON formatted payload used for this task.",
Ed Tanous530520e2019-01-02 13:41:37 -080095 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -060096 "type": "string",
97 "versionAdded": "v1_3_0"
Ed Tanous530520e2019-01-02 13:41:37 -080098 },
99 "TargetUri": {
100 "description": "The URI of the target for this task.",
Ed Tanouscb103132019-10-08 11:34:22 -0700101 "format": "uri-reference",
102 "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 -0800103 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600104 "type": "string",
105 "versionAdded": "v1_3_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800106 }
107 },
108 "type": "object"
109 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700110 "Task": {
111 "additionalProperties": false,
Ed Tanouscb103132019-10-08 11:34:22 -0700112 "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.",
113 "longDescription": "This Resource contains a Task for a Redfish implementation.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700114 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -0700115 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700116 "description": "This property shall specify a valid odata or Redfish property.",
117 "type": [
118 "array",
119 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800120 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700121 "number",
122 "null",
123 "object",
124 "string"
125 ]
126 }
127 },
128 "properties": {
129 "@odata.context": {
Ed Tanouscb103132019-10-08 11:34:22 -0700130 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
Ed Tanous118b1c72018-09-13 13:45:51 -0700131 },
132 "@odata.etag": {
Ed Tanouscb103132019-10-08 11:34:22 -0700133 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
Ed Tanous118b1c72018-09-13 13:45:51 -0700134 },
135 "@odata.id": {
Ed Tanouscb103132019-10-08 11:34:22 -0700136 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
Ed Tanous118b1c72018-09-13 13:45:51 -0700137 },
138 "@odata.type": {
Ed Tanouscb103132019-10-08 11:34:22 -0700139 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
Ed Tanous118b1c72018-09-13 13:45:51 -0700140 },
141 "Actions": {
142 "$ref": "#/definitions/Actions",
Ed Tanouscb103132019-10-08 11:34:22 -0700143 "description": "The available actions for this Resource.",
144 "longDescription": "This property shall contain the available actions for this Resource.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600145 "versionAdded": "v1_1_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700146 },
147 "Description": {
148 "anyOf": [
149 {
150 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
151 },
152 {
153 "type": "null"
154 }
155 ],
156 "readonly": true
157 },
158 "EndTime": {
Ed Tanouscb103132019-10-08 11:34:22 -0700159 "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 -0700160 "format": "date-time",
Ed Tanouscb103132019-10-08 11:34:22 -0700161 "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 -0700162 "readonly": true,
163 "type": "string"
164 },
Ed Tanoused761212022-09-23 15:03:29 -0700165 "EstimatedDuration": {
166 "description": "The estimated total time required to complete the task.",
167 "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.",
168 "pattern": "-?P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?",
169 "readonly": true,
170 "type": [
171 "string",
172 "null"
173 ],
174 "versionAdded": "v1_6_0"
175 },
Ed Tanous530520e2019-01-02 13:41:37 -0800176 "HidePayload": {
Gunnar Mills09b9d452020-02-11 13:27:39 -0600177 "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`.",
178 "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 -0800179 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600180 "type": "boolean",
181 "versionAdded": "v1_3_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800182 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700183 "Id": {
184 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
185 "readonly": true
186 },
187 "Messages": {
Ed Tanouscb103132019-10-08 11:34:22 -0700188 "description": "An array of messages associated with the task.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700189 "items": {
190 "$ref": "http://redfish.dmtf.org/schemas/v1/Message.json#/definitions/Message"
191 },
Ed Tanouscb103132019-10-08 11:34:22 -0700192 "longDescription": "This property shall contain an array of messages associated with the task.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700193 "type": "array"
194 },
195 "Name": {
196 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
197 "readonly": true
198 },
199 "Oem": {
200 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
Ed Tanouscb103132019-10-08 11:34:22 -0700201 "description": "The OEM extension property.",
202 "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 -0700203 },
Ed Tanous530520e2019-01-02 13:41:37 -0800204 "Payload": {
205 "$ref": "#/definitions/Payload",
Gunnar Mills09b9d452020-02-11 13:27:39 -0600206 "description": "The HTTP and JSON payload details for this task, unless they are hidden from view by the service.",
Ed Tanouscb103132019-10-08 11:34:22 -0700207 "longDescription": "This object shall contain information detailing the HTTP and JSON payload information for executing this task. This object shall not be included in the response if the HidePayload property is `true`.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600208 "versionAdded": "v1_3_0"
209 },
210 "PercentComplete": {
Ed Tanouscb103132019-10-08 11:34:22 -0700211 "description": "The completion percentage of this task.",
212 "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 -0600213 "readonly": true,
214 "type": [
215 "integer",
216 "null"
217 ],
218 "units": "%",
219 "versionAdded": "v1_4_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800220 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700221 "StartTime": {
Ed Tanouscb103132019-10-08 11:34:22 -0700222 "description": "The date and time when the task was started.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700223 "format": "date-time",
Ed Tanouscb103132019-10-08 11:34:22 -0700224 "longDescription": "This property shall indicate the date and time when the task was started.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700225 "readonly": true,
226 "type": "string"
227 },
Asmitha Karunanithic8ccb772020-09-22 10:56:46 -0500228 "SubTasks": {
229 "$ref": "http://redfish.dmtf.org/schemas/v1/TaskCollection.json#/definitions/TaskCollection",
230 "description": "The link to a collection of sub-tasks for this task.",
231 "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.",
232 "readonly": true,
233 "versionAdded": "v1_5_0"
234 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700235 "TaskMonitor": {
236 "description": "The URI of the Task Monitor for this task.",
Ed Tanouscb103132019-10-08 11:34:22 -0700237 "format": "uri-reference",
Ed Tanous118b1c72018-09-13 13:45:51 -0700238 "longDescription": "This property shall contain a URI to Task Monitor as defined in the Redfish Specification.",
239 "readonly": true,
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600240 "type": "string",
241 "versionAdded": "v1_2_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700242 },
243 "TaskState": {
244 "$ref": "#/definitions/TaskState",
245 "description": "The state of the task.",
Ed Tanouscb103132019-10-08 11:34:22 -0700246 "longDescription": "This property shall indicate the state of the task.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700247 "readonly": true
248 },
249 "TaskStatus": {
250 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Health",
Ed Tanouscb103132019-10-08 11:34:22 -0700251 "description": "The completion status of the task.",
252 "longDescription": "This property shall contain the completion status of the task, as defined in the Status section of the Redfish Specification and shall not be set until the task completes.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700253 "readonly": true
254 }
255 },
256 "required": [
Ed Tanous530520e2019-01-02 13:41:37 -0800257 "@odata.id",
258 "@odata.type",
Ed Tanous118b1c72018-09-13 13:45:51 -0700259 "Id",
260 "Name"
261 ],
262 "type": "object"
263 },
264 "TaskState": {
265 "enum": [
266 "New",
267 "Starting",
268 "Running",
269 "Suspended",
270 "Interrupted",
271 "Pending",
272 "Stopping",
273 "Completed",
274 "Killed",
275 "Exception",
276 "Service",
277 "Cancelling",
278 "Cancelled"
279 ],
280 "enumDeprecated": {
Ed Tanouscb103132019-10-08 11:34:22 -0700281 "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 -0700282 },
283 "enumDescriptions": {
284 "Cancelled": "Task has been cancelled by an operator or internal process.",
285 "Cancelling": "Task is in the process of being cancelled.",
Ed Tanouscb103132019-10-08 11:34:22 -0700286 "Completed": "Task was completed.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700287 "Exception": "Task has stopped due to an exception condition.",
288 "Interrupted": "Task has been interrupted.",
289 "Killed": "Task was terminated.",
290 "New": "A new task.",
291 "Pending": "Task is pending and has not started.",
292 "Running": "Task is running normally.",
293 "Service": "Task is running as a service.",
294 "Starting": "Task is starting.",
295 "Stopping": "Task is in the process of stopping.",
296 "Suspended": "Task has been suspended."
297 },
298 "enumLongDescriptions": {
Ed Tanouscb103132019-10-08 11:34:22 -0700299 "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.",
300 "Cancelling": "This value shall represent that the task is in the process of being cancelled.",
Gunnar Mills262d7d42021-01-20 16:28:41 -0600301 "Completed": "This value shall represent that the task completed successfully or with warnings.",
Ed Tanouscb103132019-10-08 11:34:22 -0700302 "Exception": "This value shall represent that the task completed with errors.",
303 "Interrupted": "This value shall represent that the task has been interrupted but is expected to restart and is therefore not complete.",
304 "Killed": "This value shall represent that the task is complete because an operator killed it.",
305 "New": "This value shall represent that the task is newly created, but has not started.",
306 "Pending": "This value shall represent that the task is pending some condition and has not yet begun to execute.",
307 "Running": "This value shall represent that the task is executing.",
308 "Service": "This value shall represent that the task is now running as a service and expected to continue operation until stopped or killed.",
309 "Starting": "This value shall represent that the task is starting.",
310 "Stopping": "This value shall represent that the task is stopping but is not yet complete.",
311 "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 -0700312 },
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600313 "enumVersionAdded": {
314 "Cancelled": "v1_2_0",
315 "Cancelling": "v1_2_0"
316 },
317 "enumVersionDeprecated": {
318 "Killed": "v1_2_0"
319 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700320 "type": "string"
321 }
322 },
323 "owningEntity": "DMTF",
Ed Tanoused761212022-09-23 15:03:29 -0700324 "release": "2022.1",
325 "title": "#Task.v1_6_0.Task"
Ed Tanous118b1c72018-09-13 13:45:51 -0700326}