docs: add missing prefix param to the ACL API endpoints

This commit is contained in:
Luiz Aoqui 2019-10-08 14:05:12 -04:00
parent e8942312bb
commit b9ef978641
No known key found for this signature in database
GPG key ID: F1178C891120DF5E
2 changed files with 19 additions and 0 deletions

View file

@ -28,6 +28,10 @@ The table below shows this endpoint's support for
| ---------------- | ----------------- | ------------ |
| `YES` | `all` | `management` for all policies.<br>Output when given a non-management token will be limited to the policies on the token itself |
### Parameters
- `prefix` `(string: "")` - Specifies a string to filter ACL policies based on
a name prefix. This is specified as a query string parameter.
### Sample Request
@ -36,6 +40,11 @@ $ curl \
https://localhost:4646/v1/acl/policies
```
```text
$ curl \
https://localhost:4646/v1/acl/policies?prefix=prod
```
### Sample Response
```json

View file

@ -70,6 +70,10 @@ The table below shows this endpoint's support for
| ---------------- | ----------------- | ------------ |
| `YES` | `all` | `management` |
### Parameters
- `prefix` `(string: "")` - Specifies a string to filter ACL tokens based on an
accessor ID prefix. This is specified as a query string parameter.
### Sample Request
@ -78,6 +82,12 @@ $ curl \
https://localhost:4646/v1/acl/tokens
```
```text
$ curl \
--request POST \
https://localhost:4646/v1/acl/bootstrap?prefix=3da2ed52
```
### Sample Response
```json