types class

class redfish.types.Base(url, connection_parameters)[source]

Abstract class to manage types (Chassis, Servers etc...).

Need to be explained.

Parameters:parameter_name – name of the parameter
Returns:string – parameter value
get_name()[source]

Get root name

Returns:string – root name or “Not available”
get_parameter(parameter_name)[source]

Generic function to get a specific parameter

Parameters:parameter_name – name of the parameter
Returns:string – parameter value
get_parameters()[source]

Generic function to get all parameters

Returns:string – parameter value
set_parameter(parameter_name, value)[source]

Generic function to set a specific parameter

Parameters:
  • parameter_name – name of the parameter
  • value – value to set
Returns:

string – http response of PATCH request

class redfish.types.BaseCollection(url, connection_parameters)[source]

Abstract class to manage collection (Chassis, Servers etc...).

class redfish.types.Device(url, connection_parameters)[source]

Abstract class to add common methods between devices (Chassis, Servers, System).

get_asset_tag()[source]

Get asset tag of the device.

Returns:asset tag or “Not available”
Return type:string
get_manufacturer()[source]

Get device manufacturer

Returns:device manufacturer or “Not available”
Return type:string
get_model()[source]

Get device model

Returns:device model or “Not available”
Return type:string
get_part_number()[source]

Get part number of the device.

Returns:part number or “Not available”
Return type:string
get_serial_number()[source]

Get serial number of the device.

Returns:serial number or “Not available”
Return type:string
get_sku()[source]

Get sku number of the device.

Returns:sku number or “Not available”
Return type:string
get_status()[source]

Get device status

Returns:device status or “Not available”
Return type:dict
get_uuid()[source]

Get device uuid

Returns:device uuid or “Not available”
Return type:string