mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +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
1.4 KiB
1.4 KiB
| page_title | subcategory | description |
|---|---|---|
| litellm_models Data Source - terraform-provider-litellm | Lists model deployments on the LiteLLM proxy. |
litellm_models (Data Source)
Lists all model deployments via /v1/model/info. Sensitive litellm_params fields (API keys and other credentials) are never exposed.
Example Usage
data "litellm_models" "all" {}
output "model_names" {
value = [for m in data.litellm_models.all.models : m.model_name]
}
Argument Reference
The following arguments are supported:
team_id- (Optional) Filter models to those accessible by this team.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
ids- LiteLLM model IDs of the returned models.models- List of model objects. Each entry exports:id- LiteLLM model ID.model_name- Public model name used for routing.model- The underlyinglitellm_paramsmodel.custom_llm_provider- Provider for the model.model_api_base- API base URL, if configured.base_model- Base model used for pricing and capabilities.tier- Model tier (freeorpaid).mode- Model mode, e.g.chatorembedding.team_id- Team the deployment is scoped to, if any.db_model- Whether the deployment is stored in the database.