Back to Litellm

generated by https://github.com/hashicorp/terraform-plugin-docs

terraform/provider/docs/data-sources/teams.md

1.101.0-dev.11.2 KB
Original Source

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.