get_cluster_nodes

Function get_cluster_nodes 

Source
pub async fn get_cluster_nodes(
    infra: &InfraContext<'_>,
    token: &str,
    params: &GetClusterParams,
) -> Result<Vec<NodeDetails>, Error>
Expand description

Fetch full node details for every member of the requested HSM groups.

When params.group_name is unset the scope expands to every group the token can access. The optional status_filter matches case-insensitively against either the power or configuration status. Results are sorted by xname for stable rendering.

§Errors

  • [Error::BadRequest] when params.group_name names a group the caller can’t access.
  • Backend errors from get_group_available, get_member_vec_from_group_name_vec, or the per-xname detail fetch in node_details::get_node_details.