2017-03-15 06:40:33 +00:00
|
|
|
|
---
|
2017-03-17 18:06:03 +00:00
|
|
|
|
layout: "api"
|
2017-03-15 06:40:33 +00:00
|
|
|
|
page_title: "/sys/revoke - HTTP API"
|
|
|
|
|
sidebar_current: "docs-http-system-revoke/"
|
|
|
|
|
description: |-
|
|
|
|
|
The `/sys/revoke` endpoint is used to revoke secrets.
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# `/sys/revoke`
|
|
|
|
|
|
|
|
|
|
The `/sys/revoke` endpoint is used to revoke secrets.
|
|
|
|
|
|
|
|
|
|
## Revoke Secret
|
|
|
|
|
|
|
|
|
|
This endpoint revokes a secret immediately.
|
|
|
|
|
|
|
|
|
|
| Method | Path | Produces |
|
|
|
|
|
| :------- | :--------------------------- | :--------------------- |
|
|
|
|
|
| `PUT` | `/sys/revoke/:lease_id` | `204 (empty body)` |
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
2017-04-17 16:40:24 +00:00
|
|
|
|
- `lease_id` `(string: <required>)` – Specifies the ID of the lease to revoke.
|
2017-03-15 06:40:33 +00:00
|
|
|
|
|
|
|
|
|
### Sample Request
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
$ curl \
|
|
|
|
|
--header "X-Vault-Token: ..." \
|
|
|
|
|
--request PUT \
|
|
|
|
|
https://vault.rocks/v1/sys/revoke/aws/creds/readonly-acbd1234
|
|
|
|
|
```
|