1. Packages
  2. Packages
  3. Elasticstack Provider
  4. API Docs
  5. getKibanaActionConnector
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

    Search for a connector by name, space id, and type. Note, that this data source will fail if more than one connector shares the same name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as elasticstack from "@pulumi/elasticstack";
    
    const slack = new elasticstack.KibanaActionConnector("slack", {
        name: "myslackconnector",
        connectorTypeId: ".slack",
        config: "{}",
        secrets: "{}",
    });
    const example = elasticstack.getKibanaActionConnectorOutput({
        name: slack.name,
        spaceId: "default",
        connectorTypeId: ".slack",
    });
    export const connectorId = example.apply(example => example.connectorId);
    
    import pulumi
    import pulumi_elasticstack as elasticstack
    
    slack = elasticstack.KibanaActionConnector("slack",
        name="myslackconnector",
        connector_type_id=".slack",
        config="{}",
        secrets="{}")
    example = elasticstack.get_kibana_action_connector_output(name=slack.name,
        space_id="default",
        connector_type_id=".slack")
    pulumi.export("connectorId", example.connector_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 {
    		slack, err := elasticstack.NewKibanaActionConnector(ctx, "slack", &elasticstack.KibanaActionConnectorArgs{
    			Name:            pulumi.String("myslackconnector"),
    			ConnectorTypeId: pulumi.String(".slack"),
    			Config:          pulumi.String("{}"),
    			Secrets:         pulumi.String("{}"),
    		})
    		if err != nil {
    			return err
    		}
    		example := elasticstack.LookupKibanaActionConnectorOutput(ctx, elasticstack.GetKibanaActionConnectorOutputArgs{
    			Name:            slack.Name,
    			SpaceId:         pulumi.String("default"),
    			ConnectorTypeId: pulumi.String(".slack"),
    		}, nil)
    		ctx.Export("connectorId", example.ApplyT(func(example elasticstack.GetKibanaActionConnectorResult) (*string, error) {
    			return &example.ConnectorId, nil
    		}).(pulumi.StringPtrOutput))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Elasticstack = Pulumi.Elasticstack;
    
    return await Deployment.RunAsync(() => 
    {
        var slack = new Elasticstack.KibanaActionConnector("slack", new()
        {
            Name = "myslackconnector",
            ConnectorTypeId = ".slack",
            Config = "{}",
            Secrets = "{}",
        });
    
        var example = Elasticstack.GetKibanaActionConnector.Invoke(new()
        {
            Name = slack.Name,
            SpaceId = "default",
            ConnectorTypeId = ".slack",
        });
    
        return new Dictionary<string, object?>
        {
            ["connectorId"] = example.Apply(getKibanaActionConnectorResult => getKibanaActionConnectorResult.ConnectorId),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.elasticstack.KibanaActionConnector;
    import com.pulumi.elasticstack.KibanaActionConnectorArgs;
    import com.pulumi.elasticstack.ElasticstackFunctions;
    import com.pulumi.elasticstack.inputs.GetKibanaActionConnectorArgs;
    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 slack = new KibanaActionConnector("slack", KibanaActionConnectorArgs.builder()
                .name("myslackconnector")
                .connectorTypeId(".slack")
                .config("{}")
                .secrets("{}")
                .build());
    
            final var example = ElasticstackFunctions.getKibanaActionConnector(GetKibanaActionConnectorArgs.builder()
                .name(slack.name())
                .spaceId("default")
                .connectorTypeId(".slack")
                .build());
    
            ctx.export("connectorId", example.applyValue(_example -> _example.connectorId()));
        }
    }
    
    resources:
      slack:
        type: elasticstack:KibanaActionConnector
        properties:
          name: myslackconnector
          connectorTypeId: .slack
          config: '{}'
          secrets: '{}'
    variables:
      example:
        fn::invoke:
          function: elasticstack:getKibanaActionConnector
          arguments:
            name: ${slack.name}
            spaceId: default
            connectorTypeId: .slack
    outputs:
      connectorId: ${example.connectorId}
    
    Example coming soon!
    

    Using getKibanaActionConnector

    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 getKibanaActionConnector(args: GetKibanaActionConnectorArgs, opts?: InvokeOptions): Promise<GetKibanaActionConnectorResult>
    function getKibanaActionConnectorOutput(args: GetKibanaActionConnectorOutputArgs, opts?: InvokeOptions): Output<GetKibanaActionConnectorResult>
    def get_kibana_action_connector(connector_type_id: Optional[str] = None,
                                    id: Optional[str] = None,
                                    kibana_connection: Optional[GetKibanaActionConnectorKibanaConnection] = None,
                                    name: Optional[str] = None,
                                    space_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetKibanaActionConnectorResult
    def get_kibana_action_connector_output(connector_type_id: pulumi.Input[Optional[str]] = None,
                                    id: pulumi.Input[Optional[str]] = None,
                                    kibana_connection: pulumi.Input[Optional[GetKibanaActionConnectorKibanaConnectionArgs]] = None,
                                    name: pulumi.Input[Optional[str]] = None,
                                    space_id: pulumi.Input[Optional[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetKibanaActionConnectorResult]
    func LookupKibanaActionConnector(ctx *Context, args *LookupKibanaActionConnectorArgs, opts ...InvokeOption) (*LookupKibanaActionConnectorResult, error)
    func LookupKibanaActionConnectorOutput(ctx *Context, args *LookupKibanaActionConnectorOutputArgs, opts ...InvokeOption) LookupKibanaActionConnectorResultOutput

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

    public static class GetKibanaActionConnector 
    {
        public static Task<GetKibanaActionConnectorResult> InvokeAsync(GetKibanaActionConnectorArgs args, InvokeOptions? opts = null)
        public static Output<GetKibanaActionConnectorResult> Invoke(GetKibanaActionConnectorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKibanaActionConnectorResult> getKibanaActionConnector(GetKibanaActionConnectorArgs args, InvokeOptions options)
    public static Output<GetKibanaActionConnectorResult> getKibanaActionConnector(GetKibanaActionConnectorArgs args, InvokeOptions options)
    
    fn::invoke:
      function: elasticstack:index/getKibanaActionConnector:getKibanaActionConnector
      arguments:
        # arguments dictionary
    data "elasticstack_getkibanaactionconnector" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    ConnectorTypeId string
    The ID of the connector type, e.g. .index.
    Id string
    The ID of this resource.
    KibanaConnection GetKibanaActionConnectorKibanaConnection
    Kibana connection configuration block.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    Name string
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    ConnectorTypeId string
    The ID of the connector type, e.g. .index.
    Id string
    The ID of this resource.
    KibanaConnection GetKibanaActionConnectorKibanaConnection
    Kibana connection configuration block.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    name string
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    connector_type_id string
    The ID of the connector type, e.g. .index.
    id string
    The ID of this resource.
    kibana_connection object
    Kibana connection configuration block.
    space_id string
    An identifier for the space. If space_id is not provided, the default space is used.
    name String
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    connectorTypeId String
    The ID of the connector type, e.g. .index.
    id String
    The ID of this resource.
    kibanaConnection GetKibanaActionConnectorKibanaConnection
    Kibana connection configuration block.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    name string
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    connectorTypeId string
    The ID of the connector type, e.g. .index.
    id string
    The ID of this resource.
    kibanaConnection GetKibanaActionConnectorKibanaConnection
    Kibana connection configuration block.
    spaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    name str
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    connector_type_id str
    The ID of the connector type, e.g. .index.
    id str
    The ID of this resource.
    kibana_connection GetKibanaActionConnectorKibanaConnection
    Kibana connection configuration block.
    space_id str
    An identifier for the space. If space_id is not provided, the default space is used.
    name String
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    connectorTypeId String
    The ID of the connector type, e.g. .index.
    id String
    The ID of this resource.
    kibanaConnection Property Map
    Kibana connection configuration block.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.

    getKibanaActionConnector Result

    The following output properties are available:

    Config string
    The configuration for the connector. Configuration properties vary depending on the connector type.
    ConnectorId string
    A UUID v1 or v4 randomly generated ID.
    Id string
    The ID of this resource.
    IsDeprecated bool
    Indicates whether the connector type is deprecated.
    IsMissingSecrets bool
    Indicates whether secrets are missing for the connector.
    IsPreconfigured bool
    Indicates whether it is a preconfigured connector.
    Name string
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    ConnectorTypeId string
    The ID of the connector type, e.g. .index.
    KibanaConnection GetKibanaActionConnectorKibanaConnection
    Kibana connection configuration block.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    Config string
    The configuration for the connector. Configuration properties vary depending on the connector type.
    ConnectorId string
    A UUID v1 or v4 randomly generated ID.
    Id string
    The ID of this resource.
    IsDeprecated bool
    Indicates whether the connector type is deprecated.
    IsMissingSecrets bool
    Indicates whether secrets are missing for the connector.
    IsPreconfigured bool
    Indicates whether it is a preconfigured connector.
    Name string
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    ConnectorTypeId string
    The ID of the connector type, e.g. .index.
    KibanaConnection GetKibanaActionConnectorKibanaConnection
    Kibana connection configuration block.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    config string
    The configuration for the connector. Configuration properties vary depending on the connector type.
    connector_id string
    A UUID v1 or v4 randomly generated ID.
    id string
    The ID of this resource.
    is_deprecated bool
    Indicates whether the connector type is deprecated.
    is_missing_secrets bool
    Indicates whether secrets are missing for the connector.
    is_preconfigured bool
    Indicates whether it is a preconfigured connector.
    name string
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    connector_type_id string
    The ID of the connector type, e.g. .index.
    kibana_connection object
    Kibana connection configuration block.
    space_id string
    An identifier for the space. If space_id is not provided, the default space is used.
    config String
    The configuration for the connector. Configuration properties vary depending on the connector type.
    connectorId String
    A UUID v1 or v4 randomly generated ID.
    id String
    The ID of this resource.
    isDeprecated Boolean
    Indicates whether the connector type is deprecated.
    isMissingSecrets Boolean
    Indicates whether secrets are missing for the connector.
    isPreconfigured Boolean
    Indicates whether it is a preconfigured connector.
    name String
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    connectorTypeId String
    The ID of the connector type, e.g. .index.
    kibanaConnection GetKibanaActionConnectorKibanaConnection
    Kibana connection configuration block.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    config string
    The configuration for the connector. Configuration properties vary depending on the connector type.
    connectorId string
    A UUID v1 or v4 randomly generated ID.
    id string
    The ID of this resource.
    isDeprecated boolean
    Indicates whether the connector type is deprecated.
    isMissingSecrets boolean
    Indicates whether secrets are missing for the connector.
    isPreconfigured boolean
    Indicates whether it is a preconfigured connector.
    name string
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    connectorTypeId string
    The ID of the connector type, e.g. .index.
    kibanaConnection GetKibanaActionConnectorKibanaConnection
    Kibana connection configuration block.
    spaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    config str
    The configuration for the connector. Configuration properties vary depending on the connector type.
    connector_id str
    A UUID v1 or v4 randomly generated ID.
    id str
    The ID of this resource.
    is_deprecated bool
    Indicates whether the connector type is deprecated.
    is_missing_secrets bool
    Indicates whether secrets are missing for the connector.
    is_preconfigured bool
    Indicates whether it is a preconfigured connector.
    name str
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    connector_type_id str
    The ID of the connector type, e.g. .index.
    kibana_connection GetKibanaActionConnectorKibanaConnection
    Kibana connection configuration block.
    space_id str
    An identifier for the space. If space_id is not provided, the default space is used.
    config String
    The configuration for the connector. Configuration properties vary depending on the connector type.
    connectorId String
    A UUID v1 or v4 randomly generated ID.
    id String
    The ID of this resource.
    isDeprecated Boolean
    Indicates whether the connector type is deprecated.
    isMissingSecrets Boolean
    Indicates whether secrets are missing for the connector.
    isPreconfigured Boolean
    Indicates whether it is a preconfigured connector.
    name String
    The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.
    connectorTypeId String
    The ID of the connector type, e.g. .index.
    kibanaConnection Property Map
    Kibana connection configuration block.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.

    Supporting Types

    GetKibanaActionConnectorKibanaConnection

    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.