Class RestoreRequest
Restores a snapshot
Inheritance
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class RestoreRequest : PlainRequestBase<RestoreRequestParameters>, IRestoreRequest, IRequest<RestoreRequestParameters>, IRequest
Constructors
| Edit this page View SourceRestoreRequest()
Used for serialization purposes, making sure we have a parameterless constructor
Declaration
protected RestoreRequest()
RestoreRequest(Name, Name)
/_snapshot/{repository}/{snapshot}/_restore
Declaration
public RestoreRequest(Name repository, Name snapshot)
Parameters
Type | Name | Description |
---|---|---|
Name | repository | this parameter is required |
Name | snapshot | this parameter is required |
Properties
| Edit this page View SourceClusterManagerTimeout
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.
IgnoreIndexSettings
The index settings to ignore as part of the restore operation
Declaration
public List<string> IgnoreIndexSettings { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
IgnoreUnavailable
Whether indices specified that do not exist should be ignored.
Declaration
public bool? IgnoreUnavailable { get; set; }
Property Value
Type | Description |
---|---|
bool? |
IncludeAliases
Whether to include aliases as part of the restore
Declaration
public bool? IncludeAliases { get; set; }
Property Value
Type | Description |
---|---|
bool? |
IncludeGlobalState
Whether the cluster global state should be included
Declaration
public bool? IncludeGlobalState { get; set; }
Property Value
Type | Description |
---|---|
bool? |
IndexSettings
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 IUpdateIndexSettingsRequest IndexSettings { get; set; }
Property Value
Type | Description |
---|---|
IUpdateIndexSettingsRequest |
Indices
The indices to restore
Declaration
public Indices Indices { get; set; }
Property Value
Type | Description |
---|---|
Indices |
MasterTimeout
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 Time MasterTimeout { get; set; }
Property Value
Type | Description |
---|---|
Time |
Partial
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 totrue
. Only successfully snapshotted shards
will be restored in this case and all missing shards will be recreated empty.
Declaration
public bool? Partial { get; set; }
Property Value
Type | Description |
---|---|
bool? |
RenamePattern
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 string RenamePattern { get; set; }
Property Value
Type | Description |
---|---|
string |
RenameReplacement
A replacement to use to rename restored indices. Used in conjunction with RenamePattern.
Declaration
public string RenameReplacement { get; set; }
Property Value
Type | Description |
---|---|
string |
Self
Declaration
protected IRestoreRequest Self { get; }
Property Value
Type | Description |
---|---|
IRestoreRequest |
WaitForCompletion
Should this request wait until the operation has completed before returning.
Declaration
public bool? WaitForCompletion { get; set; }
Property Value
Type | Description |
---|---|
bool? |