From e83e608ab4f32753ec32067bfbc4ee574dbc08d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lapeyre?= Date: Fri, 17 Jun 2022 19:04:55 +0200 Subject: [PATCH] Document `LIST sys/quotas/lease-count` (#15679) --- .../api-docs/system/lease-count-quotas.mdx | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/website/content/api-docs/system/lease-count-quotas.mdx b/website/content/api-docs/system/lease-count-quotas.mdx index f12eebbab3..0c0030988a 100644 --- a/website/content/api-docs/system/lease-count-quotas.mdx +++ b/website/content/api-docs/system/lease-count-quotas.mdx @@ -103,3 +103,39 @@ $ curl \ "warnings": null } ``` + +## List Lease Count Quotas + +This endpoint returns a list of all the lease count quotas. A 404 response will +be returned if no lease count quota has been created. + +| Method | Path | +| :----- | :------------------------ | +| `LIST` | `/sys/quotas/lease-count` | + +### Sample Request + +```shell-session +$ curl \ + --request LIST \ + --header "X-Vault-Token: ..." \ + http://127.0.0.1:8200/v1/sys/quotas/lease-count +``` + +### Sample Response + +```json +{ + "auth": null, + "data": { + "keys": ["global-lease-count-quota"] + }, + "lease_duration": 0, + "lease_id": "", + "renewable": false, + "request_id": "ab633ee1-a692-ba03-083b-f1bd91c51c28", + "warnings": null, + "wrap_info": null +} +``` +