The rsd_lib.resources.v2_1.system.drive
Module¶
-
class
rsd_lib.resources.v2_1.system.drive.
ActionsField
(*args, **kwargs)¶ Bases:
sushy.resources.base.CompositeField
-
secure_erase
= <sushy.resources.common.ActionField object>¶
-
-
class
rsd_lib.resources.v2_1.system.drive.
Drive
(connector, path='', redfish_version=None, registries=None, reader=None, json_doc=None, root=None)¶ Bases:
rsd_lib.base.ResourceBase
Drive resource class
Drive contains properties describing a single physical disk drive for any system, along with links to associated Volumes.
-
asset_tag
= <sushy.resources.base.Field object>¶ The user assigned asset tag for this drive.
-
block_size_bytes
= <sushy.resources.base.Field object>¶ The size of the smallest addressible unit (Block) of this drive in bytes
-
capable_speed_gbs
= <sushy.resources.base.Field object>¶ The speed which this drive can communicate to a storage controller in ideal conditions in Gigabits per second
-
capacity_bytes
= <sushy.resources.base.Field object>¶ The size in bytes of this Drive
-
encryption_ability
= <sushy.resources.base.Field object>¶ The encryption abilities of this drive
-
encryption_status
= <sushy.resources.base.Field object>¶ The status of the encryption of this drive
-
failure_predicted
= <sushy.resources.base.Field object>¶ Is this drive currently predicting a failure in the near future
-
hotspare_type
= <sushy.resources.base.Field object>¶ The type of hotspare this drive is currently serving as
-
identifiers
= <rsd_lib.base.IdentifierCollectionField object>¶ The Durable names for the drive
-
indicator_led
= <sushy.resources.base.Field object>¶ The state of the indicator LED, used to identify the drive.
-
links
= <rsd_lib.resources.v2_1.system.drive.LinksField object>¶ Contains references to other resources that are related to this resource.
-
location
= <rsd_lib.base.LocationCollectionField object>¶ The Location of the drive
-
manufacturer
= <sushy.resources.base.Field object>¶ This is the manufacturer of this drive.
-
media_type
= <sushy.resources.base.Field object>¶ The type of media contained in this drive
-
model
= <sushy.resources.base.Field object>¶ This is the model number for the drive.
-
negotiated_speed_gbs
= <sushy.resources.base.Field object>¶ The speed which this drive is currently communicating to the storage controller in Gigabits per second
-
oem
= <rsd_lib.resources.v2_1.system.drive.OemField object>¶ Oem specific properties.
-
operations
= <rsd_lib.resources.v2_1.system.volume.OperationsCollectionField object>¶ The operations currently running on the Drive.
-
part_number
= <sushy.resources.base.Field object>¶ The part number for this drive.
-
predicted_media_life_left_percent
= <sushy.resources.base.Field object>¶ The percentage of reads and writes that are predicted to still be available for the media
-
protocol
= <sushy.resources.base.Field object>¶ The protocol this drive is using to communicate to the storage controller
-
revision
= <sushy.resources.base.Field object>¶ The revision of this Drive
-
rotation_speed_rpm
= <sushy.resources.base.Field object>¶ The rotation speed of this Drive in Revolutions per Minute (RPM)
-
secure_erase
()¶ Secure erase the drive.
- Raises
MissingActionError, if no secure erase action exists.
-
serial_number
= <sushy.resources.base.Field object>¶ The serial number for this drive.
-
sku
= <sushy.resources.base.Field object>¶ This is the SKU for this drive.
-
status
= <rsd_lib.base.StatusField object>¶ This indicates the known state of the resource, such as if it is enabled.
-
status_indicator
= <sushy.resources.base.Field object>¶ The state of the status indicator, used to communicate status information about this drive.
-
update
(asset_tag=None, erase_on_detach=None, erased=None)¶ Update drive properties
- Parameters
asset_tag – The user assigned asset tag for this drive
erase_on_detach – Indicates if drive should be erased when detached from Composed Node.
erased – Indicate whether drive was cleared after assignment to composed node
- Raises
InvalidParameterValueError if one param is incorrect
-
-
class
rsd_lib.resources.v2_1.system.drive.
IntelRackScaleField
(*args, **kwargs)¶ Bases:
sushy.resources.base.CompositeField
-
drive_erased
= <sushy.resources.base.Field object>¶ This indicates whether drive was cleared after assignment to composed node.
-
erase_on_detach
= <sushy.resources.base.Field object>¶ This indicates if drive should be erased when detached from PCI switch.
-
firmware_version
= <sushy.resources.base.Field object>¶ This indicates drive firmware version.
-
pcie_function
= <sushy.resources.base.Field object>¶ A reference to the PCIe function that provides this drive functionality.
-
storage
= <sushy.resources.base.Field object>¶ A reference to the storage controller where this drive is connected.
-
-
class
rsd_lib.resources.v2_1.system.drive.
LinksField
(*args, **kwargs)¶ Bases:
sushy.resources.base.CompositeField
-
endpoints
= <sushy.resources.base.Field object>¶ An array of references to the endpoints that connect to this drive.
-
volumes
= <sushy.resources.base.Field object>¶ An array of references to the volumes contained in this drive. This will reference Volumes that are either wholly or only partly contained by this drive.
-