Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 1 | { |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 2 | "$id": "http://redfish.dmtf.org/schemas/v1/Task.v1_4_0.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", |
| 5 | "copyright": "Copyright 2014-2018 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, |
| 9 | "description": "The available actions for this resource.", |
| 10 | "longDescription": "This type shall contain the available actions for this resource.", |
| 11 | "patternProperties": { |
| 12 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 13 | "description": "This property shall specify a valid odata or Redfish property.", |
| 14 | "type": [ |
| 15 | "array", |
| 16 | "boolean", |
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", |
| 28 | "description": "This property contains the available OEM specific actions for this resource.", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 29 | "longDescription": "This property shall contain any additional OEM actions for this resource.", |
| 30 | "versionAdded": "v1_1_0" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 31 | } |
| 32 | }, |
| 33 | "type": "object" |
| 34 | }, |
| 35 | "OemActions": { |
| 36 | "additionalProperties": true, |
| 37 | "description": "The available OEM specific actions for this resource.", |
| 38 | "longDescription": "This type shall contain any additional OEM actions for 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", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 45 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 46 | "number", |
| 47 | "null", |
| 48 | "object", |
| 49 | "string" |
| 50 | ] |
| 51 | } |
| 52 | }, |
| 53 | "properties": {}, |
| 54 | "type": "object" |
| 55 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 56 | "Payload": { |
| 57 | "additionalProperties": false, |
| 58 | "description": "The HTTP and JSON payload details for this Task.", |
| 59 | "longDescription": "This object shall contain information detailing the HTTP and JSON payload information for executing this Task.", |
| 60 | "patternProperties": { |
| 61 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 62 | "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": { |
| 76 | "description": "This represents the HTTP headers used in the operation of this Task.", |
| 77 | "items": { |
| 78 | "type": "string" |
| 79 | }, |
| 80 | "longDescription": "The value of this property shall be an array of HTTP headers used in the execution of this Task.", |
| 81 | "readonly": true, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 82 | "type": "array", |
| 83 | "versionAdded": "v1_3_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 84 | }, |
| 85 | "HttpOperation": { |
| 86 | "description": "The HTTP operation to perform to execute this Task.", |
| 87 | "longDescription": "This property shall contain the HTTP operation to execute for this Task.", |
| 88 | "readonly": true, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 89 | "type": "string", |
| 90 | "versionAdded": "v1_3_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 91 | }, |
| 92 | "JsonBody": { |
| 93 | "description": "This property contains the JSON payload to use in the execution of this Task.", |
| 94 | "longDescription": "The value of this property shall be JSON formatted payload used for this Task.", |
| 95 | "readonly": true, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 96 | "type": "string", |
| 97 | "versionAdded": "v1_3_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 98 | }, |
| 99 | "TargetUri": { |
| 100 | "description": "The URI of the target for this task.", |
| 101 | "format": "uri", |
| 102 | "longDescription": "This property shall contain a URI referencing a location to be used as the target for an HTTP operation.", |
| 103 | "readonly": true, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 104 | "type": "string", |
| 105 | "versionAdded": "v1_3_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 106 | } |
| 107 | }, |
| 108 | "type": "object" |
| 109 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 110 | "Task": { |
| 111 | "additionalProperties": false, |
| 112 | "description": "This resource contains information about a specific Task scheduled by or being executed by a Redfish service's Task Service.", |
| 113 | "longDescription": "This resource shall be used to represent a task for a Redfish implementation.", |
| 114 | "patternProperties": { |
| 115 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 116 | "description": "This property shall specify a valid odata or Redfish property.", |
| 117 | "type": [ |
| 118 | "array", |
| 119 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 120 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 121 | "number", |
| 122 | "null", |
| 123 | "object", |
| 124 | "string" |
| 125 | ] |
| 126 | } |
| 127 | }, |
| 128 | "properties": { |
| 129 | "@odata.context": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 130 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/context" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 131 | }, |
| 132 | "@odata.etag": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 133 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/etag" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 134 | }, |
| 135 | "@odata.id": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 136 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/id" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 137 | }, |
| 138 | "@odata.type": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 139 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/type" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 140 | }, |
| 141 | "Actions": { |
| 142 | "$ref": "#/definitions/Actions", |
| 143 | "description": "The available actions for this resource.", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 144 | "longDescription": "The Actions property shall contain the available actions for this resource.", |
| 145 | "versionAdded": "v1_1_0" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 146 | }, |
| 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": { |
| 159 | "description": "The date-time stamp that the task was last completed.", |
| 160 | "format": "date-time", |
| 161 | "longDescription": "The value of this property shall indicate the time the task was completed.", |
| 162 | "readonly": true, |
| 163 | "type": "string" |
| 164 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 165 | "HidePayload": { |
| 166 | "description": "Indicates that the contents of the Payload should be hidden from view after the Task has been created. When set to True, the Payload object will not be returned on GET.", |
| 167 | "longDescription": "This property shall be set to True if the Payload object shall not be returned on GET operations, and set to False if the contents can be returned normally. If this property is not specified when the Task is created, the default value shall be False.", |
| 168 | "readonly": true, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 169 | "type": "boolean", |
| 170 | "versionAdded": "v1_3_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 171 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 172 | "Id": { |
| 173 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 174 | "readonly": true |
| 175 | }, |
| 176 | "Messages": { |
| 177 | "description": "This is an array of messages associated with the task.", |
| 178 | "items": { |
| 179 | "$ref": "http://redfish.dmtf.org/schemas/v1/Message.json#/definitions/Message" |
| 180 | }, |
| 181 | "longDescription": "The value of this property shall be an array of messages associated with the task.", |
| 182 | "type": "array" |
| 183 | }, |
| 184 | "Name": { |
| 185 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 186 | "readonly": true |
| 187 | }, |
| 188 | "Oem": { |
| 189 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 190 | "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.", |
| 191 | "longDescription": "The value of this string shall be of the format for the reserved word *Oem*." |
| 192 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 193 | "Payload": { |
| 194 | "$ref": "#/definitions/Payload", |
| 195 | "description": "The HTTP and JSON payload details for this task.", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 196 | "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 set to True.", |
| 197 | "versionAdded": "v1_3_0" |
| 198 | }, |
| 199 | "PercentComplete": { |
| 200 | "description": "The completion percentage of this Task.", |
| 201 | "longDescription": "The value of 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.", |
| 202 | "readonly": true, |
| 203 | "type": [ |
| 204 | "integer", |
| 205 | "null" |
| 206 | ], |
| 207 | "units": "%", |
| 208 | "versionAdded": "v1_4_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 209 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 210 | "StartTime": { |
| 211 | "description": "The date-time stamp that the task was last started.", |
| 212 | "format": "date-time", |
| 213 | "longDescription": "The value of this property shall indicate the time the task was started.", |
| 214 | "readonly": true, |
| 215 | "type": "string" |
| 216 | }, |
| 217 | "TaskMonitor": { |
| 218 | "description": "The URI of the Task Monitor for this task.", |
| 219 | "format": "uri", |
| 220 | "longDescription": "This property shall contain a URI to Task Monitor as defined in the Redfish Specification.", |
| 221 | "readonly": true, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 222 | "type": "string", |
| 223 | "versionAdded": "v1_2_0" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 224 | }, |
| 225 | "TaskState": { |
| 226 | "$ref": "#/definitions/TaskState", |
| 227 | "description": "The state of the task.", |
| 228 | "longDescription": "The value of this property shall indicate the state of the task. New shall be used to indicate that the task is a new task which has just been instantiated and is in the initial state and indicates it has never been started. Starting shall be used to indicate that the task is moving from the New, Suspended, or Service states into the Running state. Running shall be used to indicate that the Task is running. Suspended shall be used to indicate that the Task is stopped (e.g., by a user), but can be restarted in a seamless manner. Interrupted shall be used to indicate that the Task was interrupted (e.g., by a server crash) in the middle of processing, and the user should either re-run/restart the Task. Pending shall be used to indicate that the Task has been queued and will be scheduled for processing as soon as resources are available to handle the request. Stopping shall be used to indicate that the Task is in the process of moving to a Completed, Killed, or Exception state. Completed shall be used to indicate that the task has completed normally. Killed shall be used to indicate that the task has been stopped by a Kill state change request (non-graceful shutdown). Exception shall be used to indicate that the Task is in an abnormal state that might be indicative of an error condition. Service shall be used to indicate that the Task is in a state that supports problem discovery, or resolution, or both. This state is used when a corrective action is possible.", |
| 229 | "readonly": true |
| 230 | }, |
| 231 | "TaskStatus": { |
| 232 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Health", |
| 233 | "description": "This is the completion status of the task.", |
| 234 | "longDescription": "The value of this property shall be the completion status of the task, as defined in the Status section of the Redfish specification and shall not be set until the task has completed.", |
| 235 | "readonly": true |
| 236 | } |
| 237 | }, |
| 238 | "required": [ |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 239 | "@odata.id", |
| 240 | "@odata.type", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 241 | "Id", |
| 242 | "Name" |
| 243 | ], |
| 244 | "type": "object" |
| 245 | }, |
| 246 | "TaskState": { |
| 247 | "enum": [ |
| 248 | "New", |
| 249 | "Starting", |
| 250 | "Running", |
| 251 | "Suspended", |
| 252 | "Interrupted", |
| 253 | "Pending", |
| 254 | "Stopping", |
| 255 | "Completed", |
| 256 | "Killed", |
| 257 | "Exception", |
| 258 | "Service", |
| 259 | "Cancelling", |
| 260 | "Cancelled" |
| 261 | ], |
| 262 | "enumDeprecated": { |
| 263 | "Killed": "This value has been deprecated and is being replaced by the value Cancelled which has more determinate semantics." |
| 264 | }, |
| 265 | "enumDescriptions": { |
| 266 | "Cancelled": "Task has been cancelled by an operator or internal process.", |
| 267 | "Cancelling": "Task is in the process of being cancelled.", |
| 268 | "Completed": "Task has completed.", |
| 269 | "Exception": "Task has stopped due to an exception condition.", |
| 270 | "Interrupted": "Task has been interrupted.", |
| 271 | "Killed": "Task was terminated.", |
| 272 | "New": "A new task.", |
| 273 | "Pending": "Task is pending and has not started.", |
| 274 | "Running": "Task is running normally.", |
| 275 | "Service": "Task is running as a service.", |
| 276 | "Starting": "Task is starting.", |
| 277 | "Stopping": "Task is in the process of stopping.", |
| 278 | "Suspended": "Task has been suspended." |
| 279 | }, |
| 280 | "enumLongDescriptions": { |
| 281 | "Cancelled": "This value shall represent that the operation was cancelled either through a Delete on a Task Monitor or Task Resource or by an internal process.", |
| 282 | "Cancelling": "This value shall represent that the operation is in the process of being cancelled.", |
| 283 | "Completed": "This value shall represent that the operation is complete and completed sucessfully or with warnings.", |
| 284 | "Exception": "This value shall represent that the operation is complete and completed with errors.", |
| 285 | "Interrupted": "This value shall represent that the operation has been interrupted but is expected to restart and is therefore not complete.", |
| 286 | "Killed": "This value shall represent that the operation is complete because the task was killed by an operator.", |
| 287 | "New": "This value shall represent that this task is newly created but the operation has not yet started.", |
| 288 | "Pending": "This value shall represent that the operation is pending some condition and has not yet begun to execute.", |
| 289 | "Running": "This value shall represent that the operation is executing.", |
| 290 | "Service": "This value shall represent that the operation is now running as a service and expected to continue operation until stopped or killed.", |
| 291 | "Starting": "This value shall represent that the operation is starting.", |
| 292 | "Stopping": "This value shall represent that the operation is stopping but is not yet complete.", |
| 293 | "Suspended": "This value shall represent that the operation has been suspended but is expected to restart and is therefore not complete." |
| 294 | }, |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 295 | "enumVersionAdded": { |
| 296 | "Cancelled": "v1_2_0", |
| 297 | "Cancelling": "v1_2_0" |
| 298 | }, |
| 299 | "enumVersionDeprecated": { |
| 300 | "Killed": "v1_2_0" |
| 301 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 302 | "type": "string" |
| 303 | } |
| 304 | }, |
| 305 | "owningEntity": "DMTF", |
Marri Devender Rao | d45d2d0 | 2019-01-21 10:11:34 -0600 | [diff] [blame^] | 306 | "release": "2018.3", |
| 307 | "title": "#Task.v1_4_0.Task" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 308 | } |