mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-15 11:07:00 +02:00
Added documentation for listing roles in the Consul secret backend (#2619)
This commit is contained in:
parent
33d2f6fafe
commit
0716a3ef2b
@ -145,6 +145,35 @@ $ curl \
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## List Roles
|
||||||
|
|
||||||
|
This endpoint lists all existing roles in the backend.
|
||||||
|
|
||||||
|
| Method | Path | Produces |
|
||||||
|
| :------- | :--------------------------- | :--------------------- |
|
||||||
|
| `LIST` | `/consul/roles` | `200 application/json` |
|
||||||
|
|
||||||
|
### Sample Request
|
||||||
|
|
||||||
|
```
|
||||||
|
$ curl \
|
||||||
|
--header "X-Vault-Token: ..." \
|
||||||
|
--request LIST \
|
||||||
|
https://vault.rocks/v1/consul/roles
|
||||||
|
```
|
||||||
|
|
||||||
|
### Sample Response
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"keys": [
|
||||||
|
"example-role"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Delete Role
|
## Delete Role
|
||||||
|
|
||||||
This endpoint deletes a Consul role with the given name. Even if the role does
|
This endpoint deletes a Consul role with the given name. Even if the role does
|
||||||
|
Loading…
Reference in New Issue
Block a user