1. Registry
  2. Packages
  3. Elasticstack Provider
  4. API Docs
  5. KibanaCaseTemplate
Viewing docs for elasticstack 0.17.0
published on Tuesday, Nov 10, 2026 by elastic
elasticstack
Viewing docs for elasticstack 0.17.0
published on Tuesday, Nov 10, 2026 by elastic

    Manages a single Kibana Cases template. Requires Elastic Stack 9.5.2 or later.

    Technical Preview: the underlying Kibana API (/api/cases/templates) is marked Technical Preview in the Kibana OpenAPI specification and may change in a future release.

    The templates routes are also gated by the Kibana setting xpack.cases.templates.enabled. It defaults to true, but when it is set to false the routes are removed and Kibana answers with a 404, which is indistinguishable from a server that is too old at the HTTP level (only the response body differs). If operations fail with a 404 against a supported stack version, check this setting.

    Case defaults (name, severity, category, tags, assignees, connector, settings) and the template’s custom fields (inline definitions or $ref entries into the field library, see elasticstack.KibanaCaseFieldDefinition) are declared as YAML in definition_yaml. The connector and settings keys (including settings.syncAlerts) belong inside the YAML; they are not separate resource attributes.

    Every update creates a new template version in Kibana, so edits to definition_yaml that only change whitespace, comments, or mapping-key order are suppressed at plan time and do not trigger an update. Unlike the field definition resource, description and tags are cleared when they are removed from configuration. Destroying the resource soft-deletes all versions of the template; cases already created from it keep their pinned template reference.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as elasticstack from "@pulumi/elasticstack";
    
    // Minimal template: only owner, name and definition_yaml are required. Case
    // defaults (severity, category, tags, assignees, connector, settings) and the
    // custom fields are declared in the YAML. The Cases templates API is Technical
    // Preview, requires Elastic Stack 9.5.2 or later, and is only available when
    // the Kibana setting `xpack.cases.templates.enabled` is true (the default).
    const minimal = new elasticstack.KibanaCaseTemplate("minimal", {
        owner: "securitySolution",
        name: "triage-template",
        definitionYaml: `name: Triage case
    severity: low
    fields:
      - name: ticket_reference
        type: keyword
        label: Ticket reference
        control: INPUT_TEXT
    `,
    });
    // Template with all optional attributes. `tags` preserves order and duplicates.
    // Removing `description` or `tags` from the configuration later clears the
    // stored value (unlike the field definition resource, which preserves it).
    const full = new elasticstack.KibanaCaseTemplate("full", {
        owner: "securitySolution",
        name: "incident-template",
        description: "Defaults for analyst-created incident cases.",
        tags: [
            "incident",
            "tier-1",
        ],
        isEnabled: false,
        definitionYaml: `name: Incident case
    severity: high
    category: incident
    settings:
      syncAlerts: true
    fields:
      - name: customer_tier
        type: keyword
        label: Customer tier
        control: INPUT_TEXT
    `,
    });
    // Template that references a field from the field library by `$ref`
    // (requires Elastic Stack 9.6.0 or later for the field library API).
    const ticket = new elasticstack.KibanaCaseFieldDefinition("ticket", {
        owner: "cases",
        definition: `name: ticket_reference
    type: keyword
    label: Ticket reference
    control: INPUT_TEXT
    `,
    });
    const withRef = new elasticstack.KibanaCaseTemplate("with_ref", {
        owner: "cases",
        name: "ref-template",
        definitionYaml: pulumi.interpolate`name: Case with a library field
    fields:
      - $ref: ${ticket.name}
    `,
    });
    // Template in a non-default Kibana space.
    const inSpace = new elasticstack.KibanaCaseTemplate("in_space", {
        spaceId: "ops",
        owner: "observability",
        name: "ops-template",
        definitionYaml: `name: Ops case
    fields: []
    `,
    });
    
    import pulumi
    import pulumi_elasticstack as elasticstack
    
    # Minimal template: only owner, name and definition_yaml are required. Case
    # defaults (severity, category, tags, assignees, connector, settings) and the
    # custom fields are declared in the YAML. The Cases templates API is Technical
    # Preview, requires Elastic Stack 9.5.2 or later, and is only available when
    # the Kibana setting `xpack.cases.templates.enabled` is true (the default).
    minimal = elasticstack.KibanaCaseTemplate("minimal",
        owner="securitySolution",
        name="triage-template",
        definition_yaml="""name: Triage case
    severity: low
    fields:
      - name: ticket_reference
        type: keyword
        label: Ticket reference
        control: INPUT_TEXT
    """)
    # Template with all optional attributes. `tags` preserves order and duplicates.
    # Removing `description` or `tags` from the configuration later clears the
    # stored value (unlike the field definition resource, which preserves it).
    full = elasticstack.KibanaCaseTemplate("full",
        owner="securitySolution",
        name="incident-template",
        description="Defaults for analyst-created incident cases.",
        tags=[
            "incident",
            "tier-1",
        ],
        is_enabled=False,
        definition_yaml="""name: Incident case
    severity: high
    category: incident
    settings:
      syncAlerts: true
    fields:
      - name: customer_tier
        type: keyword
        label: Customer tier
        control: INPUT_TEXT
    """)
    # Template that references a field from the field library by `$ref`
    # (requires Elastic Stack 9.6.0 or later for the field library API).
    ticket = elasticstack.KibanaCaseFieldDefinition("ticket",
        owner="cases",
        definition="""name: ticket_reference
    type: keyword
    label: Ticket reference
    control: INPUT_TEXT
    """)
    with_ref = elasticstack.KibanaCaseTemplate("with_ref",
        owner="cases",
        name="ref-template",
        definition_yaml=ticket.name.apply(lambda name: f"""name: Case with a library field
    fields:
      - $ref: {name}
    """))
    # Template in a non-default Kibana space.
    in_space = elasticstack.KibanaCaseTemplate("in_space",
        space_id="ops",
        owner="observability",
        name="ops-template",
        definition_yaml="""name: Ops case
    fields: []
    """)
    
    package main
    
    import (
    	"fmt"
    
    	"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 {
    		// Minimal template: only owner, name and definition_yaml are required. Case
    		// defaults (severity, category, tags, assignees, connector, settings) and the
    		// custom fields are declared in the YAML. The Cases templates API is Technical
    		// Preview, requires Elastic Stack 9.5.2 or later, and is only available when
    		// the Kibana setting `xpack.cases.templates.enabled` is true (the default).
    		_, err := elasticstack.NewKibanaCaseTemplate(ctx, "minimal", &elasticstack.KibanaCaseTemplateArgs{
    			Owner: pulumi.String("securitySolution"),
    			Name:  pulumi.String("triage-template"),
    			DefinitionYaml: pulumi.String(`name: Triage case
    severity: low
    fields:
      - name: ticket_reference
        type: keyword
        label: Ticket reference
        control: INPUT_TEXT
    `),
    		})
    		if err != nil {
    			return err
    		}
    		// Template with all optional attributes. `tags` preserves order and duplicates.
    		// Removing `description` or `tags` from the configuration later clears the
    		// stored value (unlike the field definition resource, which preserves it).
    		_, err = elasticstack.NewKibanaCaseTemplate(ctx, "full", &elasticstack.KibanaCaseTemplateArgs{
    			Owner:       pulumi.String("securitySolution"),
    			Name:        pulumi.String("incident-template"),
    			Description: pulumi.String("Defaults for analyst-created incident cases."),
    			Tags: pulumi.StringArray{
    				pulumi.String("incident"),
    				pulumi.String("tier-1"),
    			},
    			IsEnabled: pulumi.Bool(false),
    			DefinitionYaml: pulumi.String(`name: Incident case
    severity: high
    category: incident
    settings:
      syncAlerts: true
    fields:
      - name: customer_tier
        type: keyword
        label: Customer tier
        control: INPUT_TEXT
    `),
    		})
    		if err != nil {
    			return err
    		}
    		// Template that references a field from the field library by `$ref`
    		// (requires Elastic Stack 9.6.0 or later for the field library API).
    		ticket, err := elasticstack.NewKibanaCaseFieldDefinition(ctx, "ticket", &elasticstack.KibanaCaseFieldDefinitionArgs{
    			Owner:      pulumi.String("cases"),
    			Definition: pulumi.String("name: ticket_reference\ntype: keyword\nlabel: Ticket reference\ncontrol: INPUT_TEXT\n"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = elasticstack.NewKibanaCaseTemplate(ctx, "with_ref", &elasticstack.KibanaCaseTemplateArgs{
    			Owner: pulumi.String("cases"),
    			Name:  pulumi.String("ref-template"),
    			DefinitionYaml: ticket.Name.ApplyT(func(name string) (string, error) {
    				return fmt.Sprintf("name: Case with a library field\nfields:\n  - $ref: %v\n", name), nil
    			}).(pulumi.StringOutput),
    		})
    		if err != nil {
    			return err
    		}
    		// Template in a non-default Kibana space.
    		_, err = elasticstack.NewKibanaCaseTemplate(ctx, "in_space", &elasticstack.KibanaCaseTemplateArgs{
    			SpaceId:        pulumi.String("ops"),
    			Owner:          pulumi.String("observability"),
    			Name:           pulumi.String("ops-template"),
    			DefinitionYaml: pulumi.String("name: Ops case\nfields: []\n"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Elasticstack = Pulumi.Elasticstack;
    
    return await Deployment.RunAsync(() => 
    {
        // Minimal template: only owner, name and definition_yaml are required. Case
        // defaults (severity, category, tags, assignees, connector, settings) and the
        // custom fields are declared in the YAML. The Cases templates API is Technical
        // Preview, requires Elastic Stack 9.5.2 or later, and is only available when
        // the Kibana setting `xpack.cases.templates.enabled` is true (the default).
        var minimal = new Elasticstack.KibanaCaseTemplate("minimal", new()
        {
            Owner = "securitySolution",
            Name = "triage-template",
            DefinitionYaml = @"name: Triage case
    severity: low
    fields:
      - name: ticket_reference
        type: keyword
        label: Ticket reference
        control: INPUT_TEXT
    ",
        });
    
        // Template with all optional attributes. `tags` preserves order and duplicates.
        // Removing `description` or `tags` from the configuration later clears the
        // stored value (unlike the field definition resource, which preserves it).
        var full = new Elasticstack.KibanaCaseTemplate("full", new()
        {
            Owner = "securitySolution",
            Name = "incident-template",
            Description = "Defaults for analyst-created incident cases.",
            Tags = new[]
            {
                "incident",
                "tier-1",
            },
            IsEnabled = false,
            DefinitionYaml = @"name: Incident case
    severity: high
    category: incident
    settings:
      syncAlerts: true
    fields:
      - name: customer_tier
        type: keyword
        label: Customer tier
        control: INPUT_TEXT
    ",
        });
    
        // Template that references a field from the field library by `$ref`
        // (requires Elastic Stack 9.6.0 or later for the field library API).
        var ticket = new Elasticstack.KibanaCaseFieldDefinition("ticket", new()
        {
            Owner = "cases",
            Definition = @"name: ticket_reference
    type: keyword
    label: Ticket reference
    control: INPUT_TEXT
    ",
        });
    
        var withRef = new Elasticstack.KibanaCaseTemplate("with_ref", new()
        {
            Owner = "cases",
            Name = "ref-template",
            DefinitionYaml = ticket.Name.Apply(name => @$"name: Case with a library field
    fields:
      - $ref: {name}
    "),
        });
    
        // Template in a non-default Kibana space.
        var inSpace = new Elasticstack.KibanaCaseTemplate("in_space", new()
        {
            SpaceId = "ops",
            Owner = "observability",
            Name = "ops-template",
            DefinitionYaml = @"name: Ops case
    fields: []
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.elasticstack.KibanaCaseTemplate;
    import com.pulumi.elasticstack.KibanaCaseTemplateArgs;
    import com.pulumi.elasticstack.KibanaCaseFieldDefinition;
    import com.pulumi.elasticstack.KibanaCaseFieldDefinitionArgs;
    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) {
            // Minimal template: only owner, name and definition_yaml are required. Case
            // defaults (severity, category, tags, assignees, connector, settings) and the
            // custom fields are declared in the YAML. The Cases templates API is Technical
            // Preview, requires Elastic Stack 9.5.2 or later, and is only available when
            // the Kibana setting `xpack.cases.templates.enabled` is true (the default).
            var minimal = new KibanaCaseTemplate("minimal", KibanaCaseTemplateArgs.builder()
                .owner("securitySolution")
                .name("triage-template")
                .definitionYaml("""
    name: Triage case
    severity: low
    fields:
      - name: ticket_reference
        type: keyword
        label: Ticket reference
        control: INPUT_TEXT
                """)
                .build());
    
            // Template with all optional attributes. `tags` preserves order and duplicates.
            // Removing `description` or `tags` from the configuration later clears the
            // stored value (unlike the field definition resource, which preserves it).
            var full = new KibanaCaseTemplate("full", KibanaCaseTemplateArgs.builder()
                .owner("securitySolution")
                .name("incident-template")
                .description("Defaults for analyst-created incident cases.")
                .tags(            
                    "incident",
                    "tier-1")
                .isEnabled(false)
                .definitionYaml("""
    name: Incident case
    severity: high
    category: incident
    settings:
      syncAlerts: true
    fields:
      - name: customer_tier
        type: keyword
        label: Customer tier
        control: INPUT_TEXT
                """)
                .build());
    
            // Template that references a field from the field library by `$ref`
            // (requires Elastic Stack 9.6.0 or later for the field library API).
            var ticket = new KibanaCaseFieldDefinition("ticket", KibanaCaseFieldDefinitionArgs.builder()
                .owner("cases")
                .definition("""
    name: ticket_reference
    type: keyword
    label: Ticket reference
    control: INPUT_TEXT
                """)
                .build());
    
            var withRef = new KibanaCaseTemplate("withRef", KibanaCaseTemplateArgs.builder()
                .owner("cases")
                .name("ref-template")
                .definitionYaml(ticket.name().applyValue(_name -> """
    name: Case with a library field
    fields:
      - $ref: %s
    ", _name)))
                .build());
    
            // Template in a non-default Kibana space.
            var inSpace = new KibanaCaseTemplate("inSpace", KibanaCaseTemplateArgs.builder()
                .spaceId("ops")
                .owner("observability")
                .name("ops-template")
                .definitionYaml("""
    name: Ops case
    fields: []
                """)
                .build());
    
        }
    }
    
    resources:
      # Minimal template: only owner, name and definition_yaml are required. Case
      # defaults (severity, category, tags, assignees, connector, settings) and the
      # custom fields are declared in the YAML. The Cases templates API is Technical
      # Preview, requires Elastic Stack 9.5.2 or later, and is only available when
      # the Kibana setting `xpack.cases.templates.enabled` is true (the default).
      minimal:
        type: elasticstack:KibanaCaseTemplate
        properties:
          owner: securitySolution
          name: triage-template
          definitionYaml: |
            name: Triage case
            severity: low
            fields:
              - name: ticket_reference
                type: keyword
                label: Ticket reference
                control: INPUT_TEXT
      # Template with all optional attributes. `tags` preserves order and duplicates.
      # Removing `description` or `tags` from the configuration later clears the
      # stored value (unlike the field definition resource, which preserves it).
      full:
        type: elasticstack:KibanaCaseTemplate
        properties:
          owner: securitySolution
          name: incident-template
          description: Defaults for analyst-created incident cases.
          tags:
            - incident
            - tier-1
          isEnabled: false
          definitionYaml: |
            name: Incident case
            severity: high
            category: incident
            settings:
              syncAlerts: true
            fields:
              - name: customer_tier
                type: keyword
                label: Customer tier
                control: INPUT_TEXT
      # Template that references a field from the field library by `$ref`
      # (requires Elastic Stack 9.6.0 or later for the field library API).
      ticket:
        type: elasticstack:KibanaCaseFieldDefinition
        properties:
          owner: cases
          definition: |
            name: ticket_reference
            type: keyword
            label: Ticket reference
            control: INPUT_TEXT
      withRef:
        type: elasticstack:KibanaCaseTemplate
        name: with_ref
        properties:
          owner: cases
          name: ref-template
          definitionYaml: |
            name: Case with a library field
            fields:
              - $ref: ${ticket.name}
      # Template in a non-default Kibana space.
      inSpace:
        type: elasticstack:KibanaCaseTemplate
        name: in_space
        properties:
          spaceId: ops
          owner: observability
          name: ops-template
          definitionYaml: |
            name: Ops case
            fields: []
    
    Example coming soon!
    

    Create KibanaCaseTemplate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new KibanaCaseTemplate(name: string, args: KibanaCaseTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def KibanaCaseTemplate(resource_name: str,
                           args: KibanaCaseTemplateArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def KibanaCaseTemplate(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           definition_yaml: Optional[str] = None,
                           owner: Optional[str] = None,
                           description: Optional[str] = None,
                           is_enabled: Optional[bool] = None,
                           kibana_connections: Optional[Sequence[KibanaCaseTemplateKibanaConnectionArgs]] = None,
                           name: Optional[str] = None,
                           space_id: Optional[str] = None,
                           tags: Optional[Sequence[str]] = None,
                           timeouts: Optional[KibanaCaseTemplateTimeoutsArgs] = None)
    func NewKibanaCaseTemplate(ctx *Context, name string, args KibanaCaseTemplateArgs, opts ...ResourceOption) (*KibanaCaseTemplate, error)
    public KibanaCaseTemplate(string name, KibanaCaseTemplateArgs args, CustomResourceOptions? opts = null)
    public KibanaCaseTemplate(String name, KibanaCaseTemplateArgs args)
    public KibanaCaseTemplate(String name, KibanaCaseTemplateArgs args, CustomResourceOptions options)
    
    type: elasticstack:KibanaCaseTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "elasticstack_kibana_case_template" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args KibanaCaseTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args KibanaCaseTemplateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args KibanaCaseTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KibanaCaseTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KibanaCaseTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var kibanaCaseTemplateResource = new Elasticstack.KibanaCaseTemplate("kibanaCaseTemplateResource", new()
    {
        DefinitionYaml = "string",
        Owner = "string",
        Description = "string",
        IsEnabled = false,
        KibanaConnections = new[]
        {
            new Elasticstack.Inputs.KibanaCaseTemplateKibanaConnectionArgs
            {
                ApiKey = "string",
                BearerToken = "string",
                CaCerts = new[]
                {
                    "string",
                },
                Endpoints = new[]
                {
                    "string",
                },
                Headers = 
                {
                    { "string", "string" },
                },
                Insecure = false,
                Password = "string",
                Username = "string",
            },
        },
        Name = "string",
        SpaceId = "string",
        Tags = new[]
        {
            "string",
        },
        Timeouts = new Elasticstack.Inputs.KibanaCaseTemplateTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
    });
    
    example, err := elasticstack.NewKibanaCaseTemplate(ctx, "kibanaCaseTemplateResource", &elasticstack.KibanaCaseTemplateArgs{
    	DefinitionYaml: pulumi.String("string"),
    	Owner:          pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	IsEnabled:      pulumi.Bool(false),
    	KibanaConnections: elasticstack.KibanaCaseTemplateKibanaConnectionArray{
    		&elasticstack.KibanaCaseTemplateKibanaConnectionArgs{
    			ApiKey:      pulumi.String("string"),
    			BearerToken: pulumi.String("string"),
    			CaCerts: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Endpoints: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Headers: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			Insecure: pulumi.Bool(false),
    			Password: pulumi.String("string"),
    			Username: pulumi.String("string"),
    		},
    	},
    	Name:    pulumi.String("string"),
    	SpaceId: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &elasticstack.KibanaCaseTemplateTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    resource "elasticstack_kibana_case_template" "kibanaCaseTemplateResource" {
      lifecycle {
        create_before_destroy = true
      }
      definition_yaml = "string"
      owner           = "string"
      description     = "string"
      is_enabled      = false
      kibana_connections {
        api_key      = "string"
        bearer_token = "string"
        ca_certs     = ["string"]
        endpoints    = ["string"]
        headers = {
          "string" = "string"
        }
        insecure = false
        password = "string"
        username = "string"
      }
      name     = "string"
      space_id = "string"
      tags     = ["string"]
      _ {
        timeouts = {
          create = "string"
          delete = "string"
          read   = "string"
          update = "string"
        }
      }
    }
    
    var kibanaCaseTemplateResource = new KibanaCaseTemplate("kibanaCaseTemplateResource", KibanaCaseTemplateArgs.builder()
        .definitionYaml("string")
        .owner("string")
        .description("string")
        .isEnabled(false)
        .kibanaConnections(KibanaCaseTemplateKibanaConnectionArgs.builder()
            .apiKey("string")
            .bearerToken("string")
            .caCerts("string")
            .endpoints("string")
            .headers(Map.of("string", "string"))
            .insecure(false)
            .password("string")
            .username("string")
            .build())
        .name("string")
        .spaceId("string")
        .tags("string")
        .timeouts(KibanaCaseTemplateTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .build());
    
    kibana_case_template_resource = elasticstack.KibanaCaseTemplate("kibanaCaseTemplateResource",
        definition_yaml="string",
        owner="string",
        description="string",
        is_enabled=False,
        kibana_connections=[{
            "api_key": "string",
            "bearer_token": "string",
            "ca_certs": ["string"],
            "endpoints": ["string"],
            "headers": {
                "string": "string",
            },
            "insecure": False,
            "password": "string",
            "username": "string",
        }],
        name="string",
        space_id="string",
        tags=["string"],
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        })
    
    const kibanaCaseTemplateResource = new elasticstack.KibanaCaseTemplate("kibanaCaseTemplateResource", {
        definitionYaml: "string",
        owner: "string",
        description: "string",
        isEnabled: false,
        kibanaConnections: [{
            apiKey: "string",
            bearerToken: "string",
            caCerts: ["string"],
            endpoints: ["string"],
            headers: {
                string: "string",
            },
            insecure: false,
            password: "string",
            username: "string",
        }],
        name: "string",
        spaceId: "string",
        tags: ["string"],
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
    });
    
    type: elasticstack:KibanaCaseTemplate
    properties:
        definitionYaml: string
        description: string
        isEnabled: false
        kibanaConnections:
            - apiKey: string
              bearerToken: string
              caCerts:
                - string
              endpoints:
                - string
              headers:
                string: string
              insecure: false
              password: string
              username: string
        name: string
        owner: string
        spaceId: string
        tags:
            - string
        timeouts:
            create: string
            delete: string
            read: string
            update: string
    

    KibanaCaseTemplate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The KibanaCaseTemplate resource accepts the following input properties:

    DefinitionYaml string
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    Owner string
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    Description string
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    IsEnabled bool
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    KibanaConnections List<KibanaCaseTemplateKibanaConnection>
    Kibana connection configuration block.
    Name string
    The template name, 1-50 characters, unique per owner (case-insensitive).
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    Tags List<string>
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    Timeouts KibanaCaseTemplateTimeouts
    DefinitionYaml string
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    Owner string
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    Description string
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    IsEnabled bool
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    KibanaConnections []KibanaCaseTemplateKibanaConnectionArgs
    Kibana connection configuration block.
    Name string
    The template name, 1-50 characters, unique per owner (case-insensitive).
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    Tags []string
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    Timeouts KibanaCaseTemplateTimeoutsArgs
    definition_yaml string
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    owner string
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    description string
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    is_enabled bool
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    kibana_connections list(object)
    Kibana connection configuration block.
    name string
    The template name, 1-50 characters, unique per owner (case-insensitive).
    space_id string
    An identifier for the space. If space_id is not provided, the default space is used.
    tags list(string)
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    timeouts object
    definitionYaml String
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    owner String
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    description String
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    isEnabled Boolean
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    kibanaConnections List<KibanaCaseTemplateKibanaConnection>
    Kibana connection configuration block.
    name String
    The template name, 1-50 characters, unique per owner (case-insensitive).
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    tags List<String>
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    timeouts KibanaCaseTemplateTimeouts
    definitionYaml string
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    owner string
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    description string
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    isEnabled boolean
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    kibanaConnections KibanaCaseTemplateKibanaConnection[]
    Kibana connection configuration block.
    name string
    The template name, 1-50 characters, unique per owner (case-insensitive).
    spaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    tags string[]
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    timeouts KibanaCaseTemplateTimeouts
    definition_yaml str
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    owner str
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    description str
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    is_enabled bool
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    kibana_connections Sequence[KibanaCaseTemplateKibanaConnectionArgs]
    Kibana connection configuration block.
    name str
    The template name, 1-50 characters, unique per owner (case-insensitive).
    space_id str
    An identifier for the space. If space_id is not provided, the default space is used.
    tags Sequence[str]
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    timeouts KibanaCaseTemplateTimeoutsArgs
    definitionYaml String
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    owner String
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    description String
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    isEnabled Boolean
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    kibanaConnections List<Property Map>
    Kibana connection configuration block.
    name String
    The template name, 1-50 characters, unique per owner (case-insensitive).
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    tags List<String>
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the KibanaCaseTemplate resource produces the following output properties:

    FieldCount double
    The number of fields defined in the template, when reported by the API.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Whether this is the default template for its owner, when reported by the API.
    TemplateId string
    The server-assigned ID of the template, stable across versions.
    TemplateVersion double
    The current version of the template. Increments on every successful update.
    UsageCount double
    The number of times the template has been used to create a case, when reported by the API.
    FieldCount float64
    The number of fields defined in the template, when reported by the API.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Whether this is the default template for its owner, when reported by the API.
    TemplateId string
    The server-assigned ID of the template, stable across versions.
    TemplateVersion float64
    The current version of the template. Increments on every successful update.
    UsageCount float64
    The number of times the template has been used to create a case, when reported by the API.
    field_count number
    The number of fields defined in the template, when reported by the API.
    id string
    The provider-assigned unique ID for this managed resource.
    is_default bool
    Whether this is the default template for its owner, when reported by the API.
    template_id string
    The server-assigned ID of the template, stable across versions.
    template_version number
    The current version of the template. Increments on every successful update.
    usage_count number
    The number of times the template has been used to create a case, when reported by the API.
    fieldCount Double
    The number of fields defined in the template, when reported by the API.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Whether this is the default template for its owner, when reported by the API.
    templateId String
    The server-assigned ID of the template, stable across versions.
    templateVersion Double
    The current version of the template. Increments on every successful update.
    usageCount Double
    The number of times the template has been used to create a case, when reported by the API.
    fieldCount number
    The number of fields defined in the template, when reported by the API.
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    Whether this is the default template for its owner, when reported by the API.
    templateId string
    The server-assigned ID of the template, stable across versions.
    templateVersion number
    The current version of the template. Increments on every successful update.
    usageCount number
    The number of times the template has been used to create a case, when reported by the API.
    field_count float
    The number of fields defined in the template, when reported by the API.
    id str
    The provider-assigned unique ID for this managed resource.
    is_default bool
    Whether this is the default template for its owner, when reported by the API.
    template_id str
    The server-assigned ID of the template, stable across versions.
    template_version float
    The current version of the template. Increments on every successful update.
    usage_count float
    The number of times the template has been used to create a case, when reported by the API.
    fieldCount Number
    The number of fields defined in the template, when reported by the API.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Whether this is the default template for its owner, when reported by the API.
    templateId String
    The server-assigned ID of the template, stable across versions.
    templateVersion Number
    The current version of the template. Increments on every successful update.
    usageCount Number
    The number of times the template has been used to create a case, when reported by the API.

    Look up Existing KibanaCaseTemplate Resource

    Get an existing KibanaCaseTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: KibanaCaseTemplateState, opts?: CustomResourceOptions): KibanaCaseTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            definition_yaml: Optional[str] = None,
            description: Optional[str] = None,
            field_count: Optional[float] = None,
            is_default: Optional[bool] = None,
            is_enabled: Optional[bool] = None,
            kibana_connections: Optional[Sequence[KibanaCaseTemplateKibanaConnectionArgs]] = None,
            name: Optional[str] = None,
            owner: Optional[str] = None,
            space_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            template_id: Optional[str] = None,
            template_version: Optional[float] = None,
            timeouts: Optional[KibanaCaseTemplateTimeoutsArgs] = None,
            usage_count: Optional[float] = None) -> KibanaCaseTemplate
    func GetKibanaCaseTemplate(ctx *Context, name string, id IDInput, state *KibanaCaseTemplateState, opts ...ResourceOption) (*KibanaCaseTemplate, error)
    public static KibanaCaseTemplate Get(string name, Input<string> id, KibanaCaseTemplateState? state, CustomResourceOptions? opts = null)
    public static KibanaCaseTemplate get(String name, Output<String> id, KibanaCaseTemplateState state, CustomResourceOptions options)
    resources:  existingKibanaCaseTemplate:    type: elasticstack:KibanaCaseTemplate    get:      id: ${id}
    import {
      to = elasticstack_kibana_case_template.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state KibanaCaseTemplateState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state KibanaCaseTemplateState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state KibanaCaseTemplateState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state KibanaCaseTemplateState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    DefinitionYaml string
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    Description string
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    FieldCount double
    The number of fields defined in the template, when reported by the API.
    IsDefault bool
    Whether this is the default template for its owner, when reported by the API.
    IsEnabled bool
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    KibanaConnections List<KibanaCaseTemplateKibanaConnection>
    Kibana connection configuration block.
    Name string
    The template name, 1-50 characters, unique per owner (case-insensitive).
    Owner string
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    Tags List<string>
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    TemplateId string
    The server-assigned ID of the template, stable across versions.
    TemplateVersion double
    The current version of the template. Increments on every successful update.
    Timeouts KibanaCaseTemplateTimeouts
    UsageCount double
    The number of times the template has been used to create a case, when reported by the API.
    DefinitionYaml string
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    Description string
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    FieldCount float64
    The number of fields defined in the template, when reported by the API.
    IsDefault bool
    Whether this is the default template for its owner, when reported by the API.
    IsEnabled bool
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    KibanaConnections []KibanaCaseTemplateKibanaConnectionArgs
    Kibana connection configuration block.
    Name string
    The template name, 1-50 characters, unique per owner (case-insensitive).
    Owner string
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    Tags []string
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    TemplateId string
    The server-assigned ID of the template, stable across versions.
    TemplateVersion float64
    The current version of the template. Increments on every successful update.
    Timeouts KibanaCaseTemplateTimeoutsArgs
    UsageCount float64
    The number of times the template has been used to create a case, when reported by the API.
    definition_yaml string
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    description string
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    field_count number
    The number of fields defined in the template, when reported by the API.
    is_default bool
    Whether this is the default template for its owner, when reported by the API.
    is_enabled bool
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    kibana_connections list(object)
    Kibana connection configuration block.
    name string
    The template name, 1-50 characters, unique per owner (case-insensitive).
    owner string
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    space_id string
    An identifier for the space. If space_id is not provided, the default space is used.
    tags list(string)
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    template_id string
    The server-assigned ID of the template, stable across versions.
    template_version number
    The current version of the template. Increments on every successful update.
    timeouts object
    usage_count number
    The number of times the template has been used to create a case, when reported by the API.
    definitionYaml String
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    description String
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    fieldCount Double
    The number of fields defined in the template, when reported by the API.
    isDefault Boolean
    Whether this is the default template for its owner, when reported by the API.
    isEnabled Boolean
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    kibanaConnections List<KibanaCaseTemplateKibanaConnection>
    Kibana connection configuration block.
    name String
    The template name, 1-50 characters, unique per owner (case-insensitive).
    owner String
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    tags List<String>
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    templateId String
    The server-assigned ID of the template, stable across versions.
    templateVersion Double
    The current version of the template. Increments on every successful update.
    timeouts KibanaCaseTemplateTimeouts
    usageCount Double
    The number of times the template has been used to create a case, when reported by the API.
    definitionYaml string
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    description string
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    fieldCount number
    The number of fields defined in the template, when reported by the API.
    isDefault boolean
    Whether this is the default template for its owner, when reported by the API.
    isEnabled boolean
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    kibanaConnections KibanaCaseTemplateKibanaConnection[]
    Kibana connection configuration block.
    name string
    The template name, 1-50 characters, unique per owner (case-insensitive).
    owner string
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    spaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    tags string[]
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    templateId string
    The server-assigned ID of the template, stable across versions.
    templateVersion number
    The current version of the template. Increments on every successful update.
    timeouts KibanaCaseTemplateTimeouts
    usageCount number
    The number of times the template has been used to create a case, when reported by the API.
    definition_yaml str
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    description str
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    field_count float
    The number of fields defined in the template, when reported by the API.
    is_default bool
    Whether this is the default template for its owner, when reported by the API.
    is_enabled bool
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    kibana_connections Sequence[KibanaCaseTemplateKibanaConnectionArgs]
    Kibana connection configuration block.
    name str
    The template name, 1-50 characters, unique per owner (case-insensitive).
    owner str
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    space_id str
    An identifier for the space. If space_id is not provided, the default space is used.
    tags Sequence[str]
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    template_id str
    The server-assigned ID of the template, stable across versions.
    template_version float
    The current version of the template. Increments on every successful update.
    timeouts KibanaCaseTemplateTimeoutsArgs
    usage_count float
    The number of times the template has been used to create a case, when reported by the API.
    definitionYaml String
    The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a fields array of inline field definitions and/or $ref entries into the field library. Edits that only change whitespace, comments, or mapping-key order are ignored at plan time. Limited to 30000 characters.
    description String
    Optional description of the template, at most 1000 characters. Removing it from configuration clears the stored value; an empty string is kept as an empty string.
    fieldCount Number
    The number of fields defined in the template, when reported by the API.
    isDefault Boolean
    Whether this is the default template for its owner, when reported by the API.
    isEnabled Boolean
    Whether the template is enabled. Disabled templates are hidden from the case creation flow but remain manageable. The server default of true applies only on create; omitting the attribute on a later update keeps the current value, so set it to true explicitly to re-enable a disabled template.
    kibanaConnections List<Property Map>
    Kibana connection configuration block.
    name String
    The template name, 1-50 characters, unique per owner (case-insensitive).
    owner String
    The solution that owns the template: cases (Stack), securitySolution, or observability. Changing this forces a new resource.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    tags List<String>
    Optional tags (at most 200, each between 1 and 256 characters). Order and duplicates are preserved. Removing the attribute from configuration clears the stored tags; an empty list is kept as an empty list.
    templateId String
    The server-assigned ID of the template, stable across versions.
    templateVersion Number
    The current version of the template. Increments on every successful update.
    timeouts Property Map
    usageCount Number
    The number of times the template has been used to create a case, when reported by the API.

    Supporting Types

    KibanaCaseTemplateKibanaConnection, KibanaCaseTemplateKibanaConnectionArgs

    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>
    Headers Dictionary<string, string>
    A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
    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
    Headers map[string]string
    A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
    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)
    headers map(string)
    A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
    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>
    headers Map<String,String>
    A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
    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[]
    headers {[key: string]: string}
    A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
    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]
    headers Mapping[str, str]
    A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
    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>
    headers Map<String>
    A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
    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.

    KibanaCaseTemplateTimeouts, KibanaCaseTemplateTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    The pulumi import command can be used, for example:

    $ pulumi import elasticstack:index/kibanaCaseTemplate:KibanaCaseTemplate minimal <space_id>/<template_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    elasticstack elastic/terraform-provider-elasticstack
    License
    Notes
    This Pulumi package is based on the elasticstack Terraform Provider.
    elasticstack
    Viewing docs for elasticstack 0.17.0
    published on Tuesday, Nov 10, 2026 by elastic

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial