Skip to content

revoke_lease not working #969

Answered by briantist
shaneseaton asked this question in Q&A
Mar 15, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

As for PUT vs POST: https://developer.hashicorp.com/vault/api-docs#api-operations

Vault currently considers PUT and POST to be synonyms


It looks like our revoke_lease method has not been updated in ~5 years, but it should still work.

A feature request should be submitted (with a PR if you're up for it!) to add the sync parameter but it should still be working without it.

The API's documentation is here: https://developer.hashicorp.com/vault/api-docs/system/leases#revoke-lease

Regarding lease_id (emphasis mine):

Specifies the ID of the lease to revoke. This parameter can either be specified in a json request, as shown below, or provided as a path parameter to the endpoint, like /sys/le…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by briantist
Comment options

You must be logged in to vote
2 replies
@briantist
Comment options

@shaneseaton
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Questions requesting clarification or guidance on hvac usage system backend generally related to the Vault system backend routes
3 participants
Converted from issue

This discussion was converted from issue #964 on April 06, 2023 14:04.