pub struct ApplyRuntimeConfigurationRequest {
pub cfs_configuration_name: String,
pub hosts_expression: String,
pub enabled: bool,
pub dry_run: bool,
}Expand description
Request body for PUT /v2/runtime-configuration.
Assigns a CFS configuration as the desired_configuration on every
CFS component matching hosts_expression, and sets the component’s
enabled flag. Idempotent: the same request repeated leaves the
nodes in the same state.
§Wire shape
{
"cfs_configuration_name": "base-mc-compute-config-cscs-26.3.0-pa",
"hosts_expression": "x8000c1s0b1n[0-3]",
"enabled": true,
"dry_run": false
}Fields§
§cfs_configuration_name: StringCFS configuration name to write as each component’s
desired_configuration. Must already exist in CFS.
hosts_expression: StringHosts expression (xnames, NIDs, or hostlist notation) naming the target nodes. HSM group names are not accepted here.
enabled: boolValue to set on each targeted CFS component’s enabled flag.
true lets CFS reconfigure on its next pass; false stages
the desired configuration without triggering CFS.
dry_run: boolWhen true, run all validations (hosts resolve, access check,
configuration existence) but skip the final CFS component
PATCH. The response still echoes the resolved xname list and
the configuration/enabled values that would have been
written, with applied: false and dry_run: true.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApplyRuntimeConfigurationRequest
impl<'de> Deserialize<'de> for ApplyRuntimeConfigurationRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApplyRuntimeConfigurationRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApplyRuntimeConfigurationRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ApplyRuntimeConfigurationRequest
impl Serialize for ApplyRuntimeConfigurationRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for ApplyRuntimeConfigurationRequest
impl RefUnwindSafe for ApplyRuntimeConfigurationRequest
impl Send for ApplyRuntimeConfigurationRequest
impl Sync for ApplyRuntimeConfigurationRequest
impl Unpin for ApplyRuntimeConfigurationRequest
impl UnwindSafe for ApplyRuntimeConfigurationRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more