Class ClusterStateDescriptor
Descriptor for State
https://opensearch.org/docs/latest
Inheritance
ClusterStateDescriptor
Assembly: OpenSearch.Client.dll
Syntax
public class ClusterStateDescriptor : RequestDescriptorBase<ClusterStateDescriptor, ClusterStateRequestParameters, IClusterStateRequest>, IDescriptor, IClusterStateRequest, IRequest<ClusterStateRequestParameters>, IRequest
Constructors
|
Edit this page
View Source
ClusterStateDescriptor()
Declaration
public ClusterStateDescriptor()
|
Edit this page
View Source
ClusterStateDescriptor(Metrics)
Declaration
public ClusterStateDescriptor(Metrics metric)
Parameters
Type |
Name |
Description |
Metrics |
metric |
Optional, accepts null
|
|
Edit this page
View Source
ClusterStateDescriptor(Metrics, Indices)
/_cluster/state/{metric}/{index}
Declaration
public ClusterStateDescriptor(Metrics metric, Indices index)
Parameters
Type |
Name |
Description |
Metrics |
metric |
Optional, accepts null
|
Indices |
index |
Optional, accepts null
|
Methods
|
Edit this page
View Source
AllIndices()
A shortcut into calling Index(Indices.All)
Declaration
public ClusterStateDescriptor AllIndices()
Returns
|
Edit this page
View Source
AllowNoIndices(bool?)
Whether to ignore if a wildcard indexes expression resolves into no concrete indexes. (This includes _all
string or when no indexes have been specified).
Declaration
public ClusterStateDescriptor AllowNoIndices(bool? allownoindices = true)
Parameters
Type |
Name |
Description |
bool? |
allownoindices |
|
Returns
|
Edit this page
View Source
ClusterManagerTimeout(Time)
Operation timeout for connection to cluster-manager node.
Declaration
public ClusterStateDescriptor ClusterManagerTimeout(Time clustermanagertimeout)
Parameters
Type |
Name |
Description |
Time |
clustermanagertimeout |
|
Returns
|
Edit this page
View Source
ExpandWildcards(ExpandWildcards?)
Whether to expand wildcard expression to concrete indexes that are open, closed or both.
Declaration
public ClusterStateDescriptor ExpandWildcards(ExpandWildcards? expandwildcards)
Parameters
Returns
|
Edit this page
View Source
FlatSettings(bool?)
Return settings in flat format.
Declaration
public ClusterStateDescriptor FlatSettings(bool? flatsettings = true)
Parameters
Type |
Name |
Description |
bool? |
flatsettings |
|
Returns
|
Edit this page
View Source
IgnoreUnavailable(bool?)
Whether specified concrete indexes should be ignored when unavailable (missing or closed).
Declaration
public ClusterStateDescriptor IgnoreUnavailable(bool? ignoreunavailable = true)
Parameters
Type |
Name |
Description |
bool? |
ignoreunavailable |
|
Returns
|
Edit this page
View Source
Index(Indices)
A comma-separated list of index names; use the special string _all
or Indices.All to perform the operation on all indexes.
Declaration
public ClusterStateDescriptor Index(Indices index)
Parameters
Type |
Name |
Description |
Indices |
index |
|
Returns
|
Edit this page
View Source
Index<TOther>()
a shortcut into calling Index(typeof(TOther))
Declaration
public ClusterStateDescriptor Index<TOther>() where TOther : class
Returns
Type Parameters
|
Edit this page
View Source
Local(bool?)
Return local information, do not retrieve the state from cluster-manager node.
Declaration
public ClusterStateDescriptor Local(bool? local = true)
Parameters
Type |
Name |
Description |
bool? |
local |
|
Returns
|
Edit this page
View Source
MasterTimeout(Time)
Specify timeout for connection to cluster manager.
Declaration
[Obsolete("Deprecated as of: 2.0.0, reason: To promote inclusive language, use `cluster_manager_timeout` instead.")]
public ClusterStateDescriptor MasterTimeout(Time mastertimeout)
Parameters
Type |
Name |
Description |
Time |
mastertimeout |
|
Returns
|
Edit this page
View Source
Metric(Metrics)
Limit the information returned to the specified metrics.
Declaration
public ClusterStateDescriptor Metric(Metrics metric)
Parameters
Type |
Name |
Description |
Metrics |
metric |
|
Returns
|
Edit this page
View Source
Wait for the metadata version to be equal or greater than the specified metadata version.
Declaration
public ClusterStateDescriptor WaitForMetadataVersion(long? waitformetadataversion)
Parameters
Type |
Name |
Description |
long? |
waitformetadataversion |
|
Returns
|
Edit this page
View Source
WaitForTimeout(Time)
The maximum time to wait for wait_for_metadata_version
before timing out.
Declaration
public ClusterStateDescriptor WaitForTimeout(Time waitfortimeout)
Parameters
Type |
Name |
Description |
Time |
waitfortimeout |
|
Returns
Implements
Extension Methods