71 lines
2.2 KiB
Markdown
71 lines
2.2 KiB
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "stackit_modelserving_token Resource - stackit"
|
|
subcategory: ""
|
|
description: |-
|
|
AI Model Serving Auth Token Resource schema.
|
|
Example Usage
|
|
Automatically rotate AI model serving token
|
|
|
|
resource "time_rotating" "rotate" {
|
|
rotation_days = 80
|
|
}
|
|
|
|
resource "stackit_modelserving_token" "example" {
|
|
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
name = "Example token"
|
|
|
|
rotate_when_changed = {
|
|
rotation = time_rotating.rotate.id
|
|
}
|
|
|
|
}
|
|
---
|
|
|
|
# stackit_modelserving_token (Resource)
|
|
|
|
AI Model Serving Auth Token Resource schema.
|
|
|
|
## Example Usage
|
|
|
|
### Automatically rotate AI model serving token
|
|
```terraform
|
|
resource "time_rotating" "rotate" {
|
|
rotation_days = 80
|
|
}
|
|
|
|
resource "stackit_modelserving_token" "example" {
|
|
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
name = "Example token"
|
|
|
|
rotate_when_changed = {
|
|
rotation = time_rotating.rotate.id
|
|
}
|
|
|
|
}
|
|
```
|
|
|
|
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
## Schema
|
|
|
|
### Required
|
|
|
|
- `name` (String) Name of the AI model serving auth token.
|
|
- `project_id` (String) STACKIT project ID to which the AI model serving auth token is associated.
|
|
|
|
### Optional
|
|
|
|
- `description` (String) The description of the AI model serving auth token.
|
|
- `region` (String) Region to which the AI model serving auth token is associated. If not defined, the provider region is used
|
|
- `rotate_when_changed` (Map of String) A map of arbitrary key/value pairs that will force recreation of the token when they change, enabling token rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
|
|
- `ttl_duration` (String) The TTL duration of the AI model serving auth token. E.g. 5h30m40s,5h,5h30m,30m,30s
|
|
|
|
### Read-Only
|
|
|
|
- `id` (String) Terraform's internal data source. ID. It is structured as "`project_id`,`region`,`token_id`".
|
|
- `state` (String) State of the AI model serving auth token.
|
|
- `token` (String, Sensitive) Content of the AI model serving auth token.
|
|
- `token_id` (String) The AI model serving auth token ID.
|
|
- `valid_until` (String) The time until the AI model serving auth token is valid.
|