1{ 2 "$id": "http://redfish.dmtf.org/schemas/v1/JobDocument.v1_0_0.json", 3 "$ref": "#/definitions/JobDocument", 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 "copyright": "Copyright 2014-2025 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", 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", 17 "integer", 18 "number", 19 "null", 20 "object", 21 "string" 22 ] 23 } 24 }, 25 "properties": { 26 "#JobDocument.SubmitJob": { 27 "$ref": "#/definitions/SubmitJob" 28 }, 29 "Oem": { 30 "$ref": "#/definitions/OemActions", 31 "description": "The available OEM-specific actions for this resource.", 32 "longDescription": "This property shall contain the available OEM-specific actions for this resource." 33 } 34 }, 35 "type": "object" 36 }, 37 "DataType": { 38 "enum": [ 39 "Boolean", 40 "Number", 41 "String" 42 ], 43 "enumDescriptions": { 44 "Boolean": "A boolean.", 45 "Number": "A number.", 46 "String": "A string." 47 }, 48 "type": "string" 49 }, 50 "JobDocument": { 51 "additionalProperties": false, 52 "description": "The `JobDocument` schema describes the template for a job with a set of parameters.", 53 "longDescription": "This resource shall represent a job document 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 "integer", 61 "number", 62 "null", 63 "object", 64 "string" 65 ] 66 } 67 }, 68 "properties": { 69 "@odata.context": { 70 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" 71 }, 72 "@odata.etag": { 73 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" 74 }, 75 "@odata.id": { 76 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" 77 }, 78 "@odata.type": { 79 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" 80 }, 81 "Actions": { 82 "$ref": "#/definitions/Actions", 83 "description": "The available actions for this resource.", 84 "longDescription": "This property shall contain the available actions for this resource." 85 }, 86 "CreationTime": { 87 "description": "The date and time when this job document resource was created.", 88 "format": "date-time", 89 "longDescription": "This property shall contain the date and time when this job document resource was created.", 90 "readonly": true, 91 "type": "string" 92 }, 93 "Description": { 94 "anyOf": [ 95 { 96 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" 97 }, 98 { 99 "type": "null" 100 } 101 ], 102 "readonly": true 103 }, 104 "DocumentData": { 105 "description": "The job document data as a Base64-encoded string.", 106 "longDescription": "This property shall contain a Base64-encoded string of the job document data. This property shall not be present if `DocumentDataURI` is present.", 107 "readonly": true, 108 "type": "string" 109 }, 110 "DocumentDataHash": { 111 "description": "The hash of the job document data.", 112 "longDescription": "This property shall contain the hash of the job document data as a hex-encoded string.", 113 "pattern": "^[0-9a-fA-F]+$", 114 "readonly": true, 115 "type": "string" 116 }, 117 "DocumentDataURI": { 118 "description": "The URI at which to access the job document data.", 119 "format": "uri-reference", 120 "longDescription": "This property shall contain the URI at which to access the job document data. This property shall not be present if `DocumentData` is present.", 121 "readonly": true, 122 "type": "string" 123 }, 124 "DocumentType": { 125 "description": "The type of job document data associated with this job document.", 126 "longDescription": "This property shall contain the type of job document data associated with this job document.", 127 "readonly": true, 128 "type": "string" 129 }, 130 "Id": { 131 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", 132 "readonly": true 133 }, 134 "Links": { 135 "$ref": "#/definitions/Links", 136 "description": "The links to other resources that are related to this resource.", 137 "longDescription": "This property shall contain links to resources that are related to but are not contained by, or subordinate to, this resource." 138 }, 139 "Name": { 140 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", 141 "readonly": true 142 }, 143 "Oem": { 144 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", 145 "description": "The OEM extension property.", 146 "longDescription": "This property shall contain the OEM extensions. All values for properties that this object contains shall conform to the Redfish Specification-described requirements." 147 }, 148 "ParameterMetadata": { 149 "description": "The metadata for each of the parameters supported by this job document for the `SubmitJob` action.", 150 "items": { 151 "$ref": "#/definitions/ParameterMetadata" 152 }, 153 "longDescription": "This property shall contain the metadata for each of the parameters supported by this job document for the `SubmitJob` action.", 154 "type": "array" 155 }, 156 "Status": { 157 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status", 158 "description": "The status and health of the resource and its subordinate or dependent resources.", 159 "longDescription": "This property shall contain any status or health properties of the resource." 160 }, 161 "Version": { 162 "description": "The version of this job document.", 163 "longDescription": "This property shall contain the version of this job document.", 164 "readonly": true, 165 "type": "string" 166 } 167 }, 168 "required": [ 169 "@odata.id", 170 "@odata.type", 171 "Id", 172 "Name" 173 ], 174 "type": "object" 175 }, 176 "Links": { 177 "additionalProperties": false, 178 "description": "The links to other resources that are related to this resource.", 179 "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.", 180 "patternProperties": { 181 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 182 "description": "This property shall specify a valid odata or Redfish property.", 183 "type": [ 184 "array", 185 "boolean", 186 "integer", 187 "number", 188 "null", 189 "object", 190 "string" 191 ] 192 } 193 }, 194 "properties": { 195 "SupportedExecutors": { 196 "description": "An array of links to the executors that are capable of running jobs instantiated from this job document.", 197 "items": { 198 "$ref": "http://redfish.dmtf.org/schemas/v1/JobExecutor.json#/definitions/JobExecutor" 199 }, 200 "longDescription": "This property shall contain an array of links to resources of type `JobExecutor` that represent the executors that are capable of running jobs instantiated from this job document.", 201 "readonly": true, 202 "type": "array" 203 }, 204 "SupportedExecutors@odata.count": { 205 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count" 206 } 207 }, 208 "type": "object" 209 }, 210 "OemActions": { 211 "additionalProperties": true, 212 "description": "The available OEM-specific actions for this resource.", 213 "longDescription": "This type shall contain the available OEM-specific actions for this resource.", 214 "patternProperties": { 215 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 216 "description": "This property shall specify a valid odata or Redfish property.", 217 "type": [ 218 "array", 219 "boolean", 220 "integer", 221 "number", 222 "null", 223 "object", 224 "string" 225 ] 226 } 227 }, 228 "properties": {}, 229 "type": "object" 230 }, 231 "Parameter": { 232 "additionalProperties": false, 233 "description": "An object containing a set of parameters for submitting a new job based on a job document.", 234 "longDescription": "This type shall contain a set of parameters for submitting a new job based on a job document.", 235 "patternProperties": { 236 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 237 "description": "This property shall specify a valid odata or Redfish property.", 238 "type": [ 239 "array", 240 "boolean", 241 "integer", 242 "number", 243 "null", 244 "object", 245 "string" 246 ] 247 }, 248 "^[A-Za-z][A-Za-z0-9_]+$": { 249 "type": [ 250 "string", 251 "boolean", 252 "number", 253 "null" 254 ] 255 } 256 }, 257 "properties": {}, 258 "type": "object" 259 }, 260 "ParameterMetadata": { 261 "additionalProperties": false, 262 "description": "The metadata for a parameter supported by a job document for the `SubmitJob` action.", 263 "longDescription": "This type shall contain the metadata a parameter supported by a job document for the `SubmitJob` action.", 264 "patternProperties": { 265 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 266 "description": "This property shall specify a valid odata or Redfish property.", 267 "type": [ 268 "array", 269 "boolean", 270 "integer", 271 "number", 272 "null", 273 "object", 274 "string" 275 ] 276 } 277 }, 278 "properties": { 279 "AllowableNumbers": { 280 "description": "The allowable numeric values or duration values, inclusive ranges of values, and incremental step values for this parameter.", 281 "items": { 282 "type": "string" 283 }, 284 "longDescription": "This property shall indicate the allowable numeric values, inclusive ranges of values, and incremental step values for this parameter, as defined in the 'Allowable values for numbers and durations' clause of the Redfish Specification. This property shall only be present for numeric parameters or string parameters that specify a duration.", 285 "readonly": true, 286 "type": "array" 287 }, 288 "AllowablePattern": { 289 "description": "The allowable pattern for this parameter.", 290 "longDescription": "This property shall contain a regular expression that describes the allowable values for this parameter. This property shall only be present for string parameters.", 291 "readonly": true, 292 "type": "string" 293 }, 294 "AllowableValueDescriptions": { 295 "description": "Descriptions of allowable values for this parameter.", 296 "items": { 297 "type": "string" 298 }, 299 "longDescription": "This property shall contain the descriptions of allowable values for this parameter. The descriptions shall appear in the same array order as the `AllowableValues` property.", 300 "readonly": true, 301 "type": "array" 302 }, 303 "AllowableValues": { 304 "description": "The allowable values for this parameter.", 305 "items": { 306 "type": "string" 307 }, 308 "longDescription": "This property shall indicate the allowable values for this parameter.", 309 "readonly": true, 310 "type": "array" 311 }, 312 "DataType": { 313 "$ref": "#/definitions/DataType", 314 "description": "The JSON property type for this parameter.", 315 "longDescription": "This property shall contain the JSON property type for this parameter.", 316 "readonly": true 317 }, 318 "Description": { 319 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description", 320 "description": "A description of the parameter.", 321 "longDescription": "This property shall contain a description of the parameter.", 322 "readonly": true 323 }, 324 "MaximumValue": { 325 "description": "The maximum supported value for this parameter.", 326 "longDescription": "This integer or number property shall contain the maximum value that this service supports. This property shall not be present for non-integer or number parameters.", 327 "readonly": true, 328 "type": "number" 329 }, 330 "MinimumValue": { 331 "description": "The minimum supported value for this parameter.", 332 "longDescription": "This integer or number property shall contain the minimum value that this service supports. This property shall not be present for non-integer or number parameters.", 333 "readonly": true, 334 "type": "number" 335 }, 336 "Name": { 337 "description": "The name of the parameter.", 338 "longDescription": "This property shall contain the name of the parameter.", 339 "readonly": true, 340 "type": "string" 341 }, 342 "Required": { 343 "description": "An indication of whether the parameter is required.", 344 "longDescription": "This property shall indicate whether the parameter is required.", 345 "readonly": true, 346 "type": "boolean" 347 }, 348 "ValueHint": { 349 "description": "A hint value for the parameter.", 350 "longDescription": "This property shall contain a hint value for the parameter.", 351 "readonly": true, 352 "type": "string" 353 } 354 }, 355 "required": [ 356 "DataType", 357 "Name" 358 ], 359 "type": "object" 360 }, 361 "SubmitJob": { 362 "additionalProperties": false, 363 "description": "Creates a new job based on the contents of this job document and additional parameters.", 364 "longDescription": "This action shall create a new `Job` resource based on the contents of this job document and additional parameters.", 365 "parameters": { 366 "HidePayload": { 367 "description": "An indication of whether the contents of the parameters should be hidden from view after the job has been created. If `true`, responses do not return the parameters. If `false`, responses return the parameters. If this parameter is not present when the job is created, the default is `false`.", 368 "longDescription": "This parameter shall indicate whether the contents of the parameters should be hidden from view after the job has been created. If `true`, responses shall not return the `Parameters` property. If `false`, responses shall return the `Parameters` property. If this parameter is not present when the job is created, the default is `false`.", 369 "type": "boolean" 370 }, 371 "JobCreator": { 372 "$ref": "http://redfish.dmtf.org/schemas/v1/Job.json#/definitions/Job", 373 "description": "The link to the job that is submitting this job.", 374 "longDescription": "This parameter shall contain a link to a resource of type `Job` that represents the job that is submitting this job." 375 }, 376 "Parameters": { 377 "$ref": "#/definitions/Parameter", 378 "description": "The list of parameters for the new job that are specific to this job document.", 379 "longDescription": "This parameter shall contain the list of parameters for the new job that are specific to this job document. Services shall reject requests containing parameters that do not meet the requirements specified by the `ParameterMetadata` property.", 380 "requiredParameter": true 381 }, 382 "PreferredExecutors": { 383 "description": "An array of links to the preferred executors to run this job.", 384 "items": { 385 "$ref": "http://redfish.dmtf.org/schemas/v1/JobExecutor.json#/definitions/JobExecutor" 386 }, 387 "longDescription": "This parameter shall contain an array of links to resources of type `JobExecutor` that represent the preferred executors to run this job.", 388 "requiredParameter": true, 389 "type": "array" 390 }, 391 "StartTime": { 392 "description": "The date and time when the job is scheduled to start.", 393 "format": "date-time", 394 "longDescription": "This parameter shall contain the date and time when the job is scheduled to start.", 395 "type": "string" 396 } 397 }, 398 "patternProperties": { 399 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 400 "description": "This property shall specify a valid odata or Redfish property.", 401 "type": [ 402 "array", 403 "boolean", 404 "integer", 405 "number", 406 "null", 407 "object", 408 "string" 409 ] 410 } 411 }, 412 "properties": { 413 "target": { 414 "description": "Link to invoke action", 415 "format": "uri-reference", 416 "type": "string" 417 }, 418 "title": { 419 "description": "Friendly action name", 420 "type": "string" 421 } 422 }, 423 "type": "object" 424 } 425 }, 426 "language": "en", 427 "owningEntity": "DMTF", 428 "release": "2025.2", 429 "title": "#JobDocument.v1_0_0.JobDocument" 430}