mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +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,008 B
1,008 B
litellm_user Data Source
Retrieves information about an existing LiteLLM user by ID
Example Usage
data "litellm_user" "alice" {
user_id = "alice-user-id"
}
output "alice_email" {
value = data.litellm_user.alice.user_email
}
Argument Reference
user_id(Required) - ID of the user to retrieve
Attribute Reference
id- The user IDuser_email- Email address of the useruser_alias- Descriptive name for the useruser_role- Role of the user on the proxyteams- List of team IDs the user belongs tomodels- Models the user is allowed to callmax_budget- Maximum budget in USD for the userspend- Current spend in USD for the userbudget_duration- Budget reset period for the usertpm_limit- Tokens per minute limitrpm_limit- Requests per minute limitmax_parallel_requests- Maximum number of parallel requestsmetadata- Map of metadata for the usermodel_max_budget- JSON string of per-model budget config