LXD PHP Client Documentation v0.0.1
Class Lxd Endpoints

Operations

Methods
  • __construct(array $config, variable $curl)  :  void
    Class construct
  • all()  :  array
    List of all operations.
  • info(string $uuid)  :  array
    Get information on an operation.
  • cancel(string $uuid)  :  bool
    Change operation to cancelling state.
  • wait(string $uuid, int $timeout)  :  array
    Wait for an operation to complete.
Methods Details
  • public function __construct(array $config, variable $curl)
    Class construct
  • public function all()
    List of all operations.
    $lxd->operations->all();
  • public function info(string $uuid)
    Get information on an operation.
    $lxd->operations->info('operation-uuid');
  • public function cancel(string $uuid)
    Change operation to cancelling state.
    $lxd->operations->cancel('operation-uuid');
  • public function wait(string $uuid, int $timeout)
    Wait for an operation to complete.
    $lxd->operations->wait('operation-uuid', 30);