1. Packages
  2. Packages
  3. Elasticstack Provider
  4. API Docs
  5. getKibanaAgentbuilderWorkflow
Viewing docs for elasticstack 0.15.0
published on Thursday, May 14, 2026 by elastic
Viewing docs for elasticstack 0.15.0
published on Thursday, May 14, 2026 by elastic

    Reads an Agent Builder workflow by ID. See https://www.elastic.co/guide/en/kibana/current/agent-builder-api.html

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as elasticstack from "@pulumi/elasticstack";
    
    const doc = new elasticstack.KibanaAgentbuilderWorkflow("doc", {configurationYaml: `name: Doc Workflow
    description: Example workflow used by the datasource lookup below
    enabled: true
    triggers:
      - type: manual
    inputs: []
    steps:
      - name: noop
        type: console
        with:
          message: \\"ok\\"
    `});
    const test = elasticstack.getKibanaAgentbuilderWorkflowOutput({
        id: doc.id,
    });
    
    import pulumi
    import pulumi_elasticstack as elasticstack
    
    doc = elasticstack.KibanaAgentbuilderWorkflow("doc", configuration_yaml="""name: Doc Workflow
    description: Example workflow used by the datasource lookup below
    enabled: true
    triggers:
      - type: manual
    inputs: []
    steps:
      - name: noop
        type: console
        with:
          message: \"ok\"
    """)
    test = elasticstack.get_kibana_agentbuilder_workflow_output(id=doc.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/elasticstack/elasticstack"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		doc, err := elasticstack.NewKibanaAgentbuilderWorkflow(ctx, "doc", &elasticstack.KibanaAgentbuilderWorkflowArgs{
    			ConfigurationYaml: pulumi.String(`name: Doc Workflow
    description: Example workflow used by the datasource lookup below
    enabled: true
    triggers:
      - type: manual
    inputs: []
    steps:
      - name: noop
        type: console
        with:
          message: \"ok\"
    `),
    		})
    		if err != nil {
    			return err
    		}
    		_ = elasticstack.LookupKibanaAgentbuilderWorkflowOutput(ctx, elasticstack.GetKibanaAgentbuilderWorkflowOutputArgs{
    			Id: doc.ID(),
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Elasticstack = Pulumi.Elasticstack;
    
    return await Deployment.RunAsync(() => 
    {
        var doc = new Elasticstack.KibanaAgentbuilderWorkflow("doc", new()
        {
            ConfigurationYaml = @"name: Doc Workflow
    description: Example workflow used by the datasource lookup below
    enabled: true
    triggers:
      - type: manual
    inputs: []
    steps:
      - name: noop
        type: console
        with:
          message: \""ok\""
    ",
        });
    
        var test = Elasticstack.GetKibanaAgentbuilderWorkflow.Invoke(new()
        {
            Id = doc.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.elasticstack.KibanaAgentbuilderWorkflow;
    import com.pulumi.elasticstack.KibanaAgentbuilderWorkflowArgs;
    import com.pulumi.elasticstack.ElasticstackFunctions;
    import com.pulumi.elasticstack.inputs.GetKibanaAgentbuilderWorkflowArgs;
    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) {
            var doc = new KibanaAgentbuilderWorkflow("doc", KibanaAgentbuilderWorkflowArgs.builder()
                .configurationYaml("""
    name: Doc Workflow
    description: Example workflow used by the datasource lookup below
    enabled: true
    triggers:
      - type: manual
    inputs: []
    steps:
      - name: noop
        type: console
        with:
          message: \"ok\"
                """)
                .build());
    
            final var test = ElasticstackFunctions.getKibanaAgentbuilderWorkflow(GetKibanaAgentbuilderWorkflowArgs.builder()
                .id(doc.id())
                .build());
    
        }
    }
    
    resources:
      doc:
        type: elasticstack:KibanaAgentbuilderWorkflow
        properties:
          configurationYaml: |
            name: Doc Workflow
            description: Example workflow used by the datasource lookup below
            enabled: true
            triggers:
              - type: manual
            inputs: []
            steps:
              - name: noop
                type: console
                with:
                  message: \"ok\"
    variables:
      test:
        fn::invoke:
          function: elasticstack:getKibanaAgentbuilderWorkflow
          arguments:
            id: ${doc.id}
    
    Example coming soon!
    

    Using getKibanaAgentbuilderWorkflow

    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 getKibanaAgentbuilderWorkflow(args: GetKibanaAgentbuilderWorkflowArgs, opts?: InvokeOptions): Promise<GetKibanaAgentbuilderWorkflowResult>
    function getKibanaAgentbuilderWorkflowOutput(args: GetKibanaAgentbuilderWorkflowOutputArgs, opts?: InvokeOptions): Output<GetKibanaAgentbuilderWorkflowResult>
    def get_kibana_agentbuilder_workflow(id: Optional[str] = None,
                                         kibana_connections: Optional[Sequence[GetKibanaAgentbuilderWorkflowKibanaConnection]] = None,
                                         space_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetKibanaAgentbuilderWorkflowResult
    def get_kibana_agentbuilder_workflow_output(id: pulumi.Input[Optional[str]] = None,
                                         kibana_connections: pulumi.Input[Optional[Sequence[pulumi.Input[GetKibanaAgentbuilderWorkflowKibanaConnectionArgs]]]] = None,
                                         space_id: pulumi.Input[Optional[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetKibanaAgentbuilderWorkflowResult]
    func LookupKibanaAgentbuilderWorkflow(ctx *Context, args *LookupKibanaAgentbuilderWorkflowArgs, opts ...InvokeOption) (*LookupKibanaAgentbuilderWorkflowResult, error)
    func LookupKibanaAgentbuilderWorkflowOutput(ctx *Context, args *LookupKibanaAgentbuilderWorkflowOutputArgs, opts ...InvokeOption) LookupKibanaAgentbuilderWorkflowResultOutput

    > Note: This function is named LookupKibanaAgentbuilderWorkflow in the Go SDK.

    public static class GetKibanaAgentbuilderWorkflow 
    {
        public static Task<GetKibanaAgentbuilderWorkflowResult> InvokeAsync(GetKibanaAgentbuilderWorkflowArgs args, InvokeOptions? opts = null)
        public static Output<GetKibanaAgentbuilderWorkflowResult> Invoke(GetKibanaAgentbuilderWorkflowInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKibanaAgentbuilderWorkflowResult> getKibanaAgentbuilderWorkflow(GetKibanaAgentbuilderWorkflowArgs args, InvokeOptions options)
    public static Output<GetKibanaAgentbuilderWorkflowResult> getKibanaAgentbuilderWorkflow(GetKibanaAgentbuilderWorkflowArgs args, InvokeOptions options)
    
    fn::invoke:
      function: elasticstack:index/getKibanaAgentbuilderWorkflow:getKibanaAgentbuilderWorkflow
      arguments:
        # arguments dictionary
    data "elasticstack_getkibanaagentbuilderworkflow" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The workflow ID to look up.
    KibanaConnections List<GetKibanaAgentbuilderWorkflowKibanaConnection>
    Kibana connection configuration block.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    Id string
    The workflow ID to look up.
    KibanaConnections []GetKibanaAgentbuilderWorkflowKibanaConnection
    Kibana connection configuration block.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    id string
    The workflow ID to look up.
    kibana_connections list(object)
    Kibana connection configuration block.
    space_id string
    An identifier for the space. If space_id is not provided, the default space is used.
    id String
    The workflow ID to look up.
    kibanaConnections List<GetKibanaAgentbuilderWorkflowKibanaConnection>
    Kibana connection configuration block.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    id string
    The workflow ID to look up.
    kibanaConnections GetKibanaAgentbuilderWorkflowKibanaConnection[]
    Kibana connection configuration block.
    spaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    id str
    The workflow ID to look up.
    kibana_connections Sequence[GetKibanaAgentbuilderWorkflowKibanaConnection]
    Kibana connection configuration block.
    space_id str
    An identifier for the space. If space_id is not provided, the default space is used.
    id String
    The workflow ID to look up.
    kibanaConnections List<Property Map>
    Kibana connection configuration block.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.

    getKibanaAgentbuilderWorkflow Result

    The following output properties are available:

    ConfigurationYaml string
    The workflow definition in YAML format.
    Id string
    The workflow ID to look up.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    WorkflowId string
    The ID of the workflow.
    KibanaConnections List<GetKibanaAgentbuilderWorkflowKibanaConnection>
    Kibana connection configuration block.
    ConfigurationYaml string
    The workflow definition in YAML format.
    Id string
    The workflow ID to look up.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    WorkflowId string
    The ID of the workflow.
    KibanaConnections []GetKibanaAgentbuilderWorkflowKibanaConnection
    Kibana connection configuration block.
    configuration_yaml string
    The workflow definition in YAML format.
    id string
    The workflow ID to look up.
    space_id string
    An identifier for the space. If space_id is not provided, the default space is used.
    workflow_id string
    The ID of the workflow.
    kibana_connections list(object)
    Kibana connection configuration block.
    configurationYaml String
    The workflow definition in YAML format.
    id String
    The workflow ID to look up.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    workflowId String
    The ID of the workflow.
    kibanaConnections List<GetKibanaAgentbuilderWorkflowKibanaConnection>
    Kibana connection configuration block.
    configurationYaml string
    The workflow definition in YAML format.
    id string
    The workflow ID to look up.
    spaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    workflowId string
    The ID of the workflow.
    kibanaConnections GetKibanaAgentbuilderWorkflowKibanaConnection[]
    Kibana connection configuration block.
    configuration_yaml str
    The workflow definition in YAML format.
    id str
    The workflow ID to look up.
    space_id str
    An identifier for the space. If space_id is not provided, the default space is used.
    workflow_id str
    The ID of the workflow.
    kibana_connections Sequence[GetKibanaAgentbuilderWorkflowKibanaConnection]
    Kibana connection configuration block.
    configurationYaml String
    The workflow definition in YAML format.
    id String
    The workflow ID to look up.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    workflowId String
    The ID of the workflow.
    kibanaConnections List<Property Map>
    Kibana connection configuration block.

    Supporting Types

    GetKibanaAgentbuilderWorkflowKibanaConnection

    ApiKey string
    API Key to use for authentication to Kibana
    BearerToken string
    Bearer Token to use for authentication to Kibana
    CaCerts 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.
    ApiKey string
    API Key to use for authentication to Kibana
    BearerToken string
    Bearer Token to use for authentication to Kibana
    CaCerts []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 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.
    apiKey String
    API Key to use for authentication to Kibana
    bearerToken String
    Bearer Token to use for authentication to Kibana
    caCerts 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.
    apiKey string
    API Key to use for authentication to Kibana
    bearerToken string
    Bearer Token to use for authentication to Kibana
    caCerts 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.
    apiKey String
    API Key to use for authentication to Kibana
    bearerToken String
    Bearer Token to use for authentication to Kibana
    caCerts 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.

    Package Details

    Repository
    elasticstack elastic/terraform-provider-elasticstack
    License
    Notes
    This Pulumi package is based on the elasticstack Terraform Provider.
    Viewing docs for elasticstack 0.15.0
    published on Thursday, May 14, 2026 by elastic
      Try Pulumi Cloud free. Your team will thank you.