terraform/provider/docs/data-sources/teams.md
Lists LiteLLM teams via /team/list. Supports filtering by user and organization.
data "litellm_teams" "org_teams" {
organization_id = litellm_organization.main.id
}
output "team_ids" {
value = data.litellm_teams.org_teams.ids
}
The following arguments are supported:
user_id - (Optional) Only return teams this user belongs to.organization_id - (Optional) Only return teams in this organization.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.