1. Packages
  2. Elasticstack Provider
  3. API Docs
  4. FleetIntegrationPolicy
elasticstack 0.12.2 published on Wednesday, Nov 19, 2025 by elastic
elasticstack logo
elasticstack 0.12.2 published on Wednesday, Nov 19, 2025 by elastic

    Creates or updates a Fleet Integration Policy.

    It is highly recommended that all inputs and streams are provided in the pulumi preview, even if some are disabled. Otherwise, differences may appear between what is in the plan versus what is returned by the Fleet API.

    The Kibana Fleet UI can be used as a reference for what data needs to be provided. Instead of saving a new integration configuration, the API request can be previewed, showing what values need to be provided for inputs and their streams.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as elasticstack from "@pulumi/elasticstack";
    
    // The integration to use.
    const sampleFleetIntegration = new elasticstack.FleetIntegration("sample", {
        name: "tcp",
        version: "1.16.0",
        force: true,
    });
    // An agent policy to hold the integration policy.
    const sampleFleetAgentPolicy = new elasticstack.FleetAgentPolicy("sample", {
        name: "Sample Agent Policy",
        namespace: "default",
        description: "A sample agent policy",
        monitorLogs: true,
        monitorMetrics: true,
        skipDestroy: false,
    });
    // The associated enrollment token.
    const sample = elasticstack.getFleetEnrollmentTokensOutput({
        policyId: sampleFleetAgentPolicy.policyId,
    });
    // The integration policy.
    const sampleFleetIntegrationPolicy = new elasticstack.FleetIntegrationPolicy("sample", {
        name: "Sample Integration Policy",
        namespace: "default",
        description: "A sample integration policy",
        agentPolicyId: sampleFleetAgentPolicy.policyId,
        integrationName: sampleFleetIntegration.name,
        integrationVersion: sampleFleetIntegration.version,
        inputs: [{
            inputId: "tcp-tcp",
            streamsJson: JSON.stringify({
                "tcp.generic": {
                    enabled: true,
                    vars: {
                        listen_address: "localhost",
                        listen_port: 8080,
                        "data_stream.dataset": "tcp.generic",
                        tags: [],
                        syslog_options: `field: message
    #format: auto
    #timezone: Local
    `,
                        ssl: `#certificate: |
    #    -----BEGIN CERTIFICATE-----
    #    ...
    #    -----END CERTIFICATE-----
    #key: |
    #    -----BEGIN PRIVATE KEY-----
    #    ...
    #    -----END PRIVATE KEY-----
    `,
                        custom: "",
                    },
                },
            }),
        }],
    });
    
    import pulumi
    import json
    import pulumi_elasticstack as elasticstack
    
    # The integration to use.
    sample_fleet_integration = elasticstack.FleetIntegration("sample",
        name="tcp",
        version="1.16.0",
        force=True)
    # An agent policy to hold the integration policy.
    sample_fleet_agent_policy = elasticstack.FleetAgentPolicy("sample",
        name="Sample Agent Policy",
        namespace="default",
        description="A sample agent policy",
        monitor_logs=True,
        monitor_metrics=True,
        skip_destroy=False)
    # The associated enrollment token.
    sample = elasticstack.get_fleet_enrollment_tokens_output(policy_id=sample_fleet_agent_policy.policy_id)
    # The integration policy.
    sample_fleet_integration_policy = elasticstack.FleetIntegrationPolicy("sample",
        name="Sample Integration Policy",
        namespace="default",
        description="A sample integration policy",
        agent_policy_id=sample_fleet_agent_policy.policy_id,
        integration_name=sample_fleet_integration.name,
        integration_version=sample_fleet_integration.version,
        inputs=[{
            "input_id": "tcp-tcp",
            "streams_json": json.dumps({
                "tcp.generic": {
                    "enabled": True,
                    "vars": {
                        "listen_address": "localhost",
                        "listen_port": 8080,
                        "data_stream.dataset": "tcp.generic",
                        "tags": [],
                        "syslog_options": """field: message
    #format: auto
    #timezone: Local
    """,
                        "ssl": """#certificate: |
    #    -----BEGIN CERTIFICATE-----
    #    ...
    #    -----END CERTIFICATE-----
    #key: |
    #    -----BEGIN PRIVATE KEY-----
    #    ...
    #    -----END PRIVATE KEY-----
    """,
                        "custom": "",
                    },
                },
            }),
        }])
    
    package main
    
    import (
    	"encoding/json"
    
    	"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 {
    		// The integration to use.
    		sampleFleetIntegration, err := elasticstack.NewFleetIntegration(ctx, "sample", &elasticstack.FleetIntegrationArgs{
    			Name:    pulumi.String("tcp"),
    			Version: pulumi.String("1.16.0"),
    			Force:   pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		// An agent policy to hold the integration policy.
    		sampleFleetAgentPolicy, err := elasticstack.NewFleetAgentPolicy(ctx, "sample", &elasticstack.FleetAgentPolicyArgs{
    			Name:           pulumi.String("Sample Agent Policy"),
    			Namespace:      pulumi.String("default"),
    			Description:    pulumi.String("A sample agent policy"),
    			MonitorLogs:    pulumi.Bool(true),
    			MonitorMetrics: pulumi.Bool(true),
    			SkipDestroy:    pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		// The associated enrollment token.
    		_ = elasticstack.GetFleetEnrollmentTokensOutput(ctx, elasticstack.GetFleetEnrollmentTokensOutputArgs{
    			PolicyId: sampleFleetAgentPolicy.PolicyId,
    		}, nil)
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"tcp.generic": map[string]interface{}{
    				"enabled": true,
    				"vars": map[string]interface{}{
    					"listen_address":      "localhost",
    					"listen_port":         8080,
    					"data_stream.dataset": "tcp.generic",
    					"tags":                []interface{}{},
    					"syslog_options":      "field: message\n#format: auto\n#timezone: Local\n",
    					"ssl": `#certificate: |
    #    -----BEGIN CERTIFICATE-----
    #    ...
    #    -----END CERTIFICATE-----
    #key: |
    #    -----BEGIN PRIVATE KEY-----
    #    ...
    #    -----END PRIVATE KEY-----
    `,
    					"custom": "",
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		// The integration policy.
    		_, err = elasticstack.NewFleetIntegrationPolicy(ctx, "sample", &elasticstack.FleetIntegrationPolicyArgs{
    			Name:               pulumi.String("Sample Integration Policy"),
    			Namespace:          pulumi.String("default"),
    			Description:        pulumi.String("A sample integration policy"),
    			AgentPolicyId:      sampleFleetAgentPolicy.PolicyId,
    			IntegrationName:    sampleFleetIntegration.Name,
    			IntegrationVersion: sampleFleetIntegration.Version,
    			Inputs: elasticstack.FleetIntegrationPolicyInputTypeArray{
    				&elasticstack.FleetIntegrationPolicyInputTypeArgs{
    					InputId:     pulumi.String("tcp-tcp"),
    					StreamsJson: pulumi.String(json0),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Elasticstack = Pulumi.Elasticstack;
    
    return await Deployment.RunAsync(() => 
    {
        // The integration to use.
        var sampleFleetIntegration = new Elasticstack.FleetIntegration("sample", new()
        {
            Name = "tcp",
            Version = "1.16.0",
            Force = true,
        });
    
        // An agent policy to hold the integration policy.
        var sampleFleetAgentPolicy = new Elasticstack.FleetAgentPolicy("sample", new()
        {
            Name = "Sample Agent Policy",
            Namespace = "default",
            Description = "A sample agent policy",
            MonitorLogs = true,
            MonitorMetrics = true,
            SkipDestroy = false,
        });
    
        // The associated enrollment token.
        var sample = Elasticstack.GetFleetEnrollmentTokens.Invoke(new()
        {
            PolicyId = sampleFleetAgentPolicy.PolicyId,
        });
    
        // The integration policy.
        var sampleFleetIntegrationPolicy = new Elasticstack.FleetIntegrationPolicy("sample", new()
        {
            Name = "Sample Integration Policy",
            Namespace = "default",
            Description = "A sample integration policy",
            AgentPolicyId = sampleFleetAgentPolicy.PolicyId,
            IntegrationName = sampleFleetIntegration.Name,
            IntegrationVersion = sampleFleetIntegration.Version,
            Inputs = new[]
            {
                new Elasticstack.Inputs.FleetIntegrationPolicyInputArgs
                {
                    InputId = "tcp-tcp",
                    StreamsJson = JsonSerializer.Serialize(new Dictionary<string, object?>
                    {
                        ["tcp.generic"] = new Dictionary<string, object?>
                        {
                            ["enabled"] = true,
                            ["vars"] = new Dictionary<string, object?>
                            {
                                ["listen_address"] = "localhost",
                                ["listen_port"] = 8080,
                                ["data_stream.dataset"] = "tcp.generic",
                                ["tags"] = new[]
                                {
                                },
                                ["syslog_options"] = @"field: message
    #format: auto
    #timezone: Local
    ",
                                ["ssl"] = @"#certificate: |
    #    -----BEGIN CERTIFICATE-----
    #    ...
    #    -----END CERTIFICATE-----
    #key: |
    #    -----BEGIN PRIVATE KEY-----
    #    ...
    #    -----END PRIVATE KEY-----
    ",
                                ["custom"] = "",
                            },
                        },
                    }),
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.elasticstack.FleetIntegration;
    import com.pulumi.elasticstack.FleetIntegrationArgs;
    import com.pulumi.elasticstack.FleetAgentPolicy;
    import com.pulumi.elasticstack.FleetAgentPolicyArgs;
    import com.pulumi.elasticstack.ElasticstackFunctions;
    import com.pulumi.elasticstack.inputs.GetFleetEnrollmentTokensArgs;
    import com.pulumi.elasticstack.FleetIntegrationPolicy;
    import com.pulumi.elasticstack.FleetIntegrationPolicyArgs;
    import com.pulumi.elasticstack.inputs.FleetIntegrationPolicyInputArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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) {
            // The integration to use.
            var sampleFleetIntegration = new FleetIntegration("sampleFleetIntegration", FleetIntegrationArgs.builder()
                .name("tcp")
                .version("1.16.0")
                .force(true)
                .build());
    
            // An agent policy to hold the integration policy.
            var sampleFleetAgentPolicy = new FleetAgentPolicy("sampleFleetAgentPolicy", FleetAgentPolicyArgs.builder()
                .name("Sample Agent Policy")
                .namespace("default")
                .description("A sample agent policy")
                .monitorLogs(true)
                .monitorMetrics(true)
                .skipDestroy(false)
                .build());
    
            // The associated enrollment token.
            final var sample = ElasticstackFunctions.getFleetEnrollmentTokens(GetFleetEnrollmentTokensArgs.builder()
                .policyId(sampleFleetAgentPolicy.policyId())
                .build());
    
            // The integration policy.
            var sampleFleetIntegrationPolicy = new FleetIntegrationPolicy("sampleFleetIntegrationPolicy", FleetIntegrationPolicyArgs.builder()
                .name("Sample Integration Policy")
                .namespace("default")
                .description("A sample integration policy")
                .agentPolicyId(sampleFleetAgentPolicy.policyId())
                .integrationName(sampleFleetIntegration.name())
                .integrationVersion(sampleFleetIntegration.version())
                .inputs(FleetIntegrationPolicyInputArgs.builder()
                    .inputId("tcp-tcp")
                    .streamsJson(serializeJson(
                        jsonObject(
                            jsonProperty("tcp.generic", jsonObject(
                                jsonProperty("enabled", true),
                                jsonProperty("vars", jsonObject(
                                    jsonProperty("listen_address", "localhost"),
                                    jsonProperty("listen_port", 8080),
                                    jsonProperty("data_stream.dataset", "tcp.generic"),
                                    jsonProperty("tags", jsonArray(
                                    )),
                                    jsonProperty("syslog_options", """
    field: message
    #format: auto
    #timezone: Local
                                    """),
                                    jsonProperty("ssl", """
    #certificate: |
    #    -----BEGIN CERTIFICATE-----
    #    ...
    #    -----END CERTIFICATE-----
    #key: |
    #    -----BEGIN PRIVATE KEY-----
    #    ...
    #    -----END PRIVATE KEY-----
                                    """),
                                    jsonProperty("custom", "")
                                ))
                            ))
                        )))
                    .build())
                .build());
    
        }
    }
    
    resources:
      # The integration to use.
      sampleFleetIntegration:
        type: elasticstack:FleetIntegration
        name: sample
        properties:
          name: tcp
          version: 1.16.0
          force: true
      # An agent policy to hold the integration policy.
      sampleFleetAgentPolicy:
        type: elasticstack:FleetAgentPolicy
        name: sample
        properties:
          name: Sample Agent Policy
          namespace: default
          description: A sample agent policy
          monitorLogs: true
          monitorMetrics: true
          skipDestroy: false
      # The integration policy.
      sampleFleetIntegrationPolicy:
        type: elasticstack:FleetIntegrationPolicy
        name: sample
        properties:
          name: Sample Integration Policy
          namespace: default
          description: A sample integration policy
          agentPolicyId: ${sampleFleetAgentPolicy.policyId}
          integrationName: ${sampleFleetIntegration.name}
          integrationVersion: ${sampleFleetIntegration.version}
          inputs:
            - inputId: tcp-tcp
              streamsJson:
                fn::toJSON:
                  tcp.generic:
                    enabled: true
                    vars:
                      listen_address: localhost
                      listen_port: 8080
                      data_stream.dataset: tcp.generic
                      tags: []
                      syslog_options: |
                        field: message
                        #format: auto
                        #timezone: Local                    
                      ssl: |
                        #certificate: |
                        #    -----BEGIN CERTIFICATE-----
                        #    ...
                        #    -----END CERTIFICATE-----
                        #key: |
                        #    -----BEGIN PRIVATE KEY-----
                        #    ...
                        #    -----END PRIVATE KEY-----                    
                      custom: ""
    variables:
      # The associated enrollment token.
      sample:
        fn::invoke:
          function: elasticstack:getFleetEnrollmentTokens
          arguments:
            policyId: ${sampleFleetAgentPolicy.policyId}
    

    Create FleetIntegrationPolicy Resource

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

    Constructor syntax

    new FleetIntegrationPolicy(name: string, args: FleetIntegrationPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def FleetIntegrationPolicy(resource_name: str,
                               args: FleetIntegrationPolicyArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def FleetIntegrationPolicy(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               namespace: Optional[str] = None,
                               integration_name: Optional[str] = None,
                               integration_version: Optional[str] = None,
                               space_ids: Optional[Sequence[str]] = None,
                               force: Optional[bool] = None,
                               inputs: Optional[Sequence[FleetIntegrationPolicyInputArgs]] = None,
                               name: Optional[str] = None,
                               enabled: Optional[bool] = None,
                               agent_policy_ids: Optional[Sequence[str]] = None,
                               agent_policy_id: Optional[str] = None,
                               output_id: Optional[str] = None,
                               policy_id: Optional[str] = None,
                               description: Optional[str] = None,
                               vars_json: Optional[str] = None)
    func NewFleetIntegrationPolicy(ctx *Context, name string, args FleetIntegrationPolicyArgs, opts ...ResourceOption) (*FleetIntegrationPolicy, error)
    public FleetIntegrationPolicy(string name, FleetIntegrationPolicyArgs args, CustomResourceOptions? opts = null)
    public FleetIntegrationPolicy(String name, FleetIntegrationPolicyArgs args)
    public FleetIntegrationPolicy(String name, FleetIntegrationPolicyArgs args, CustomResourceOptions options)
    
    type: elasticstack:FleetIntegrationPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FleetIntegrationPolicyArgs
    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 FleetIntegrationPolicyArgs
    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 FleetIntegrationPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FleetIntegrationPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FleetIntegrationPolicyArgs
    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 fleetIntegrationPolicyResource = new Elasticstack.FleetIntegrationPolicy("fleetIntegrationPolicyResource", new()
    {
        Namespace = "string",
        IntegrationName = "string",
        IntegrationVersion = "string",
        SpaceIds = new[]
        {
            "string",
        },
        Force = false,
        Inputs = new[]
        {
            new Elasticstack.Inputs.FleetIntegrationPolicyInputArgs
            {
                InputId = "string",
                Enabled = false,
                StreamsJson = "string",
                VarsJson = "string",
            },
        },
        Name = "string",
        Enabled = false,
        AgentPolicyIds = new[]
        {
            "string",
        },
        AgentPolicyId = "string",
        OutputId = "string",
        PolicyId = "string",
        Description = "string",
        VarsJson = "string",
    });
    
    example, err := elasticstack.NewFleetIntegrationPolicy(ctx, "fleetIntegrationPolicyResource", &elasticstack.FleetIntegrationPolicyArgs{
    	Namespace:          pulumi.String("string"),
    	IntegrationName:    pulumi.String("string"),
    	IntegrationVersion: pulumi.String("string"),
    	SpaceIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Force: pulumi.Bool(false),
    	Inputs: elasticstack.FleetIntegrationPolicyInputTypeArray{
    		&elasticstack.FleetIntegrationPolicyInputTypeArgs{
    			InputId:     pulumi.String("string"),
    			Enabled:     pulumi.Bool(false),
    			StreamsJson: pulumi.String("string"),
    			VarsJson:    pulumi.String("string"),
    		},
    	},
    	Name:    pulumi.String("string"),
    	Enabled: pulumi.Bool(false),
    	AgentPolicyIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	AgentPolicyId: pulumi.String("string"),
    	OutputId:      pulumi.String("string"),
    	PolicyId:      pulumi.String("string"),
    	Description:   pulumi.String("string"),
    	VarsJson:      pulumi.String("string"),
    })
    
    var fleetIntegrationPolicyResource = new FleetIntegrationPolicy("fleetIntegrationPolicyResource", FleetIntegrationPolicyArgs.builder()
        .namespace("string")
        .integrationName("string")
        .integrationVersion("string")
        .spaceIds("string")
        .force(false)
        .inputs(FleetIntegrationPolicyInputArgs.builder()
            .inputId("string")
            .enabled(false)
            .streamsJson("string")
            .varsJson("string")
            .build())
        .name("string")
        .enabled(false)
        .agentPolicyIds("string")
        .agentPolicyId("string")
        .outputId("string")
        .policyId("string")
        .description("string")
        .varsJson("string")
        .build());
    
    fleet_integration_policy_resource = elasticstack.FleetIntegrationPolicy("fleetIntegrationPolicyResource",
        namespace="string",
        integration_name="string",
        integration_version="string",
        space_ids=["string"],
        force=False,
        inputs=[{
            "input_id": "string",
            "enabled": False,
            "streams_json": "string",
            "vars_json": "string",
        }],
        name="string",
        enabled=False,
        agent_policy_ids=["string"],
        agent_policy_id="string",
        output_id="string",
        policy_id="string",
        description="string",
        vars_json="string")
    
    const fleetIntegrationPolicyResource = new elasticstack.FleetIntegrationPolicy("fleetIntegrationPolicyResource", {
        namespace: "string",
        integrationName: "string",
        integrationVersion: "string",
        spaceIds: ["string"],
        force: false,
        inputs: [{
            inputId: "string",
            enabled: false,
            streamsJson: "string",
            varsJson: "string",
        }],
        name: "string",
        enabled: false,
        agentPolicyIds: ["string"],
        agentPolicyId: "string",
        outputId: "string",
        policyId: "string",
        description: "string",
        varsJson: "string",
    });
    
    type: elasticstack:FleetIntegrationPolicy
    properties:
        agentPolicyId: string
        agentPolicyIds:
            - string
        description: string
        enabled: false
        force: false
        inputs:
            - enabled: false
              inputId: string
              streamsJson: string
              varsJson: string
        integrationName: string
        integrationVersion: string
        name: string
        namespace: string
        outputId: string
        policyId: string
        spaceIds:
            - string
        varsJson: string
    

    FleetIntegrationPolicy 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 FleetIntegrationPolicy resource accepts the following input properties:

    IntegrationName string
    The name of the integration package.
    IntegrationVersion string
    The version of the integration package.
    Namespace string
    The namespace of the integration policy.
    AgentPolicyId string
    ID of the agent policy.
    AgentPolicyIds List<string>
    List of agent policy IDs.
    Description string
    The description of the integration policy.
    Enabled bool
    Enable the integration policy.
    Force bool
    Force operations, such as creation and deletion, to occur.
    Inputs List<FleetIntegrationPolicyInput>
    Integration inputs.
    Name string
    The name of the integration policy.
    OutputId string
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    PolicyId string
    Unique identifier of the integration policy.
    SpaceIds List<string>
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    VarsJson string
    Integration-level variables as JSON.
    IntegrationName string
    The name of the integration package.
    IntegrationVersion string
    The version of the integration package.
    Namespace string
    The namespace of the integration policy.
    AgentPolicyId string
    ID of the agent policy.
    AgentPolicyIds []string
    List of agent policy IDs.
    Description string
    The description of the integration policy.
    Enabled bool
    Enable the integration policy.
    Force bool
    Force operations, such as creation and deletion, to occur.
    Inputs []FleetIntegrationPolicyInputTypeArgs
    Integration inputs.
    Name string
    The name of the integration policy.
    OutputId string
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    PolicyId string
    Unique identifier of the integration policy.
    SpaceIds []string
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    VarsJson string
    Integration-level variables as JSON.
    integrationName String
    The name of the integration package.
    integrationVersion String
    The version of the integration package.
    namespace String
    The namespace of the integration policy.
    agentPolicyId String
    ID of the agent policy.
    agentPolicyIds List<String>
    List of agent policy IDs.
    description String
    The description of the integration policy.
    enabled Boolean
    Enable the integration policy.
    force Boolean
    Force operations, such as creation and deletion, to occur.
    inputs List<FleetIntegrationPolicyInput>
    Integration inputs.
    name String
    The name of the integration policy.
    outputId String
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policyId String
    Unique identifier of the integration policy.
    spaceIds List<String>
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    varsJson String
    Integration-level variables as JSON.
    integrationName string
    The name of the integration package.
    integrationVersion string
    The version of the integration package.
    namespace string
    The namespace of the integration policy.
    agentPolicyId string
    ID of the agent policy.
    agentPolicyIds string[]
    List of agent policy IDs.
    description string
    The description of the integration policy.
    enabled boolean
    Enable the integration policy.
    force boolean
    Force operations, such as creation and deletion, to occur.
    inputs FleetIntegrationPolicyInput[]
    Integration inputs.
    name string
    The name of the integration policy.
    outputId string
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policyId string
    Unique identifier of the integration policy.
    spaceIds string[]
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    varsJson string
    Integration-level variables as JSON.
    integration_name str
    The name of the integration package.
    integration_version str
    The version of the integration package.
    namespace str
    The namespace of the integration policy.
    agent_policy_id str
    ID of the agent policy.
    agent_policy_ids Sequence[str]
    List of agent policy IDs.
    description str
    The description of the integration policy.
    enabled bool
    Enable the integration policy.
    force bool
    Force operations, such as creation and deletion, to occur.
    inputs Sequence[FleetIntegrationPolicyInputArgs]
    Integration inputs.
    name str
    The name of the integration policy.
    output_id str
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policy_id str
    Unique identifier of the integration policy.
    space_ids Sequence[str]
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    vars_json str
    Integration-level variables as JSON.
    integrationName String
    The name of the integration package.
    integrationVersion String
    The version of the integration package.
    namespace String
    The namespace of the integration policy.
    agentPolicyId String
    ID of the agent policy.
    agentPolicyIds List<String>
    List of agent policy IDs.
    description String
    The description of the integration policy.
    enabled Boolean
    Enable the integration policy.
    force Boolean
    Force operations, such as creation and deletion, to occur.
    inputs List<Property Map>
    Integration inputs.
    name String
    The name of the integration policy.
    outputId String
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policyId String
    Unique identifier of the integration policy.
    spaceIds List<String>
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    varsJson String
    Integration-level variables as JSON.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing FleetIntegrationPolicy Resource

    Get an existing FleetIntegrationPolicy 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?: FleetIntegrationPolicyState, opts?: CustomResourceOptions): FleetIntegrationPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agent_policy_id: Optional[str] = None,
            agent_policy_ids: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            force: Optional[bool] = None,
            inputs: Optional[Sequence[FleetIntegrationPolicyInputArgs]] = None,
            integration_name: Optional[str] = None,
            integration_version: Optional[str] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            output_id: Optional[str] = None,
            policy_id: Optional[str] = None,
            space_ids: Optional[Sequence[str]] = None,
            vars_json: Optional[str] = None) -> FleetIntegrationPolicy
    func GetFleetIntegrationPolicy(ctx *Context, name string, id IDInput, state *FleetIntegrationPolicyState, opts ...ResourceOption) (*FleetIntegrationPolicy, error)
    public static FleetIntegrationPolicy Get(string name, Input<string> id, FleetIntegrationPolicyState? state, CustomResourceOptions? opts = null)
    public static FleetIntegrationPolicy get(String name, Output<String> id, FleetIntegrationPolicyState state, CustomResourceOptions options)
    resources:  _:    type: elasticstack:FleetIntegrationPolicy    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AgentPolicyId string
    ID of the agent policy.
    AgentPolicyIds List<string>
    List of agent policy IDs.
    Description string
    The description of the integration policy.
    Enabled bool
    Enable the integration policy.
    Force bool
    Force operations, such as creation and deletion, to occur.
    Inputs List<FleetIntegrationPolicyInput>
    Integration inputs.
    IntegrationName string
    The name of the integration package.
    IntegrationVersion string
    The version of the integration package.
    Name string
    The name of the integration policy.
    Namespace string
    The namespace of the integration policy.
    OutputId string
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    PolicyId string
    Unique identifier of the integration policy.
    SpaceIds List<string>
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    VarsJson string
    Integration-level variables as JSON.
    AgentPolicyId string
    ID of the agent policy.
    AgentPolicyIds []string
    List of agent policy IDs.
    Description string
    The description of the integration policy.
    Enabled bool
    Enable the integration policy.
    Force bool
    Force operations, such as creation and deletion, to occur.
    Inputs []FleetIntegrationPolicyInputTypeArgs
    Integration inputs.
    IntegrationName string
    The name of the integration package.
    IntegrationVersion string
    The version of the integration package.
    Name string
    The name of the integration policy.
    Namespace string
    The namespace of the integration policy.
    OutputId string
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    PolicyId string
    Unique identifier of the integration policy.
    SpaceIds []string
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    VarsJson string
    Integration-level variables as JSON.
    agentPolicyId String
    ID of the agent policy.
    agentPolicyIds List<String>
    List of agent policy IDs.
    description String
    The description of the integration policy.
    enabled Boolean
    Enable the integration policy.
    force Boolean
    Force operations, such as creation and deletion, to occur.
    inputs List<FleetIntegrationPolicyInput>
    Integration inputs.
    integrationName String
    The name of the integration package.
    integrationVersion String
    The version of the integration package.
    name String
    The name of the integration policy.
    namespace String
    The namespace of the integration policy.
    outputId String
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policyId String
    Unique identifier of the integration policy.
    spaceIds List<String>
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    varsJson String
    Integration-level variables as JSON.
    agentPolicyId string
    ID of the agent policy.
    agentPolicyIds string[]
    List of agent policy IDs.
    description string
    The description of the integration policy.
    enabled boolean
    Enable the integration policy.
    force boolean
    Force operations, such as creation and deletion, to occur.
    inputs FleetIntegrationPolicyInput[]
    Integration inputs.
    integrationName string
    The name of the integration package.
    integrationVersion string
    The version of the integration package.
    name string
    The name of the integration policy.
    namespace string
    The namespace of the integration policy.
    outputId string
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policyId string
    Unique identifier of the integration policy.
    spaceIds string[]
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    varsJson string
    Integration-level variables as JSON.
    agent_policy_id str
    ID of the agent policy.
    agent_policy_ids Sequence[str]
    List of agent policy IDs.
    description str
    The description of the integration policy.
    enabled bool
    Enable the integration policy.
    force bool
    Force operations, such as creation and deletion, to occur.
    inputs Sequence[FleetIntegrationPolicyInputArgs]
    Integration inputs.
    integration_name str
    The name of the integration package.
    integration_version str
    The version of the integration package.
    name str
    The name of the integration policy.
    namespace str
    The namespace of the integration policy.
    output_id str
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policy_id str
    Unique identifier of the integration policy.
    space_ids Sequence[str]
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    vars_json str
    Integration-level variables as JSON.
    agentPolicyId String
    ID of the agent policy.
    agentPolicyIds List<String>
    List of agent policy IDs.
    description String
    The description of the integration policy.
    enabled Boolean
    Enable the integration policy.
    force Boolean
    Force operations, such as creation and deletion, to occur.
    inputs List<Property Map>
    Integration inputs.
    integrationName String
    The name of the integration package.
    integrationVersion String
    The version of the integration package.
    name String
    The name of the integration policy.
    namespace String
    The namespace of the integration policy.
    outputId String
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policyId String
    Unique identifier of the integration policy.
    spaceIds List<String>
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    varsJson String
    Integration-level variables as JSON.

    Supporting Types

    FleetIntegrationPolicyInput, FleetIntegrationPolicyInputArgs

    InputId string
    The identifier of the input.
    Enabled bool
    Enable the input.
    StreamsJson string
    Input streams as JSON.
    VarsJson string
    Input variables as JSON.
    InputId string
    The identifier of the input.
    Enabled bool
    Enable the input.
    StreamsJson string
    Input streams as JSON.
    VarsJson string
    Input variables as JSON.
    inputId String
    The identifier of the input.
    enabled Boolean
    Enable the input.
    streamsJson String
    Input streams as JSON.
    varsJson String
    Input variables as JSON.
    inputId string
    The identifier of the input.
    enabled boolean
    Enable the input.
    streamsJson string
    Input streams as JSON.
    varsJson string
    Input variables as JSON.
    input_id str
    The identifier of the input.
    enabled bool
    Enable the input.
    streams_json str
    Input streams as JSON.
    vars_json str
    Input variables as JSON.
    inputId String
    The identifier of the input.
    enabled Boolean
    Enable the input.
    streamsJson String
    Input streams as JSON.
    varsJson String
    Input variables as JSON.

    Import

    The pulumi import command can be used, for example:

    $ pulumi import elasticstack:index/fleetIntegrationPolicy:FleetIntegrationPolicy my_policy <fleet_integration_policy_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 logo
    elasticstack 0.12.2 published on Wednesday, Nov 19, 2025 by elastic
      Meet Neo: Your AI Platform Teammate