Esempio n. 1
0
 /**
  * Lists available roles.
  *
  * @see    https://www.vaultproject.io/docs/auth/token.html
  * @return mixed
  */
 public function listRoles()
 {
     return $this->client->get('/v1/token/roles?list=true');
 }
Esempio n. 2
0
 /**
  * Returns the health status of Vault.
  *
  * This matches the semantics of a Consul HTTP health check and provides a simple way to monitor the health of a Vault instance
  *
  * @return mixed
  */
 public function health(array $arguments = [])
 {
     $url = '/v1/sys/health?' . http_build_query($arguments);
     return $this->client->get($url);
 }
Esempio n. 3
0
 public function get($path)
 {
     return $this->client->get('/v1/' . $path);
 }