xref: /openbmc/bmcweb/features/redfish/schema/dmtf/json-schema/Task.v1_7_4.json (revision f2a8e57ede74a8252100b2281e3f4d170aa69391)
1*f2a8e57eSGunnar Mills{
2*f2a8e57eSGunnar Mills    "$id": "http://redfish.dmtf.org/schemas/v1/Task.v1_7_4.json",
3*f2a8e57eSGunnar Mills    "$ref": "#/definitions/Task",
4*f2a8e57eSGunnar Mills    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5*f2a8e57eSGunnar Mills    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6*f2a8e57eSGunnar Mills    "definitions": {
7*f2a8e57eSGunnar Mills        "Actions": {
8*f2a8e57eSGunnar Mills            "additionalProperties": false,
9*f2a8e57eSGunnar Mills            "description": "The available actions for this resource.",
10*f2a8e57eSGunnar Mills            "longDescription": "This type shall contain the available actions for this resource.",
11*f2a8e57eSGunnar Mills            "patternProperties": {
12*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
14*f2a8e57eSGunnar Mills                    "type": [
15*f2a8e57eSGunnar Mills                        "array",
16*f2a8e57eSGunnar Mills                        "boolean",
17*f2a8e57eSGunnar Mills                        "integer",
18*f2a8e57eSGunnar Mills                        "number",
19*f2a8e57eSGunnar Mills                        "null",
20*f2a8e57eSGunnar Mills                        "object",
21*f2a8e57eSGunnar Mills                        "string"
22*f2a8e57eSGunnar Mills                    ]
23*f2a8e57eSGunnar Mills                }
24*f2a8e57eSGunnar Mills            },
25*f2a8e57eSGunnar Mills            "properties": {
26*f2a8e57eSGunnar Mills                "Oem": {
27*f2a8e57eSGunnar Mills                    "$ref": "#/definitions/OemActions",
28*f2a8e57eSGunnar Mills                    "description": "The available OEM-specific actions for this resource.",
29*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the available OEM-specific actions for this resource.",
30*f2a8e57eSGunnar Mills                    "versionAdded": "v1_1_0"
31*f2a8e57eSGunnar Mills                }
32*f2a8e57eSGunnar Mills            },
33*f2a8e57eSGunnar Mills            "type": "object"
34*f2a8e57eSGunnar Mills        },
35*f2a8e57eSGunnar Mills        "Links": {
36*f2a8e57eSGunnar Mills            "additionalProperties": false,
37*f2a8e57eSGunnar Mills            "description": "The links to other resources that are related to this resource.",
38*f2a8e57eSGunnar Mills            "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*f2a8e57eSGunnar Mills            "patternProperties": {
40*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
41*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
42*f2a8e57eSGunnar Mills                    "type": [
43*f2a8e57eSGunnar Mills                        "array",
44*f2a8e57eSGunnar Mills                        "boolean",
45*f2a8e57eSGunnar Mills                        "integer",
46*f2a8e57eSGunnar Mills                        "number",
47*f2a8e57eSGunnar Mills                        "null",
48*f2a8e57eSGunnar Mills                        "object",
49*f2a8e57eSGunnar Mills                        "string"
50*f2a8e57eSGunnar Mills                    ]
51*f2a8e57eSGunnar Mills                }
52*f2a8e57eSGunnar Mills            },
53*f2a8e57eSGunnar Mills            "properties": {
54*f2a8e57eSGunnar Mills                "CreatedResources": {
55*f2a8e57eSGunnar Mills                    "description": "An array of URIs referencing the resources created as the result of the operation that produced this task.",
56*f2a8e57eSGunnar Mills                    "items": {
57*f2a8e57eSGunnar Mills                        "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef"
58*f2a8e57eSGunnar Mills                    },
59*f2a8e57eSGunnar Mills                    "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*f2a8e57eSGunnar Mills                    "readonly": true,
61*f2a8e57eSGunnar Mills                    "type": "array",
62*f2a8e57eSGunnar Mills                    "versionAdded": "v1_7_0"
63*f2a8e57eSGunnar Mills                },
64*f2a8e57eSGunnar Mills                "CreatedResources@odata.count": {
65*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
66*f2a8e57eSGunnar Mills                },
67*f2a8e57eSGunnar Mills                "Oem": {
68*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
69*f2a8e57eSGunnar Mills                    "description": "The OEM extension property.",
70*f2a8e57eSGunnar Mills                    "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*f2a8e57eSGunnar Mills                }
72*f2a8e57eSGunnar Mills            },
73*f2a8e57eSGunnar Mills            "type": "object"
74*f2a8e57eSGunnar Mills        },
75*f2a8e57eSGunnar Mills        "OemActions": {
76*f2a8e57eSGunnar Mills            "additionalProperties": true,
77*f2a8e57eSGunnar Mills            "description": "The available OEM-specific actions for this resource.",
78*f2a8e57eSGunnar Mills            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
79*f2a8e57eSGunnar Mills            "patternProperties": {
80*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
81*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
82*f2a8e57eSGunnar Mills                    "type": [
83*f2a8e57eSGunnar Mills                        "array",
84*f2a8e57eSGunnar Mills                        "boolean",
85*f2a8e57eSGunnar Mills                        "integer",
86*f2a8e57eSGunnar Mills                        "number",
87*f2a8e57eSGunnar Mills                        "null",
88*f2a8e57eSGunnar Mills                        "object",
89*f2a8e57eSGunnar Mills                        "string"
90*f2a8e57eSGunnar Mills                    ]
91*f2a8e57eSGunnar Mills                }
92*f2a8e57eSGunnar Mills            },
93*f2a8e57eSGunnar Mills            "properties": {},
94*f2a8e57eSGunnar Mills            "type": "object"
95*f2a8e57eSGunnar Mills        },
96*f2a8e57eSGunnar Mills        "Payload": {
97*f2a8e57eSGunnar Mills            "additionalProperties": false,
98*f2a8e57eSGunnar Mills            "description": "The HTTP and JSON payload details for this Task.",
99*f2a8e57eSGunnar Mills            "longDescription": "This type shall contain information detailing the HTTP and JSON payload information for executing this task.",
100*f2a8e57eSGunnar Mills            "patternProperties": {
101*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
102*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
103*f2a8e57eSGunnar Mills                    "type": [
104*f2a8e57eSGunnar Mills                        "array",
105*f2a8e57eSGunnar Mills                        "boolean",
106*f2a8e57eSGunnar Mills                        "integer",
107*f2a8e57eSGunnar Mills                        "number",
108*f2a8e57eSGunnar Mills                        "null",
109*f2a8e57eSGunnar Mills                        "object",
110*f2a8e57eSGunnar Mills                        "string"
111*f2a8e57eSGunnar Mills                    ]
112*f2a8e57eSGunnar Mills                }
113*f2a8e57eSGunnar Mills            },
114*f2a8e57eSGunnar Mills            "properties": {
115*f2a8e57eSGunnar Mills                "HttpHeaders": {
116*f2a8e57eSGunnar Mills                    "description": "An array of HTTP headers that this task includes.",
117*f2a8e57eSGunnar Mills                    "items": {
118*f2a8e57eSGunnar Mills                        "type": "string"
119*f2a8e57eSGunnar Mills                    },
120*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain an array of HTTP headers that this task includes.",
121*f2a8e57eSGunnar Mills                    "readonly": true,
122*f2a8e57eSGunnar Mills                    "type": "array",
123*f2a8e57eSGunnar Mills                    "versionAdded": "v1_3_0"
124*f2a8e57eSGunnar Mills                },
125*f2a8e57eSGunnar Mills                "HttpOperation": {
126*f2a8e57eSGunnar Mills                    "description": "The HTTP operation to perform to execute this task.",
127*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the HTTP operation to execute for this task.",
128*f2a8e57eSGunnar Mills                    "readonly": true,
129*f2a8e57eSGunnar Mills                    "type": "string",
130*f2a8e57eSGunnar Mills                    "versionAdded": "v1_3_0"
131*f2a8e57eSGunnar Mills                },
132*f2a8e57eSGunnar Mills                "JsonBody": {
133*f2a8e57eSGunnar Mills                    "description": "The JSON payload to use in the execution of this task.",
134*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the JSON-formatted payload used for this task.",
135*f2a8e57eSGunnar Mills                    "readonly": true,
136*f2a8e57eSGunnar Mills                    "type": "string",
137*f2a8e57eSGunnar Mills                    "versionAdded": "v1_3_0"
138*f2a8e57eSGunnar Mills                },
139*f2a8e57eSGunnar Mills                "TargetUri": {
140*f2a8e57eSGunnar Mills                    "description": "The URI of the target for this task.",
141*f2a8e57eSGunnar Mills                    "format": "uri-reference",
142*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain a link to the location to use as the target for an HTTP operation.",
143*f2a8e57eSGunnar Mills                    "readonly": true,
144*f2a8e57eSGunnar Mills                    "type": "string",
145*f2a8e57eSGunnar Mills                    "versionAdded": "v1_3_0"
146*f2a8e57eSGunnar Mills                }
147*f2a8e57eSGunnar Mills            },
148*f2a8e57eSGunnar Mills            "type": "object"
149*f2a8e57eSGunnar Mills        },
150*f2a8e57eSGunnar Mills        "Task": {
151*f2a8e57eSGunnar Mills            "additionalProperties": false,
152*f2a8e57eSGunnar Mills            "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*f2a8e57eSGunnar Mills            "longDescription": "This resource contains a task for a Redfish implementation.",
154*f2a8e57eSGunnar Mills            "patternProperties": {
155*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
156*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
157*f2a8e57eSGunnar Mills                    "type": [
158*f2a8e57eSGunnar Mills                        "array",
159*f2a8e57eSGunnar Mills                        "boolean",
160*f2a8e57eSGunnar Mills                        "integer",
161*f2a8e57eSGunnar Mills                        "number",
162*f2a8e57eSGunnar Mills                        "null",
163*f2a8e57eSGunnar Mills                        "object",
164*f2a8e57eSGunnar Mills                        "string"
165*f2a8e57eSGunnar Mills                    ]
166*f2a8e57eSGunnar Mills                }
167*f2a8e57eSGunnar Mills            },
168*f2a8e57eSGunnar Mills            "properties": {
169*f2a8e57eSGunnar Mills                "@odata.context": {
170*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
171*f2a8e57eSGunnar Mills                },
172*f2a8e57eSGunnar Mills                "@odata.etag": {
173*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
174*f2a8e57eSGunnar Mills                },
175*f2a8e57eSGunnar Mills                "@odata.id": {
176*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
177*f2a8e57eSGunnar Mills                },
178*f2a8e57eSGunnar Mills                "@odata.type": {
179*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
180*f2a8e57eSGunnar Mills                },
181*f2a8e57eSGunnar Mills                "Actions": {
182*f2a8e57eSGunnar Mills                    "$ref": "#/definitions/Actions",
183*f2a8e57eSGunnar Mills                    "description": "The available actions for this resource.",
184*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the available actions for this resource.",
185*f2a8e57eSGunnar Mills                    "versionAdded": "v1_1_0"
186*f2a8e57eSGunnar Mills                },
187*f2a8e57eSGunnar Mills                "Description": {
188*f2a8e57eSGunnar Mills                    "anyOf": [
189*f2a8e57eSGunnar Mills                        {
190*f2a8e57eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
191*f2a8e57eSGunnar Mills                        },
192*f2a8e57eSGunnar Mills                        {
193*f2a8e57eSGunnar Mills                            "type": "null"
194*f2a8e57eSGunnar Mills                        }
195*f2a8e57eSGunnar Mills                    ],
196*f2a8e57eSGunnar Mills                    "readonly": true
197*f2a8e57eSGunnar Mills                },
198*f2a8e57eSGunnar Mills                "EndTime": {
199*f2a8e57eSGunnar Mills                    "description": "The date and time when the task was completed.  This property will only appear when the task is complete.",
200*f2a8e57eSGunnar Mills                    "format": "date-time",
201*f2a8e57eSGunnar Mills                    "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`.",
202*f2a8e57eSGunnar Mills                    "readonly": true,
203*f2a8e57eSGunnar Mills                    "type": "string"
204*f2a8e57eSGunnar Mills                },
205*f2a8e57eSGunnar Mills                "EstimatedDuration": {
206*f2a8e57eSGunnar Mills                    "description": "The estimated total time required to complete the task.",
207*f2a8e57eSGunnar Mills                    "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*f2a8e57eSGunnar Mills                    "pattern": "^P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?$",
209*f2a8e57eSGunnar Mills                    "readonly": true,
210*f2a8e57eSGunnar Mills                    "type": [
211*f2a8e57eSGunnar Mills                        "string",
212*f2a8e57eSGunnar Mills                        "null"
213*f2a8e57eSGunnar Mills                    ],
214*f2a8e57eSGunnar Mills                    "versionAdded": "v1_6_0"
215*f2a8e57eSGunnar Mills                },
216*f2a8e57eSGunnar Mills                "HidePayload": {
217*f2a8e57eSGunnar Mills                    "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*f2a8e57eSGunnar Mills                    "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.",
219*f2a8e57eSGunnar Mills                    "readonly": true,
220*f2a8e57eSGunnar Mills                    "type": "boolean",
221*f2a8e57eSGunnar Mills                    "versionAdded": "v1_3_0"
222*f2a8e57eSGunnar Mills                },
223*f2a8e57eSGunnar Mills                "Id": {
224*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
225*f2a8e57eSGunnar Mills                    "readonly": true
226*f2a8e57eSGunnar Mills                },
227*f2a8e57eSGunnar Mills                "Links": {
228*f2a8e57eSGunnar Mills                    "$ref": "#/definitions/Links",
229*f2a8e57eSGunnar Mills                    "description": "Contains references to other resources that are related to this resource.",
230*f2a8e57eSGunnar Mills                    "longDescription": "The `Links` property, as described by the Redfish Specification, shall contain references to resources that are related to but are not contained by, or subordinate to, this resource.",
231*f2a8e57eSGunnar Mills                    "versionAdded": "v1_7_0"
232*f2a8e57eSGunnar Mills                },
233*f2a8e57eSGunnar Mills                "Messages": {
234*f2a8e57eSGunnar Mills                    "description": "An array of messages associated with the task.",
235*f2a8e57eSGunnar Mills                    "items": {
236*f2a8e57eSGunnar Mills                        "$ref": "http://redfish.dmtf.org/schemas/v1/Message.json#/definitions/Message"
237*f2a8e57eSGunnar Mills                    },
238*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain an array of messages associated with the task.",
239*f2a8e57eSGunnar Mills                    "type": "array"
240*f2a8e57eSGunnar Mills                },
241*f2a8e57eSGunnar Mills                "Name": {
242*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
243*f2a8e57eSGunnar Mills                    "readonly": true
244*f2a8e57eSGunnar Mills                },
245*f2a8e57eSGunnar Mills                "Oem": {
246*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
247*f2a8e57eSGunnar Mills                    "description": "The OEM extension property.",
248*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
249*f2a8e57eSGunnar Mills                },
250*f2a8e57eSGunnar Mills                "Payload": {
251*f2a8e57eSGunnar Mills                    "$ref": "#/definitions/Payload",
252*f2a8e57eSGunnar Mills                    "description": "The HTTP and JSON request payload details for this task, unless they are hidden from view by the service.",
253*f2a8e57eSGunnar Mills                    "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`.",
254*f2a8e57eSGunnar Mills                    "versionAdded": "v1_3_0"
255*f2a8e57eSGunnar Mills                },
256*f2a8e57eSGunnar Mills                "PercentComplete": {
257*f2a8e57eSGunnar Mills                    "description": "The completion percentage of this task.",
258*f2a8e57eSGunnar Mills                    "longDescription": "This property shall indicate the completion progress of the task, reported in percent of completion, `0` to `100`.  If the task has not been started, the value shall be zero.",
259*f2a8e57eSGunnar Mills                    "maximum": 100,
260*f2a8e57eSGunnar Mills                    "minimum": 0,
261*f2a8e57eSGunnar Mills                    "readonly": true,
262*f2a8e57eSGunnar Mills                    "type": [
263*f2a8e57eSGunnar Mills                        "integer",
264*f2a8e57eSGunnar Mills                        "null"
265*f2a8e57eSGunnar Mills                    ],
266*f2a8e57eSGunnar Mills                    "units": "%",
267*f2a8e57eSGunnar Mills                    "versionAdded": "v1_4_0"
268*f2a8e57eSGunnar Mills                },
269*f2a8e57eSGunnar Mills                "StartTime": {
270*f2a8e57eSGunnar Mills                    "description": "The date and time when the task was started.",
271*f2a8e57eSGunnar Mills                    "format": "date-time",
272*f2a8e57eSGunnar Mills                    "longDescription": "This property shall indicate the date and time when the task was started.",
273*f2a8e57eSGunnar Mills                    "readonly": true,
274*f2a8e57eSGunnar Mills                    "type": "string"
275*f2a8e57eSGunnar Mills                },
276*f2a8e57eSGunnar Mills                "SubTasks": {
277*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/TaskCollection.json#/definitions/TaskCollection",
278*f2a8e57eSGunnar Mills                    "description": "The link to a collection of sub-tasks for this task.",
279*f2a8e57eSGunnar Mills                    "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.",
280*f2a8e57eSGunnar Mills                    "readonly": true,
281*f2a8e57eSGunnar Mills                    "versionAdded": "v1_5_0"
282*f2a8e57eSGunnar Mills                },
283*f2a8e57eSGunnar Mills                "TaskMonitor": {
284*f2a8e57eSGunnar Mills                    "description": "The URI of the task monitor for this task.",
285*f2a8e57eSGunnar Mills                    "format": "uri-reference",
286*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain a URI to task monitor as defined in the Redfish Specification.",
287*f2a8e57eSGunnar Mills                    "readonly": true,
288*f2a8e57eSGunnar Mills                    "type": "string",
289*f2a8e57eSGunnar Mills                    "versionAdded": "v1_2_0"
290*f2a8e57eSGunnar Mills                },
291*f2a8e57eSGunnar Mills                "TaskState": {
292*f2a8e57eSGunnar Mills                    "$ref": "#/definitions/TaskState",
293*f2a8e57eSGunnar Mills                    "description": "The state of the task.",
294*f2a8e57eSGunnar Mills                    "longDescription": "This property shall indicate the state of the task.",
295*f2a8e57eSGunnar Mills                    "readonly": true
296*f2a8e57eSGunnar Mills                },
297*f2a8e57eSGunnar Mills                "TaskStatus": {
298*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Health",
299*f2a8e57eSGunnar Mills                    "description": "The completion status of the task.",
300*f2a8e57eSGunnar Mills                    "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 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.",
301*f2a8e57eSGunnar Mills                    "readonly": true
302*f2a8e57eSGunnar Mills                }
303*f2a8e57eSGunnar Mills            },
304*f2a8e57eSGunnar Mills            "required": [
305*f2a8e57eSGunnar Mills                "@odata.id",
306*f2a8e57eSGunnar Mills                "@odata.type",
307*f2a8e57eSGunnar Mills                "Id",
308*f2a8e57eSGunnar Mills                "Name"
309*f2a8e57eSGunnar Mills            ],
310*f2a8e57eSGunnar Mills            "type": "object"
311*f2a8e57eSGunnar Mills        },
312*f2a8e57eSGunnar Mills        "TaskState": {
313*f2a8e57eSGunnar Mills            "enum": [
314*f2a8e57eSGunnar Mills                "New",
315*f2a8e57eSGunnar Mills                "Starting",
316*f2a8e57eSGunnar Mills                "Running",
317*f2a8e57eSGunnar Mills                "Suspended",
318*f2a8e57eSGunnar Mills                "Interrupted",
319*f2a8e57eSGunnar Mills                "Pending",
320*f2a8e57eSGunnar Mills                "Stopping",
321*f2a8e57eSGunnar Mills                "Completed",
322*f2a8e57eSGunnar Mills                "Killed",
323*f2a8e57eSGunnar Mills                "Exception",
324*f2a8e57eSGunnar Mills                "Service",
325*f2a8e57eSGunnar Mills                "Cancelling",
326*f2a8e57eSGunnar Mills                "Cancelled"
327*f2a8e57eSGunnar Mills            ],
328*f2a8e57eSGunnar Mills            "enumDeprecated": {
329*f2a8e57eSGunnar Mills                "Killed": "This value has been deprecated and is being replaced by the `Cancelled` value, which has more determinate semantics."
330*f2a8e57eSGunnar Mills            },
331*f2a8e57eSGunnar Mills            "enumDescriptions": {
332*f2a8e57eSGunnar Mills                "Cancelled": "Task has been cancelled by an operator or internal process.",
333*f2a8e57eSGunnar Mills                "Cancelling": "Task is in the process of being cancelled.",
334*f2a8e57eSGunnar Mills                "Completed": "Task was completed.",
335*f2a8e57eSGunnar Mills                "Exception": "Task has stopped due to an exception condition.",
336*f2a8e57eSGunnar Mills                "Interrupted": "Task has been interrupted.",
337*f2a8e57eSGunnar Mills                "Killed": "Task was terminated.",
338*f2a8e57eSGunnar Mills                "New": "A new task.",
339*f2a8e57eSGunnar Mills                "Pending": "Task is pending and has not started.",
340*f2a8e57eSGunnar Mills                "Running": "Task is running normally.",
341*f2a8e57eSGunnar Mills                "Service": "Task is running as a service.",
342*f2a8e57eSGunnar Mills                "Starting": "Task is starting.",
343*f2a8e57eSGunnar Mills                "Stopping": "Task is in the process of stopping.",
344*f2a8e57eSGunnar Mills                "Suspended": "Task has been suspended."
345*f2a8e57eSGunnar Mills            },
346*f2a8e57eSGunnar Mills            "enumLongDescriptions": {
347*f2a8e57eSGunnar Mills                "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.",
348*f2a8e57eSGunnar Mills                "Cancelling": "This value shall represent that the task is in the process of being cancelled.",
349*f2a8e57eSGunnar Mills                "Completed": "This value shall represent that the task completed successfully or with warnings.",
350*f2a8e57eSGunnar Mills                "Exception": "This value shall represent that the task completed with errors.",
351*f2a8e57eSGunnar Mills                "Interrupted": "This value shall represent that the task has been interrupted but is expected to restart and is therefore not complete.",
352*f2a8e57eSGunnar Mills                "Killed": "This value shall represent that the task is complete because an operator killed it.",
353*f2a8e57eSGunnar Mills                "New": "This value shall represent that the task is newly created but has not started.",
354*f2a8e57eSGunnar Mills                "Pending": "This value shall represent that the task is pending some condition and has not yet begun to execute.",
355*f2a8e57eSGunnar Mills                "Running": "This value shall represent that the task is executing.",
356*f2a8e57eSGunnar Mills                "Service": "This value shall represent that the task is now running as a service and expected to continue operation until stopped or killed.",
357*f2a8e57eSGunnar Mills                "Starting": "This value shall represent that the task is starting.",
358*f2a8e57eSGunnar Mills                "Stopping": "This value shall represent that the task is stopping but is not yet complete.",
359*f2a8e57eSGunnar Mills                "Suspended": "This value shall represent that the task has been suspended but is expected to restart and is therefore not complete."
360*f2a8e57eSGunnar Mills            },
361*f2a8e57eSGunnar Mills            "enumVersionAdded": {
362*f2a8e57eSGunnar Mills                "Cancelled": "v1_2_0",
363*f2a8e57eSGunnar Mills                "Cancelling": "v1_2_0"
364*f2a8e57eSGunnar Mills            },
365*f2a8e57eSGunnar Mills            "enumVersionDeprecated": {
366*f2a8e57eSGunnar Mills                "Killed": "v1_2_0"
367*f2a8e57eSGunnar Mills            },
368*f2a8e57eSGunnar Mills            "type": "string"
369*f2a8e57eSGunnar Mills        }
370*f2a8e57eSGunnar Mills    },
371*f2a8e57eSGunnar Mills    "language": "en",
372*f2a8e57eSGunnar Mills    "owningEntity": "DMTF",
373*f2a8e57eSGunnar Mills    "release": "2022.3",
374*f2a8e57eSGunnar Mills    "title": "#Task.v1_7_4.Task"
375*f2a8e57eSGunnar Mills}