LXD PHP Client Documentation v0.0.1
Class Lxd Endpoints

Certificates

Methods
  • __construct(array $config, variable $curl)  :  void
    Class construct
  • all()  :  array
    List all trusted certificates on the server.
  • add(string $certificate, string $password, string $name)  :  array
    Add a new trusted certificate to the server.
  • info(string $fingerprint)  :  array
    Show information of a certificate.
  • delete(string $fingerprint)  :  bool
    Delete a trusted certificate - alias of remove.
  • remove(string $fingerprint)  :  bool
    Remove a trusted certificate.
Methods Details
  • public function __construct(array $config, variable $curl)
    Class construct
  • public function all()
    List all trusted certificates on the server.
    $lxd->certificates->all();
  • public function add(string $certificate, string $password, string $name)
    Add a new trusted certificate to the server.
    $lxd->certificates->add('./local-certificate-path.pem', 'lxd-server-secret', 'certificate-label');
  • public function info(string $fingerprint)
    Show information of a certificate.
    $lxd->certificates->info('cerfiticate-fingerprint');
  • public function delete(string $fingerprint)
    Delete a trusted certificate - alias of remove.
    $lxd->certificates->delete('cerfiticate-fingerprint');
  • public function remove(string $fingerprint)
    Remove a trusted certificate.
    $lxd->certificates->remove('cerfiticate-fingerprint');