Class CatSnapshotsDescriptor
Descriptor for Snapshots
https://opensearch.org/docs/latest/api-reference/cat/cat-snapshots/
Inheritance
CatSnapshotsDescriptor
Assembly: OpenSearch.Client.dll
Syntax
public class CatSnapshotsDescriptor : RequestDescriptorBase<CatSnapshotsDescriptor, CatSnapshotsRequestParameters, ICatSnapshotsRequest>, IDescriptor, ICatSnapshotsRequest, IRequest<CatSnapshotsRequestParameters>, IRequest
Constructors
|
Edit this page
View Source
CatSnapshotsDescriptor()
Declaration
public CatSnapshotsDescriptor()
|
Edit this page
View Source
CatSnapshotsDescriptor(Names)
/_cat/snapshots/{repository}
Declaration
public CatSnapshotsDescriptor(Names repository)
Parameters
Type |
Name |
Description |
Names |
repository |
Optional, accepts null
|
Methods
|
Edit this page
View Source
ClusterManagerTimeout(Time)
Operation timeout for connection to cluster-manager node.
Declaration
public CatSnapshotsDescriptor ClusterManagerTimeout(Time clustermanagertimeout)
Parameters
Type |
Name |
Description |
Time |
clustermanagertimeout |
|
Returns
|
Edit this page
View Source
A short version of the Accept header (for example, json
, yaml
).
Declaration
public CatSnapshotsDescriptor Format(string format)
Parameters
Type |
Name |
Description |
string |
format |
|
Returns
|
Edit this page
View Source
Comma-separated list of column names to display.
Declaration
public CatSnapshotsDescriptor Headers(params string[] headers)
Parameters
Type |
Name |
Description |
string[] |
headers |
|
Returns
|
Edit this page
View Source
Help(bool?)
Declaration
public CatSnapshotsDescriptor Help(bool? help = true)
Parameters
Type |
Name |
Description |
bool? |
help |
|
Returns
|
Edit this page
View Source
IgnoreUnavailable(bool?)
If true
, the response does not include information from unavailable snapshots.
Declaration
public CatSnapshotsDescriptor IgnoreUnavailable(bool? ignoreunavailable = true)
Parameters
Type |
Name |
Description |
bool? |
ignoreunavailable |
|
Returns
|
Edit this page
View Source
MasterTimeout(Time)
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 CatSnapshotsDescriptor MasterTimeout(Time mastertimeout)
Parameters
Type |
Name |
Description |
Time |
mastertimeout |
|
Returns
|
Edit this page
View Source
RepositoryName(Names)
A comma-separated list of snapshot repositories used to limit the request. Accepts wildcard expressions. _all
returns all repositories. If any repository fails during the request, OpenSearch returns an error.
Declaration
public CatSnapshotsDescriptor RepositoryName(Names repository)
Parameters
Type |
Name |
Description |
Names |
repository |
|
Returns
|
Edit this page
View Source
SortByColumns(params string[])
Comma-separated list of column names or column aliases to sort by.
Declaration
public CatSnapshotsDescriptor SortByColumns(params string[] sortbycolumns)
Parameters
Type |
Name |
Description |
string[] |
sortbycolumns |
|
Returns
|
Edit this page
View Source
Verbose(bool?)
Verbose mode. Display column headers.
Declaration
public CatSnapshotsDescriptor Verbose(bool? verbose = true)
Parameters
Type |
Name |
Description |
bool? |
verbose |
|
Returns
Implements
Extension Methods