Class IndexTemplateExistsDescriptor
Descriptor for TemplateExists
https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-templates/
Inheritance
RequestDescriptorBase<IndexTemplateExistsDescriptor, IndexTemplateExistsRequestParameters, IIndexTemplateExistsRequest>
IndexTemplateExistsDescriptor
Implements
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class IndexTemplateExistsDescriptor : RequestDescriptorBase<IndexTemplateExistsDescriptor, IndexTemplateExistsRequestParameters, IIndexTemplateExistsRequest>, IDescriptor, IIndexTemplateExistsRequest, IRequest<IndexTemplateExistsRequestParameters>, IRequest
Constructors
| Edit this page View SourceIndexTemplateExistsDescriptor()
Used for serialization purposes, making sure we have a parameterless constructor
Declaration
protected IndexTemplateExistsDescriptor()
IndexTemplateExistsDescriptor(Names)
/_template/{name}
Declaration
public IndexTemplateExistsDescriptor(Names name)
Parameters
Type | Name | Description |
---|---|---|
Names | name | this parameter is required |
Methods
| Edit this page View SourceClusterManagerTimeout(Time)
Specify timeout for connection to cluster_manager node
Declaration
public IndexTemplateExistsDescriptor ClusterManagerTimeout(Time timeout)
Parameters
Type | Name | Description |
---|---|---|
Time | timeout |
Returns
Type | Description |
---|---|
IndexTemplateExistsDescriptor |
Remarks
Introduced in OpenSearch 2.0 instead of MasterTimeout(Time)
FlatSettings(bool?)
Return settings in flat format (default: false)
Declaration
public IndexTemplateExistsDescriptor FlatSettings(bool? flatsettings = true)
Parameters
Type | Name | Description |
---|---|---|
bool? | flatsettings |
Returns
Type | Description |
---|---|
IndexTemplateExistsDescriptor |
Local(bool?)
Return local information, do not retrieve the state from cluster_manager node (default: false)
Declaration
public IndexTemplateExistsDescriptor Local(bool? local = true)
Parameters
Type | Name | Description |
---|---|---|
bool? | local |
Returns
Type | Description |
---|---|
IndexTemplateExistsDescriptor |
MasterTimeout(Time)
Specify timeout for connection to master node
Declaration
public IndexTemplateExistsDescriptor MasterTimeout(Time mastertimeout)
Parameters
Type | Name | Description |
---|---|---|
Time | mastertimeout |
Returns
Type | Description |
---|---|
IndexTemplateExistsDescriptor |
Remarks
Deprecated as of OpenSearch 2.0, use ClusterManagerTimeout(Time) instead