kestra_user_api_token (Resource)
Manages a Kestra User Api Token.
This resource is only available on the Enterprise Edition
Example Usage
hcl
resource "kestra_user_api_token" "example" {
user_id = "4by6NvSLcPXFhCj8nwbZOM"
name = "test-token"
description = "Test token"
max_age = "PT1H"
extended = false
}
Schema
Required
description
(String) The API token description.max_age
(String) The time the token remains valid since creation (ISO 8601 duration format).name
(String) The API token display name.user_id
(String) The ID of the user owning the API Token.
Optional
extended
(Boolean) Specify whether the expiry date is automatically moved forward by max age whenever the token is used. Defaults tofalse
.
Read-Only
full_token
(String, Sensitive) The full API token.id
(String) The ID of this resource.
Import
Import is supported using the following syntax:
shell
terraform import kestra_user_api_token.example {{user_id}}
Was this page helpful?