Viewing docs for elasticstack 0.14.5
published on Thursday, Apr 23, 2026 by elastic
published on Thursday, Apr 23, 2026 by elastic
Viewing docs for elasticstack 0.14.5
published on Thursday, Apr 23, 2026 by elastic
published on Thursday, Apr 23, 2026 by elastic
Export an Agent Builder agent by ID, optionally including its tools and workflows. See the Agent Builder API documentation.
Example Usage
Export an agent (with dependencies for cross-cluster import)
import * as pulumi from "@pulumi/pulumi";
import * as elasticstack from "@pulumi/elasticstack";
const config = new pulumi.Config();
// The agent ID to export (plain id, or `<space_id>/<agent_id>` if space_id is not set on the data source).
const agentId = config.require("agentId");
// Kibana space for the agent. Leave null for the default space.
const spaceId = config.get("spaceId");
const example = elasticstack.getKibanaAgentbuilderAgent({
agentId: agentId,
spaceId: spaceId,
includeDependencies: true,
});
export const agentExport = example;
import pulumi
import pulumi_elasticstack as elasticstack
config = pulumi.Config()
# The agent ID to export (plain id, or `<space_id>/<agent_id>` if space_id is not set on the data source).
agent_id = config.require("agentId")
# Kibana space for the agent. Leave null for the default space.
space_id = config.get_object("spaceId")
if space_id is None:
space_id = None
example = elasticstack.get_kibana_agentbuilder_agent(agent_id=agent_id,
space_id=space_id,
include_dependencies=True)
pulumi.export("agentExport", example)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/elasticstack/elasticstack"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
// The agent ID to export (plain id, or `<space_id>/<agent_id>` if space_id is not set on the data source).
agentId := cfg.Require("agentId")
// Kibana space for the agent. Leave null for the default space.
spaceId := nil
if param := cfg.GetObject("spaceId"); param != nil {
spaceId = param
}
example, err := elasticstack.LookupKibanaAgentbuilderAgent(ctx, &elasticstack.LookupKibanaAgentbuilderAgentArgs{
AgentId: agentId,
SpaceId: pulumi.StringRef(spaceId),
IncludeDependencies: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
ctx.Export("agentExport", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Elasticstack = Pulumi.Elasticstack;
return await Deployment.RunAsync(() =>
{
var config = new Config();
// The agent ID to export (plain id, or `<space_id>/<agent_id>` if space_id is not set on the data source).
var agentId = config.Require("agentId");
// Kibana space for the agent. Leave null for the default space.
var spaceId = config.Get("spaceId");
var example = Elasticstack.GetKibanaAgentbuilderAgent.Invoke(new()
{
AgentId = agentId,
SpaceId = spaceId,
IncludeDependencies = true,
});
return new Dictionary<string, object?>
{
["agentExport"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.elasticstack.ElasticstackFunctions;
import com.pulumi.elasticstack.inputs.GetKibanaAgentbuilderAgentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var agentId = config.get("agentId");
final var spaceId = config.get("spaceId").orElse(null);
final var example = ElasticstackFunctions.getKibanaAgentbuilderAgent(GetKibanaAgentbuilderAgentArgs.builder()
.agentId(agentId)
.spaceId(spaceId)
.includeDependencies(true)
.build());
ctx.export("agentExport", example);
}
}
configuration:
agentId:
type: string
spaceId:
type: union(none, string)
default: null
variables:
example:
fn::invoke:
function: elasticstack:getKibanaAgentbuilderAgent
arguments:
agentId: ${agentId}
spaceId: ${spaceId}
includeDependencies: true
outputs:
agentExport: ${example}
Using getKibanaAgentbuilderAgent
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getKibanaAgentbuilderAgent(args: GetKibanaAgentbuilderAgentArgs, opts?: InvokeOptions): Promise<GetKibanaAgentbuilderAgentResult>
function getKibanaAgentbuilderAgentOutput(args: GetKibanaAgentbuilderAgentOutputArgs, opts?: InvokeOptions): Output<GetKibanaAgentbuilderAgentResult>def get_kibana_agentbuilder_agent(agent_id: Optional[str] = None,
include_dependencies: Optional[bool] = None,
kibana_connections: Optional[Sequence[GetKibanaAgentbuilderAgentKibanaConnection]] = None,
space_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKibanaAgentbuilderAgentResult
def get_kibana_agentbuilder_agent_output(agent_id: pulumi.Input[Optional[str]] = None,
include_dependencies: pulumi.Input[Optional[bool]] = None,
kibana_connections: pulumi.Input[Optional[Sequence[pulumi.Input[GetKibanaAgentbuilderAgentKibanaConnectionArgs]]]] = None,
space_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKibanaAgentbuilderAgentResult]func LookupKibanaAgentbuilderAgent(ctx *Context, args *LookupKibanaAgentbuilderAgentArgs, opts ...InvokeOption) (*LookupKibanaAgentbuilderAgentResult, error)
func LookupKibanaAgentbuilderAgentOutput(ctx *Context, args *LookupKibanaAgentbuilderAgentOutputArgs, opts ...InvokeOption) LookupKibanaAgentbuilderAgentResultOutput> Note: This function is named LookupKibanaAgentbuilderAgent in the Go SDK.
public static class GetKibanaAgentbuilderAgent
{
public static Task<GetKibanaAgentbuilderAgentResult> InvokeAsync(GetKibanaAgentbuilderAgentArgs args, InvokeOptions? opts = null)
public static Output<GetKibanaAgentbuilderAgentResult> Invoke(GetKibanaAgentbuilderAgentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKibanaAgentbuilderAgentResult> getKibanaAgentbuilderAgent(GetKibanaAgentbuilderAgentArgs args, InvokeOptions options)
public static Output<GetKibanaAgentbuilderAgentResult> getKibanaAgentbuilderAgent(GetKibanaAgentbuilderAgentArgs args, InvokeOptions options)
fn::invoke:
function: elasticstack:index/getKibanaAgentbuilderAgent:getKibanaAgentbuilderAgent
arguments:
# arguments dictionaryThe following arguments are supported:
- Agent
Id string - The agent ID.
- Include
Dependencies bool - If
true, exports the agent along with its tools and workflows. If omitted,falseis used (tool rows only listid,space_id, andtool_idunless this istrue). - Kibana
Connections List<GetKibana Agentbuilder Agent Kibana Connection> - Kibana connection configuration block.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Agent
Id string - The agent ID.
- Include
Dependencies bool - If
true, exports the agent along with its tools and workflows. If omitted,falseis used (tool rows only listid,space_id, andtool_idunless this istrue). - Kibana
Connections []GetKibana Agentbuilder Agent Kibana Connection - Kibana connection configuration block.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- agent
Id String - The agent ID.
- include
Dependencies Boolean - If
true, exports the agent along with its tools and workflows. If omitted,falseis used (tool rows only listid,space_id, andtool_idunless this istrue). - kibana
Connections List<GetKibana Agentbuilder Agent Kibana Connection> - Kibana connection configuration block.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- agent
Id string - The agent ID.
- include
Dependencies boolean - If
true, exports the agent along with its tools and workflows. If omitted,falseis used (tool rows only listid,space_id, andtool_idunless this istrue). - kibana
Connections GetKibana Agentbuilder Agent Kibana Connection[] - Kibana connection configuration block.
- space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- agent_
id str - The agent ID.
- include_
dependencies bool - If
true, exports the agent along with its tools and workflows. If omitted,falseis used (tool rows only listid,space_id, andtool_idunless this istrue). - kibana_
connections Sequence[GetKibana Agentbuilder Agent Kibana Connection] - Kibana connection configuration block.
- space_
id str - An identifier for the space. If space_id is not provided, the default space is used.
- agent
Id String - The agent ID.
- include
Dependencies Boolean - If
true, exports the agent along with its tools and workflows. If omitted,falseis used (tool rows only listid,space_id, andtool_idunless this istrue). - kibana
Connections List<Property Map> - Kibana connection configuration block.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
getKibanaAgentbuilderAgent Result
The following output properties are available:
- Agent
Id string - The agent ID.
- Avatar
Color string - Hex color code for the agent avatar (e.g.,
#BFDBFF). - Avatar
Symbol string - Symbol or initials for the agent avatar (e.g.,
SI). - Description string
- The agent description.
- Id string
- The composite ID of the agent:
<space_id>/<agent_id>. - Instructions string
- Optional system instructions that define the agent behavior.
- Labels List<string>
- List of labels for the agent.
- Name string
- The agent name.
- Tools
List<Get
Kibana Agentbuilder Agent Tool> - Tools attached to the agent. When includedependencies is true, each entry includes full tool data and workflow YAML for workflow-type tools. When false, only id (composite space/tool), spaceid, and tool_id are set.
- Include
Dependencies bool - If
true, exports the agent along with its tools and workflows. If omitted,falseis used (tool rows only listid,space_id, andtool_idunless this istrue). - Kibana
Connections List<GetKibana Agentbuilder Agent Kibana Connection> - Kibana connection configuration block.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Agent
Id string - The agent ID.
- Avatar
Color string - Hex color code for the agent avatar (e.g.,
#BFDBFF). - Avatar
Symbol string - Symbol or initials for the agent avatar (e.g.,
SI). - Description string
- The agent description.
- Id string
- The composite ID of the agent:
<space_id>/<agent_id>. - Instructions string
- Optional system instructions that define the agent behavior.
- Labels []string
- List of labels for the agent.
- Name string
- The agent name.
- Tools
[]Get
Kibana Agentbuilder Agent Tool - Tools attached to the agent. When includedependencies is true, each entry includes full tool data and workflow YAML for workflow-type tools. When false, only id (composite space/tool), spaceid, and tool_id are set.
- Include
Dependencies bool - If
true, exports the agent along with its tools and workflows. If omitted,falseis used (tool rows only listid,space_id, andtool_idunless this istrue). - Kibana
Connections []GetKibana Agentbuilder Agent Kibana Connection - Kibana connection configuration block.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- agent
Id String - The agent ID.
- avatar
Color String - Hex color code for the agent avatar (e.g.,
#BFDBFF). - avatar
Symbol String - Symbol or initials for the agent avatar (e.g.,
SI). - description String
- The agent description.
- id String
- The composite ID of the agent:
<space_id>/<agent_id>. - instructions String
- Optional system instructions that define the agent behavior.
- labels List<String>
- List of labels for the agent.
- name String
- The agent name.
- tools
List<Get
Kibana Agentbuilder Agent Tool> - Tools attached to the agent. When includedependencies is true, each entry includes full tool data and workflow YAML for workflow-type tools. When false, only id (composite space/tool), spaceid, and tool_id are set.
- include
Dependencies Boolean - If
true, exports the agent along with its tools and workflows. If omitted,falseis used (tool rows only listid,space_id, andtool_idunless this istrue). - kibana
Connections List<GetKibana Agentbuilder Agent Kibana Connection> - Kibana connection configuration block.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- agent
Id string - The agent ID.
- avatar
Color string - Hex color code for the agent avatar (e.g.,
#BFDBFF). - avatar
Symbol string - Symbol or initials for the agent avatar (e.g.,
SI). - description string
- The agent description.
- id string
- The composite ID of the agent:
<space_id>/<agent_id>. - instructions string
- Optional system instructions that define the agent behavior.
- labels string[]
- List of labels for the agent.
- name string
- The agent name.
- tools
Get
Kibana Agentbuilder Agent Tool[] - Tools attached to the agent. When includedependencies is true, each entry includes full tool data and workflow YAML for workflow-type tools. When false, only id (composite space/tool), spaceid, and tool_id are set.
- include
Dependencies boolean - If
true, exports the agent along with its tools and workflows. If omitted,falseis used (tool rows only listid,space_id, andtool_idunless this istrue). - kibana
Connections GetKibana Agentbuilder Agent Kibana Connection[] - Kibana connection configuration block.
- space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- agent_
id str - The agent ID.
- avatar_
color str - Hex color code for the agent avatar (e.g.,
#BFDBFF). - avatar_
symbol str - Symbol or initials for the agent avatar (e.g.,
SI). - description str
- The agent description.
- id str
- The composite ID of the agent:
<space_id>/<agent_id>. - instructions str
- Optional system instructions that define the agent behavior.
- labels Sequence[str]
- List of labels for the agent.
- name str
- The agent name.
- tools
Sequence[Get
Kibana Agentbuilder Agent Tool] - Tools attached to the agent. When includedependencies is true, each entry includes full tool data and workflow YAML for workflow-type tools. When false, only id (composite space/tool), spaceid, and tool_id are set.
- include_
dependencies bool - If
true, exports the agent along with its tools and workflows. If omitted,falseis used (tool rows only listid,space_id, andtool_idunless this istrue). - kibana_
connections Sequence[GetKibana Agentbuilder Agent Kibana Connection] - Kibana connection configuration block.
- space_
id str - An identifier for the space. If space_id is not provided, the default space is used.
- agent
Id String - The agent ID.
- avatar
Color String - Hex color code for the agent avatar (e.g.,
#BFDBFF). - avatar
Symbol String - Symbol or initials for the agent avatar (e.g.,
SI). - description String
- The agent description.
- id String
- The composite ID of the agent:
<space_id>/<agent_id>. - instructions String
- Optional system instructions that define the agent behavior.
- labels List<String>
- List of labels for the agent.
- name String
- The agent name.
- tools List<Property Map>
- Tools attached to the agent. When includedependencies is true, each entry includes full tool data and workflow YAML for workflow-type tools. When false, only id (composite space/tool), spaceid, and tool_id are set.
- include
Dependencies Boolean - If
true, exports the agent along with its tools and workflows. If omitted,falseis used (tool rows only listid,space_id, andtool_idunless this istrue). - kibana
Connections List<Property Map> - Kibana connection configuration block.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
Supporting Types
GetKibanaAgentbuilderAgentKibanaConnection
- Api
Key string - API Key to use for authentication to Kibana
- Bearer
Token string - Bearer Token to use for authentication to Kibana
- Ca
Certs List<string> - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- Endpoints List<string>
- Insecure bool
- Disable TLS certificate validation
- Password string
- Password to use for API authentication to Kibana.
- Username string
- Username to use for API authentication to Kibana.
- Api
Key string - API Key to use for authentication to Kibana
- Bearer
Token string - Bearer Token to use for authentication to Kibana
- Ca
Certs []string - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- Endpoints []string
- Insecure bool
- Disable TLS certificate validation
- Password string
- Password to use for API authentication to Kibana.
- Username string
- Username to use for API authentication to Kibana.
- api
Key String - API Key to use for authentication to Kibana
- bearer
Token String - Bearer Token to use for authentication to Kibana
- ca
Certs List<String> - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints List<String>
- insecure Boolean
- Disable TLS certificate validation
- password String
- Password to use for API authentication to Kibana.
- username String
- Username to use for API authentication to Kibana.
- api
Key string - API Key to use for authentication to Kibana
- bearer
Token string - Bearer Token to use for authentication to Kibana
- ca
Certs string[] - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints string[]
- insecure boolean
- Disable TLS certificate validation
- password string
- Password to use for API authentication to Kibana.
- username string
- Username to use for API authentication to Kibana.
- api_
key str - API Key to use for authentication to Kibana
- bearer_
token str - Bearer Token to use for authentication to Kibana
- ca_
certs Sequence[str] - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints Sequence[str]
- insecure bool
- Disable TLS certificate validation
- password str
- Password to use for API authentication to Kibana.
- username str
- Username to use for API authentication to Kibana.
- api
Key String - API Key to use for authentication to Kibana
- bearer
Token String - Bearer Token to use for authentication to Kibana
- ca
Certs List<String> - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints List<String>
- insecure Boolean
- Disable TLS certificate validation
- password String
- Password to use for API authentication to Kibana.
- username String
- Username to use for API authentication to Kibana.
GetKibanaAgentbuilderAgentTool
- Configuration string
- The tool configuration in JSON format.
- Description string
- Description of what the tool does.
- Id string
- The tool ID to look up.
- Readonly bool
- Whether the tool is read-only.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- List<string>
- Tags for categorizing and organizing tools.
- Tool
Id string - The ID of the tool.
- Type string
- The type of the tool (esql, index_search, workflow, mcp).
- Workflow
Configuration stringYaml - The YAML configuration of the referenced workflow. Only populated for workflow-type tools. Requires Elastic Stack v9.4.0 or later.
- Workflow
Id string - The ID of the referenced workflow. Only populated for workflow-type tools. Requires Elastic Stack v9.4.0 or later.
- Configuration string
- The tool configuration in JSON format.
- Description string
- Description of what the tool does.
- Id string
- The tool ID to look up.
- Readonly bool
- Whether the tool is read-only.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- []string
- Tags for categorizing and organizing tools.
- Tool
Id string - The ID of the tool.
- Type string
- The type of the tool (esql, index_search, workflow, mcp).
- Workflow
Configuration stringYaml - The YAML configuration of the referenced workflow. Only populated for workflow-type tools. Requires Elastic Stack v9.4.0 or later.
- Workflow
Id string - The ID of the referenced workflow. Only populated for workflow-type tools. Requires Elastic Stack v9.4.0 or later.
- configuration String
- The tool configuration in JSON format.
- description String
- Description of what the tool does.
- id String
- The tool ID to look up.
- readonly Boolean
- Whether the tool is read-only.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- List<String>
- Tags for categorizing and organizing tools.
- tool
Id String - The ID of the tool.
- type String
- The type of the tool (esql, index_search, workflow, mcp).
- workflow
Configuration StringYaml - The YAML configuration of the referenced workflow. Only populated for workflow-type tools. Requires Elastic Stack v9.4.0 or later.
- workflow
Id String - The ID of the referenced workflow. Only populated for workflow-type tools. Requires Elastic Stack v9.4.0 or later.
- configuration string
- The tool configuration in JSON format.
- description string
- Description of what the tool does.
- id string
- The tool ID to look up.
- readonly boolean
- Whether the tool is read-only.
- space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- string[]
- Tags for categorizing and organizing tools.
- tool
Id string - The ID of the tool.
- type string
- The type of the tool (esql, index_search, workflow, mcp).
- workflow
Configuration stringYaml - The YAML configuration of the referenced workflow. Only populated for workflow-type tools. Requires Elastic Stack v9.4.0 or later.
- workflow
Id string - The ID of the referenced workflow. Only populated for workflow-type tools. Requires Elastic Stack v9.4.0 or later.
- configuration str
- The tool configuration in JSON format.
- description str
- Description of what the tool does.
- id str
- The tool ID to look up.
- readonly bool
- Whether the tool is read-only.
- space_
id str - An identifier for the space. If space_id is not provided, the default space is used.
- Sequence[str]
- Tags for categorizing and organizing tools.
- tool_
id str - The ID of the tool.
- type str
- The type of the tool (esql, index_search, workflow, mcp).
- workflow_
configuration_ stryaml - The YAML configuration of the referenced workflow. Only populated for workflow-type tools. Requires Elastic Stack v9.4.0 or later.
- workflow_
id str - The ID of the referenced workflow. Only populated for workflow-type tools. Requires Elastic Stack v9.4.0 or later.
- configuration String
- The tool configuration in JSON format.
- description String
- Description of what the tool does.
- id String
- The tool ID to look up.
- readonly Boolean
- Whether the tool is read-only.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- List<String>
- Tags for categorizing and organizing tools.
- tool
Id String - The ID of the tool.
- type String
- The type of the tool (esql, index_search, workflow, mcp).
- workflow
Configuration StringYaml - The YAML configuration of the referenced workflow. Only populated for workflow-type tools. Requires Elastic Stack v9.4.0 or later.
- workflow
Id String - The ID of the referenced workflow. Only populated for workflow-type tools. Requires Elastic Stack v9.4.0 or later.
Package Details
- Repository
- elasticstack elastic/terraform-provider-elasticstack
- License
- Notes
- This Pulumi package is based on the
elasticstackTerraform Provider.
Viewing docs for elasticstack 0.14.5
published on Thursday, Apr 23, 2026 by elastic
published on Thursday, Apr 23, 2026 by elastic
