From b9ef978641b9968f853b4df183b73a696a3d40d2 Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Tue, 8 Oct 2019 14:05:12 -0400 Subject: [PATCH] docs: add missing `prefix` param to the ACL API endpoints --- website/source/api/acl-policies.html.md | 9 +++++++++ website/source/api/acl-tokens.html.md | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/website/source/api/acl-policies.html.md b/website/source/api/acl-policies.html.md index 04ba0d5c2..45dfd68aa 100644 --- a/website/source/api/acl-policies.html.md +++ b/website/source/api/acl-policies.html.md @@ -28,6 +28,10 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------ | | `YES` | `all` | `management` for all policies.
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 diff --git a/website/source/api/acl-tokens.html.md b/website/source/api/acl-tokens.html.md index 51eacbf62..3db86cca9 100644 --- a/website/source/api/acl-tokens.html.md +++ b/website/source/api/acl-tokens.html.md @@ -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