The sushy.resources.system.storage.drive Module

class sushy.resources.system.storage.drive.Drive(connector, path='', redfish_version=None, registries=None, reader=None)

Bases: sushy.resources.base.ResourceBase

This class represents a disk drive or other physical storage medium.

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

The size of the smallest addressable unit of this drive in bytes

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

The size in bytes of this Drive

identifiers = <sushy.resources.common.IdentifiersListField object>

The Durable names for the drive

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

The Drive identity string

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

Whether the indicator LED is lit or off

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

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

The name of the resource

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

The part number for this drive

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

Protocol this drive is using to communicate to the storage controller

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

The serial number for this drive

set_indicator_led(state)

Set IndicatorLED to the given state.

Parameters

state – Desired LED state, lit (INDICATOR_LED_LIT), blinking (INDICATOR_LED_BLINKING), off (INDICATOR_LED_OFF)

Raises

InvalidParameterValueError, if any information passed is invalid.

status = <sushy.resources.common.StatusField object>

This type describes the status and health of the drive