blob: c4787c4e43a7f9ceb80db20e72058302d1784d26 [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
Gunnar Mills10f270b2021-05-19 15:34:06 -05002 "$id": "http://redfish.dmtf.org/schemas/v1/VirtualMedia.v1_4_0.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",
Gunnar Mills10f270b2021-05-19 15:34:06 -05005 "copyright": "Copyright 2014-2021 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 },
Gunnar Mills10f270b2021-05-19 15:34:06 -0500272 "Certificates": {
273 "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateCollection.json#/definitions/CertificateCollection",
274 "description": "The link to a collection of server certificates for the server referenced by the Image property.",
275 "longDescription": "This property shall contain a link to a resource collection of type CertificateCollection that represents the server certificates for the server referenced by the Image property. If VerifyCertificate is `true`, services shall compare the certificates in this collection with the certificate obtained during handshaking with the image server in order to verify the identify of the image server prior to completing the remote media connection. If the server cannot be verified, the service shall not complete the remote media connection. If VerifyCertificate is `false`, the service shall not perform certificate verification.",
276 "readonly": true,
277 "versionAdded": "v1_4_0"
278 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700279 "ConnectedVia": {
280 "anyOf": [
281 {
282 "$ref": "#/definitions/ConnectedVia"
283 },
284 {
285 "type": "null"
286 }
287 ],
Ed Tanouscb103132019-10-08 11:34:22 -0700288 "description": "The current virtual media connection method.",
289 "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 -0700290 "readonly": true
291 },
292 "Description": {
293 "anyOf": [
294 {
295 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
296 },
297 {
298 "type": "null"
299 }
300 ],
301 "readonly": true
302 },
303 "Id": {
304 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
305 "readonly": true
306 },
307 "Image": {
Ed Tanouscb103132019-10-08 11:34:22 -0700308 "description": "The URI of the location of the selected image.",
309 "format": "uri-reference",
310 "longDescription": "This property shall contain an URI. A null value indicated no image connection.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700311 "readonly": false,
312 "type": [
313 "string",
314 "null"
315 ]
316 },
317 "ImageName": {
318 "description": "The current image name.",
Ed Tanouscb103132019-10-08 11:34:22 -0700319 "longDescription": "This property shall contain the name of the image.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700320 "readonly": true,
321 "type": [
322 "string",
323 "null"
324 ]
325 },
326 "Inserted": {
Ed Tanouscb103132019-10-08 11:34:22 -0700327 "description": "An indication of whether virtual media is inserted into the virtual device.",
328 "longDescription": "This property shall indicate whether media is present in the virtual media device.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700329 "readonly": false,
330 "type": [
331 "boolean",
332 "null"
333 ]
334 },
335 "MediaTypes": {
Ed Tanouscb103132019-10-08 11:34:22 -0700336 "description": "The media types supported as virtual media.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700337 "items": {
338 "$ref": "#/definitions/MediaType"
339 },
340 "longDescription": "The values of this array shall be the supported media types for this connection.",
341 "readonly": true,
342 "type": "array"
343 },
344 "Name": {
345 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
346 "readonly": true
347 },
348 "Oem": {
349 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
Ed Tanouscb103132019-10-08 11:34:22 -0700350 "description": "The OEM extension property.",
351 "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 -0700352 },
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600353 "Password": {
Ed Tanouscb103132019-10-08 11:34:22 -0700354 "description": "The password to access the Image parameter-specified URI. This property is null in responses.",
355 "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 -0600356 "readonly": false,
357 "type": [
358 "string",
359 "null"
360 ],
361 "versionAdded": "v1_3_0"
362 },
Gunnar Mills10f270b2021-05-19 15:34:06 -0500363 "Status": {
364 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status",
365 "description": "The status and health of the resource and its subordinate or dependent resources.",
366 "longDescription": "This property shall contain any status or health properties of the resource.",
367 "versionAdded": "v1_4_0"
368 },
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600369 "TransferMethod": {
370 "anyOf": [
371 {
372 "$ref": "#/definitions/TransferMethod"
373 },
374 {
375 "type": "null"
376 }
377 ],
Ed Tanouscb103132019-10-08 11:34:22 -0700378 "description": "The transfer method to use with the Image.",
379 "longDescription": "This parameter shall describe how the image transfer occurs.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600380 "readonly": false,
381 "versionAdded": "v1_3_0"
382 },
383 "TransferProtocolType": {
384 "anyOf": [
385 {
386 "$ref": "#/definitions/TransferProtocolType"
387 },
388 {
389 "type": "null"
390 }
391 ],
Ed Tanouscb103132019-10-08 11:34:22 -0700392 "description": "The network protocol to use with the image.",
393 "longDescription": "This parameter shall represent the network protocol to use with the specified image URI.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600394 "readonly": false,
395 "versionAdded": "v1_3_0"
396 },
397 "UserName": {
Ed Tanouscb103132019-10-08 11:34:22 -0700398 "description": "The user name to access the Image parameter-specified URI.",
399 "longDescription": "This parameter shall represent the user name to access the Image parameter-specified URI.",
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600400 "readonly": false,
401 "type": [
402 "string",
403 "null"
404 ],
405 "versionAdded": "v1_3_0"
406 },
Gunnar Mills10f270b2021-05-19 15:34:06 -0500407 "VerifyCertificate": {
408 "description": "An indication of whether the service will verify the certificate of the server referenced by the Image property prior to completing the remote media connection.",
409 "longDescription": "This property shall indicate whether whether the service will verify the certificate of the server referenced by the Image property prior to completing the remote media connection.",
410 "readonly": false,
411 "type": [
412 "boolean",
413 "null"
414 ],
415 "versionAdded": "v1_4_0"
416 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700417 "WriteProtected": {
Ed Tanouscb103132019-10-08 11:34:22 -0700418 "description": "An indication of whether the media is write-protected.",
419 "longDescription": "This property shall indicate whether the remote device media prevents writing to that media.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700420 "readonly": false,
421 "type": [
422 "boolean",
423 "null"
424 ]
425 }
426 },
427 "required": [
Ed Tanous530520e2019-01-02 13:41:37 -0800428 "@odata.id",
429 "@odata.type",
Ed Tanous118b1c72018-09-13 13:45:51 -0700430 "Id",
431 "Name"
432 ],
433 "type": "object"
434 }
435 },
Ed Tanous530520e2019-01-02 13:41:37 -0800436 "owningEntity": "DMTF",
Gunnar Mills10f270b2021-05-19 15:34:06 -0500437 "release": "2021.1",
438 "title": "#VirtualMedia.v1_4_0.VirtualMedia"
Ed Tanous118b1c72018-09-13 13:45:51 -0700439}