extends |
AbstractNamespace |
---|
Class SnapshotNamespace
NOTE: This file is autogenerated using util/GenerateEndpoints.php
Methods | ||||
---|---|---|---|---|
public
|
cleanupRepository(array $params = []): array
Removes any stale data from a snapshot repository.
Removes any stale data from a snapshot repository. $params['repository'] = (string) Snapshot repository to clean up. $params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters. $params['master_timeout'] = (string) Period to wait for a connection to the cluster-manager node. $params['timeout'] = (string) The amount of time to wait for a response. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
clone(array $params = []): array
Creates a clone of all or part of a snapshot in the same repository as the original snapshot.
Creates a clone of all or part of a snapshot in the same repository as the original snapshot. $params['repository'] = (string) The name of repository which will contain the snapshots clone. $params['snapshot'] = (string) The name of the original snapshot. $params['target_snapshot'] = (string) The name of the cloned snapshot. $params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters. $params['master_timeout'] = (string) Explicit operation timeout for connection to cluster-manager node $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". $params['body'] = (array) The snapshot clone definition. (Required) Parameters
|
# | ||
public
|
create(array $params = []): array
Creates a snapshot within an existing repository.
Creates a snapshot within an existing repository. $params['repository'] = (string) The name of the repository where the snapshot will be stored.
$params['snapshot'] = (string) The name of the snapshot. Must be unique in the repository.
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['master_timeout'] = (string) 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.
$params['wait_for_completion'] = (boolean) When Parameters
|
# | ||
public
|
createRepository(array $params = []): array
Creates a snapshot repository.
Creates a snapshot repository. $params['repository'] = (string) The name for the newly registered repository.
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['master_timeout'] = (string) Explicit operation timeout for connection to cluster-manager node
$params['timeout'] = (string) The amount of time to wait for a response.
$params['verify'] = (boolean) When Parameters
|
# | ||
public
|
delete(array $params = []): array
Deletes a snapshot.
Deletes a snapshot. $params['repository'] = (string) The name of the snapshot repository to delete. $params['snapshot'] = (string) A comma-separated list of snapshot names to delete from the repository. $params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters. $params['master_timeout'] = (string) Explicit operation timeout for connection to cluster-manager node $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
deleteRepository(array $params = []): array
Deletes a snapshot repository.
Deletes a snapshot repository. $params['repository'] = (array) The name of the snapshot repository to unregister. Wildcard ( Parameters
|
# | ||
public
|
get(array $params = []): array
Returns information about a snapshot.
Returns information about a snapshot. $params['repository'] = (string) A comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported.
$params['snapshot'] = (array) A comma-separated list of snapshot names to retrieve. Also accepts wildcard expressions. ( Parameters
|
# | ||
public
|
getRepository(array $params = []): array
Returns information about a snapshot repository.
Returns information about a snapshot repository. $params['repository'] = (array) A comma-separated list of repository names. $params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters. $params['local'] = (boolean) Whether to get information from the local node. (Default = false) $params['master_timeout'] = (string) Explicit operation timeout for connection to cluster-manager node $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
restore(array $params = []): array
Restores a snapshot.
Restores a snapshot. $params['repository'] = (string) The name of the repository containing the snapshot
$params['snapshot'] = (string) The name of the snapshot to restore.
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['master_timeout'] = (string) Explicit operation timeout for connection to cluster-manager node
$params['wait_for_completion'] = (boolean) -| Whether to return a response after the restore operation has completed. When Parameters
|
# | ||
public
|
status(array $params = []): array
Returns information about the status of a snapshot.
Returns information about the status of a snapshot. $params['repository'] = (string) The name of the repository containing the snapshot.
$params['snapshot'] = (array) A comma-separated list of snapshot names.
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['ignore_unavailable'] = (boolean) Whether to ignore any unavailable snapshots, When Parameters
|
# | ||
public
|
verifyRepository(array $params = []): array
Verifies a repository.
Verifies a repository. $params['repository'] = (string) The name of the repository containing the snapshot. $params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters. $params['master_timeout'] = (string) Explicit operation timeout for connection to cluster-manager node $params['timeout'] = (string) The amount of time to wait for a response. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# |
Methods inherited from OpenSearch\Namespaces\AbstractNamespace |
---|
__construct(), extractArgument(), performRequest() |
Properties inherited from OpenSearch\Namespaces\AbstractNamespace |
---|
$transport, $httpTransport, $endpointFactory, $endpoints |