manta_shared/types/api/hardware.rs
1//! Parameters for `GET /groups/hardware` (and the deprecated
2//! `/hardware-clusters` alias) and `GET /hardware-nodes-list`.
3
4/// Typed parameters for fetching cluster hardware inventory.
5pub struct GetHardwareClusterParams {
6 /// Cluster group name to inventory; `None` falls back to the
7 /// operator default.
8 pub group_name: Option<String>,
9 /// Operator default from `cli.toml`'s `hsm_group`, used when
10 /// `group_name` is absent.
11 pub settings_hsm_group_name: Option<String>,
12}
13
14/// Typed parameters for fetching hardware inventory for a list of nodes.
15#[derive(Debug)]
16pub struct GetHardwareNodesListParams {
17 /// Hosts expression (xnames, NIDs, or hostlist notation).
18 pub host_expression: String,
19}