»/sys/quotas/lease-count
Enterprise Only – These endpoints require Vault Enterprise Platform.
The /sys/quotas/lease-count endpoint is used to create, edit and delete lease count quotas.
»Create or Update a Lease Count Quota
This endpoint is used to create a lease count quota with an identifier, name.
A lease count quota must include a max_leases value with an optional path
that can either be a namespace or mount.
| Method | Path |
|---|---|
POST | /sys/quotas/lease-count/:name |
»Parameters
name(string: "")- The name of the quota.path(string: "")- Path of the mount or namespace to apply the quota. A blank path configures a global lease count quota. For examplenamespace1/adds a quota to a full namespace,namespace1/auth/userpassadds a quota touserpassinnamespace1. Updating this field on an existing quota can have "moving" effects. For example, updatingauth/userpasstonamespace1/auth/userpassmoves this quota from being a global mount quota to a namespace specific mount quota.max_leases(int: 0)- Maximum number of leases allowed by the quota rule.
»Sample Payload
»Sample Request
»Delete a Lease Count Quota
A lease count quota can be deleted by name.
| Method | Path |
|---|---|
DELETE | /sys/quotas/lease-count/:name |
»Sample Request
»Get a Lease Count Quota
A lease count quota can be retrieved by name.
| Method | Path |
|---|---|
GET | /sys/quotas/lease-count/:name |
»Sample Request
»Sample Response