1. Packages
  2. Elasticstack Provider
  3. API Docs
  4. getKibanaExportSavedObjects
elasticstack 0.12.1 published on Thursday, Oct 23, 2025 by elastic

elasticstack.getKibanaExportSavedObjects

Get Started
elasticstack logo
elasticstack 0.12.1 published on Thursday, Oct 23, 2025 by elastic

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as elasticstack from "@pulumi/elasticstack";
    
    const example = elasticstack.getKibanaExportSavedObjects({
        excludeExportDetails: true,
        includeReferencesDeep: true,
        objects: [{
            type: "dashboard",
            id: "7c5f07ee-7e41-4d50-ae1f-dfe54cc87209",
        }],
    });
    export const savedObjects = example.then(example => example.exportedObjects);
    
    import pulumi
    import pulumi_elasticstack as elasticstack
    
    example = elasticstack.get_kibana_export_saved_objects(exclude_export_details=True,
        include_references_deep=True,
        objects=[{
            "type": "dashboard",
            "id": "7c5f07ee-7e41-4d50-ae1f-dfe54cc87209",
        }])
    pulumi.export("savedObjects", example.exported_objects)
    
    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 {
    		example, err := elasticstack.GetKibanaExportSavedObjects(ctx, &elasticstack.GetKibanaExportSavedObjectsArgs{
    			ExcludeExportDetails:  pulumi.BoolRef(true),
    			IncludeReferencesDeep: pulumi.BoolRef(true),
    			Objects: []elasticstack.GetKibanaExportSavedObjectsObject{
    				{
    					Type: "dashboard",
    					Id:   "7c5f07ee-7e41-4d50-ae1f-dfe54cc87209",
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("savedObjects", example.ExportedObjects)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Elasticstack = Pulumi.Elasticstack;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Elasticstack.GetKibanaExportSavedObjects.Invoke(new()
        {
            ExcludeExportDetails = true,
            IncludeReferencesDeep = true,
            Objects = new[]
            {
                new Elasticstack.Inputs.GetKibanaExportSavedObjectsObjectInputArgs
                {
                    Type = "dashboard",
                    Id = "7c5f07ee-7e41-4d50-ae1f-dfe54cc87209",
                },
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["savedObjects"] = example.Apply(getKibanaExportSavedObjectsResult => getKibanaExportSavedObjectsResult.ExportedObjects),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.elasticstack.ElasticstackFunctions;
    import com.pulumi.elasticstack.inputs.GetKibanaExportSavedObjectsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = ElasticstackFunctions.getKibanaExportSavedObjects(GetKibanaExportSavedObjectsArgs.builder()
                .excludeExportDetails(true)
                .includeReferencesDeep(true)
                .objects(GetKibanaExportSavedObjectsObjectArgs.builder()
                    .type("dashboard")
                    .id("7c5f07ee-7e41-4d50-ae1f-dfe54cc87209")
                    .build())
                .build());
    
            ctx.export("savedObjects", example.applyValue(getKibanaExportSavedObjectsResult -> getKibanaExportSavedObjectsResult.exportedObjects()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: elasticstack:getKibanaExportSavedObjects
          arguments:
            excludeExportDetails: true
            includeReferencesDeep: true
            objects:
              - type: dashboard
                id: 7c5f07ee-7e41-4d50-ae1f-dfe54cc87209
    outputs:
      savedObjects: ${example.exportedObjects}
    

    Using getKibanaExportSavedObjects

    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 getKibanaExportSavedObjects(args: GetKibanaExportSavedObjectsArgs, opts?: InvokeOptions): Promise<GetKibanaExportSavedObjectsResult>
    function getKibanaExportSavedObjectsOutput(args: GetKibanaExportSavedObjectsOutputArgs, opts?: InvokeOptions): Output<GetKibanaExportSavedObjectsResult>
    def get_kibana_export_saved_objects(exclude_export_details: Optional[bool] = None,
                                        include_references_deep: Optional[bool] = None,
                                        objects: Optional[Sequence[GetKibanaExportSavedObjectsObject]] = None,
                                        space_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetKibanaExportSavedObjectsResult
    def get_kibana_export_saved_objects_output(exclude_export_details: Optional[pulumi.Input[bool]] = None,
                                        include_references_deep: Optional[pulumi.Input[bool]] = None,
                                        objects: Optional[pulumi.Input[Sequence[pulumi.Input[GetKibanaExportSavedObjectsObjectArgs]]]] = None,
                                        space_id: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetKibanaExportSavedObjectsResult]
    func GetKibanaExportSavedObjects(ctx *Context, args *GetKibanaExportSavedObjectsArgs, opts ...InvokeOption) (*GetKibanaExportSavedObjectsResult, error)
    func GetKibanaExportSavedObjectsOutput(ctx *Context, args *GetKibanaExportSavedObjectsOutputArgs, opts ...InvokeOption) GetKibanaExportSavedObjectsResultOutput

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

    public static class GetKibanaExportSavedObjects 
    {
        public static Task<GetKibanaExportSavedObjectsResult> InvokeAsync(GetKibanaExportSavedObjectsArgs args, InvokeOptions? opts = null)
        public static Output<GetKibanaExportSavedObjectsResult> Invoke(GetKibanaExportSavedObjectsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKibanaExportSavedObjectsResult> getKibanaExportSavedObjects(GetKibanaExportSavedObjectsArgs args, InvokeOptions options)
    public static Output<GetKibanaExportSavedObjectsResult> getKibanaExportSavedObjects(GetKibanaExportSavedObjectsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: elasticstack:index/getKibanaExportSavedObjects:getKibanaExportSavedObjects
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Objects List<GetKibanaExportSavedObjectsObject>
    List of objects to export.
    ExcludeExportDetails bool
    Do not add export details. Defaults to true.
    IncludeReferencesDeep bool
    Include references to other saved objects recursively. Defaults to true.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    Objects []GetKibanaExportSavedObjectsObject
    List of objects to export.
    ExcludeExportDetails bool
    Do not add export details. Defaults to true.
    IncludeReferencesDeep bool
    Include references to other saved objects recursively. Defaults to true.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    objects List<GetKibanaExportSavedObjectsObject>
    List of objects to export.
    excludeExportDetails Boolean
    Do not add export details. Defaults to true.
    includeReferencesDeep Boolean
    Include references to other saved objects recursively. Defaults to true.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    objects GetKibanaExportSavedObjectsObject[]
    List of objects to export.
    excludeExportDetails boolean
    Do not add export details. Defaults to true.
    includeReferencesDeep boolean
    Include references to other saved objects recursively. Defaults to true.
    spaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    objects Sequence[GetKibanaExportSavedObjectsObject]
    List of objects to export.
    exclude_export_details bool
    Do not add export details. Defaults to true.
    include_references_deep bool
    Include references to other saved objects recursively. Defaults to true.
    space_id str
    An identifier for the space. If space_id is not provided, the default space is used.
    objects List<Property Map>
    List of objects to export.
    excludeExportDetails Boolean
    Do not add export details. Defaults to true.
    includeReferencesDeep Boolean
    Include references to other saved objects recursively. Defaults to true.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.

    getKibanaExportSavedObjects Result

    The following output properties are available:

    ExportedObjects string
    The exported objects in NDJSON format.
    Id string
    Generated ID for the export.
    Objects List<GetKibanaExportSavedObjectsObject>
    List of objects to export.
    ExcludeExportDetails bool
    Do not add export details. Defaults to true.
    IncludeReferencesDeep bool
    Include references to other saved objects recursively. Defaults to true.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    ExportedObjects string
    The exported objects in NDJSON format.
    Id string
    Generated ID for the export.
    Objects []GetKibanaExportSavedObjectsObject
    List of objects to export.
    ExcludeExportDetails bool
    Do not add export details. Defaults to true.
    IncludeReferencesDeep bool
    Include references to other saved objects recursively. Defaults to true.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    exportedObjects String
    The exported objects in NDJSON format.
    id String
    Generated ID for the export.
    objects List<GetKibanaExportSavedObjectsObject>
    List of objects to export.
    excludeExportDetails Boolean
    Do not add export details. Defaults to true.
    includeReferencesDeep Boolean
    Include references to other saved objects recursively. Defaults to true.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    exportedObjects string
    The exported objects in NDJSON format.
    id string
    Generated ID for the export.
    objects GetKibanaExportSavedObjectsObject[]
    List of objects to export.
    excludeExportDetails boolean
    Do not add export details. Defaults to true.
    includeReferencesDeep boolean
    Include references to other saved objects recursively. Defaults to true.
    spaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    exported_objects str
    The exported objects in NDJSON format.
    id str
    Generated ID for the export.
    objects Sequence[GetKibanaExportSavedObjectsObject]
    List of objects to export.
    exclude_export_details bool
    Do not add export details. Defaults to true.
    include_references_deep bool
    Include references to other saved objects recursively. Defaults to true.
    space_id str
    An identifier for the space. If space_id is not provided, the default space is used.
    exportedObjects String
    The exported objects in NDJSON format.
    id String
    Generated ID for the export.
    objects List<Property Map>
    List of objects to export.
    excludeExportDetails Boolean
    Do not add export details. Defaults to true.
    includeReferencesDeep Boolean
    Include references to other saved objects recursively. Defaults to true.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.

    Supporting Types

    GetKibanaExportSavedObjectsObject

    Id string
    The ID of the saved object.
    Type string
    The type of the saved object.
    Id string
    The ID of the saved object.
    Type string
    The type of the saved object.
    id String
    The ID of the saved object.
    type String
    The type of the saved object.
    id string
    The ID of the saved object.
    type string
    The type of the saved object.
    id str
    The ID of the saved object.
    type str
    The type of the saved object.
    id String
    The ID of the saved object.
    type String
    The type of the saved object.

    Package Details

    Repository
    elasticstack elastic/terraform-provider-elasticstack
    License
    Notes
    This Pulumi package is based on the elasticstack Terraform Provider.
    elasticstack logo
    elasticstack 0.12.1 published on Thursday, Oct 23, 2025 by elastic
      Meet Neo: Your AI Platform Teammate