blob: dcdeee9924056afdda1fcef629f8370ad4adc1e1 [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
Ed Tanouscb103132019-10-08 11:34:22 -07002 "$id": "http://redfish.dmtf.org/schemas/v1/VirtualMedia.v1_3_2.json",
Ed Tanous118b1c72018-09-13 13:45:51 -07003 "$ref": "#/definitions/VirtualMedia",
Ed Tanous530520e2019-01-02 13:41:37 -08004 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
Ed Tanouscb103132019-10-08 11:34:22 -07005 "copyright": "Copyright 2014-2019 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
Ed Tanous118b1c72018-09-13 13:45:51 -07006 "definitions": {
7 "Actions": {
8 "additionalProperties": false,
Ed Tanouscb103132019-10-08 11:34:22 -07009 "description": "The available actions for this Resource.",
10 "longDescription": "This type shall contain the available actions for this Resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -070011 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070012 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070013 "description": "This property shall specify a valid odata or Redfish property.",
14 "type": [
15 "array",
16 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080017 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070018 "number",
19 "null",
20 "object",
21 "string"
22 ]
23 }
24 },
25 "properties": {
26 "#VirtualMedia.EjectMedia": {
27 "$ref": "#/definitions/EjectMedia"
28 },
29 "#VirtualMedia.InsertMedia": {
30 "$ref": "#/definitions/InsertMedia"
31 },
32 "Oem": {
Ed Tanous530520e2019-01-02 13:41:37 -080033 "$ref": "#/definitions/OemActions",
Ed Tanouscb103132019-10-08 11:34:22 -070034 "description": "The available OEM-specific actions for this Resource.",
35 "longDescription": "This property shall contain the available OEM-specific actions for this Resource.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -060036 "versionAdded": "v1_1_0"
Ed Tanous118b1c72018-09-13 13:45:51 -070037 }
38 },
39 "type": "object"
40 },
41 "ConnectedVia": {
42 "enum": [
43 "NotConnected",
44 "URI",
45 "Applet",
46 "Oem"
47 ],
48 "enumDescriptions": {
49 "Applet": "Connected to a client application.",
50 "NotConnected": "No current connection.",
Ed Tanouscb103132019-10-08 11:34:22 -070051 "Oem": "Connected through an OEM-defined method.",
Ed Tanous118b1c72018-09-13 13:45:51 -070052 "URI": "Connected to a URI location."
53 },
54 "type": "string"
55 },
56 "EjectMedia": {
57 "additionalProperties": false,
Ed Tanouscb103132019-10-08 11:34:22 -070058 "description": "This action detaches remote media from virtual media.",
59 "longDescription": "This action shall detach the remote media from the virtual media. At the completion of the operation, inserted shall be set to `false` and the image name shall be cleared.",
Ed Tanous118b1c72018-09-13 13:45:51 -070060 "parameters": {},
61 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070062 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070063 "description": "This property shall specify a valid odata or Redfish property.",
64 "type": [
65 "array",
66 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080067 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070068 "number",
69 "null",
70 "object",
71 "string"
72 ]
73 }
74 },
75 "properties": {
76 "target": {
77 "description": "Link to invoke action",
Ed Tanouscb103132019-10-08 11:34:22 -070078 "format": "uri-reference",
Ed Tanous118b1c72018-09-13 13:45:51 -070079 "type": "string"
80 },
81 "title": {
82 "description": "Friendly action name",
83 "type": "string"
84 }
85 },
Marri Devender Raod45d2d02019-01-21 10:11:34 -060086 "type": "object",
87 "versionAdded": "v1_2_0"
Ed Tanous118b1c72018-09-13 13:45:51 -070088 },
89 "InsertMedia": {
90 "additionalProperties": false,
Ed Tanouscb103132019-10-08 11:34:22 -070091 "description": "This action attaches remote media to virtual media.",
Ed Tanous118b1c72018-09-13 13:45:51 -070092 "longDescription": "This action shall attach remote media to virtual media.",
93 "parameters": {
94 "Image": {
95 "description": "The URI of the remote media to attach to the virtual media.",
Ed Tanouscb103132019-10-08 11:34:22 -070096 "longDescription": "This parameter shall specify the URI of the remote media to be attached to the virtual media.",
Ed Tanous118b1c72018-09-13 13:45:51 -070097 "requiredParameter": true,
98 "type": "string"
99 },
100 "Inserted": {
Ed Tanouscb103132019-10-08 11:34:22 -0700101 "description": "An indication of whether the image is treated as inserted upon completion of the action. The default is `true`.",
102 "longDescription": "This parameter shall indicate whether the image is treated as inserted upon completion of the action. If the client does not provide this parameter, the service shall default this value to `true`.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700103 "type": "boolean"
104 },
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600105 "Password": {
Ed Tanouscb103132019-10-08 11:34:22 -0700106 "description": "The password to access the Image parameter-specified URI.",
107 "longDescription": "This parameter shall represent the password to access the Image parameter-specified URI.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600108 "type": "string",
109 "versionAdded": "v1_3_0"
110 },
111 "TransferMethod": {
112 "$ref": "#/definitions/TransferMethod",
Ed Tanouscb103132019-10-08 11:34:22 -0700113 "description": "The transfer method to use with the Image.",
114 "longDescription": "This parameter shall describe how the image transfer occurs.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600115 "versionAdded": "v1_3_0"
116 },
117 "TransferProtocolType": {
118 "$ref": "#/definitions/TransferProtocolType",
Ed Tanouscb103132019-10-08 11:34:22 -0700119 "description": "The network protocol to use with the image.",
120 "longDescription": "This parameter shall represent the network protocol to use with the specified image URI.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600121 "versionAdded": "v1_3_0"
122 },
123 "UserName": {
Ed Tanouscb103132019-10-08 11:34:22 -0700124 "description": "The user name to access the Image parameter-specified URI.",
125 "longDescription": "This parameter shall contain the user name to access the Image parameter-specified URI.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600126 "type": "string",
127 "versionAdded": "v1_3_0"
128 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700129 "WriteProtected": {
Ed Tanouscb103132019-10-08 11:34:22 -0700130 "description": "An indication of whether the remote media is treated as write-protected. The default is `true`.",
131 "longDescription": "This parameter shall indicate whether the remote media is treated as write-protected. If the client does not provide this parameter, the service shall default this value to `true`.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700132 "type": "boolean"
133 }
134 },
135 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -0700136 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700137 "description": "This property shall specify a valid odata or Redfish property.",
138 "type": [
139 "array",
140 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800141 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700142 "number",
143 "null",
144 "object",
145 "string"
146 ]
147 }
148 },
149 "properties": {
150 "target": {
151 "description": "Link to invoke action",
Ed Tanouscb103132019-10-08 11:34:22 -0700152 "format": "uri-reference",
Ed Tanous118b1c72018-09-13 13:45:51 -0700153 "type": "string"
154 },
155 "title": {
156 "description": "Friendly action name",
157 "type": "string"
158 }
159 },
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600160 "type": "object",
161 "versionAdded": "v1_2_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700162 },
163 "MediaType": {
164 "enum": [
165 "CD",
166 "Floppy",
167 "USBStick",
168 "DVD"
169 ],
170 "enumDescriptions": {
171 "CD": "A CD-ROM format (ISO) image.",
172 "DVD": "A DVD-ROM format image.",
173 "Floppy": "A floppy disk image.",
174 "USBStick": "An emulation of a USB storage device."
175 },
176 "type": "string"
177 },
178 "OemActions": {
179 "additionalProperties": true,
Ed Tanouscb103132019-10-08 11:34:22 -0700180 "description": "The available OEM-specific actions for this Resource.",
181 "longDescription": "This type shall contain the available OEM-specific actions for this Resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700182 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -0700183 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700184 "description": "This property shall specify a valid odata or Redfish property.",
185 "type": [
186 "array",
187 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800188 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700189 "number",
190 "null",
191 "object",
192 "string"
193 ]
194 }
195 },
196 "properties": {},
197 "type": "object"
198 },
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600199 "TransferMethod": {
200 "enum": [
201 "Stream",
202 "Upload"
203 ],
204 "enumDescriptions": {
205 "Stream": "Stream image file data from the source URI.",
206 "Upload": "Upload the entire image file from the source URI to the service."
207 },
208 "type": "string"
209 },
210 "TransferProtocolType": {
211 "enum": [
212 "CIFS",
213 "FTP",
214 "SFTP",
215 "HTTP",
216 "HTTPS",
217 "NFS",
218 "SCP",
219 "TFTP",
220 "OEM"
221 ],
222 "enumDescriptions": {
Ed Tanouscb103132019-10-08 11:34:22 -0700223 "CIFS": "Common Internet File System (CIFS).",
224 "FTP": "File Transfer Protocol (FTP).",
225 "HTTP": "Hypertext Transfer Protocol (HTTP).",
226 "HTTPS": "Hypertext Transfer Protocol Secure (HTTPS).",
227 "NFS": "Network File System (NFS).",
228 "OEM": "A manufacturer-defined protocol.",
229 "SCP": "Secure Copy Protocol (SCP).",
230 "SFTP": "Secure File Transfer Protocol (SFTP).",
231 "TFTP": "Trivial File Transfer Protocol (TFTP)."
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600232 },
233 "type": "string"
234 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700235 "VirtualMedia": {
236 "additionalProperties": false,
Ed Tanouscb103132019-10-08 11:34:22 -0700237 "description": "The VirtualMedia schema contains properties related to the monitor and control of an instance of virtual media, such as a remote CD, DVD, or USB device. A manager for a system or device provides virtual media functionality.",
238 "longDescription": "This Resource shall represent a virtual media service for a Redfish implementation.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700239 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -0700240 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -0700241 "description": "This property shall specify a valid odata or Redfish property.",
242 "type": [
243 "array",
244 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800245 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700246 "number",
247 "null",
248 "object",
249 "string"
250 ]
251 }
252 },
253 "properties": {
254 "@odata.context": {
Ed Tanouscb103132019-10-08 11:34:22 -0700255 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
Ed Tanous530520e2019-01-02 13:41:37 -0800256 },
257 "@odata.etag": {
Ed Tanouscb103132019-10-08 11:34:22 -0700258 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
Ed Tanous118b1c72018-09-13 13:45:51 -0700259 },
260 "@odata.id": {
Ed Tanouscb103132019-10-08 11:34:22 -0700261 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
Ed Tanous118b1c72018-09-13 13:45:51 -0700262 },
263 "@odata.type": {
Ed Tanouscb103132019-10-08 11:34:22 -0700264 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
Ed Tanous118b1c72018-09-13 13:45:51 -0700265 },
266 "Actions": {
267 "$ref": "#/definitions/Actions",
Ed Tanouscb103132019-10-08 11:34:22 -0700268 "description": "The available actions for this Resource.",
269 "longDescription": "This property shall contain the available actions for this Resource.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600270 "versionAdded": "v1_1_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700271 },
272 "ConnectedVia": {
273 "anyOf": [
274 {
275 "$ref": "#/definitions/ConnectedVia"
276 },
277 {
278 "type": "null"
279 }
280 ],
Ed Tanouscb103132019-10-08 11:34:22 -0700281 "description": "The current virtual media connection method.",
282 "longDescription": "This property shall contain the current connection method from a client to the virtual media that this Resource represents.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700283 "readonly": true
284 },
285 "Description": {
286 "anyOf": [
287 {
288 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
289 },
290 {
291 "type": "null"
292 }
293 ],
294 "readonly": true
295 },
296 "Id": {
297 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
298 "readonly": true
299 },
300 "Image": {
Ed Tanouscb103132019-10-08 11:34:22 -0700301 "description": "The URI of the location of the selected image.",
302 "format": "uri-reference",
303 "longDescription": "This property shall contain an URI. A null value indicated no image connection.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700304 "readonly": false,
305 "type": [
306 "string",
307 "null"
308 ]
309 },
310 "ImageName": {
311 "description": "The current image name.",
Ed Tanouscb103132019-10-08 11:34:22 -0700312 "longDescription": "This property shall contain the name of the image.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700313 "readonly": true,
314 "type": [
315 "string",
316 "null"
317 ]
318 },
319 "Inserted": {
Ed Tanouscb103132019-10-08 11:34:22 -0700320 "description": "An indication of whether virtual media is inserted into the virtual device.",
321 "longDescription": "This property shall indicate whether media is present in the virtual media device.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700322 "readonly": false,
323 "type": [
324 "boolean",
325 "null"
326 ]
327 },
328 "MediaTypes": {
Ed Tanouscb103132019-10-08 11:34:22 -0700329 "description": "The media types supported as virtual media.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700330 "items": {
331 "$ref": "#/definitions/MediaType"
332 },
333 "longDescription": "The values of this array shall be the supported media types for this connection.",
334 "readonly": true,
335 "type": "array"
336 },
337 "Name": {
338 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
339 "readonly": true
340 },
341 "Oem": {
342 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
Ed Tanouscb103132019-10-08 11:34:22 -0700343 "description": "The OEM extension property.",
344 "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 Tanous118b1c72018-09-13 13:45:51 -0700345 },
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600346 "Password": {
Ed Tanouscb103132019-10-08 11:34:22 -0700347 "description": "The password to access the Image parameter-specified URI. This property is null in responses.",
348 "longDescription": "This parameter shall represent the password to access the Image parameter-specified URI. The value shall be null in responses.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600349 "readonly": false,
350 "type": [
351 "string",
352 "null"
353 ],
354 "versionAdded": "v1_3_0"
355 },
356 "TransferMethod": {
357 "anyOf": [
358 {
359 "$ref": "#/definitions/TransferMethod"
360 },
361 {
362 "type": "null"
363 }
364 ],
Ed Tanouscb103132019-10-08 11:34:22 -0700365 "description": "The transfer method to use with the Image.",
366 "longDescription": "This parameter shall describe how the image transfer occurs.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600367 "readonly": false,
368 "versionAdded": "v1_3_0"
369 },
370 "TransferProtocolType": {
371 "anyOf": [
372 {
373 "$ref": "#/definitions/TransferProtocolType"
374 },
375 {
376 "type": "null"
377 }
378 ],
Ed Tanouscb103132019-10-08 11:34:22 -0700379 "description": "The network protocol to use with the image.",
380 "longDescription": "This parameter shall represent the network protocol to use with the specified image URI.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600381 "readonly": false,
382 "versionAdded": "v1_3_0"
383 },
384 "UserName": {
Ed Tanouscb103132019-10-08 11:34:22 -0700385 "description": "The user name to access the Image parameter-specified URI.",
386 "longDescription": "This parameter shall represent the user name to access the Image parameter-specified URI.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600387 "readonly": false,
388 "type": [
389 "string",
390 "null"
391 ],
392 "versionAdded": "v1_3_0"
393 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700394 "WriteProtected": {
Ed Tanouscb103132019-10-08 11:34:22 -0700395 "description": "An indication of whether the media is write-protected.",
396 "longDescription": "This property shall indicate whether the remote device media prevents writing to that media.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700397 "readonly": false,
398 "type": [
399 "boolean",
400 "null"
401 ]
402 }
403 },
404 "required": [
Ed Tanous530520e2019-01-02 13:41:37 -0800405 "@odata.id",
406 "@odata.type",
Ed Tanous118b1c72018-09-13 13:45:51 -0700407 "Id",
408 "Name"
409 ],
410 "type": "object"
411 }
412 },
Ed Tanous530520e2019-01-02 13:41:37 -0800413 "owningEntity": "DMTF",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600414 "release": "2018.3",
Ed Tanouscb103132019-10-08 11:34:22 -0700415 "title": "#VirtualMedia.v1_3_2.VirtualMedia"
Ed Tanous118b1c72018-09-13 13:45:51 -0700416}