Skip to content

Commit

Permalink
Document LIST sys/quotas/lease-count (#15679)
Browse files Browse the repository at this point in the history
  • Loading branch information
remilapeyre committed Jun 17, 2022
1 parent 3d01a88 commit e83e608
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions website/content/api-docs/system/lease-count-quotas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```

0 comments on commit e83e608

Please sign in to comment.