/** * 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'); }
/** * 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); }
public function get($path) { return $this->client->get('/v1/' . $path); }