Auth
Must be set to "true"
A list of token accessor IDs.
Forbidden – caller lacks required capabilities (list and sudo).
Bad Request – likely due to missing or incorrect query parameters.
Custom client token ID (root only). Cannot contain "." or start with "s.".
Name of the token role.
Policies to assign to the token.
If true, creates an orphan token. Requires root or sudo.
falseIf true, excludes the default policy.
falseWhether the token can be renewed.
trueDeprecated. Use ttl instead.
TTL (e.g., "1h").
Token type.
Explicit max TTL that cannot be exceeded.
Display name for the token.
tokenMax number of uses. 0 means unlimited.
0Periodic renewal interval. Requires root or sudo.
Entity alias to associate with (must be allowed in role).
Token successfully created
Bad Request – Invalid or missing input fields
Forbidden – The caller lacks permission to create orphan tokens
The name of the token role to use for token creation.
Name to associate with this token
Name of the entity alias to associate with this token
Explicit Max TTL of this token
Value for the token
Use 'ttl' instead
Arbitrary key=value metadata to associate with the token
Do not include default policy for this token
Create the token with no parent
Max number of uses for this token
Renew period
List of policies for the token
Allow token to be renewed past its initial TTL up to system/mount maximum TTL
trueTime to live for this token
Token type
Token successfully created
Bad Request – Invalid input or missing required fields
Forbidden – Insufficient privileges to create token with specified parameters
Token lookup by accessor successful
Bad Request – Missing or malformed accessor field
Forbidden – Insufficient permissions to perform accessor lookup
Accessor of the token to renew (request body)
The desired increment in seconds to the token expiration
0Token successfully renewed
Bad Request – Missing or invalid accessor or token not renewable
Forbidden – Caller lacks permission to renew the token
The desired increment in seconds to the token expiration
0Token to renew (unused, does not need to be set)
Token successfully renewed
Forbidden – Token is not renewable or not authorized
Token to revoke
Token successfully revoked. No content returned.
Invalid input or missing token.
Forbidden – the client token does not have permission to revoke the specified token.
No content
Accessor of the token to revoke
Token and its children successfully revoked. No content returned.
Invalid accessor or input data.
Forbidden – the client token does not have permission to revoke the specified accessor.
No content
Token to revoke
Token successfully revoked. No content returned.
Invalid token or malformed input.
Forbidden – the client token does not have permission to revoke this token.
No content
Token successfully revoked. No content returned.
Invalid request or the token cannot be revoked.
Forbidden – the token does not have permission to revoke itself.
No content
Name of the token role
String or JSON list of allowed entity aliases. If set, specifies the entity aliases which are allowed to be used during token generation. This field supports globbing.
If set, tokens can be created with any subset of the policies in this list, rather than the normal semantics of tokens being a subset of the calling token's policies. The parameter is a comma-delimited string of policy names.
If set, tokens can be created with any subset of glob matched policies in this list, rather than the normal semantics of tokens being a subset of the calling token's policies. The parameter is a comma-delimited string of policy name globs.
Use 'token_bound_cidrs' instead.
If set, successful token creation via this role will require that no policies in the given list are requested. The parameter is a comma-delimited string of policy names.
If set, successful token creation via this role will require that no requested policies glob match any of policies in this list. The parameter is a comma-delimited string of policy name globs.
Use 'token_explicit_max_ttl' instead.
If true, tokens created via this role will be orphan tokens (have no parent)
If set, tokens created via this role will contain the given suffix as a part of their path. This can be used to assist use of the 'revoke-prefix' endpoint later on. The given suffix must match the regular expression.\w[\w-.]+\w
Use 'token_period' instead.
Tokens created via this role will be renewable or not according to this value. Defaults to "true".
trueComma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token.
If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed.
If true, the 'default' policy will not automatically be added to generated tokens
The maximum number of times a token may be used, a value of zero means unlimited
If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h").
The type of token to generate, service or batch
default-serviceToken role created or updated successfully
Invalid role configuration
Permission denied
Last updated
Was this helpful?