pub struct BulkUpgradeAgents<'a>(/* private fields */);Expand description
POST /api/fleet/agents/bulk_upgrade
Implementations§
Source§impl<'a> BulkUpgradeAgents<'a>
impl<'a> BulkUpgradeAgents<'a>
Sourcepub fn into_request(self) -> Request<'a>
pub fn into_request(self) -> Request<'a>
Converts this builder to a raw request, preserving its configured route, scope, parameters, body, headers and timeout. Replacing the raw body does not reapply this builder’s identity, concurrency or typed-field checks. Existing construction errors remain errors and cannot be repaired through the raw request.
Sourcepub fn header(self, name: HeaderName, value: HeaderValue) -> Self
pub fn header(self, name: HeaderName, value: HeaderValue) -> Self
Sets a header on this request only. It replaces every value of the same name from the transport defaults or the body.
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Overrides the transport timeout for this request.
Source§impl BulkUpgradeAgents<'_>
impl BulkUpgradeAgents<'_>
Sourcepub fn start_time(self, time: &str) -> Self
pub fn start_time(self, time: &str) -> Self
An ISO 8601 time at which the rollout starts.
Sourcepub fn rollout_duration_seconds(self, seconds: u64) -> Self
pub fn rollout_duration_seconds(self, seconds: u64) -> Self
Spreads upgrades over this many seconds.
Source§impl BulkUpgradeAgents<'_>
impl BulkUpgradeAgents<'_>
Sourcepub fn dry_run(self, dry_run: bool) -> Self
pub fn dry_run(self, dry_run: bool) -> Self
Returns the number of selected agents instead of creating an action. Kibana 9.3 and later; earlier versions reject the field.
Sourcepub fn batch_size(self, size: u32) -> Self
pub fn batch_size(self, size: u32) -> Self
How many agents Kibana processes per batch for query selections. Kibana 9.0 and later; 8.19 accepts it only for tag updates and diagnostics requests.
Source§impl BulkUpgradeAgents<'_>
impl BulkUpgradeAgents<'_>
Sourcepub fn include_inactive(self, include: bool) -> Self
pub fn include_inactive(self, include: bool) -> Self
Also selects inactive agents matched by a query.
Source§impl BulkUpgradeAgents<'_>
impl BulkUpgradeAgents<'_>
Sourcepub fn force(self, force: bool) -> Self
pub fn force(self, force: bool) -> Self
Upgrades even when Fleet considers the agent ineligible.
Sourcepub fn source_uri(self, uri: &str) -> Self
pub fn source_uri(self, uri: &str) -> Self
Downloads agent binaries from this URI instead of the default source.