RedfishResource¶
RedfishResource
¶
Redfish API for DMTF BMC compatibility.
Redfish does not use the standard PiKVM response format,
so it calls :pymethod:PiKVM.request directly.
Source code in src/aiopikvm/resources/redfish.py
get_root()
async
¶
Get the Redfish service root.
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Service root document. |
get_systems()
async
¶
Get the systems collection.
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Systems collection document. |
get_system(system_id=0)
async
¶
Get details for a specific system.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system_id
|
int
|
System index (default |
0
|
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
System resource document. |
Source code in src/aiopikvm/resources/redfish.py
update_system(system_id=0, **attrs)
async
¶
Update system configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system_id
|
int
|
System index (default |
0
|
**attrs
|
Any
|
Redfish attributes to update
(e.g. |
{}
|
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Updated system resource document. |
Source code in src/aiopikvm/resources/redfish.py
reset(reset_type='ForceRestart')
async
¶
Send a Redfish ComputerSystem.Reset action.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reset_type
|
str
|
The reset type (default |
'ForceRestart'
|
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
The JSON response body. |