Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 1 | { |
Ed Tanous | e9cc1bc | 2023-09-21 11:15:30 -0700 | [diff] [blame] | 2 | "$id": "http://redfish.dmtf.org/schemas/v1/Task.v1_7_2.json", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 3 | "$ref": "#/definitions/Task", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 4 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", |
Ed Tanous | f263e09 | 2023-05-22 09:56:29 -0700 | [diff] [blame] | 5 | "copyright": "Copyright 2014-2023 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 6 | "definitions": { |
| 7 | "Actions": { |
| 8 | "additionalProperties": false, |
Asmitha Karunanithi | 009c645 | 2022-09-22 01:07:59 -0500 | [diff] [blame] | 9 | "description": "The available actions for this resource.", |
| 10 | "longDescription": "This type shall contain the available actions for this resource.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 11 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 12 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 13 | "description": "This property shall specify a valid odata or Redfish property.", |
| 14 | "type": [ |
| 15 | "array", |
| 16 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 17 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 18 | "number", |
| 19 | "null", |
| 20 | "object", |
| 21 | "string" |
| 22 | ] |
| 23 | } |
| 24 | }, |
| 25 | "properties": { |
| 26 | "Oem": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 27 | "$ref": "#/definitions/OemActions", |
Asmitha Karunanithi | 009c645 | 2022-09-22 01:07:59 -0500 | [diff] [blame] | 28 | "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 Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 30 | "versionAdded": "v1_1_0" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 31 | } |
| 32 | }, |
| 33 | "type": "object" |
| 34 | }, |
Ed Tanous | a8d8f9d | 2023-01-26 13:57:00 -0800 | [diff] [blame] | 35 | "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 Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 75 | "OemActions": { |
| 76 | "additionalProperties": true, |
Asmitha Karunanithi | 009c645 | 2022-09-22 01:07:59 -0500 | [diff] [blame] | 77 | "description": "The available OEM-specific actions for this resource.", |
| 78 | "longDescription": "This type shall contain the available OEM-specific actions for this resource.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 79 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 80 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 81 | "description": "This property shall specify a valid odata or Redfish property.", |
| 82 | "type": [ |
| 83 | "array", |
| 84 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 85 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 86 | "number", |
| 87 | "null", |
| 88 | "object", |
| 89 | "string" |
| 90 | ] |
| 91 | } |
| 92 | }, |
| 93 | "properties": {}, |
| 94 | "type": "object" |
| 95 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 96 | "Payload": { |
| 97 | "additionalProperties": false, |
| 98 | "description": "The HTTP and JSON payload details for this Task.", |
Asmitha Karunanithi | 009c645 | 2022-09-22 01:07:59 -0500 | [diff] [blame] | 99 | "longDescription": "This type shall contain information detailing the HTTP and JSON payload information for executing this task.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 100 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 101 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 102 | "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 Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 116 | "description": "An array of HTTP headers that this task includes.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 117 | "items": { |
| 118 | "type": "string" |
| 119 | }, |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 120 | "longDescription": "This property shall contain an array of HTTP headers that this task includes.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 121 | "readonly": true, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 122 | "type": "array", |
| 123 | "versionAdded": "v1_3_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 124 | }, |
| 125 | "HttpOperation": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 126 | "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 Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 128 | "readonly": true, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 129 | "type": "string", |
| 130 | "versionAdded": "v1_3_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 131 | }, |
| 132 | "JsonBody": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 133 | "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 Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 135 | "readonly": true, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 136 | "type": "string", |
| 137 | "versionAdded": "v1_3_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 138 | }, |
| 139 | "TargetUri": { |
| 140 | "description": "The URI of the target for this task.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 141 | "format": "uri-reference", |
| 142 | "longDescription": "This property shall contain a link to the location to use as the target for an HTTP operation.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 143 | "readonly": true, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 144 | "type": "string", |
| 145 | "versionAdded": "v1_3_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 146 | } |
| 147 | }, |
| 148 | "type": "object" |
| 149 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 150 | "Task": { |
| 151 | "additionalProperties": false, |
Asmitha Karunanithi | 009c645 | 2022-09-22 01:07:59 -0500 | [diff] [blame] | 152 | "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 Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 154 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 155 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 156 | "description": "This property shall specify a valid odata or Redfish property.", |
| 157 | "type": [ |
| 158 | "array", |
| 159 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 160 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 161 | "number", |
| 162 | "null", |
| 163 | "object", |
| 164 | "string" |
| 165 | ] |
| 166 | } |
| 167 | }, |
| 168 | "properties": { |
| 169 | "@odata.context": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 170 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 171 | }, |
| 172 | "@odata.etag": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 173 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 174 | }, |
| 175 | "@odata.id": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 176 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 177 | }, |
| 178 | "@odata.type": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 179 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 180 | }, |
| 181 | "Actions": { |
| 182 | "$ref": "#/definitions/Actions", |
Asmitha Karunanithi | 009c645 | 2022-09-22 01:07:59 -0500 | [diff] [blame] | 183 | "description": "The available actions for this resource.", |
| 184 | "longDescription": "The actions property shall contain the available actions for this resource.", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 185 | "versionAdded": "v1_1_0" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 186 | }, |
| 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 Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 199 | "description": "The date and time when the task was completed. This property will only appear when the task is complete.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 200 | "format": "date-time", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 201 | "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 Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 202 | "readonly": true, |
| 203 | "type": "string" |
| 204 | }, |
Ed Tanous | ed76121 | 2022-09-23 15:03:29 -0700 | [diff] [blame] | 205 | "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.", |
Ed Tanous | f263e09 | 2023-05-22 09:56:29 -0700 | [diff] [blame] | 208 | "pattern": "^P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?$", |
Ed Tanous | ed76121 | 2022-09-23 15:03:29 -0700 | [diff] [blame] | 209 | "readonly": true, |
| 210 | "type": [ |
| 211 | "string", |
| 212 | "null" |
| 213 | ], |
| 214 | "versionAdded": "v1_6_0" |
| 215 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 216 | "HidePayload": { |
Gunnar Mills | 09b9d45 | 2020-02-11 13:27:39 -0600 | [diff] [blame] | 217 | "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 Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 219 | "readonly": true, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 220 | "type": "boolean", |
| 221 | "versionAdded": "v1_3_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 222 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 223 | "Id": { |
| 224 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 225 | "readonly": true |
| 226 | }, |
Ed Tanous | a8d8f9d | 2023-01-26 13:57:00 -0800 | [diff] [blame] | 227 | "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 Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 233 | "Messages": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 234 | "description": "An array of messages associated with the task.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 235 | "items": { |
| 236 | "$ref": "http://redfish.dmtf.org/schemas/v1/Message.json#/definitions/Message" |
| 237 | }, |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 238 | "longDescription": "This property shall contain an array of messages associated with the task.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 239 | "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 Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 247 | "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 Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 249 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 250 | "Payload": { |
| 251 | "$ref": "#/definitions/Payload", |
Ed Tanous | a8d8f9d | 2023-01-26 13:57:00 -0800 | [diff] [blame] | 252 | "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 Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 254 | "versionAdded": "v1_3_0" |
| 255 | }, |
| 256 | "PercentComplete": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 257 | "description": "The completion percentage of this task.", |
Ed Tanous | e9cc1bc | 2023-09-21 11:15:30 -0700 | [diff] [blame] | 258 | "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 | "maximum": 100, |
| 260 | "minimum": 0, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 261 | "readonly": true, |
| 262 | "type": [ |
| 263 | "integer", |
| 264 | "null" |
| 265 | ], |
| 266 | "units": "%", |
| 267 | "versionAdded": "v1_4_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 268 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 269 | "StartTime": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 270 | "description": "The date and time when the task was started.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 271 | "format": "date-time", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 272 | "longDescription": "This property shall indicate the date and time when the task was started.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 273 | "readonly": true, |
| 274 | "type": "string" |
| 275 | }, |
Asmitha Karunanithi | c8ccb77 | 2020-09-22 10:56:46 -0500 | [diff] [blame] | 276 | "SubTasks": { |
| 277 | "$ref": "http://redfish.dmtf.org/schemas/v1/TaskCollection.json#/definitions/TaskCollection", |
| 278 | "description": "The link to a collection of sub-tasks for this task.", |
| 279 | "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 | "readonly": true, |
| 281 | "versionAdded": "v1_5_0" |
| 282 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 283 | "TaskMonitor": { |
| 284 | "description": "The URI of the Task Monitor for this task.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 285 | "format": "uri-reference", |
Asmitha Karunanithi | 009c645 | 2022-09-22 01:07:59 -0500 | [diff] [blame] | 286 | "longDescription": "This property shall contain a URI to task monitor as defined in the Redfish Specification.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 287 | "readonly": true, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 288 | "type": "string", |
| 289 | "versionAdded": "v1_2_0" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 290 | }, |
| 291 | "TaskState": { |
| 292 | "$ref": "#/definitions/TaskState", |
| 293 | "description": "The state of the task.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 294 | "longDescription": "This property shall indicate the state of the task.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 295 | "readonly": true |
| 296 | }, |
| 297 | "TaskStatus": { |
| 298 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Health", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 299 | "description": "The completion status of the task.", |
Asmitha Karunanithi | 009c645 | 2022-09-22 01:07:59 -0500 | [diff] [blame] | 300 | "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 Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 301 | "readonly": true |
| 302 | } |
| 303 | }, |
| 304 | "required": [ |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 305 | "@odata.id", |
| 306 | "@odata.type", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 307 | "Id", |
| 308 | "Name" |
| 309 | ], |
| 310 | "type": "object" |
| 311 | }, |
| 312 | "TaskState": { |
| 313 | "enum": [ |
| 314 | "New", |
| 315 | "Starting", |
| 316 | "Running", |
| 317 | "Suspended", |
| 318 | "Interrupted", |
| 319 | "Pending", |
| 320 | "Stopping", |
| 321 | "Completed", |
| 322 | "Killed", |
| 323 | "Exception", |
| 324 | "Service", |
| 325 | "Cancelling", |
| 326 | "Cancelled" |
| 327 | ], |
| 328 | "enumDeprecated": { |
Asmitha Karunanithi | 009c645 | 2022-09-22 01:07:59 -0500 | [diff] [blame] | 329 | "Killed": "This value has been deprecated and is being replaced by the `Cancelled` value, which has more determinate semantics." |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 330 | }, |
| 331 | "enumDescriptions": { |
| 332 | "Cancelled": "Task has been cancelled by an operator or internal process.", |
| 333 | "Cancelling": "Task is in the process of being cancelled.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 334 | "Completed": "Task was completed.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 335 | "Exception": "Task has stopped due to an exception condition.", |
| 336 | "Interrupted": "Task has been interrupted.", |
| 337 | "Killed": "Task was terminated.", |
| 338 | "New": "A new task.", |
| 339 | "Pending": "Task is pending and has not started.", |
| 340 | "Running": "Task is running normally.", |
| 341 | "Service": "Task is running as a service.", |
| 342 | "Starting": "Task is starting.", |
| 343 | "Stopping": "Task is in the process of stopping.", |
| 344 | "Suspended": "Task has been suspended." |
| 345 | }, |
| 346 | "enumLongDescriptions": { |
Asmitha Karunanithi | 009c645 | 2022-09-22 01:07:59 -0500 | [diff] [blame] | 347 | "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 Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 348 | "Cancelling": "This value shall represent that the task is in the process of being cancelled.", |
Gunnar Mills | 262d7d4 | 2021-01-20 16:28:41 -0600 | [diff] [blame] | 349 | "Completed": "This value shall represent that the task completed successfully or with warnings.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 350 | "Exception": "This value shall represent that the task completed with errors.", |
| 351 | "Interrupted": "This value shall represent that the task has been interrupted but is expected to restart and is therefore not complete.", |
| 352 | "Killed": "This value shall represent that the task is complete because an operator killed it.", |
| 353 | "New": "This value shall represent that the task is newly created, but has not started.", |
| 354 | "Pending": "This value shall represent that the task is pending some condition and has not yet begun to execute.", |
| 355 | "Running": "This value shall represent that the task is executing.", |
| 356 | "Service": "This value shall represent that the task is now running as a service and expected to continue operation until stopped or killed.", |
| 357 | "Starting": "This value shall represent that the task is starting.", |
| 358 | "Stopping": "This value shall represent that the task is stopping but is not yet complete.", |
| 359 | "Suspended": "This value shall represent that the task has been suspended but is expected to restart and is therefore not complete." |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 360 | }, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame] | 361 | "enumVersionAdded": { |
| 362 | "Cancelled": "v1_2_0", |
| 363 | "Cancelling": "v1_2_0" |
| 364 | }, |
| 365 | "enumVersionDeprecated": { |
| 366 | "Killed": "v1_2_0" |
| 367 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 368 | "type": "string" |
| 369 | } |
| 370 | }, |
| 371 | "owningEntity": "DMTF", |
Ed Tanous | a8d8f9d | 2023-01-26 13:57:00 -0800 | [diff] [blame] | 372 | "release": "2022.3", |
Ed Tanous | e9cc1bc | 2023-09-21 11:15:30 -0700 | [diff] [blame] | 373 | "title": "#Task.v1_7_2.Task" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 374 | } |