Skip to main content

manta_shared/shared/params/
boot_parameters.rs

1//! Parameters for `GET` and `PUT` on `/boot-parameters`.
2
3/// Typed parameters for fetching boot parameters.
4pub struct GetBootParametersParams {
5  pub hsm_group: Option<String>,
6  pub nodes: Option<String>,
7  pub settings_hsm_group_name: Option<String>,
8}
9
10/// Typed parameters for updating boot parameters.
11#[derive(serde::Deserialize, serde::Serialize, utoipa::ToSchema)]
12pub struct UpdateBootParametersParams {
13  /// Target node xnames.
14  pub hosts: Vec<String>,
15  /// Node IDs corresponding to `hosts` (optional alternate identifier).
16  pub nids: Option<Vec<u32>>,
17  /// MAC addresses corresponding to `hosts` (optional alternate identifier).
18  pub macs: Option<Vec<String>>,
19  /// Kernel command-line parameters string.
20  pub params: String,
21  /// S3 path to the kernel image.
22  pub kernel: String,
23  /// S3 path to the initrd image.
24  pub initrd: String,
25}