Methods
-
Class construct
-
List of snapshots for a container.
-
Show information on a snapshot.
-
Create a snapshot of a container.
-
Restore a container from a snapshot.
-
Rename a container snapshot.
-
Remove a container snapshot.
-
Delete a container snapshot - alias of remove.
Methods Details
-
public function __construct(array $config, variable $curl)Class construct
-
public function all(string $name)List of snapshots for a container.
$lxd->containers->snapshots->all('conainer-name');
-
public function info(string $name, string $snapshot)Show information on a snapshot.
$lxd->containers->snapshots->all('conainer-name');
-
public function create(string $name, string $snapshot, bool $stateful, bool $wait)Create a snapshot of a container.
$lxd->containers->snapshots->create('container-name', 'snapshot-name', false, true);
-
public function restore(string $name, string $snapshot, bool $wait)Restore a container from a snapshot.
$lxd->containers->snapshots->restore('container-name', 'snapshot-name', false, true);
-
public function rename(string $name, string $snaphot, string $newSnapshot, bool $wait)Rename a container snapshot.
$lxd->containers->snapshots->rename('container-name', 'snapshot-name', 'new-snapshot-name', false, true);
-
public function remove(string $name, string $snaphot, bool $wait)Remove a container snapshot.
$lxd->containers->snapshots->remove('container-name', 'snapshot-name', true);
-
public function delete(string $name, string $snaphot, bool $wait)Delete a container snapshot - alias of remove.
$lxd->containers->snapshots->delete('container-name', 'snapshot-name', true);