Class SnapshotRequest
Request for Snapshot
https://opensearch.org/docs/latest/api-reference/snapshots/create-snapshot/
Inheritance
SnapshotRequest
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class SnapshotRequest : PlainRequestBase<SnapshotRequestParameters>, ISnapshotRequest, IRequest<SnapshotRequestParameters>, IRequest
Constructors
| Edit this page View SourceSnapshotRequest()
Used for serialization purposes, making sure we have a parameterless constructor
Declaration
protected SnapshotRequest()
SnapshotRequest(Name, Name)
/_snapshot/{repository}/{snapshot}
Declaration
public SnapshotRequest(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.
IgnoreUnavailable
Declaration
public bool? IgnoreUnavailable { get; set; }
Property Value
Type | Description |
---|---|
bool? |
IncludeGlobalState
Declaration
public bool? IncludeGlobalState { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Indices
Declaration
public Indices Indices { get; set; }
Property Value
Type | Description |
---|---|
Indices |
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 |
Metadata
Declaration
public IDictionary<string, object> Metadata { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, object> |
Partial
Declaration
public bool? Partial { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Self
Declaration
protected ISnapshotRequest Self { get; }
Property Value
Type | Description |
---|---|
ISnapshotRequest |
WaitForCompletion
If true
, the request returns a response when the snapshot is complete. If false
, the request returns a response when the snapshot
initializes.
Declaration
public bool? WaitForCompletion { get; set; }
Property Value
Type | Description |
---|---|
bool? |