Class CreateRepositoryDescriptor
Creates a snapshot repository
Inheritance
CreateRepositoryDescriptor
Assembly: OpenSearch.Client.dll
Syntax
public class CreateRepositoryDescriptor : RequestDescriptorBase<CreateRepositoryDescriptor, CreateRepositoryRequestParameters, ICreateRepositoryRequest>, IDescriptor, ICreateRepositoryRequest, IRequest<CreateRepositoryRequestParameters>, IRequest
Constructors
|
Edit this page
View Source
CreateRepositoryDescriptor()
Used for serialization purposes, making sure we have a parameterless constructor
Declaration
protected CreateRepositoryDescriptor()
|
Edit this page
View Source
CreateRepositoryDescriptor(Name)
Declaration
public CreateRepositoryDescriptor(Name repository)
Parameters
Type |
Name |
Description |
Name |
repository |
this parameter is required
|
Methods
|
Edit this page
View Source
Azure(Func<AzureRepositoryDescriptor, IAzureRepository>)
A snapshot repository that stores snapshots in an Azure storage account
Requires the repository-azure plugin to be installed on the cluster
Declaration
public CreateRepositoryDescriptor Azure(Func<AzureRepositoryDescriptor, IAzureRepository> selector = null)
Parameters
Returns
|
Edit this page
View Source
ClusterManagerTimeout(Time)
Operation timeout for connection to cluster-manager node.
Declaration
public CreateRepositoryDescriptor ClusterManagerTimeout(Time clustermanagertimeout)
Parameters
Type |
Name |
Description |
Time |
clustermanagertimeout |
|
Returns
|
Edit this page
View Source
Custom(ISnapshotRepository)
Register a custom repository
Declaration
public CreateRepositoryDescriptor Custom(ISnapshotRepository repository)
Parameters
Returns
|
Edit this page
View Source
FileSystem(Func<FileSystemRepositoryDescriptor, IFileSystemRepository>)
A snapshot repository that uses a shared file system to store snapshot data.
The path specified in the location parameter should point to the same location in the shared
filesystem and be accessible on all data and cluster_manager nodes.
Declaration
public CreateRepositoryDescriptor FileSystem(Func<FileSystemRepositoryDescriptor, IFileSystemRepository> selector)
Parameters
Returns
|
Edit this page
View Source
Hdfs(Func<HdfsRepositoryDescriptor, IHdfsRepository>)
A snapshot repository that stores snapshot data within a Hadoop HDFS filesystem
Requires the repository-hdfs plugin to be installed on the cluster
Declaration
public CreateRepositoryDescriptor Hdfs(Func<HdfsRepositoryDescriptor, IHdfsRepository> selector)
Parameters
Returns
|
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 CreateRepositoryDescriptor MasterTimeout(Time mastertimeout)
Parameters
Type |
Name |
Description |
Time |
mastertimeout |
|
Returns
|
Edit this page
View Source
ReadOnlyUrl(Func<ReadOnlyUrlRepositoryDescriptor, IReadOnlyUrlRepository>)
A snapshot repository that can be used as an alternative read-only way to access data created by the IFileSystemRepository.
The URL specified in the url parameter should point to the root of the shared filesystem repository.
Declaration
public CreateRepositoryDescriptor ReadOnlyUrl(Func<ReadOnlyUrlRepositoryDescriptor, IReadOnlyUrlRepository> selector)
Parameters
Returns
|
Edit this page
View Source
S3(Func<S3RepositoryDescriptor, IS3Repository>)
A snapshot repository that stores snapshots in an Amazon S3 bucket
Requires the repository-s3 plugin to be installed on the cluster
Declaration
public CreateRepositoryDescriptor S3(Func<S3RepositoryDescriptor, IS3Repository> selector)
Parameters
Returns
|
Edit this page
View Source
SourceOnly(Func<SourceOnlyRepositoryDescriptor, ISourceOnlyRepository>)
A source repository enables you to create minimal, source-only snapshots that take up to 50% less space on disk.
Source only snapshots contain stored fields and index metadata. They do not include index or doc values structures
and are not searchable when restored. After restoring a source-only snapshot, you must reindex the data into a new index.
Declaration
public CreateRepositoryDescriptor SourceOnly(Func<SourceOnlyRepositoryDescriptor, ISourceOnlyRepository> selector)
Parameters
Returns
|
Edit this page
View Source
Timeout(Time)
Explicit operation timeout.
Declaration
public CreateRepositoryDescriptor Timeout(Time timeout)
Parameters
Type |
Name |
Description |
Time |
timeout |
|
Returns
|
Edit this page
View Source
Verify(bool?)
Whether to verify the repository after creation.
Declaration
public CreateRepositoryDescriptor Verify(bool? verify = true)
Parameters
Type |
Name |
Description |
bool? |
verify |
|
Returns
Implements
Extension Methods