Module redfish

Module redfish 

Source
Expand description

HSM Redfish-endpoint registry queries and CRUD.

Wraps the /Inventory/RedfishEndpoints HSM family. A registration describes how HSM should talk to a BMC: hostname/FQDN, credentials, MAC and IP, discovery flags. Every mutation runs through validate_user_group_members_access so a caller can only touch a BMC whose xname they already have group access to.

Listing is the only special case: admin tokens may broadly list every endpoint, but non-admin callers MUST scope the query by id, because the full listing would otherwise leak every BMC’s identity and credentials cluster-wide.

Structs§

GetRedfishEndpointsParams
Typed parameters for fetching Redfish endpoints.
UpdateRedfishEndpointParams
Typed parameters for adding or updating a Redfish endpoint.

Functions§

add_redfish_endpoint
Register a new Redfish endpoint with HSM.
delete_redfish_endpoint
Delete a Redfish endpoint registration by id (BMC xname).
get_redfish_endpoints
List Redfish endpoint registrations, applying any caller-supplied filters (id / fqdn / uuid / macaddr / ipaddress).
update_redfish_endpoint
Update an existing Redfish endpoint’s properties.