The sushy.resources.manager.virtual_media Module

class sushy.resources.manager.virtual_media.ActionsField(*args, **kwargs)

Bases: sushy.resources.base.CompositeField

eject_media = <sushy.resources.common.ActionField object>
insert_media = <sushy.resources.common.ActionField object>
class sushy.resources.manager.virtual_media.VirtualMedia(connector, path='', redfish_version=None, registries=None, reader=None)

Bases: sushy.resources.base.ResourceBase

connected_via = <sushy.resources.base.MappedField object>

Current virtual media connection methods

Applet: Connected to a client application NotConnected: No current connection Oem: Connected via an OEM-defined method URI: Connected to a URI location

eject_media()

Detach remote media from virtual media

After ejecting media inserted will be False and image_name will be empty.

identity = <sushy.resources.base.Field object>

Virtual Media resource identity string

image = <sushy.resources.base.Field object>

A URI providing the location of the selected image

image_name = <sushy.resources.base.Field object>

The image name

insert_media(image, inserted=True, write_protected=False)

Attach remote media to virtual media

Parameters
  • image – a URI providing the location of the selected image

  • inserted – specify if the image is to be treated as inserted upon completion of the action.

  • write_protected – indicates the media is write protected

inserted = <sushy.resources.base.Field object>

Indicates if virtual media is inserted in the virtual device

media_types = <sushy.resources.base.Field object>

List of supported media types as virtual media

name = <sushy.resources.base.Field object>

The name of resource

write_protected = <sushy.resources.base.Field object>

Indicates the media is write protected

class sushy.resources.manager.virtual_media.VirtualMediaCollection(connector, path, redfish_version=None, registries=None)

Bases: sushy.resources.base.ResourceCollectionBase

A collection of virtual media attached to a Manager