The sushy.resources.system.storage.storage Module¶
-
class
sushy.resources.system.storage.storage.Storage(connector, path='', redfish_version=None, registries=None, reader=None)¶ Bases:
sushy.resources.base.ResourceBaseThis class represents the storage subsystem resources.
A storage subsystem represents a set of storage controllers (physical or virtual) and the resources such as drives and volumes that can be accessed from that subsystem.
-
property
drives¶ Return a list of Drive objects present in the storage resource.
It is set once when the first time it is queried. On subsequent invocations, it returns a cached list of Drives objects until it is marked stale.
- Returns
A list of Drive objects
- Raises
ResourceNotFoundError
-
drives_identities= <sushy.resources.base.Field object>¶ A tuple with the drive identities
-
property
drives_max_size_bytes¶ Max size available in bytes among all Drives of this collection.
-
property
drives_sizes_bytes¶ Sizes of all Drives in bytes in Storage resource.
Returns the list of cached values until it (or its parent resource) is refreshed.
-
get_drive(drive_identity)¶ Given the drive identity return a
Driveobject- Parameters
drive_identity – The identity of the
Drive- Returns
The
Driveobject- Raises
ResourceNotFoundError
-
identity= <sushy.resources.base.Field object>¶ The Storage identity string
-
name= <sushy.resources.base.Field object>¶ The name of the resource
-
status= <sushy.resources.common.StatusField object>¶ Describes the status and health of the resource and its children.
-
storage_controllers= <sushy.resources.system.storage.storage.StorageControllersListField object>¶ The storage devices associated with this resource.
-
property
volumes¶ Property to reference VolumeCollection instance
It is set once when the first time it is queried. On refresh, this property is marked as stale (greedy-refresh not done at that point). Here only the actual refresh of the sub-resource happens, if resource is stale.
-
property
-
class
sushy.resources.system.storage.storage.StorageCollection(connector, path, redfish_version=None, registries=None)¶ Bases:
sushy.resources.base.ResourceCollectionBaseThis class represents the collection of Storage resources
-
property
drives_sizes_bytes¶ Sizes of each Drive in bytes in Storage collection resource.
Returns the list of cached values until it (or its parent resource) is refreshed.
-
property
max_drive_size_bytes¶ Max size available (in bytes) among all Drive resources.
Returns the cached value until it (or its parent resource) is refreshed.
-
property
max_volume_size_bytes¶ Max size available (in bytes) among all Volume resources.
Returns the cached value until it (or its parent resource) is refreshed.
-
property
volumes_sizes_bytes¶ Sizes of each Volume in bytes in Storage collection resource.
Returns the list of cached values until it (or its parent resource) is refreshed.
-
property
-
class
sushy.resources.system.storage.storage.StorageControllersListField(*args, **kwargs)¶ Bases:
sushy.resources.base.ListFieldThe set of storage controllers represented by this resource.
-
controller_protocols= <sushy.resources.base.MappedListField object>¶ The protocols by which this storage controller can be communicated to
-
device_protocols= <sushy.resources.base.MappedListField object>¶ The protocols which the controller can use tocommunicate with devices
-
identifiers= <sushy.resources.common.IdentifiersListField object>¶ The Durable names for the storage controller.
-
member_id= <sushy.resources.base.Field object>¶ Uniquely identifies the member within the collection.
-
name= <sushy.resources.base.Field object>¶ The name of the storage controller
-
speed_gbps= <sushy.resources.base.Field object>¶ The maximum speed of the storage controller’s device interface.
-
status= <sushy.resources.common.StatusField object>¶ Describes the status and health of the resource and its children.
-