⚠️ Experimental — Looks up an existing Guild model provider by name. Use this to reference pre-provisioned LLM provider registrations without managing sg_guild_model_provider in the same stack. When provider workspace_id is set, the lookup is scoped to that workspace.
data "sg_guild_model_provider" "openai" {
name = "openai-prod"
}
output "guild_model_provider_type" {
value = data.sg_guild_model_provider.openai.provider_type
}
name (String) Unique model provider name to look up (e.g. openai-prod or anthropic-staging).created_at (String) Creation timestamp for this registered provider (RFC 3339).host (String) Custom API endpoint URL for this provider when returned by Guild.provider_type (String) LLM provider type (e.g. openai or anthropic or gemini).scope (String) Integration scope for this provider: TENANT PROJECT or USER.token_reference (String) Name of a registered token reference (secret) that holds the API key.updated_at (String) Last update timestamp for this registered provider (RFC 3339).