pub struct ClusterApiClient { /* private fields */ }Implementations§
Source§impl ClusterApiClient
impl ClusterApiClient
pub fn new(configuration: Arc<Configuration>) -> Self
Sourcepub fn get_settings<'f1>(&'f1 self) -> ClusterApiClientGetSettingsBuilder<'f1>
pub fn get_settings<'f1>(&'f1 self) -> ClusterApiClientGetSettingsBuilder<'f1>
Returns cluster settings.
Sourcepub fn get_decommission_awareness<'f1>(
&'f1 self,
) -> ClusterApiClientGetDecommissionAwarenessBuilder<'f1>
pub fn get_decommission_awareness<'f1>( &'f1 self, ) -> ClusterApiClientGetDecommissionAwarenessBuilder<'f1>
Retrieves the decommission status for all zones.
Sourcepub fn put_settings<'f1>(&'f1 self) -> ClusterApiClientPutSettingsBuilder<'f1>
pub fn put_settings<'f1>(&'f1 self) -> ClusterApiClientPutSettingsBuilder<'f1>
Updates the cluster settings.
Sourcepub fn delete_component_template<'f1>(
&'f1 self,
) -> ClusterApiClientDeleteComponentTemplateBuilder<'f1>
pub fn delete_component_template<'f1>( &'f1 self, ) -> ClusterApiClientDeleteComponentTemplateBuilder<'f1>
Deletes a component template.
Sourcepub fn exists_component_template<'f1>(
&'f1 self,
) -> ClusterApiClientExistsComponentTemplateBuilder<'f1>
pub fn exists_component_template<'f1>( &'f1 self, ) -> ClusterApiClientExistsComponentTemplateBuilder<'f1>
Returns information about whether a particular component template exist.
Sourcepub fn get_component_template<'f1>(
&'f1 self,
) -> ClusterApiClientGetComponentTemplateBuilder<'f1>
pub fn get_component_template<'f1>( &'f1 self, ) -> ClusterApiClientGetComponentTemplateBuilder<'f1>
Returns one or more component templates.
Sourcepub fn delete_decommission_awareness<'f1>(
&'f1 self,
) -> ClusterApiClientDeleteDecommissionAwarenessBuilder<'f1>
pub fn delete_decommission_awareness<'f1>( &'f1 self, ) -> ClusterApiClientDeleteDecommissionAwarenessBuilder<'f1>
Recommissions a decommissioned zone.
Sourcepub fn get_weighted_routing<'f1>(
&'f1 self,
) -> ClusterApiClientGetWeightedRoutingBuilder<'f1>
pub fn get_weighted_routing<'f1>( &'f1 self, ) -> ClusterApiClientGetWeightedRoutingBuilder<'f1>
Fetches weighted shard routing weights.
Sourcepub fn delete_weighted_routing<'f1>(
&'f1 self,
) -> ClusterApiClientDeleteWeightedRoutingBuilder<'f1>
pub fn delete_weighted_routing<'f1>( &'f1 self, ) -> ClusterApiClientDeleteWeightedRoutingBuilder<'f1>
Delete weighted shard routing weights.
Sourcepub fn post_voting_config_exclusions<'f1>(
&'f1 self,
) -> ClusterApiClientPostVotingConfigExclusionsBuilder<'f1>
pub fn post_voting_config_exclusions<'f1>( &'f1 self, ) -> ClusterApiClientPostVotingConfigExclusionsBuilder<'f1>
Updates the cluster voting configuration by excluding certain node IDs or names.
Sourcepub fn pending_tasks<'f1>(&'f1 self) -> ClusterApiClientPendingTasksBuilder<'f1>
pub fn pending_tasks<'f1>(&'f1 self) -> ClusterApiClientPendingTasksBuilder<'f1>
Returns a list of pending cluster-level tasks, such as index creation, mapping updates, or new allocations.
Sourcepub fn reroute<'f1>(&'f1 self) -> ClusterApiClientRerouteBuilder<'f1>
pub fn reroute<'f1>(&'f1 self) -> ClusterApiClientRerouteBuilder<'f1>
Allows to manually change the allocation of individual shards in the cluster.
Sourcepub fn allocation_explain<'f1>(
&'f1 self,
) -> ClusterApiClientAllocationExplainBuilder<'f1>
pub fn allocation_explain<'f1>( &'f1 self, ) -> ClusterApiClientAllocationExplainBuilder<'f1>
Explains how shards are allocated in the current cluster and provides an explanation for why unassigned shards can’t be allocated to a node.
Sourcepub fn put_decommission_awareness<'f1>(
&'f1 self,
) -> ClusterApiClientPutDecommissionAwarenessBuilder<'f1>
pub fn put_decommission_awareness<'f1>( &'f1 self, ) -> ClusterApiClientPutDecommissionAwarenessBuilder<'f1>
Decommissions a cluster zone based on awareness. This can greatly benefit multi-zone deployments, where awareness attributes can aid in applying new upgrades to a cluster in a controlled fashion.
Sourcepub fn health<'f1>(&'f1 self) -> ClusterApiClientHealthBuilder<'f1>
pub fn health<'f1>(&'f1 self) -> ClusterApiClientHealthBuilder<'f1>
Returns basic information about the health of the cluster.
Sourcepub fn remote_info<'f1>(&'f1 self) -> ClusterApiClientRemoteInfoBuilder<'f1>
pub fn remote_info<'f1>(&'f1 self) -> ClusterApiClientRemoteInfoBuilder<'f1>
Returns the information about configured remote clusters.
Sourcepub fn stats<'f1>(&'f1 self) -> ClusterApiClientStatsBuilder<'f1>
pub fn stats<'f1>(&'f1 self) -> ClusterApiClientStatsBuilder<'f1>
Returns a high-level overview of cluster statistics.
Sourcepub fn put_weighted_routing<'f1>(
&'f1 self,
) -> ClusterApiClientPutWeightedRoutingBuilder<'f1>
pub fn put_weighted_routing<'f1>( &'f1 self, ) -> ClusterApiClientPutWeightedRoutingBuilder<'f1>
Updates weighted shard routing weights.
Sourcepub fn put_component_template<'f1>(
&'f1 self,
) -> ClusterApiClientPutComponentTemplateBuilder<'f1>
pub fn put_component_template<'f1>( &'f1 self, ) -> ClusterApiClientPutComponentTemplateBuilder<'f1>
Creates or updates a component template.
Sourcepub fn delete_voting_config_exclusions<'f1>(
&'f1 self,
) -> ClusterApiClientDeleteVotingConfigExclusionsBuilder<'f1>
pub fn delete_voting_config_exclusions<'f1>( &'f1 self, ) -> ClusterApiClientDeleteVotingConfigExclusionsBuilder<'f1>
Clears any cluster voting configuration exclusions.