Search Results for

    Show / Hide Table of Contents

    Class RestoreDescriptor

    Restores a snapshot

    Inheritance
    object
    RequestBase<RestoreRequestParameters>
    RequestDescriptorBase<RestoreDescriptor, RestoreRequestParameters, IRestoreRequest>
    RestoreDescriptor
    Implements
    IDescriptor
    IRestoreRequest
    IRequest<RestoreRequestParameters>
    IRequest
    Inherited Members
    RequestDescriptorBase<RestoreDescriptor, RestoreRequestParameters, IRestoreRequest>.Self
    RequestDescriptorBase<RestoreDescriptor, RestoreRequestParameters, IRestoreRequest>.Assign<TValue>(TValue, Action<IRestoreRequest, TValue>)
    RequestDescriptorBase<RestoreDescriptor, RestoreRequestParameters, IRestoreRequest>.Qs(string, object)
    RequestDescriptorBase<RestoreDescriptor, RestoreRequestParameters, IRestoreRequest>.RequestConfiguration(Func<RequestConfigurationDescriptor, IRequestConfiguration>)
    RequestDescriptorBase<RestoreDescriptor, RestoreRequestParameters, IRestoreRequest>.ErrorTrace(bool?)
    RequestDescriptorBase<RestoreDescriptor, RestoreRequestParameters, IRestoreRequest>.FilterPath(params string[])
    RequestDescriptorBase<RestoreDescriptor, RestoreRequestParameters, IRestoreRequest>.FilterPath(IEnumerable<string>)
    RequestDescriptorBase<RestoreDescriptor, RestoreRequestParameters, IRestoreRequest>.Human(bool?)
    RequestDescriptorBase<RestoreDescriptor, RestoreRequestParameters, IRestoreRequest>.Pretty(bool?)
    RequestDescriptorBase<RestoreDescriptor, RestoreRequestParameters, IRestoreRequest>.SourceQueryString(string)
    RequestBase<RestoreRequestParameters>.HttpMethod
    RequestBase<RestoreRequestParameters>.RequestState
    RequestBase<RestoreRequestParameters>.ContentType
    RequestBase<RestoreRequestParameters>.ResolveUrl(RouteValues, IConnectionSettingsValues)
    RequestBase<RestoreRequestParameters>.RequestDefaults(RestoreRequestParameters)
    RequestBase<RestoreRequestParameters>.Q<TOut>(string)
    RequestBase<RestoreRequestParameters>.Q(string, object)
    RequestBase<RestoreRequestParameters>.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 RestoreDescriptor : RequestDescriptorBase<RestoreDescriptor, RestoreRequestParameters, IRestoreRequest>, IDescriptor, IRestoreRequest, IRequest<RestoreRequestParameters>, IRequest

    Constructors

    | Edit this page View Source

    RestoreDescriptor()

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

    Declaration
    protected RestoreDescriptor()
    | Edit this page View Source

    RestoreDescriptor(Name, Name)

    /_snapshot/{repository}/{snapshot}/_restore

    Declaration
    public RestoreDescriptor(Name repository, Name snapshot)
    Parameters
    Type Name Description
    Name repository

    this parameter is required

    Name snapshot

    this parameter is required

    Methods

    | Edit this page View Source

    ClusterManagerTimeout(Time)

    The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.

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

    Supported by OpenSearch servers of version 2.0.0 or greater.

    | Edit this page View Source

    IgnoreIndexSettings(List<string>)

    The index settings to ignore as part of the restore operation

    Declaration
    public RestoreDescriptor IgnoreIndexSettings(List<string> ignoreIndexSettings)
    Parameters
    Type Name Description
    List<string> ignoreIndexSettings
    Returns
    Type Description
    RestoreDescriptor
    | Edit this page View Source

    IgnoreIndexSettings(params string[])

    The index settings to ignore as part of the restore operation

    Declaration
    public RestoreDescriptor IgnoreIndexSettings(params string[] ignoreIndexSettings)
    Parameters
    Type Name Description
    string[] ignoreIndexSettings
    Returns
    Type Description
    RestoreDescriptor
    | Edit this page View Source

    IgnoreUnavailable(bool?)

    Whether indices specified that do not exist should be ignored.

    Declaration
    public RestoreDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true)
    Parameters
    Type Name Description
    bool? ignoreUnavailable
    Returns
    Type Description
    RestoreDescriptor
    | Edit this page View Source

    IncludeAliases(bool?)

    Whether to include aliases as part of the restore

    Declaration
    public RestoreDescriptor IncludeAliases(bool? includeAliases = true)
    Parameters
    Type Name Description
    bool? includeAliases
    Returns
    Type Description
    RestoreDescriptor
    | Edit this page View Source

    IncludeGlobalState(bool?)

    Whether the cluster global state should be included

    Declaration
    public RestoreDescriptor IncludeGlobalState(bool? includeGlobalState = true)
    Parameters
    Type Name Description
    bool? includeGlobalState
    Returns
    Type Description
    RestoreDescriptor
    | Edit this page View Source

    Index(IndexName)

    The indices to restore

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

    IndexSettings(Func<UpdateIndexSettingsDescriptor, IUpdateIndexSettingsRequest>)

    The index settings that should be applied as part of the restore operation. Some settings cannot be changed as part of a restore operation, for example, the number of shards.

    Declaration
    public RestoreDescriptor IndexSettings(Func<UpdateIndexSettingsDescriptor, IUpdateIndexSettingsRequest> settingsSelector)
    Parameters
    Type Name Description
    Func<UpdateIndexSettingsDescriptor, IUpdateIndexSettingsRequest> settingsSelector
    Returns
    Type Description
    RestoreDescriptor
    | Edit this page View Source

    Index<T>()

    The indices to restore

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

    Indices(Indices)

    The indices to restore

    Declaration
    public RestoreDescriptor Indices(Indices indices)
    Parameters
    Type Name Description
    Indices indices
    Returns
    Type Description
    RestoreDescriptor
    | Edit this page View Source

    MasterTimeout(Time)

    Explicit operation timeout for connection to cluster-manager node.

    Declaration
    [Obsolete("Deprecated as of: 2.0.0, reason: To promote inclusive language, use `cluster_manager_timeout` instead.")]
    public RestoreDescriptor MasterTimeout(Time mastertimeout)
    Parameters
    Type Name Description
    Time mastertimeout
    Returns
    Type Description
    RestoreDescriptor
    | Edit this page View Source

    Partial(bool?)

    Allow partial restore for indices that don't have snapshots of all shards available.

    By default, the entire restore operation will fail if one or more indices participating in the operation don’t have snapshots of all shards available. It can occur if some shards failed to snapshot for example. It is still possible to restore such indices by setting Partial to true. Only successfully snapshotted shards will be restored in this case and all missing shards will be recreated empty.
    Declaration
    public RestoreDescriptor Partial(bool? partial = true)
    Parameters
    Type Name Description
    bool? partial
    Returns
    Type Description
    RestoreDescriptor
    | Edit this page View Source

    RenamePattern(string)

    A pattern to use to rename restored indices. The pattern can be used to capture parts of the original index name and used within RenameReplacement

    Declaration
    public RestoreDescriptor RenamePattern(string renamePattern)
    Parameters
    Type Name Description
    string renamePattern
    Returns
    Type Description
    RestoreDescriptor
    | Edit this page View Source

    RenameReplacement(string)

    A replacement to use to rename restored indices. Used in conjunction with RenamePattern.

    Declaration
    public RestoreDescriptor RenameReplacement(string renameReplacement)
    Parameters
    Type Name Description
    string renameReplacement
    Returns
    Type Description
    RestoreDescriptor
    | Edit this page View Source

    WaitForCompletion(bool?)

    -| Whether to return a response after the restore operation has completed. When false, the request returns a response when the restore operation initializes. When true, the request returns a response when the restore operation completes.

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

    Implements

    IDescriptor
    IRestoreRequest
    IRequest<TParameters>
    IRequest

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • RestoreDescriptor()
      • RestoreDescriptor(Name, Name)
    • Methods
      • ClusterManagerTimeout(Time)
      • IgnoreIndexSettings(List<string>)
      • IgnoreIndexSettings(params string[])
      • IgnoreUnavailable(bool?)
      • IncludeAliases(bool?)
      • IncludeGlobalState(bool?)
      • Index(IndexName)
      • IndexSettings(Func<UpdateIndexSettingsDescriptor, IUpdateIndexSettingsRequest>)
      • Index<T>()
      • Indices(Indices)
      • MasterTimeout(Time)
      • Partial(bool?)
      • RenamePattern(string)
      • RenameReplacement(string)
      • WaitForCompletion(bool?)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX