sushy.resources.system.storage.storage
Module¶sushy.resources.system.storage.storage.
Storage
(connector, path='', redfish_version=None, reader=None)¶Bases: sushy.resources.base.ResourceBase
This 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.
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
drives_max_size_bytes
¶Max size available in bytes among all Drives of this collection.
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 Drive
object
Parameters: | identity – The identity of the Drive |
---|---|
Returns: | The Drive object |
Raises: | ResourceNotFoundError |
identity
= <sushy.resources.base.Field object>¶The Storage identity string
name
= <sushy.resources.base.Field object>¶The name of the resource
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.
sushy.resources.system.storage.storage.
StorageCollection
(connector, path, redfish_version=None)¶Bases: sushy.resources.base.ResourceCollectionBase
This class represents the collection of Storage resources
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.
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.
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.
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.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.