litellm/terraform/provider/docs/data-sources/teams.md
Shivam Rawat 3653e5893f
feat(terraform): resource and data source parity with the community provider (#38158)
* 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
2026-08-28 16:55:40 -07:00

49 lines
1.4 KiB
Markdown

---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "litellm_teams Data Source - terraform-provider-litellm"
subcategory: ""
description: |-
Lists LiteLLM teams with optional server-side filters.
---
# litellm_teams (Data Source)
Lists LiteLLM teams via `/team/list`. Supports filtering by user and organization.
## Example Usage
```terraform
data "litellm_teams" "org_teams" {
organization_id = litellm_organization.main.id
}
output "team_ids" {
value = data.litellm_teams.org_teams.ids
}
```
## Argument Reference
The following arguments are supported:
* `user_id` - (Optional) Only return teams this user belongs to.
* `organization_id` - (Optional) Only return teams in this organization.
## Attributes Reference
In addition to all arguments above, the following attributes are exported:
* `ids` - IDs of the returned teams.
* `teams` - List of team objects. Each entry exports:
* `team_id` - Unique identifier of the team.
* `team_alias` - User-friendly name of the team.
* `organization_id` - Organization the team belongs to.
* `models` - Models the team can access.
* `spend` - Amount spent by the team.
* `max_budget` - Maximum budget for the team.
* `tpm_limit` - Tokens per minute limit.
* `rpm_limit` - Requests per minute limit.
* `budget_duration` - Budget reset duration.
* `blocked` - Whether the team is blocked.
* `created_at` - Creation timestamp.
* `updated_at` - Last update timestamp.