Vault
Duration string format
[!IMPORTANT]
Documentation Update: Product documentation, which were located in this repository under/website
, are now located inhashicorp/web-unified-docs
, colocated with all other product documentation. Contributions to this content should be done in theweb-unified-docs
repo, and not this one. Changes made to/website
content in this repo will not be reflected on the developer.hashicorp.com website.
Vault uses a unique duration string format as part of its configuration and APIs.
This format is used throughout Vault wherever durations are provided. For
example, telemetry configuration contains various options using this format, such as
usage_gauge_period
, which is the interval of collection for high-cardinality usage data.
How it works
A duration string is a possibly signed sequence of decimal numbers, each with an optional fraction and an optional unit suffix. If no unit is given, we interpret the numbers as seconds.
Valid time units are:
Examples
Example values could be: