LXD PHP Client Documentation v0.0.1
Methods
  • __construct(array $config, variable $curl)  :  void
    Class construct
  • all(string $name)  :  array
    List of snapshots for a container.
  • info(string $name, string $snapshot)  :  array
    Show information on a snapshot.
  • create(string $name, string $snapshot, bool $stateful, bool $wait)  :  array
    Create a snapshot of a container.
  • restore(string $name, string $snapshot, bool $wait)  :  array
    Restore a container from a snapshot.
  • rename(string $name, string $snaphot, string $newSnapshot, bool $wait)  :  array
    Rename a container snapshot.
  • remove(string $name, string $snaphot, bool $wait)  :  array
    Remove a container snapshot.
  • delete(string $name, string $snaphot, bool $wait)  :  array
    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);