Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 1 | { |
| 2 | "$ref": "#/definitions/UpdateService", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 3 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", |
| 4 | "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] | 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", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 16 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 17 | "number", |
| 18 | "null", |
| 19 | "object", |
| 20 | "string" |
| 21 | ] |
| 22 | } |
| 23 | }, |
| 24 | "properties": { |
| 25 | "#UpdateService.SimpleUpdate": { |
| 26 | "$ref": "#/definitions/SimpleUpdate" |
| 27 | }, |
| 28 | "Oem": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 29 | "$ref": "#/definitions/OemActions", |
| 30 | "description": "This property contains the available OEM specific actions for this resource.", |
| 31 | "longDescription": "This property shall contain any additional OEM actions for this resource." |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 32 | } |
| 33 | }, |
| 34 | "type": "object" |
| 35 | }, |
| 36 | "OemActions": { |
| 37 | "additionalProperties": true, |
| 38 | "description": "The available OEM specific actions for this resource.", |
| 39 | "longDescription": "This type shall contain any additional OEM actions for this resource.", |
| 40 | "patternProperties": { |
| 41 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 42 | "description": "This property shall specify a valid odata or Redfish property.", |
| 43 | "type": [ |
| 44 | "array", |
| 45 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 46 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 47 | "number", |
| 48 | "null", |
| 49 | "object", |
| 50 | "string" |
| 51 | ] |
| 52 | } |
| 53 | }, |
| 54 | "properties": {}, |
| 55 | "type": "object" |
| 56 | }, |
| 57 | "SimpleUpdate": { |
| 58 | "additionalProperties": false, |
| 59 | "description": "This action is used to update software components.", |
| 60 | "longDescription": "This action shall perform an update of installed software component(s) as contained within a software image file located at a URI referenced by the ImageURI parameter.", |
| 61 | "parameters": { |
| 62 | "ImageURI": { |
| 63 | "description": "The URI of the software image to be installed.", |
| 64 | "longDescription": "This parameter shall contain a URI referencing a software image to be retreived by the UpdateService for the purpose of installing software contained within the image.", |
| 65 | "requiredParameter": true, |
| 66 | "type": "string" |
| 67 | }, |
| 68 | "Targets": { |
| 69 | "description": "The array of URIs indicating where the update image is to be applied.", |
| 70 | "format": "uri", |
| 71 | "items": { |
| 72 | "type": "string" |
| 73 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 74 | "longDescription": "This array property shall contain zero or more URIs indicating where the update image is to be applied. These targets should correspond to SoftwareInventory instances or their RelatedItems. If this property is not present or contains zero targets, the Service shall apply the software image to all applicable targets (as determined by the Service).", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 75 | "type": "array" |
| 76 | }, |
| 77 | "TransferProtocol": { |
| 78 | "$ref": "#/definitions/TransferProtocolType", |
| 79 | "description": "The network protocol used by the Update Service to retrieve the software image file located at the URI provided in ImageURI, if the URI does not contain a scheme.", |
| 80 | "longDescription": "This parameter shall contain the network protocol that the Update Service shall use to retreive the software image located at the ImageURI. If this parameter is not provided (or supported), and a transfer protocol is not specified by a scheme contained within ImageURI, the Update Service shall use HTTP to retrieve the image." |
| 81 | } |
| 82 | }, |
| 83 | "patternProperties": { |
| 84 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 85 | "description": "This property shall specify a valid odata or Redfish property.", |
| 86 | "type": [ |
| 87 | "array", |
| 88 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 89 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 90 | "number", |
| 91 | "null", |
| 92 | "object", |
| 93 | "string" |
| 94 | ] |
| 95 | } |
| 96 | }, |
| 97 | "properties": { |
| 98 | "target": { |
| 99 | "description": "Link to invoke action", |
| 100 | "format": "uri", |
| 101 | "type": "string" |
| 102 | }, |
| 103 | "title": { |
| 104 | "description": "Friendly action name", |
| 105 | "type": "string" |
| 106 | } |
| 107 | }, |
| 108 | "type": "object" |
| 109 | }, |
| 110 | "TransferProtocolType": { |
| 111 | "enum": [ |
| 112 | "CIFS", |
| 113 | "FTP", |
| 114 | "SFTP", |
| 115 | "HTTP", |
| 116 | "HTTPS", |
| 117 | "NSF", |
| 118 | "SCP", |
| 119 | "TFTP", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 120 | "OEM", |
| 121 | "NFS" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 122 | ], |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 123 | "enumDeprecated": { |
| 124 | "NSF": "This value has been Deprecated in favor of NFS." |
| 125 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 126 | "enumDescriptions": { |
| 127 | "CIFS": "Common Internet File System protocol.", |
| 128 | "FTP": "File Transfer Protocol.", |
| 129 | "HTTP": "Hypertext Transfer Protocol.", |
| 130 | "HTTPS": "HTTP Secure protocol.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 131 | "NFS": "Network File System protocol.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 132 | "NSF": "Network File System protocol.", |
| 133 | "OEM": "A protocol defined by the manufacturer.", |
| 134 | "SCP": "Secure File Copy protocol.", |
| 135 | "SFTP": "Secure File Transfer Protocol.", |
| 136 | "TFTP": "Trivial File Transfer Protocol." |
| 137 | }, |
| 138 | "type": "string" |
| 139 | }, |
| 140 | "UpdateService": { |
| 141 | "additionalProperties": false, |
| 142 | "description": "This is the schema definition for the Update Service. It represents the properties for the service itself and has links to collections of firmware and software inventory.", |
| 143 | "longDescription": "This resource shall be used to represent an Update Service for a Redfish implementation. It represents the properties that affect the service itself.", |
| 144 | "patternProperties": { |
| 145 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 146 | "description": "This property shall specify a valid odata or Redfish property.", |
| 147 | "type": [ |
| 148 | "array", |
| 149 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 150 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 151 | "number", |
| 152 | "null", |
| 153 | "object", |
| 154 | "string" |
| 155 | ] |
| 156 | } |
| 157 | }, |
| 158 | "properties": { |
| 159 | "@odata.context": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 160 | "$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] | 161 | }, |
| 162 | "@odata.etag": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 163 | "$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] | 164 | }, |
| 165 | "@odata.id": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 166 | "$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] | 167 | }, |
| 168 | "@odata.type": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 169 | "$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] | 170 | }, |
| 171 | "Actions": { |
| 172 | "$ref": "#/definitions/Actions", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 173 | "description": "The available actions for this resource.", |
| 174 | "longDescription": "The Actions property shall contain the available actions for this resource." |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 175 | }, |
| 176 | "Description": { |
| 177 | "anyOf": [ |
| 178 | { |
| 179 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 180 | }, |
| 181 | { |
| 182 | "type": "null" |
| 183 | } |
| 184 | ], |
| 185 | "readonly": true |
| 186 | }, |
| 187 | "FirmwareInventory": { |
| 188 | "anyOf": [ |
| 189 | { |
| 190 | "$ref": "http://redfish.dmtf.org/schemas/v1/SoftwareInventoryCollection.json#/definitions/SoftwareInventoryCollection" |
| 191 | }, |
| 192 | { |
| 193 | "type": "null" |
| 194 | } |
| 195 | ], |
| 196 | "description": "An inventory of firmware.", |
| 197 | "longDescription": "The value of this property shall be a link to a resource of type SoftwareInventoryCollection.", |
| 198 | "readonly": true |
| 199 | }, |
| 200 | "HttpPushUri": { |
| 201 | "description": "The URI used to perform an HTTP or HTTPS push update to the Update Service.", |
| 202 | "format": "uri", |
| 203 | "longDescription": "This property shall contain a URI at which the UpdateService supports an HTTP or HTTPS POST of a software image for the purpose of installing software contained within the image.", |
| 204 | "readonly": true, |
| 205 | "type": "string" |
| 206 | }, |
| 207 | "HttpPushUriTargets": { |
| 208 | "description": "The array of URIs indicating the target for applying the update image.", |
| 209 | "format": "uri", |
| 210 | "items": { |
| 211 | "type": [ |
| 212 | "string", |
| 213 | "null" |
| 214 | ] |
| 215 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 216 | "longDescription": "This property shall contain zero or more URIs indicating the targets for applying the update image when using HttpPushUri to push a software image. These targets should correspond to SoftwareInventory instances or their RelatedItems. If this property is not present or contains zero targets, the Service shall apply the software image to all applicable targets (as determined by the Service).", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 217 | "readonly": false, |
| 218 | "type": "array" |
| 219 | }, |
| 220 | "HttpPushUriTargetsBusy": { |
| 221 | "description": "This represents if the HttpPushUriTargets property is reserved by any client.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 222 | "longDescription": "This property shall be a boolean that determines when the HttpPushUriTargets property is being used by a client for firmware updates. A client should set this property to True when it is using HttpPushUriTargets for firmware update, and should set it to False when it is no longer using HttpPushUriTargets for updates. The property can provide multiple clients a way to negotiate ownership of HttpPushUriTargets. This will help clients to know if a firmware update using HttpPushUriTargets is used by another client. This property has no functional requirements for the Service.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 223 | "readonly": false, |
| 224 | "type": [ |
| 225 | "boolean", |
| 226 | "null" |
| 227 | ] |
| 228 | }, |
| 229 | "Id": { |
| 230 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 231 | "readonly": true |
| 232 | }, |
| 233 | "Name": { |
| 234 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 235 | "readonly": true |
| 236 | }, |
| 237 | "Oem": { |
| 238 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 239 | "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.", |
| 240 | "longDescription": "The value of this string shall be of the format for the reserved word *Oem*." |
| 241 | }, |
| 242 | "ServiceEnabled": { |
| 243 | "description": "This indicates whether this service is enabled.", |
| 244 | "longDescription": "The value of this property shall be a boolean indicating whether this service is enabled.", |
| 245 | "readonly": false, |
| 246 | "type": [ |
| 247 | "boolean", |
| 248 | "null" |
| 249 | ] |
| 250 | }, |
| 251 | "SoftwareInventory": { |
| 252 | "anyOf": [ |
| 253 | { |
| 254 | "$ref": "http://redfish.dmtf.org/schemas/v1/SoftwareInventoryCollection.json#/definitions/SoftwareInventoryCollection" |
| 255 | }, |
| 256 | { |
| 257 | "type": "null" |
| 258 | } |
| 259 | ], |
| 260 | "description": "An inventory of software.", |
| 261 | "longDescription": "The value of this property shall be a link to a resource of type SoftwareInventoryCollection.", |
| 262 | "readonly": true |
| 263 | }, |
| 264 | "Status": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 265 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status", |
| 266 | "description": "This property describes the status and health of the resource and its children.", |
| 267 | "longDescription": "This property shall contain any status or health properties of the resource." |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 268 | } |
| 269 | }, |
| 270 | "required": [ |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 271 | "@odata.id", |
| 272 | "@odata.type", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 273 | "Id", |
| 274 | "Name" |
| 275 | ], |
| 276 | "type": "object" |
| 277 | } |
| 278 | }, |
| 279 | "owningEntity": "DMTF", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 280 | "title": "#UpdateService.v1_3_0.UpdateService" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 281 | } |