Class PutIndexTemplateRequest
Request for PutTemplate
https://opensearch.org/docs/latest/im-plugin/index-templates/
Inheritance
PutIndexTemplateRequest
Implements
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class PutIndexTemplateRequest : PlainRequestBase<PutIndexTemplateRequestParameters>, IPutIndexTemplateRequest, ITemplateMapping, IRequest<PutIndexTemplateRequestParameters>, IRequest
Constructors
| Edit this page View SourcePutIndexTemplateRequest()
Used for serialization purposes, making sure we have a parameterless constructor
Declaration
protected PutIndexTemplateRequest()
PutIndexTemplateRequest(Name)
/_template/{name}
Declaration
public PutIndexTemplateRequest(Name name)
Parameters
Type | Name | Description |
---|---|---|
Name | name | this parameter is required |
Properties
| Edit this page View SourceAliases
Declaration
public IAliases Aliases { get; set; }
Property Value
Type | Description |
---|---|
IAliases |
ClusterManagerTimeout
Operation timeout for connection to cluster-manager node.
Declaration
public Time ClusterManagerTimeout { get; set; }
Property Value
Type | Description |
---|---|
Time |
Remarks
Supported by OpenSearch servers of version 2.0.0 or greater.
Create
If true
, this request cannot replace or update existing index templates.
Declaration
public bool? Create { get; set; }
Property Value
Type | Description |
---|---|
bool? |
IncludeTypeName
Whether a type should be returned in the body of the mappings.
Declaration
public bool? IncludeTypeName { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Remarks
Deprecated as of OpenSearch 2.0
IndexPatterns
Declaration
public IReadOnlyCollection<string> IndexPatterns { get; set; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<string> |
Mappings
Declaration
public ITypeMapping Mappings { get; set; }
Property Value
Type | Description |
---|---|
ITypeMapping |
MasterTimeout
Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
Declaration
[Obsolete("Deprecated as of: 2.0.0, reason: To promote inclusive language, use `cluster_manager_timeout` instead.")]
public Time MasterTimeout { get; set; }
Property Value
Type | Description |
---|---|
Time |
Order
Declaration
public int? Order { get; set; }
Property Value
Type | Description |
---|---|
int? |
Self
Declaration
protected IPutIndexTemplateRequest Self { get; }
Property Value
Type | Description |
---|---|
IPutIndexTemplateRequest |
Settings
Declaration
public IIndexSettings Settings { get; set; }
Property Value
Type | Description |
---|---|
IIndexSettings |
Version
Declaration
public int? Version { get; set; }
Property Value
Type | Description |
---|---|
int? |