Class CreateIndexRequest
Request for Create
https://opensearch.org/docs/latest/api-reference/index-apis/create-index/
Inheritance
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class CreateIndexRequest : PlainRequestBase<CreateIndexRequestParameters>, ICreateIndexRequest, IIndexState, IRequest<CreateIndexRequestParameters>, IRequest
Constructors
| Edit this page View SourceCreateIndexRequest()
Used for serialization purposes, making sure we have a parameterless constructor
Declaration
protected CreateIndexRequest()
CreateIndexRequest(IndexName)
/{index}
Declaration
public CreateIndexRequest(IndexName index)
Parameters
| Type | Name | Description |
|---|---|---|
| IndexName | index | this parameter is required |
CreateIndexRequest(IndexName, IIndexState)
Declaration
public CreateIndexRequest(IndexName index, IIndexState state)
Parameters
| Type | Name | Description |
|---|---|---|
| IndexName | index | |
| IIndexState | state |
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.
IncludeTypeName
Whether a type should be expected in the body of the mappings.
Declaration
public bool? IncludeTypeName { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Remarks
Deprecated as of OpenSearch 2.0
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 |
Self
Declaration
protected ICreateIndexRequest Self { get; }
Property Value
| Type | Description |
|---|---|
| ICreateIndexRequest |
Settings
Declaration
public IIndexSettings Settings { get; set; }
Property Value
| Type | Description |
|---|---|
| IIndexSettings |
Timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Declaration
public Time Timeout { get; set; }
Property Value
| Type | Description |
|---|---|
| Time |
WaitForActiveShards
The number of shard copies that must be active before proceeding with the operation. Set to all or any positive integer up to the
total number of shards in the index (number_of_replicas+1).
Declaration
public string WaitForActiveShards { get; set; }
Property Value
| Type | Description |
|---|---|
| string |