Integration
Factory interface for managing Splunk AO integrations. Integration is the main entry point for working with LLM providers and other external services in the Splunk AO platform. It provides factory methods to create new integrations and list existing ones. The Integration class returns Provider objects, which are immutable proxies to integrations stored in the Splunk AO API. Provider classes should not be imported or instantiated directly - always use the Integration class methods. ExamplesList all available integration types (including unconnected)
available_types = Integration.list(all=True)Returns: [‘anthropic’, ‘aws_bedrock’, ‘azure’, ‘openai’, …]
Create a new OpenAI integration
openai = Integration.create_openai( token=“sk-proj-…”, organization_id=“org-…” ) print(f”Created: {openai.id}“)Create an Azure integration
azure = Integration.create_azure( token=“your-key”, endpoint=“https://your-resource.openai.azure.com” )List all connected integrations (returns provider proxy objects)
providers = Integration.list() for provider in providers: print(f”{provider.name}: {provider.id}”) print(f”Created by: {provider.created_by}”) print(f”Selected: {provider.is_selected}“)Update provider credentials
openai.update( token=“new-sk-proj-…”, organization_id=“new-org-…” )Refresh provider state from API
openai.refresh()Get available models (placeholder - not yet implemented)
models = openai.models
Delete a provider
openai.delete()Create other providers
bedrock = Integration.create_bedrock( aws_access_key_id=“AKIA…”, aws_secret_access_key=”…”, region=“us-west-2” ) anthropic = Integration.create_anthropic(token=“sk-ant-…“)anthropic
azure
bedrock
create_anthropic
token(str): Anthropic API token.
create_azure
token(str): Azure API key.endpoint(str): Azure OpenAI endpoint URL.
create_bedrock
aws_access_key_id(str): AWS access key ID.aws_secret_access_key(str): AWS secret access key.region(str): AWS region. Defaults to “us-east-1”.credential_type(str): Type of credentials. Defaults to “key_secret”.
create_openai
token(str): OpenAI API token.organization_id(str | None): Optional organization ID.
list
all(bool): If True, returns all available integration types (including unconnected ones) as a list of strings. If False, returns only the configured integrations as Provider objects. Defaults to False.