IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
/*
$params['repository'] = (string) A repository name (Required)
['snapshot'] = (string) A snapshot name (Required)
['master_timeout'] = (time) Explicit operation timeout for connection to master node
['wait_for_completion'] = (boolean) Should this request wait until the operation has completed before
returning (default: false)
['body'] = The snapshot definition
['body'] = (array) Request body
*/
$params = [
// ...
];
$client = ClientBuilder::create()->build();
$response = $client->snapshot()->create($params);
createRepository()
/*
$params['repository'] = (string) A repository name (Required)
['master_timeout'] = (time) Explicit operation timeout for connection to master node
['timeout'] = (time) Explicit operation timeout
['verify'] = (boolean) Whether to verify the repository after creation
['body'] = The repository definition
['body'] = (array) Request body
*/
$params = [
// ...
];
$client = ClientBuilder::create()->build();
$response = $client->snapshot()->createRepository($params);
delete()
/*
$params['repository'] = (string) A repository name (Required)
['snapshot'] = (string) A snapshot name (Required)
['master_timeout'] = (time) Explicit operation timeout for connection to master node
['body'] = (array) Request body
*/
$params = [
// ...
];
$client = ClientBuilder::create()->build();
$response = $client->snapshot()->delete($params);
deleteRepository()
/*
$params['repository'] = (list) A comma-separated list of repository names (Required)
['master_timeout'] = (time) Explicit operation timeout for connection to master node
['timeout'] = (time) Explicit operation timeout
['body'] = (array) Request body
*/
$params = [
// ...
];
$client = ClientBuilder::create()->build();
$response = $client->snapshot()->deleteRepository($params);
get()
/*
$params['repository'] = (string) A repository name (Required)
['snapshot'] = (list) A comma-separated list of snapshot names (Required)
['master_timeout'] = (time) Explicit operation timeout for connection to master node
['body'] = (array) Request body
*/
$params = [
// ...
];
$client = ClientBuilder::create()->build();
$response = $client->snapshot()->get($params);
getRepository()
/*
$params['repository'] = (list) A comma-separated list of repository names
['master_timeout'] = (time) Explicit operation timeout for connection to master node
['local'] = (boolean) Return local information, do not retrieve the state from master node
(default: false)
['body'] = (array) Request body
*/
$params = [
// ...
];
$client = ClientBuilder::create()->build();
$response = $client->snapshot()->getRepository($params);
restore()
/*
$params['repository'] = (string) A repository name (Required)
['snapshot'] = (string) A snapshot name (Required)
['master_timeout'] = (time) Explicit operation timeout for connection to master node
['wait_for_completion'] = (boolean) Should this request wait until the operation has completed before
returning (default: false)
['body'] = Details of what to restore
['body'] = (array) Request body
*/
$params = [
// ...
];
$client = ClientBuilder::create()->build();
$response = $client->snapshot()->restore($params);
status()
/*
$params['repository'] = (string) A repository name
['snapshot'] = (list) A comma-separated list of snapshot names
['master_timeout'] = (time) Explicit operation timeout for connection to master node
['body'] = (array) Request body
*/
$params = [
// ...
];
$client = ClientBuilder::create()->build();
$response = $client->snapshot()->status($params);
verifyRepository()
/*
$params['repository'] = (string) A repository name (Required)
['master_timeout'] = (time) Explicit operation timeout for connection to master node
['timeout'] = (time) Explicit operation timeout
['body'] = (array) Request body
*/
$params = [
// ...
];
$client = ClientBuilder::create()->build();
$response = $client->snapshot()->verifyRepository($params);