pub async fn get_redfish_endpoints(
infra: &InfraContext<'_>,
token: &str,
params: &GetRedfishEndpointsParams,
) -> Result<RedfishEndpointArray, Error>Expand description
List Redfish endpoint registrations, applying any caller-supplied
filters (id / fqdn / uuid / macaddr / ipaddress).
Authorization rules:
- Admin tokens (carrying
crate::service::authorization::PA_ADMIN) may list every endpoint, with or without filters. - Non-admin callers MUST scope the request by
id. The xname is then validated against the caller’s accessible groups; without anid, the response could leak every BMC’s identity and credentials. The non-admin broad listing returnsBadRequest.