예제 #1
0
 /**
  * Deletes the named role.
  *
  * @see    https://www.vaultproject.io/docs/auth/token.html
  * @param  string $role
  * @return mixed
  */
 public function deleteRole(string $role)
 {
     return $this->client->delete('/v1/auth/token/roles/' . $role);
 }
예제 #2
0
파일: Sys.php 프로젝트: jippi/vault-php-sdk
 /**
  * Delete the key with given path.
  *
  * This is the raw path in the storage backend and not the logical path that is exposed via the mount system
  *
  * @see    https://www.vaultproject.io/docs/http/sys-raw.html
  * @param  string $path
  * @return mixed
  */
 public function deleteRaw($path)
 {
     return $this->client->delete('/v1/sys/raw/' . $path);
 }
예제 #3
0
 public function delete($path)
 {
     return $this->client->delete('/v1/' . $path);
 }