mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
* feat(terraform): close key/team schema gaps, fix team read envelope, add import support * feat(terraform): add fallback resource/data source and key/team block resources * feat(terraform): add access group and unified access group resources and data sources * feat(terraform): add guardrail and prompt resources and data sources * feat(terraform): add agent and search tool resources and data sources * feat(terraform): add user and budget resources and data sources * feat(terraform): add tag and project resources and data sources * docs(terraform): changelog and readme for parity additions * feat(terraform): add data sources for keys, teams, models, organizations, and mcp servers * fix(terraform): key update 400 on empty budget_duration, key info envelope, config-supplied key * fix(terraform): hash raw keys to SHA-256 tokens in key lookup URLs and block resource IDs
37 lines
949 B
Markdown
37 lines
949 B
Markdown
# litellm_prompts Data Source
|
|
|
|
Retrieves the list of all prompts configured on the LiteLLM proxy.
|
|
|
|
## Example Usage
|
|
|
|
```hcl
|
|
data "litellm_prompts" "all" {}
|
|
|
|
output "prompt_ids" {
|
|
value = data.litellm_prompts.all.ids
|
|
}
|
|
```
|
|
|
|
### Filter by Environment
|
|
|
|
```hcl
|
|
data "litellm_prompts" "production" {
|
|
environment = "production"
|
|
}
|
|
```
|
|
|
|
## Argument Reference
|
|
|
|
* `environment` - (Optional) Filter prompts by environment (e.g. `development`, `production`).
|
|
|
|
## Attribute Reference
|
|
|
|
* `prompts` - List of prompts. Each entry contains:
|
|
* `prompt_id` - Unique identifier of the prompt.
|
|
* `prompt_integration` - The prompt integration provider.
|
|
* `prompt_type` - Type of prompt: `config` or `db`.
|
|
* `version` - Version number of the prompt.
|
|
* `environment` - Environment the prompt belongs to.
|
|
* `created_at` - Timestamp when the prompt was created.
|
|
* `updated_at` - Timestamp when the prompt was last updated.
|
|
* `ids` - List of all prompt IDs.
|