Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 1 | { |
| 2 | "$ref": "#/definitions/Task", |
| 3 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_4_0.json", |
| 4 | "copyright": "Copyright 2014-2018 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", |
| 5 | "definitions": { |
| 6 | "Actions": { |
| 7 | "additionalProperties": false, |
| 8 | "description": "The available actions for this resource.", |
| 9 | "longDescription": "This type shall contain the available actions for this resource.", |
| 10 | "patternProperties": { |
| 11 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 12 | "description": "This property shall specify a valid odata or Redfish property.", |
| 13 | "type": [ |
| 14 | "array", |
| 15 | "boolean", |
| 16 | "number", |
| 17 | "null", |
| 18 | "object", |
| 19 | "string" |
| 20 | ] |
| 21 | } |
| 22 | }, |
| 23 | "properties": { |
| 24 | "Oem": { |
| 25 | "$ref": "#/definitions/OemActions" |
| 26 | } |
| 27 | }, |
| 28 | "type": "object" |
| 29 | }, |
| 30 | "OemActions": { |
| 31 | "additionalProperties": true, |
| 32 | "description": "The available OEM specific actions for this resource.", |
| 33 | "longDescription": "This type shall contain any additional OEM actions for this resource.", |
| 34 | "patternProperties": { |
| 35 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 36 | "description": "This property shall specify a valid odata or Redfish property.", |
| 37 | "type": [ |
| 38 | "array", |
| 39 | "boolean", |
| 40 | "number", |
| 41 | "null", |
| 42 | "object", |
| 43 | "string" |
| 44 | ] |
| 45 | } |
| 46 | }, |
| 47 | "properties": {}, |
| 48 | "type": "object" |
| 49 | }, |
| 50 | "Task": { |
| 51 | "additionalProperties": false, |
| 52 | "description": "This resource contains information about a specific Task scheduled by or being executed by a Redfish service's Task Service.", |
| 53 | "longDescription": "This resource shall be used to represent a task for a Redfish implementation.", |
| 54 | "patternProperties": { |
| 55 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 56 | "description": "This property shall specify a valid odata or Redfish property.", |
| 57 | "type": [ |
| 58 | "array", |
| 59 | "boolean", |
| 60 | "number", |
| 61 | "null", |
| 62 | "object", |
| 63 | "string" |
| 64 | ] |
| 65 | } |
| 66 | }, |
| 67 | "properties": { |
| 68 | "@odata.context": { |
| 69 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/context" |
| 70 | }, |
| 71 | "@odata.etag": { |
| 72 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/etag" |
| 73 | }, |
| 74 | "@odata.id": { |
| 75 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/id" |
| 76 | }, |
| 77 | "@odata.type": { |
| 78 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/type" |
| 79 | }, |
| 80 | "Actions": { |
| 81 | "$ref": "#/definitions/Actions", |
| 82 | "description": "The available actions for this resource.", |
| 83 | "longDescription": "The Actions property shall contain the available actions for this resource." |
| 84 | }, |
| 85 | "Description": { |
| 86 | "anyOf": [ |
| 87 | { |
| 88 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 89 | }, |
| 90 | { |
| 91 | "type": "null" |
| 92 | } |
| 93 | ], |
| 94 | "readonly": true |
| 95 | }, |
| 96 | "EndTime": { |
| 97 | "description": "The date-time stamp that the task was last completed.", |
| 98 | "format": "date-time", |
| 99 | "longDescription": "The value of this property shall indicate the time the task was completed.", |
| 100 | "readonly": true, |
| 101 | "type": "string" |
| 102 | }, |
| 103 | "Id": { |
| 104 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 105 | "readonly": true |
| 106 | }, |
| 107 | "Messages": { |
| 108 | "description": "This is an array of messages associated with the task.", |
| 109 | "items": { |
| 110 | "$ref": "http://redfish.dmtf.org/schemas/v1/Message.json#/definitions/Message" |
| 111 | }, |
| 112 | "longDescription": "The value of this property shall be an array of messages associated with the task.", |
| 113 | "type": "array" |
| 114 | }, |
| 115 | "Name": { |
| 116 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 117 | "readonly": true |
| 118 | }, |
| 119 | "Oem": { |
| 120 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 121 | "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.", |
| 122 | "longDescription": "The value of this string shall be of the format for the reserved word *Oem*." |
| 123 | }, |
| 124 | "StartTime": { |
| 125 | "description": "The date-time stamp that the task was last started.", |
| 126 | "format": "date-time", |
| 127 | "longDescription": "The value of this property shall indicate the time the task was started.", |
| 128 | "readonly": true, |
| 129 | "type": "string" |
| 130 | }, |
| 131 | "TaskMonitor": { |
| 132 | "description": "The URI of the Task Monitor for this task.", |
| 133 | "format": "uri", |
| 134 | "longDescription": "This property shall contain a URI to Task Monitor as defined in the Redfish Specification.", |
| 135 | "readonly": true, |
| 136 | "type": "string" |
| 137 | }, |
| 138 | "TaskState": { |
| 139 | "$ref": "#/definitions/TaskState", |
| 140 | "description": "The state of the task.", |
| 141 | "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.", |
| 142 | "readonly": true |
| 143 | }, |
| 144 | "TaskStatus": { |
| 145 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Health", |
| 146 | "description": "This is the completion status of the task.", |
| 147 | "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.", |
| 148 | "readonly": true |
| 149 | } |
| 150 | }, |
| 151 | "required": [ |
| 152 | "Id", |
| 153 | "Name" |
| 154 | ], |
| 155 | "type": "object" |
| 156 | }, |
| 157 | "TaskState": { |
| 158 | "enum": [ |
| 159 | "New", |
| 160 | "Starting", |
| 161 | "Running", |
| 162 | "Suspended", |
| 163 | "Interrupted", |
| 164 | "Pending", |
| 165 | "Stopping", |
| 166 | "Completed", |
| 167 | "Killed", |
| 168 | "Exception", |
| 169 | "Service", |
| 170 | "Cancelling", |
| 171 | "Cancelled" |
| 172 | ], |
| 173 | "enumDeprecated": { |
| 174 | "Killed": "This value has been deprecated and is being replaced by the value Cancelled which has more determinate semantics." |
| 175 | }, |
| 176 | "enumDescriptions": { |
| 177 | "Cancelled": "Task has been cancelled by an operator or internal process.", |
| 178 | "Cancelling": "Task is in the process of being cancelled.", |
| 179 | "Completed": "Task has completed.", |
| 180 | "Exception": "Task has stopped due to an exception condition.", |
| 181 | "Interrupted": "Task has been interrupted.", |
| 182 | "Killed": "Task was terminated.", |
| 183 | "New": "A new task.", |
| 184 | "Pending": "Task is pending and has not started.", |
| 185 | "Running": "Task is running normally.", |
| 186 | "Service": "Task is running as a service.", |
| 187 | "Starting": "Task is starting.", |
| 188 | "Stopping": "Task is in the process of stopping.", |
| 189 | "Suspended": "Task has been suspended." |
| 190 | }, |
| 191 | "enumLongDescriptions": { |
| 192 | "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.", |
| 193 | "Cancelling": "This value shall represent that the operation is in the process of being cancelled.", |
| 194 | "Completed": "This value shall represent that the operation is complete and completed sucessfully or with warnings.", |
| 195 | "Exception": "This value shall represent that the operation is complete and completed with errors.", |
| 196 | "Interrupted": "This value shall represent that the operation has been interrupted but is expected to restart and is therefore not complete.", |
| 197 | "Killed": "This value shall represent that the operation is complete because the task was killed by an operator.", |
| 198 | "New": "This value shall represent that this task is newly created but the operation has not yet started.", |
| 199 | "Pending": "This value shall represent that the operation is pending some condition and has not yet begun to execute.", |
| 200 | "Running": "This value shall represent that the operation is executing.", |
| 201 | "Service": "This value shall represent that the operation is now running as a service and expected to continue operation until stopped or killed.", |
| 202 | "Starting": "This value shall represent that the operation is starting.", |
| 203 | "Stopping": "This value shall represent that the operation is stopping but is not yet complete.", |
| 204 | "Suspended": "This value shall represent that the operation has been suspended but is expected to restart and is therefore not complete." |
| 205 | }, |
| 206 | "type": "string" |
| 207 | } |
| 208 | }, |
| 209 | "owningEntity": "DMTF", |
| 210 | "title": "#Task.v1_2_0.Task" |
| 211 | } |