mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +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.1 KiB
1.1 KiB
litellm_projects (Data Source)
Retrieves the list of all LiteLLM projects visible to the caller
Example Usage
data "litellm_projects" "all" {}
output "project_ids" {
value = data.litellm_projects.all.ids
}
output "project_aliases" {
value = [for p in data.litellm_projects.all.projects : p.project_alias]
}
Argument Reference
This data source takes no arguments
Attribute Reference
The following attributes are exported:
ids- IDs of all projectsprojects- List of projects. Each entry exports:project_id- The project IDproject_alias- Human-friendly name for the projectdescription- Description of the projectteam_id- The team ID this project belongs tobudget_id- Budget ID associated with this projectmodels- List of models the project can accessblocked- Whether the project is blocked from making requestsspend- Current spend for the projectcreated_at- Timestamp when the project was createdupdated_at- Timestamp when the project was last updatedcreated_by- User that created the projectupdated_by- User that last updated the project