mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +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
31 lines
944 B
Markdown
31 lines
944 B
Markdown
# litellm_budgets Data Source
|
|
|
|
Retrieves all budgets configured on the LiteLLM proxy
|
|
|
|
## Example Usage
|
|
|
|
```hcl
|
|
data "litellm_budgets" "all" {}
|
|
|
|
output "budget_ids" {
|
|
value = data.litellm_budgets.all.ids
|
|
}
|
|
```
|
|
|
|
## Argument Reference
|
|
|
|
This data source takes no arguments
|
|
|
|
## Attribute Reference
|
|
|
|
- `budgets` - All budgets configured on the proxy. Each entry has:
|
|
- `budget_id` - The budget ID
|
|
- `max_budget` - Hard budget limit in USD
|
|
- `soft_budget` - Soft budget limit in USD that triggers alerts
|
|
- `max_parallel_requests` - Maximum concurrent requests allowed for this budget
|
|
- `tpm_limit` - Maximum tokens per minute allowed for this budget
|
|
- `rpm_limit` - Maximum requests per minute allowed for this budget
|
|
- `budget_duration` - Budget reset period
|
|
- `model_max_budget` - JSON string of per-model budget config
|
|
- `budget_reset_at` - Datetime when the budget is reset
|
|
- `ids` - IDs of all budgets configured on the proxy
|