apply_hw_configuration

Function apply_hw_configuration 

Source
pub async fn apply_hw_configuration(
    infra: &InfraContext<'_>,
    shasta_token: &str,
    p: ApplyHwConfigurationParams<'_>,
) -> Result<ApplyHwResult, Error>
Expand description

Service entry point for POST /hardware-clusters/{target}/configuration.

ยงErrors

  • [Error::InvalidPattern] when p.pattern cannot be parsed.
  • [Error::NotFound] when the target group is missing and p.create_target_group is false.
  • [Error::BadRequest] when a dry-run would require creating the target group.
  • [Error::InsufficientResources] when the parent group cannot supply enough of any component named in the pattern.
  • [Error::NetError] / [Error::CsmError] from any of the get_group / hardware-inventory / membership-mutation backend calls.