Viewing docs for elasticstack 0.14.3
published on Tuesday, Mar 3, 2026 by elastic
published on Tuesday, Mar 3, 2026 by elastic
Viewing docs for elasticstack 0.14.3
published on Tuesday, Mar 3, 2026 by elastic
published on Tuesday, Mar 3, 2026 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.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 dictionaryThe following arguments are supported:
- Objects
List<Get
Kibana Export Saved Objects Object> - List of objects to export.
- Exclude
Export boolDetails - Do not add export details. Defaults to true.
- Include
References boolDeep - Include references to other saved objects recursively. Defaults to true.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Objects
[]Get
Kibana Export Saved Objects Object - List of objects to export.
- Exclude
Export boolDetails - Do not add export details. Defaults to true.
- Include
References boolDeep - Include references to other saved objects recursively. Defaults to true.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- objects
List<Get
Kibana Export Saved Objects Object> - List of objects to export.
- exclude
Export BooleanDetails - Do not add export details. Defaults to true.
- include
References BooleanDeep - Include references to other saved objects recursively. Defaults to true.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- objects
Get
Kibana Export Saved Objects Object[] - List of objects to export.
- exclude
Export booleanDetails - Do not add export details. Defaults to true.
- include
References booleanDeep - Include references to other saved objects recursively. Defaults to true.
- space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- objects
Sequence[Get
Kibana Export Saved Objects Object] - List of objects to export.
- exclude_
export_ booldetails - Do not add export details. Defaults to true.
- include_
references_ booldeep - 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.
- exclude
Export BooleanDetails - Do not add export details. Defaults to true.
- include
References BooleanDeep - Include references to other saved objects recursively. Defaults to true.
- space
Id 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:
- Exported
Objects string - The exported objects in NDJSON format.
- Id string
- Generated ID for the export.
- Objects
List<Get
Kibana Export Saved Objects Object> - List of objects to export.
- Exclude
Export boolDetails - Do not add export details. Defaults to true.
- Include
References boolDeep - Include references to other saved objects recursively. Defaults to true.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Exported
Objects string - The exported objects in NDJSON format.
- Id string
- Generated ID for the export.
- Objects
[]Get
Kibana Export Saved Objects Object - List of objects to export.
- Exclude
Export boolDetails - Do not add export details. Defaults to true.
- Include
References boolDeep - Include references to other saved objects recursively. Defaults to true.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- exported
Objects String - The exported objects in NDJSON format.
- id String
- Generated ID for the export.
- objects
List<Get
Kibana Export Saved Objects Object> - List of objects to export.
- exclude
Export BooleanDetails - Do not add export details. Defaults to true.
- include
References BooleanDeep - Include references to other saved objects recursively. Defaults to true.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- exported
Objects string - The exported objects in NDJSON format.
- id string
- Generated ID for the export.
- objects
Get
Kibana Export Saved Objects Object[] - List of objects to export.
- exclude
Export booleanDetails - Do not add export details. Defaults to true.
- include
References booleanDeep - Include references to other saved objects recursively. Defaults to true.
- space
Id 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[Get
Kibana Export Saved Objects Object] - List of objects to export.
- exclude_
export_ booldetails - Do not add export details. Defaults to true.
- include_
references_ booldeep - 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.
- exported
Objects String - The exported objects in NDJSON format.
- id String
- Generated ID for the export.
- objects List<Property Map>
- List of objects to export.
- exclude
Export BooleanDetails - Do not add export details. Defaults to true.
- include
References BooleanDeep - Include references to other saved objects recursively. Defaults to true.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
Supporting Types
GetKibanaExportSavedObjectsObject
Package Details
- Repository
- elasticstack elastic/terraform-provider-elasticstack
- License
- Notes
- This Pulumi package is based on the
elasticstackTerraform Provider.
Viewing docs for elasticstack 0.14.3
published on Tuesday, Mar 3, 2026 by elastic
published on Tuesday, Mar 3, 2026 by elastic
