/sys/wrapping/rewrap
The /sys/wrapping/rewrap
endpoint can be used to rotate a wrapping token and
refresh its TTL.
Wrapping rewrap
Restricted endpoint
The API path can only be called from the root or administrative namespace.This endpoint rewraps a response-wrapped token. The new token will use the same creation TTL as the original token and contain the same response. The old token will be invalidated. This can be used for long-term storage of a secret in a response-wrapped token when rotation is a requirement.
Method | Path |
---|---|
POST | /sys/wrapping/rewrap |
Parameters
token
(string: <required>)
– Specifies the wrapping token ID.
Sample payload
Sample request
Sample response