add_redfish_endpoint

Function add_redfish_endpoint 

Source
pub async fn add_redfish_endpoint(
    infra: &InfraContext<'_>,
    token: &str,
    params: UpdateRedfishEndpointParams,
) -> Result<(), Error>
Expand description

Register a new Redfish endpoint with HSM.

The caller-supplied UpdateRedfishEndpointParams is converted to a single-element RedfishEndpointArray before reaching the backend.

ยงErrors

  • [Error::BadRequest] when the caller cannot reach params.id through any of their HSM groups.
  • [Error::NetError] / [Error::CsmError] from the backend add_redfish_endpoint call (including conflicts when an endpoint with that id is already registered).