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

litellm_agents Data Source

Retrieves the list of A2A agents registered on the LiteLLM proxy.

Example Usage

data "litellm_agents" "all" {}

output "agent_ids" {
  value = data.litellm_agents.all.ids
}

# Only agents whose URL is currently reachable (or that have no URL)
data "litellm_agents" "healthy" {
  health_check = true
}

Argument Reference

The following arguments are supported:

  • health_check - (Optional, default false) When true, the proxy probes each agent's URL and only returns agents that are reachable or have no URL.

Attribute Reference

The following attributes are exported:

  • ids - List of agent IDs.
  • agents - List of agents. Each entry exports:
    • agent_id - The unique agent ID.
    • agent_name - Name of the agent.
    • tpm_limit - Tokens per minute limit.
    • rpm_limit - Requests per minute limit.
    • session_tpm_limit - Per-session tokens per minute limit.
    • session_rpm_limit - Per-session requests per minute limit.
    • spend - Total spend recorded for the agent.
    • created_at - Timestamp when the agent was created.
    • updated_at - Timestamp when the agent was last updated.
    • created_by - User who created the agent.
    • updated_by - User who last updated the agent.