litellm/terraform/provider/docs/data-sources/team.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

1.7 KiB

page_title subcategory description
litellm_team Data Source - terraform-provider-litellm Retrieves information about an existing LiteLLM team.

litellm_team (Data Source)

Retrieves information about an existing LiteLLM team via /team/info. Use it to reference teams created outside of Terraform or in other configurations.

Example Usage

data "litellm_team" "ml" {
  team_id = "team-1234"
}

resource "litellm_key" "ml_key" {
  team_id = data.litellm_team.ml.team_id
  models  = data.litellm_team.ml.models
}

Argument Reference

The following arguments are supported:

  • team_id - (Required) Unique identifier of the team to retrieve.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • team_alias - User-friendly name of the team.
  • organization_id - Organization the team belongs to.
  • models - Models the team can access.
  • metadata - Map of string metadata values for the team.
  • tags - Tags for spend tracking and tag-based routing.
  • soft_budget_alerting_emails - Email addresses alerted when the team crosses soft_budget.
  • tpm_limit - Tokens per minute limit.
  • rpm_limit - Requests per minute limit.
  • max_parallel_requests - Maximum parallel requests allowed.
  • max_budget - Maximum budget for the team.
  • soft_budget - Soft budget alert threshold.
  • spend - Amount spent by the team.
  • budget_duration - Budget reset duration.
  • blocked - Whether the team is blocked.
  • team_member_permissions - Permissions granted to team members.
  • created_at - Timestamp when the team was created.
  • updated_at - Timestamp when the team was last updated.