Search Results for

    Show / Hide Table of Contents

    Class CloneIndexDescriptor

    A request to the clone index API

    Inheritance
    object
    RequestBase<CloneIndexRequestParameters>
    RequestDescriptorBase<CloneIndexDescriptor, CloneIndexRequestParameters, ICloneIndexRequest>
    CloneIndexDescriptor
    Implements
    IDescriptor
    ICloneIndexRequest
    IRequest<CloneIndexRequestParameters>
    IRequest
    Inherited Members
    RequestDescriptorBase<CloneIndexDescriptor, CloneIndexRequestParameters, ICloneIndexRequest>.Self
    RequestDescriptorBase<CloneIndexDescriptor, CloneIndexRequestParameters, ICloneIndexRequest>.Assign<TValue>(TValue, Action<ICloneIndexRequest, TValue>)
    RequestDescriptorBase<CloneIndexDescriptor, CloneIndexRequestParameters, ICloneIndexRequest>.Qs(string, object)
    RequestDescriptorBase<CloneIndexDescriptor, CloneIndexRequestParameters, ICloneIndexRequest>.RequestConfiguration(Func<RequestConfigurationDescriptor, IRequestConfiguration>)
    RequestDescriptorBase<CloneIndexDescriptor, CloneIndexRequestParameters, ICloneIndexRequest>.ErrorTrace(bool?)
    RequestDescriptorBase<CloneIndexDescriptor, CloneIndexRequestParameters, ICloneIndexRequest>.FilterPath(params string[])
    RequestDescriptorBase<CloneIndexDescriptor, CloneIndexRequestParameters, ICloneIndexRequest>.FilterPath(IEnumerable<string>)
    RequestDescriptorBase<CloneIndexDescriptor, CloneIndexRequestParameters, ICloneIndexRequest>.Human(bool?)
    RequestDescriptorBase<CloneIndexDescriptor, CloneIndexRequestParameters, ICloneIndexRequest>.Pretty(bool?)
    RequestDescriptorBase<CloneIndexDescriptor, CloneIndexRequestParameters, ICloneIndexRequest>.SourceQueryString(string)
    RequestBase<CloneIndexRequestParameters>.HttpMethod
    RequestBase<CloneIndexRequestParameters>.RequestState
    RequestBase<CloneIndexRequestParameters>.ContentType
    RequestBase<CloneIndexRequestParameters>.ResolveUrl(RouteValues, IConnectionSettingsValues)
    RequestBase<CloneIndexRequestParameters>.RequestDefaults(CloneIndexRequestParameters)
    RequestBase<CloneIndexRequestParameters>.Q<TOut>(string)
    RequestBase<CloneIndexRequestParameters>.Q(string, object)
    RequestBase<CloneIndexRequestParameters>.SetAcceptHeader(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class CloneIndexDescriptor : RequestDescriptorBase<CloneIndexDescriptor, CloneIndexRequestParameters, ICloneIndexRequest>, IDescriptor, ICloneIndexRequest, IRequest<CloneIndexRequestParameters>, IRequest

    Constructors

    | Edit this page View Source

    CloneIndexDescriptor()

    Used for serialization purposes, making sure we have a parameterless constructor

    Declaration
    protected CloneIndexDescriptor()
    | Edit this page View Source

    CloneIndexDescriptor(IndexName, IndexName)

    /{index}/_clone/{target}

    Declaration
    public CloneIndexDescriptor(IndexName index, IndexName target)
    Parameters
    Type Name Description
    IndexName index

    this parameter is required

    IndexName target

    this parameter is required

    Methods

    | Edit this page View Source

    Aliases(Func<AliasesDescriptor, IPromise<IAliases>>)

    The aliases to apply to the target index

    Declaration
    public CloneIndexDescriptor Aliases(Func<AliasesDescriptor, IPromise<IAliases>> selector)
    Parameters
    Type Name Description
    Func<AliasesDescriptor, IPromise<IAliases>> selector
    Returns
    Type Description
    CloneIndexDescriptor
    | Edit this page View Source

    ClusterManagerTimeout(Time)

    Operation timeout for connection to cluster-manager node.

    Declaration
    public CloneIndexDescriptor ClusterManagerTimeout(Time clustermanagertimeout)
    Parameters
    Type Name Description
    Time clustermanagertimeout
    Returns
    Type Description
    CloneIndexDescriptor
    Remarks

    Supported by OpenSearch servers of version 2.0.0 or greater.

    | Edit this page View Source

    Index(IndexName)

    Name of the source index to clone.

    Declaration
    public CloneIndexDescriptor Index(IndexName index)
    Parameters
    Type Name Description
    IndexName index
    Returns
    Type Description
    CloneIndexDescriptor
    | Edit this page View Source

    Index<TOther>()

    a shortcut into calling Index(typeof(TOther))

    Declaration
    public CloneIndexDescriptor Index<TOther>() where TOther : class
    Returns
    Type Description
    CloneIndexDescriptor
    Type Parameters
    Name Description
    TOther
    | Edit this page View Source

    MasterTimeout(Time)

    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 CloneIndexDescriptor MasterTimeout(Time mastertimeout)
    Parameters
    Type Name Description
    Time mastertimeout
    Returns
    Type Description
    CloneIndexDescriptor
    | Edit this page View Source

    Settings(Func<IndexSettingsDescriptor, IPromise<IIndexSettings>>)

    The settings to apply to the target index

    Declaration
    public CloneIndexDescriptor Settings(Func<IndexSettingsDescriptor, IPromise<IIndexSettings>> selector)
    Parameters
    Type Name Description
    Func<IndexSettingsDescriptor, IPromise<IIndexSettings>> selector
    Returns
    Type Description
    CloneIndexDescriptor
    | Edit this page View Source

    TaskExecutionTimeout(Time)

    Explicit task execution timeout, only useful when wait_for_completion is false, defaults to 1h.

    Declaration
    public CloneIndexDescriptor TaskExecutionTimeout(Time taskexecutiontimeout)
    Parameters
    Type Name Description
    Time taskexecutiontimeout
    Returns
    Type Description
    CloneIndexDescriptor
    | Edit this page View Source

    Timeout(Time)

    Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

    Declaration
    public CloneIndexDescriptor Timeout(Time timeout)
    Parameters
    Type Name Description
    Time timeout
    Returns
    Type Description
    CloneIndexDescriptor
    | Edit this page View Source

    WaitForActiveShards(string)

    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 CloneIndexDescriptor WaitForActiveShards(string waitforactiveshards)
    Parameters
    Type Name Description
    string waitforactiveshards
    Returns
    Type Description
    CloneIndexDescriptor
    | Edit this page View Source

    WaitForCompletion(bool?)

    Should this request wait until the operation has completed before returning.

    Declaration
    public CloneIndexDescriptor WaitForCompletion(bool? waitforcompletion = true)
    Parameters
    Type Name Description
    bool? waitforcompletion
    Returns
    Type Description
    CloneIndexDescriptor
    Remarks

    Supported by OpenSearch servers of version 2.7.0 or greater.

    Implements

    IDescriptor
    ICloneIndexRequest
    IRequest<TParameters>
    IRequest

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • CloneIndexDescriptor()
      • CloneIndexDescriptor(IndexName, IndexName)
    • Methods
      • Aliases(Func<AliasesDescriptor, IPromise<IAliases>>)
      • ClusterManagerTimeout(Time)
      • Index(IndexName)
      • Index<TOther>()
      • MasterTimeout(Time)
      • Settings(Func<IndexSettingsDescriptor, IPromise<IIndexSettings>>)
      • TaskExecutionTimeout(Time)
      • Timeout(Time)
      • WaitForActiveShards(string)
      • WaitForCompletion(bool?)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX