1. Packages
  2. Packages
  3. Elasticstack Provider
  4. API Docs
  5. FleetAgentPolicy
Viewing docs for elasticstack 0.15.0
published on Thursday, May 14, 2026 by elastic
Viewing docs for elasticstack 0.15.0
published on Thursday, May 14, 2026 by elastic

    Creates a new Fleet Agent Policy. See https://www.elastic.co/guide/en/fleet/current/agent-policy.html

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as elasticstack from "@pulumi/elasticstack";
    
    const testPolicy = new elasticstack.FleetAgentPolicy("test_policy", {
        name: "Test Policy",
        namespace: "default",
        description: "Test Agent Policy",
        sysMonitoring: true,
        monitorLogs: true,
        monitorMetrics: true,
        spaceIds: ["default"],
        hostNameFormat: "hostname",
        globalDataTags: {
            first_tag: {
                stringValue: "tag_value",
            },
            second_tag: {
                numberValue: 1.2,
            },
        },
        advancedMonitoringOptions: {
            httpMonitoringEndpoint: {
                enabled: true,
                host: "localhost",
                port: 6791,
                bufferEnabled: false,
                pprofEnabled: false,
            },
            diagnostics: {
                rateLimits: {
                    interval: "5m",
                    burst: 3,
                },
                fileUploader: {
                    initDuration: "2s",
                    backoffDuration: "2m",
                    maxRetries: 5,
                },
            },
        },
    });
    
    import pulumi
    import pulumi_elasticstack as elasticstack
    
    test_policy = elasticstack.FleetAgentPolicy("test_policy",
        name="Test Policy",
        namespace="default",
        description="Test Agent Policy",
        sys_monitoring=True,
        monitor_logs=True,
        monitor_metrics=True,
        space_ids=["default"],
        host_name_format="hostname",
        global_data_tags={
            "first_tag": {
                "string_value": "tag_value",
            },
            "second_tag": {
                "number_value": 1.2,
            },
        },
        advanced_monitoring_options={
            "http_monitoring_endpoint": {
                "enabled": True,
                "host": "localhost",
                "port": 6791,
                "buffer_enabled": False,
                "pprof_enabled": False,
            },
            "diagnostics": {
                "rate_limits": {
                    "interval": "5m",
                    "burst": 3,
                },
                "file_uploader": {
                    "init_duration": "2s",
                    "backoff_duration": "2m",
                    "max_retries": 5,
                },
            },
        })
    
    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 {
    		_, err := elasticstack.NewFleetAgentPolicy(ctx, "test_policy", &elasticstack.FleetAgentPolicyArgs{
    			Name:           pulumi.String("Test Policy"),
    			Namespace:      pulumi.String("default"),
    			Description:    pulumi.String("Test Agent Policy"),
    			SysMonitoring:  pulumi.Bool(true),
    			MonitorLogs:    pulumi.Bool(true),
    			MonitorMetrics: pulumi.Bool(true),
    			SpaceIds: pulumi.StringArray{
    				pulumi.String("default"),
    			},
    			HostNameFormat: pulumi.String("hostname"),
    			GlobalDataTags: elasticstack.FleetAgentPolicyGlobalDataTagsMap{
    				"first_tag": &elasticstack.FleetAgentPolicyGlobalDataTagsArgs{
    					StringValue: pulumi.String("tag_value"),
    				},
    				"second_tag": &elasticstack.FleetAgentPolicyGlobalDataTagsArgs{
    					NumberValue: pulumi.Float64(1.2),
    				},
    			},
    			AdvancedMonitoringOptions: &elasticstack.FleetAgentPolicyAdvancedMonitoringOptionsArgs{
    				HttpMonitoringEndpoint: &elasticstack.FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpointArgs{
    					Enabled:       pulumi.Bool(true),
    					Host:          pulumi.String("localhost"),
    					Port:          pulumi.Float64(6791),
    					BufferEnabled: pulumi.Bool(false),
    					PprofEnabled:  pulumi.Bool(false),
    				},
    				Diagnostics: &elasticstack.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsArgs{
    					RateLimits: &elasticstack.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimitsArgs{
    						Interval: pulumi.String("5m"),
    						Burst:    pulumi.Float64(3),
    					},
    					FileUploader: &elasticstack.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploaderArgs{
    						InitDuration:    pulumi.String("2s"),
    						BackoffDuration: pulumi.String("2m"),
    						MaxRetries:      pulumi.Float64(5),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Elasticstack = Pulumi.Elasticstack;
    
    return await Deployment.RunAsync(() => 
    {
        var testPolicy = new Elasticstack.FleetAgentPolicy("test_policy", new()
        {
            Name = "Test Policy",
            Namespace = "default",
            Description = "Test Agent Policy",
            SysMonitoring = true,
            MonitorLogs = true,
            MonitorMetrics = true,
            SpaceIds = new[]
            {
                "default",
            },
            HostNameFormat = "hostname",
            GlobalDataTags = 
            {
                { "first_tag", new Elasticstack.Inputs.FleetAgentPolicyGlobalDataTagsArgs
                {
                    StringValue = "tag_value",
                } },
                { "second_tag", new Elasticstack.Inputs.FleetAgentPolicyGlobalDataTagsArgs
                {
                    NumberValue = 1.2,
                } },
            },
            AdvancedMonitoringOptions = new Elasticstack.Inputs.FleetAgentPolicyAdvancedMonitoringOptionsArgs
            {
                HttpMonitoringEndpoint = new Elasticstack.Inputs.FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpointArgs
                {
                    Enabled = true,
                    Host = "localhost",
                    Port = 6791,
                    BufferEnabled = false,
                    PprofEnabled = false,
                },
                Diagnostics = new Elasticstack.Inputs.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsArgs
                {
                    RateLimits = new Elasticstack.Inputs.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimitsArgs
                    {
                        Interval = "5m",
                        Burst = 3,
                    },
                    FileUploader = new Elasticstack.Inputs.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploaderArgs
                    {
                        InitDuration = "2s",
                        BackoffDuration = "2m",
                        MaxRetries = 5,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.elasticstack.FleetAgentPolicy;
    import com.pulumi.elasticstack.FleetAgentPolicyArgs;
    import com.pulumi.elasticstack.inputs.FleetAgentPolicyAdvancedMonitoringOptionsArgs;
    import com.pulumi.elasticstack.inputs.FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpointArgs;
    import com.pulumi.elasticstack.inputs.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsArgs;
    import com.pulumi.elasticstack.inputs.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimitsArgs;
    import com.pulumi.elasticstack.inputs.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploaderArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testPolicy = new FleetAgentPolicy("testPolicy", FleetAgentPolicyArgs.builder()
                .name("Test Policy")
                .namespace("default")
                .description("Test Agent Policy")
                .sysMonitoring(true)
                .monitorLogs(true)
                .monitorMetrics(true)
                .spaceIds("default")
                .hostNameFormat("hostname")
                .globalDataTags(Map.ofEntries(
                    Map.entry("first_tag", FleetAgentPolicyGlobalDataTagsArgs.builder()
                        .stringValue("tag_value")
                        .build()),
                    Map.entry("second_tag", FleetAgentPolicyGlobalDataTagsArgs.builder()
                        .numberValue(1.2)
                        .build())
                ))
                .advancedMonitoringOptions(FleetAgentPolicyAdvancedMonitoringOptionsArgs.builder()
                    .httpMonitoringEndpoint(FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpointArgs.builder()
                        .enabled(true)
                        .host("localhost")
                        .port(6791.0)
                        .bufferEnabled(false)
                        .pprofEnabled(false)
                        .build())
                    .diagnostics(FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsArgs.builder()
                        .rateLimits(FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimitsArgs.builder()
                            .interval("5m")
                            .burst(3.0)
                            .build())
                        .fileUploader(FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploaderArgs.builder()
                            .initDuration("2s")
                            .backoffDuration("2m")
                            .maxRetries(5.0)
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      testPolicy:
        type: elasticstack:FleetAgentPolicy
        name: test_policy
        properties:
          name: Test Policy
          namespace: default
          description: Test Agent Policy
          sysMonitoring: true
          monitorLogs: true
          monitorMetrics: true # is_protected   = true  # optional: agent tamper protection (requires Elastic Stack 8.10.0+)
          spaceIds:
            - default
          hostNameFormat: hostname
          globalDataTags:
            first_tag:
              stringValue: tag_value
            second_tag:
              numberValue: 1.2
          advancedMonitoringOptions:
            httpMonitoringEndpoint:
              enabled: true
              host: localhost
              port: 6791
              bufferEnabled: false
              pprofEnabled: false
            diagnostics:
              rateLimits:
                interval: 5m
                burst: 3
              fileUploader:
                initDuration: 2s
                backoffDuration: 2m
                maxRetries: 5
    
    Example coming soon!
    

    Create FleetAgentPolicy Resource

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

    Constructor syntax

    new FleetAgentPolicy(name: string, args: FleetAgentPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def FleetAgentPolicy(resource_name: str,
                         args: FleetAgentPolicyArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def FleetAgentPolicy(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         namespace: Optional[str] = None,
                         fleet_server_host_id: Optional[str] = None,
                         monitor_metrics: Optional[bool] = None,
                         description: Optional[str] = None,
                         download_source_id: Optional[str] = None,
                         advanced_monitoring_options: Optional[FleetAgentPolicyAdvancedMonitoringOptionsArgs] = None,
                         global_data_tags: Optional[Mapping[str, FleetAgentPolicyGlobalDataTagsArgs]] = None,
                         host_name_format: Optional[str] = None,
                         inactivity_timeout: Optional[str] = None,
                         is_protected: Optional[bool] = None,
                         monitoring_output_id: Optional[str] = None,
                         data_output_id: Optional[str] = None,
                         monitor_logs: Optional[bool] = None,
                         kibana_connections: Optional[Sequence[FleetAgentPolicyKibanaConnectionArgs]] = None,
                         name: Optional[str] = None,
                         advanced_settings: Optional[FleetAgentPolicyAdvancedSettingsArgs] = None,
                         policy_id: Optional[str] = None,
                         required_versions: Optional[Mapping[str, float]] = None,
                         skip_destroy: Optional[bool] = None,
                         space_ids: Optional[Sequence[str]] = None,
                         supports_agentless: Optional[bool] = None,
                         sys_monitoring: Optional[bool] = None,
                         unenrollment_timeout: Optional[str] = None)
    func NewFleetAgentPolicy(ctx *Context, name string, args FleetAgentPolicyArgs, opts ...ResourceOption) (*FleetAgentPolicy, error)
    public FleetAgentPolicy(string name, FleetAgentPolicyArgs args, CustomResourceOptions? opts = null)
    public FleetAgentPolicy(String name, FleetAgentPolicyArgs args)
    public FleetAgentPolicy(String name, FleetAgentPolicyArgs args, CustomResourceOptions options)
    
    type: elasticstack:FleetAgentPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "elasticstack_fleetagentpolicy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args FleetAgentPolicyArgs
    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 FleetAgentPolicyArgs
    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 FleetAgentPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FleetAgentPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FleetAgentPolicyArgs
    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 fleetAgentPolicyResource = new Elasticstack.FleetAgentPolicy("fleetAgentPolicyResource", new()
    {
        Namespace = "string",
        FleetServerHostId = "string",
        MonitorMetrics = false,
        Description = "string",
        DownloadSourceId = "string",
        AdvancedMonitoringOptions = new Elasticstack.Inputs.FleetAgentPolicyAdvancedMonitoringOptionsArgs
        {
            Diagnostics = new Elasticstack.Inputs.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsArgs
            {
                FileUploader = new Elasticstack.Inputs.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploaderArgs
                {
                    BackoffDuration = "string",
                    InitDuration = "string",
                    MaxRetries = 0,
                },
                RateLimits = new Elasticstack.Inputs.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimitsArgs
                {
                    Burst = 0,
                    Interval = "string",
                },
            },
            HttpMonitoringEndpoint = new Elasticstack.Inputs.FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpointArgs
            {
                BufferEnabled = false,
                Enabled = false,
                Host = "string",
                Port = 0,
                PprofEnabled = false,
            },
        },
        GlobalDataTags = 
        {
            { "string", new Elasticstack.Inputs.FleetAgentPolicyGlobalDataTagsArgs
            {
                NumberValue = 0,
                StringValue = "string",
            } },
        },
        HostNameFormat = "string",
        InactivityTimeout = "string",
        IsProtected = false,
        MonitoringOutputId = "string",
        DataOutputId = "string",
        MonitorLogs = false,
        KibanaConnections = new[]
        {
            new Elasticstack.Inputs.FleetAgentPolicyKibanaConnectionArgs
            {
                ApiKey = "string",
                BearerToken = "string",
                CaCerts = new[]
                {
                    "string",
                },
                Endpoints = new[]
                {
                    "string",
                },
                Insecure = false,
                Password = "string",
                Username = "string",
            },
        },
        Name = "string",
        AdvancedSettings = new Elasticstack.Inputs.FleetAgentPolicyAdvancedSettingsArgs
        {
            DownloadTargetDirectory = "string",
            DownloadTimeout = "string",
            GoMaxProcs = 0,
            LoggingFilesInterval = "string",
            LoggingFilesKeepfiles = 0,
            LoggingFilesRotateeverybytes = 0,
            LoggingLevel = "string",
            LoggingMetricsPeriod = "string",
            LoggingToFiles = false,
            MonitoringRuntimeExperimental = "string",
        },
        PolicyId = "string",
        RequiredVersions = 
        {
            { "string", 0 },
        },
        SkipDestroy = false,
        SpaceIds = new[]
        {
            "string",
        },
        SupportsAgentless = false,
        SysMonitoring = false,
        UnenrollmentTimeout = "string",
    });
    
    example, err := elasticstack.NewFleetAgentPolicy(ctx, "fleetAgentPolicyResource", &elasticstack.FleetAgentPolicyArgs{
    	Namespace:         pulumi.String("string"),
    	FleetServerHostId: pulumi.String("string"),
    	MonitorMetrics:    pulumi.Bool(false),
    	Description:       pulumi.String("string"),
    	DownloadSourceId:  pulumi.String("string"),
    	AdvancedMonitoringOptions: &elasticstack.FleetAgentPolicyAdvancedMonitoringOptionsArgs{
    		Diagnostics: &elasticstack.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsArgs{
    			FileUploader: &elasticstack.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploaderArgs{
    				BackoffDuration: pulumi.String("string"),
    				InitDuration:    pulumi.String("string"),
    				MaxRetries:      pulumi.Float64(0),
    			},
    			RateLimits: &elasticstack.FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimitsArgs{
    				Burst:    pulumi.Float64(0),
    				Interval: pulumi.String("string"),
    			},
    		},
    		HttpMonitoringEndpoint: &elasticstack.FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpointArgs{
    			BufferEnabled: pulumi.Bool(false),
    			Enabled:       pulumi.Bool(false),
    			Host:          pulumi.String("string"),
    			Port:          pulumi.Float64(0),
    			PprofEnabled:  pulumi.Bool(false),
    		},
    	},
    	GlobalDataTags: elasticstack.FleetAgentPolicyGlobalDataTagsMap{
    		"string": &elasticstack.FleetAgentPolicyGlobalDataTagsArgs{
    			NumberValue: pulumi.Float64(0),
    			StringValue: pulumi.String("string"),
    		},
    	},
    	HostNameFormat:     pulumi.String("string"),
    	InactivityTimeout:  pulumi.String("string"),
    	IsProtected:        pulumi.Bool(false),
    	MonitoringOutputId: pulumi.String("string"),
    	DataOutputId:       pulumi.String("string"),
    	MonitorLogs:        pulumi.Bool(false),
    	KibanaConnections: elasticstack.FleetAgentPolicyKibanaConnectionArray{
    		&elasticstack.FleetAgentPolicyKibanaConnectionArgs{
    			ApiKey:      pulumi.String("string"),
    			BearerToken: pulumi.String("string"),
    			CaCerts: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Endpoints: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Insecure: pulumi.Bool(false),
    			Password: pulumi.String("string"),
    			Username: pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    	AdvancedSettings: &elasticstack.FleetAgentPolicyAdvancedSettingsArgs{
    		DownloadTargetDirectory:       pulumi.String("string"),
    		DownloadTimeout:               pulumi.String("string"),
    		GoMaxProcs:                    pulumi.Float64(0),
    		LoggingFilesInterval:          pulumi.String("string"),
    		LoggingFilesKeepfiles:         pulumi.Float64(0),
    		LoggingFilesRotateeverybytes:  pulumi.Float64(0),
    		LoggingLevel:                  pulumi.String("string"),
    		LoggingMetricsPeriod:          pulumi.String("string"),
    		LoggingToFiles:                pulumi.Bool(false),
    		MonitoringRuntimeExperimental: pulumi.String("string"),
    	},
    	PolicyId: pulumi.String("string"),
    	RequiredVersions: pulumi.Float64Map{
    		"string": pulumi.Float64(0),
    	},
    	SkipDestroy: pulumi.Bool(false),
    	SpaceIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SupportsAgentless:   pulumi.Bool(false),
    	SysMonitoring:       pulumi.Bool(false),
    	UnenrollmentTimeout: pulumi.String("string"),
    })
    
    resource "elasticstack_fleetagentpolicy" "fleetAgentPolicyResource" {
      namespace            = "string"
      fleet_server_host_id = "string"
      monitor_metrics      = false
      description          = "string"
      download_source_id   = "string"
      advanced_monitoring_options = {
        diagnostics = {
          file_uploader = {
            backoff_duration = "string"
            init_duration    = "string"
            max_retries      = 0
          }
          rate_limits = {
            burst    = 0
            interval = "string"
          }
        }
        http_monitoring_endpoint = {
          buffer_enabled = false
          enabled        = false
          host           = "string"
          port           = 0
          pprof_enabled  = false
        }
      }
      global_data_tags = {
        "string" = {
          number_value = 0
          string_value = "string"
        }
      }
      host_name_format     = "string"
      inactivity_timeout   = "string"
      is_protected         = false
      monitoring_output_id = "string"
      data_output_id       = "string"
      monitor_logs         = false
      kibana_connections {
        api_key      = "string"
        bearer_token = "string"
        ca_certs     = ["string"]
        endpoints    = ["string"]
        insecure     = false
        password     = "string"
        username     = "string"
      }
      name = "string"
      advanced_settings = {
        download_target_directory       = "string"
        download_timeout                = "string"
        go_max_procs                    = 0
        logging_files_interval          = "string"
        logging_files_keepfiles         = 0
        logging_files_rotateeverybytes  = 0
        logging_level                   = "string"
        logging_metrics_period          = "string"
        logging_to_files                = false
        monitoring_runtime_experimental = "string"
      }
      policy_id = "string"
      required_versions = {
        "string" = 0
      }
      skip_destroy         = false
      space_ids            = ["string"]
      supports_agentless   = false
      sys_monitoring       = false
      unenrollment_timeout = "string"
    }
    
    var fleetAgentPolicyResource = new FleetAgentPolicy("fleetAgentPolicyResource", FleetAgentPolicyArgs.builder()
        .namespace("string")
        .fleetServerHostId("string")
        .monitorMetrics(false)
        .description("string")
        .downloadSourceId("string")
        .advancedMonitoringOptions(FleetAgentPolicyAdvancedMonitoringOptionsArgs.builder()
            .diagnostics(FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsArgs.builder()
                .fileUploader(FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploaderArgs.builder()
                    .backoffDuration("string")
                    .initDuration("string")
                    .maxRetries(0.0)
                    .build())
                .rateLimits(FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimitsArgs.builder()
                    .burst(0.0)
                    .interval("string")
                    .build())
                .build())
            .httpMonitoringEndpoint(FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpointArgs.builder()
                .bufferEnabled(false)
                .enabled(false)
                .host("string")
                .port(0.0)
                .pprofEnabled(false)
                .build())
            .build())
        .globalDataTags(Map.of("string", FleetAgentPolicyGlobalDataTagsArgs.builder()
            .numberValue(0.0)
            .stringValue("string")
            .build()))
        .hostNameFormat("string")
        .inactivityTimeout("string")
        .isProtected(false)
        .monitoringOutputId("string")
        .dataOutputId("string")
        .monitorLogs(false)
        .kibanaConnections(FleetAgentPolicyKibanaConnectionArgs.builder()
            .apiKey("string")
            .bearerToken("string")
            .caCerts("string")
            .endpoints("string")
            .insecure(false)
            .password("string")
            .username("string")
            .build())
        .name("string")
        .advancedSettings(FleetAgentPolicyAdvancedSettingsArgs.builder()
            .downloadTargetDirectory("string")
            .downloadTimeout("string")
            .goMaxProcs(0.0)
            .loggingFilesInterval("string")
            .loggingFilesKeepfiles(0.0)
            .loggingFilesRotateeverybytes(0.0)
            .loggingLevel("string")
            .loggingMetricsPeriod("string")
            .loggingToFiles(false)
            .monitoringRuntimeExperimental("string")
            .build())
        .policyId("string")
        .requiredVersions(Map.of("string", 0.0))
        .skipDestroy(false)
        .spaceIds("string")
        .supportsAgentless(false)
        .sysMonitoring(false)
        .unenrollmentTimeout("string")
        .build());
    
    fleet_agent_policy_resource = elasticstack.FleetAgentPolicy("fleetAgentPolicyResource",
        namespace="string",
        fleet_server_host_id="string",
        monitor_metrics=False,
        description="string",
        download_source_id="string",
        advanced_monitoring_options={
            "diagnostics": {
                "file_uploader": {
                    "backoff_duration": "string",
                    "init_duration": "string",
                    "max_retries": float(0),
                },
                "rate_limits": {
                    "burst": float(0),
                    "interval": "string",
                },
            },
            "http_monitoring_endpoint": {
                "buffer_enabled": False,
                "enabled": False,
                "host": "string",
                "port": float(0),
                "pprof_enabled": False,
            },
        },
        global_data_tags={
            "string": {
                "number_value": float(0),
                "string_value": "string",
            },
        },
        host_name_format="string",
        inactivity_timeout="string",
        is_protected=False,
        monitoring_output_id="string",
        data_output_id="string",
        monitor_logs=False,
        kibana_connections=[{
            "api_key": "string",
            "bearer_token": "string",
            "ca_certs": ["string"],
            "endpoints": ["string"],
            "insecure": False,
            "password": "string",
            "username": "string",
        }],
        name="string",
        advanced_settings={
            "download_target_directory": "string",
            "download_timeout": "string",
            "go_max_procs": float(0),
            "logging_files_interval": "string",
            "logging_files_keepfiles": float(0),
            "logging_files_rotateeverybytes": float(0),
            "logging_level": "string",
            "logging_metrics_period": "string",
            "logging_to_files": False,
            "monitoring_runtime_experimental": "string",
        },
        policy_id="string",
        required_versions={
            "string": float(0),
        },
        skip_destroy=False,
        space_ids=["string"],
        supports_agentless=False,
        sys_monitoring=False,
        unenrollment_timeout="string")
    
    const fleetAgentPolicyResource = new elasticstack.FleetAgentPolicy("fleetAgentPolicyResource", {
        namespace: "string",
        fleetServerHostId: "string",
        monitorMetrics: false,
        description: "string",
        downloadSourceId: "string",
        advancedMonitoringOptions: {
            diagnostics: {
                fileUploader: {
                    backoffDuration: "string",
                    initDuration: "string",
                    maxRetries: 0,
                },
                rateLimits: {
                    burst: 0,
                    interval: "string",
                },
            },
            httpMonitoringEndpoint: {
                bufferEnabled: false,
                enabled: false,
                host: "string",
                port: 0,
                pprofEnabled: false,
            },
        },
        globalDataTags: {
            string: {
                numberValue: 0,
                stringValue: "string",
            },
        },
        hostNameFormat: "string",
        inactivityTimeout: "string",
        isProtected: false,
        monitoringOutputId: "string",
        dataOutputId: "string",
        monitorLogs: false,
        kibanaConnections: [{
            apiKey: "string",
            bearerToken: "string",
            caCerts: ["string"],
            endpoints: ["string"],
            insecure: false,
            password: "string",
            username: "string",
        }],
        name: "string",
        advancedSettings: {
            downloadTargetDirectory: "string",
            downloadTimeout: "string",
            goMaxProcs: 0,
            loggingFilesInterval: "string",
            loggingFilesKeepfiles: 0,
            loggingFilesRotateeverybytes: 0,
            loggingLevel: "string",
            loggingMetricsPeriod: "string",
            loggingToFiles: false,
            monitoringRuntimeExperimental: "string",
        },
        policyId: "string",
        requiredVersions: {
            string: 0,
        },
        skipDestroy: false,
        spaceIds: ["string"],
        supportsAgentless: false,
        sysMonitoring: false,
        unenrollmentTimeout: "string",
    });
    
    type: elasticstack:FleetAgentPolicy
    properties:
        advancedMonitoringOptions:
            diagnostics:
                fileUploader:
                    backoffDuration: string
                    initDuration: string
                    maxRetries: 0
                rateLimits:
                    burst: 0
                    interval: string
            httpMonitoringEndpoint:
                bufferEnabled: false
                enabled: false
                host: string
                port: 0
                pprofEnabled: false
        advancedSettings:
            downloadTargetDirectory: string
            downloadTimeout: string
            goMaxProcs: 0
            loggingFilesInterval: string
            loggingFilesKeepfiles: 0
            loggingFilesRotateeverybytes: 0
            loggingLevel: string
            loggingMetricsPeriod: string
            loggingToFiles: false
            monitoringRuntimeExperimental: string
        dataOutputId: string
        description: string
        downloadSourceId: string
        fleetServerHostId: string
        globalDataTags:
            string:
                numberValue: 0
                stringValue: string
        hostNameFormat: string
        inactivityTimeout: string
        isProtected: false
        kibanaConnections:
            - apiKey: string
              bearerToken: string
              caCerts:
                - string
              endpoints:
                - string
              insecure: false
              password: string
              username: string
        monitorLogs: false
        monitorMetrics: false
        monitoringOutputId: string
        name: string
        namespace: string
        policyId: string
        requiredVersions:
            string: 0
        skipDestroy: false
        spaceIds:
            - string
        supportsAgentless: false
        sysMonitoring: false
        unenrollmentTimeout: string
    

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

    Namespace string
    The namespace of the agent policy.
    AdvancedMonitoringOptions FleetAgentPolicyAdvancedMonitoringOptions
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    AdvancedSettings FleetAgentPolicyAdvancedSettings
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    DataOutputId string
    The identifier for the data output.
    Description string
    The description of the agent policy.
    DownloadSourceId string
    The identifier for the Elastic Agent binary download server.
    FleetServerHostId string
    The identifier for the Fleet server host.
    GlobalDataTags Dictionary<string, FleetAgentPolicyGlobalDataTagsArgs>
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    HostNameFormat string
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    InactivityTimeout string
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    IsProtected bool
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    KibanaConnections List<FleetAgentPolicyKibanaConnection>
    Kibana connection configuration block.
    MonitorLogs bool
    Enable collection of agent logs.
    MonitorMetrics bool
    Enable collection of agent metrics.
    MonitoringOutputId string
    The identifier for monitoring output.
    Name string
    The name of the agent policy.
    PolicyId string
    Unique identifier of the agent policy.
    RequiredVersions Dictionary<string, double>
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    SkipDestroy bool
    SpaceIds List<string>
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    SupportsAgentless bool
    Set to true to enable agentless data collection.
    SysMonitoring bool
    Enable collection of system logs and metrics.
    UnenrollmentTimeout string
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').
    Namespace string
    The namespace of the agent policy.
    AdvancedMonitoringOptions FleetAgentPolicyAdvancedMonitoringOptionsArgs
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    AdvancedSettings FleetAgentPolicyAdvancedSettingsArgs
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    DataOutputId string
    The identifier for the data output.
    Description string
    The description of the agent policy.
    DownloadSourceId string
    The identifier for the Elastic Agent binary download server.
    FleetServerHostId string
    The identifier for the Fleet server host.
    GlobalDataTags map[string]FleetAgentPolicyGlobalDataTagsArgs
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    HostNameFormat string
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    InactivityTimeout string
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    IsProtected bool
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    KibanaConnections []FleetAgentPolicyKibanaConnectionArgs
    Kibana connection configuration block.
    MonitorLogs bool
    Enable collection of agent logs.
    MonitorMetrics bool
    Enable collection of agent metrics.
    MonitoringOutputId string
    The identifier for monitoring output.
    Name string
    The name of the agent policy.
    PolicyId string
    Unique identifier of the agent policy.
    RequiredVersions map[string]float64
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    SkipDestroy bool
    SpaceIds []string
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    SupportsAgentless bool
    Set to true to enable agentless data collection.
    SysMonitoring bool
    Enable collection of system logs and metrics.
    UnenrollmentTimeout string
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').
    namespace string
    The namespace of the agent policy.
    advanced_monitoring_options object
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    advanced_settings object
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    data_output_id string
    The identifier for the data output.
    description string
    The description of the agent policy.
    download_source_id string
    The identifier for the Elastic Agent binary download server.
    fleet_server_host_id string
    The identifier for the Fleet server host.
    global_data_tags map(object)
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    host_name_format string
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    inactivity_timeout string
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    is_protected bool
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    kibana_connections list(object)
    Kibana connection configuration block.
    monitor_logs bool
    Enable collection of agent logs.
    monitor_metrics bool
    Enable collection of agent metrics.
    monitoring_output_id string
    The identifier for monitoring output.
    name string
    The name of the agent policy.
    policy_id string
    Unique identifier of the agent policy.
    required_versions map(number)
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    skip_destroy bool
    space_ids list(string)
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    supports_agentless bool
    Set to true to enable agentless data collection.
    sys_monitoring bool
    Enable collection of system logs and metrics.
    unenrollment_timeout string
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').
    namespace String
    The namespace of the agent policy.
    advancedMonitoringOptions FleetAgentPolicyAdvancedMonitoringOptions
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    advancedSettings FleetAgentPolicyAdvancedSettings
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    dataOutputId String
    The identifier for the data output.
    description String
    The description of the agent policy.
    downloadSourceId String
    The identifier for the Elastic Agent binary download server.
    fleetServerHostId String
    The identifier for the Fleet server host.
    globalDataTags Map<String,FleetAgentPolicyGlobalDataTagsArgs>
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    hostNameFormat String
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    inactivityTimeout String
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    isProtected Boolean
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    kibanaConnections List<FleetAgentPolicyKibanaConnection>
    Kibana connection configuration block.
    monitorLogs Boolean
    Enable collection of agent logs.
    monitorMetrics Boolean
    Enable collection of agent metrics.
    monitoringOutputId String
    The identifier for monitoring output.
    name String
    The name of the agent policy.
    policyId String
    Unique identifier of the agent policy.
    requiredVersions Map<String,Double>
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    skipDestroy Boolean
    spaceIds List<String>
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    supportsAgentless Boolean
    Set to true to enable agentless data collection.
    sysMonitoring Boolean
    Enable collection of system logs and metrics.
    unenrollmentTimeout String
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').
    namespace string
    The namespace of the agent policy.
    advancedMonitoringOptions FleetAgentPolicyAdvancedMonitoringOptions
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    advancedSettings FleetAgentPolicyAdvancedSettings
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    dataOutputId string
    The identifier for the data output.
    description string
    The description of the agent policy.
    downloadSourceId string
    The identifier for the Elastic Agent binary download server.
    fleetServerHostId string
    The identifier for the Fleet server host.
    globalDataTags {[key: string]: FleetAgentPolicyGlobalDataTagsArgs}
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    hostNameFormat string
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    inactivityTimeout string
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    isProtected boolean
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    kibanaConnections FleetAgentPolicyKibanaConnection[]
    Kibana connection configuration block.
    monitorLogs boolean
    Enable collection of agent logs.
    monitorMetrics boolean
    Enable collection of agent metrics.
    monitoringOutputId string
    The identifier for monitoring output.
    name string
    The name of the agent policy.
    policyId string
    Unique identifier of the agent policy.
    requiredVersions {[key: string]: number}
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    skipDestroy boolean
    spaceIds string[]
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    supportsAgentless boolean
    Set to true to enable agentless data collection.
    sysMonitoring boolean
    Enable collection of system logs and metrics.
    unenrollmentTimeout string
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').
    namespace str
    The namespace of the agent policy.
    advanced_monitoring_options FleetAgentPolicyAdvancedMonitoringOptionsArgs
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    advanced_settings FleetAgentPolicyAdvancedSettingsArgs
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    data_output_id str
    The identifier for the data output.
    description str
    The description of the agent policy.
    download_source_id str
    The identifier for the Elastic Agent binary download server.
    fleet_server_host_id str
    The identifier for the Fleet server host.
    global_data_tags Mapping[str, FleetAgentPolicyGlobalDataTagsArgs]
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    host_name_format str
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    inactivity_timeout str
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    is_protected bool
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    kibana_connections Sequence[FleetAgentPolicyKibanaConnectionArgs]
    Kibana connection configuration block.
    monitor_logs bool
    Enable collection of agent logs.
    monitor_metrics bool
    Enable collection of agent metrics.
    monitoring_output_id str
    The identifier for monitoring output.
    name str
    The name of the agent policy.
    policy_id str
    Unique identifier of the agent policy.
    required_versions Mapping[str, float]
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    skip_destroy bool
    space_ids Sequence[str]
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    supports_agentless bool
    Set to true to enable agentless data collection.
    sys_monitoring bool
    Enable collection of system logs and metrics.
    unenrollment_timeout str
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').
    namespace String
    The namespace of the agent policy.
    advancedMonitoringOptions Property Map
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    advancedSettings Property Map
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    dataOutputId String
    The identifier for the data output.
    description String
    The description of the agent policy.
    downloadSourceId String
    The identifier for the Elastic Agent binary download server.
    fleetServerHostId String
    The identifier for the Fleet server host.
    globalDataTags Map<Property Map>
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    hostNameFormat String
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    inactivityTimeout String
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    isProtected Boolean
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    kibanaConnections List<Property Map>
    Kibana connection configuration block.
    monitorLogs Boolean
    Enable collection of agent logs.
    monitorMetrics Boolean
    Enable collection of agent metrics.
    monitoringOutputId String
    The identifier for monitoring output.
    name String
    The name of the agent policy.
    policyId String
    Unique identifier of the agent policy.
    requiredVersions Map<Number>
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    skipDestroy Boolean
    spaceIds List<String>
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    supportsAgentless Boolean
    Set to true to enable agentless data collection.
    sysMonitoring Boolean
    Enable collection of system logs and metrics.
    unenrollmentTimeout String
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FleetAgentPolicy 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 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 FleetAgentPolicy Resource

    Get an existing FleetAgentPolicy 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?: FleetAgentPolicyState, opts?: CustomResourceOptions): FleetAgentPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            advanced_monitoring_options: Optional[FleetAgentPolicyAdvancedMonitoringOptionsArgs] = None,
            advanced_settings: Optional[FleetAgentPolicyAdvancedSettingsArgs] = None,
            data_output_id: Optional[str] = None,
            description: Optional[str] = None,
            download_source_id: Optional[str] = None,
            fleet_server_host_id: Optional[str] = None,
            global_data_tags: Optional[Mapping[str, FleetAgentPolicyGlobalDataTagsArgs]] = None,
            host_name_format: Optional[str] = None,
            inactivity_timeout: Optional[str] = None,
            is_protected: Optional[bool] = None,
            kibana_connections: Optional[Sequence[FleetAgentPolicyKibanaConnectionArgs]] = None,
            monitor_logs: Optional[bool] = None,
            monitor_metrics: Optional[bool] = None,
            monitoring_output_id: Optional[str] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            policy_id: Optional[str] = None,
            required_versions: Optional[Mapping[str, float]] = None,
            skip_destroy: Optional[bool] = None,
            space_ids: Optional[Sequence[str]] = None,
            supports_agentless: Optional[bool] = None,
            sys_monitoring: Optional[bool] = None,
            unenrollment_timeout: Optional[str] = None) -> FleetAgentPolicy
    func GetFleetAgentPolicy(ctx *Context, name string, id IDInput, state *FleetAgentPolicyState, opts ...ResourceOption) (*FleetAgentPolicy, error)
    public static FleetAgentPolicy Get(string name, Input<string> id, FleetAgentPolicyState? state, CustomResourceOptions? opts = null)
    public static FleetAgentPolicy get(String name, Output<String> id, FleetAgentPolicyState state, CustomResourceOptions options)
    resources:  _:    type: elasticstack:FleetAgentPolicy    get:      id: ${id}
    import {
      to = elasticstack_fleetagentpolicy.example
      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:
    AdvancedMonitoringOptions FleetAgentPolicyAdvancedMonitoringOptions
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    AdvancedSettings FleetAgentPolicyAdvancedSettings
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    DataOutputId string
    The identifier for the data output.
    Description string
    The description of the agent policy.
    DownloadSourceId string
    The identifier for the Elastic Agent binary download server.
    FleetServerHostId string
    The identifier for the Fleet server host.
    GlobalDataTags Dictionary<string, FleetAgentPolicyGlobalDataTagsArgs>
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    HostNameFormat string
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    InactivityTimeout string
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    IsProtected bool
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    KibanaConnections List<FleetAgentPolicyKibanaConnection>
    Kibana connection configuration block.
    MonitorLogs bool
    Enable collection of agent logs.
    MonitorMetrics bool
    Enable collection of agent metrics.
    MonitoringOutputId string
    The identifier for monitoring output.
    Name string
    The name of the agent policy.
    Namespace string
    The namespace of the agent policy.
    PolicyId string
    Unique identifier of the agent policy.
    RequiredVersions Dictionary<string, double>
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    SkipDestroy bool
    SpaceIds List<string>
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    SupportsAgentless bool
    Set to true to enable agentless data collection.
    SysMonitoring bool
    Enable collection of system logs and metrics.
    UnenrollmentTimeout string
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').
    AdvancedMonitoringOptions FleetAgentPolicyAdvancedMonitoringOptionsArgs
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    AdvancedSettings FleetAgentPolicyAdvancedSettingsArgs
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    DataOutputId string
    The identifier for the data output.
    Description string
    The description of the agent policy.
    DownloadSourceId string
    The identifier for the Elastic Agent binary download server.
    FleetServerHostId string
    The identifier for the Fleet server host.
    GlobalDataTags map[string]FleetAgentPolicyGlobalDataTagsArgs
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    HostNameFormat string
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    InactivityTimeout string
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    IsProtected bool
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    KibanaConnections []FleetAgentPolicyKibanaConnectionArgs
    Kibana connection configuration block.
    MonitorLogs bool
    Enable collection of agent logs.
    MonitorMetrics bool
    Enable collection of agent metrics.
    MonitoringOutputId string
    The identifier for monitoring output.
    Name string
    The name of the agent policy.
    Namespace string
    The namespace of the agent policy.
    PolicyId string
    Unique identifier of the agent policy.
    RequiredVersions map[string]float64
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    SkipDestroy bool
    SpaceIds []string
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    SupportsAgentless bool
    Set to true to enable agentless data collection.
    SysMonitoring bool
    Enable collection of system logs and metrics.
    UnenrollmentTimeout string
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').
    advanced_monitoring_options object
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    advanced_settings object
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    data_output_id string
    The identifier for the data output.
    description string
    The description of the agent policy.
    download_source_id string
    The identifier for the Elastic Agent binary download server.
    fleet_server_host_id string
    The identifier for the Fleet server host.
    global_data_tags map(object)
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    host_name_format string
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    inactivity_timeout string
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    is_protected bool
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    kibana_connections list(object)
    Kibana connection configuration block.
    monitor_logs bool
    Enable collection of agent logs.
    monitor_metrics bool
    Enable collection of agent metrics.
    monitoring_output_id string
    The identifier for monitoring output.
    name string
    The name of the agent policy.
    namespace string
    The namespace of the agent policy.
    policy_id string
    Unique identifier of the agent policy.
    required_versions map(number)
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    skip_destroy bool
    space_ids list(string)
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    supports_agentless bool
    Set to true to enable agentless data collection.
    sys_monitoring bool
    Enable collection of system logs and metrics.
    unenrollment_timeout string
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').
    advancedMonitoringOptions FleetAgentPolicyAdvancedMonitoringOptions
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    advancedSettings FleetAgentPolicyAdvancedSettings
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    dataOutputId String
    The identifier for the data output.
    description String
    The description of the agent policy.
    downloadSourceId String
    The identifier for the Elastic Agent binary download server.
    fleetServerHostId String
    The identifier for the Fleet server host.
    globalDataTags Map<String,FleetAgentPolicyGlobalDataTagsArgs>
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    hostNameFormat String
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    inactivityTimeout String
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    isProtected Boolean
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    kibanaConnections List<FleetAgentPolicyKibanaConnection>
    Kibana connection configuration block.
    monitorLogs Boolean
    Enable collection of agent logs.
    monitorMetrics Boolean
    Enable collection of agent metrics.
    monitoringOutputId String
    The identifier for monitoring output.
    name String
    The name of the agent policy.
    namespace String
    The namespace of the agent policy.
    policyId String
    Unique identifier of the agent policy.
    requiredVersions Map<String,Double>
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    skipDestroy Boolean
    spaceIds List<String>
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    supportsAgentless Boolean
    Set to true to enable agentless data collection.
    sysMonitoring Boolean
    Enable collection of system logs and metrics.
    unenrollmentTimeout String
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').
    advancedMonitoringOptions FleetAgentPolicyAdvancedMonitoringOptions
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    advancedSettings FleetAgentPolicyAdvancedSettings
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    dataOutputId string
    The identifier for the data output.
    description string
    The description of the agent policy.
    downloadSourceId string
    The identifier for the Elastic Agent binary download server.
    fleetServerHostId string
    The identifier for the Fleet server host.
    globalDataTags {[key: string]: FleetAgentPolicyGlobalDataTagsArgs}
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    hostNameFormat string
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    inactivityTimeout string
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    isProtected boolean
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    kibanaConnections FleetAgentPolicyKibanaConnection[]
    Kibana connection configuration block.
    monitorLogs boolean
    Enable collection of agent logs.
    monitorMetrics boolean
    Enable collection of agent metrics.
    monitoringOutputId string
    The identifier for monitoring output.
    name string
    The name of the agent policy.
    namespace string
    The namespace of the agent policy.
    policyId string
    Unique identifier of the agent policy.
    requiredVersions {[key: string]: number}
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    skipDestroy boolean
    spaceIds string[]
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    supportsAgentless boolean
    Set to true to enable agentless data collection.
    sysMonitoring boolean
    Enable collection of system logs and metrics.
    unenrollmentTimeout string
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').
    advanced_monitoring_options FleetAgentPolicyAdvancedMonitoringOptionsArgs
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    advanced_settings FleetAgentPolicyAdvancedSettingsArgs
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    data_output_id str
    The identifier for the data output.
    description str
    The description of the agent policy.
    download_source_id str
    The identifier for the Elastic Agent binary download server.
    fleet_server_host_id str
    The identifier for the Fleet server host.
    global_data_tags Mapping[str, FleetAgentPolicyGlobalDataTagsArgs]
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    host_name_format str
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    inactivity_timeout str
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    is_protected bool
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    kibana_connections Sequence[FleetAgentPolicyKibanaConnectionArgs]
    Kibana connection configuration block.
    monitor_logs bool
    Enable collection of agent logs.
    monitor_metrics bool
    Enable collection of agent metrics.
    monitoring_output_id str
    The identifier for monitoring output.
    name str
    The name of the agent policy.
    namespace str
    The namespace of the agent policy.
    policy_id str
    Unique identifier of the agent policy.
    required_versions Mapping[str, float]
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    skip_destroy bool
    space_ids Sequence[str]
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    supports_agentless bool
    Set to true to enable agentless data collection.
    sys_monitoring bool
    Enable collection of system logs and metrics.
    unenrollment_timeout str
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').
    advancedMonitoringOptions Property Map
    Advanced monitoring options for the agent policy. Includes HTTP monitoring endpoint configuration and diagnostic settings.
    advancedSettings Property Map
    Advanced agent settings for logging, resource limits, and downloads. These settings configure the behavior of Elastic Agents enrolled in this policy.
    dataOutputId String
    The identifier for the data output.
    description String
    The description of the agent policy.
    downloadSourceId String
    The identifier for the Elastic Agent binary download server.
    fleetServerHostId String
    The identifier for the Fleet server host.
    globalDataTags Map<Property Map>
    User-defined data tags to apply to all inputs. Values can be strings (stringvalue) or numbers (numbervalue) but not both. Example -- key1 = {stringvalue = value1}, key2 = {numbervalue = 42}
    hostNameFormat String
    Determines the format of the host.name field in events. Can be 'hostname' (short hostname, e.g., 'myhost') or 'fqdn' (fully qualified domain name, e.g., 'myhost.example.com'). Defaults to 'hostname'.
    inactivityTimeout String
    The inactivity timeout for the agent policy. If an agent does not report within this time period, it will be considered inactive. Supports duration strings (e.g., '30s', '2m', '1h').
    isProtected Boolean
    Enable tamper protection for this agent policy (Fleet API is_protected). When true, agents use uninstall tokens. Requires Elastic Stack 8.10.0 or later.
    kibanaConnections List<Property Map>
    Kibana connection configuration block.
    monitorLogs Boolean
    Enable collection of agent logs.
    monitorMetrics Boolean
    Enable collection of agent metrics.
    monitoringOutputId String
    The identifier for monitoring output.
    name String
    The name of the agent policy.
    namespace String
    The namespace of the agent policy.
    policyId String
    Unique identifier of the agent policy.
    requiredVersions Map<Number>
    Map of agent versions to target percentages for automatic upgrade. The key is the target version and the value is the percentage of agents to upgrade to that version.
    skipDestroy Boolean
    spaceIds List<String>
    The Kibana space IDs that this agent policy should be available in. When not specified, defaults to ["default"]. Note: The order of space IDs does not matter as this is a set.
    supportsAgentless Boolean
    Set to true to enable agentless data collection.
    sysMonitoring Boolean
    Enable collection of system logs and metrics.
    unenrollmentTimeout String
    The unenrollment timeout for the agent policy. If an agent is inactive for this period, it will be automatically unenrolled. Supports duration strings (e.g., '30s', '2m', '1h').

    Supporting Types

    FleetAgentPolicyAdvancedMonitoringOptions, FleetAgentPolicyAdvancedMonitoringOptionsArgs

    Diagnostics FleetAgentPolicyAdvancedMonitoringOptionsDiagnostics
    Diagnostic settings for rate limiting and file upload behavior.
    HttpMonitoringEndpoint FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpoint
    HTTP monitoring endpoint configuration for agent health checks and liveness probes.
    Diagnostics FleetAgentPolicyAdvancedMonitoringOptionsDiagnostics
    Diagnostic settings for rate limiting and file upload behavior.
    HttpMonitoringEndpoint FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpoint
    HTTP monitoring endpoint configuration for agent health checks and liveness probes.
    diagnostics object
    Diagnostic settings for rate limiting and file upload behavior.
    http_monitoring_endpoint object
    HTTP monitoring endpoint configuration for agent health checks and liveness probes.
    diagnostics FleetAgentPolicyAdvancedMonitoringOptionsDiagnostics
    Diagnostic settings for rate limiting and file upload behavior.
    httpMonitoringEndpoint FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpoint
    HTTP monitoring endpoint configuration for agent health checks and liveness probes.
    diagnostics FleetAgentPolicyAdvancedMonitoringOptionsDiagnostics
    Diagnostic settings for rate limiting and file upload behavior.
    httpMonitoringEndpoint FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpoint
    HTTP monitoring endpoint configuration for agent health checks and liveness probes.
    diagnostics FleetAgentPolicyAdvancedMonitoringOptionsDiagnostics
    Diagnostic settings for rate limiting and file upload behavior.
    http_monitoring_endpoint FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpoint
    HTTP monitoring endpoint configuration for agent health checks and liveness probes.
    diagnostics Property Map
    Diagnostic settings for rate limiting and file upload behavior.
    httpMonitoringEndpoint Property Map
    HTTP monitoring endpoint configuration for agent health checks and liveness probes.

    FleetAgentPolicyAdvancedMonitoringOptionsDiagnostics, FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsArgs

    FileUploader FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploader
    Diagnostic file upload retry configuration.
    RateLimits FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimits
    Rate limiting configuration for diagnostics requests from Fleet.
    FileUploader FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploader
    Diagnostic file upload retry configuration.
    RateLimits FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimits
    Rate limiting configuration for diagnostics requests from Fleet.
    file_uploader object
    Diagnostic file upload retry configuration.
    rate_limits object
    Rate limiting configuration for diagnostics requests from Fleet.
    fileUploader FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploader
    Diagnostic file upload retry configuration.
    rateLimits FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimits
    Rate limiting configuration for diagnostics requests from Fleet.
    fileUploader FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploader
    Diagnostic file upload retry configuration.
    rateLimits FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimits
    Rate limiting configuration for diagnostics requests from Fleet.
    file_uploader FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploader
    Diagnostic file upload retry configuration.
    rate_limits FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimits
    Rate limiting configuration for diagnostics requests from Fleet.
    fileUploader Property Map
    Diagnostic file upload retry configuration.
    rateLimits Property Map
    Rate limiting configuration for diagnostics requests from Fleet.

    FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploader, FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploaderArgs

    BackoffDuration string
    Maximum backoff duration between retry attempts (e.g., '1m', '30s').
    InitDuration string
    Initial duration before the first retry attempt (e.g., '1s', '500ms').
    MaxRetries double
    Maximum number of retry attempts for file uploads.
    BackoffDuration string
    Maximum backoff duration between retry attempts (e.g., '1m', '30s').
    InitDuration string
    Initial duration before the first retry attempt (e.g., '1s', '500ms').
    MaxRetries float64
    Maximum number of retry attempts for file uploads.
    backoff_duration string
    Maximum backoff duration between retry attempts (e.g., '1m', '30s').
    init_duration string
    Initial duration before the first retry attempt (e.g., '1s', '500ms').
    max_retries number
    Maximum number of retry attempts for file uploads.
    backoffDuration String
    Maximum backoff duration between retry attempts (e.g., '1m', '30s').
    initDuration String
    Initial duration before the first retry attempt (e.g., '1s', '500ms').
    maxRetries Double
    Maximum number of retry attempts for file uploads.
    backoffDuration string
    Maximum backoff duration between retry attempts (e.g., '1m', '30s').
    initDuration string
    Initial duration before the first retry attempt (e.g., '1s', '500ms').
    maxRetries number
    Maximum number of retry attempts for file uploads.
    backoff_duration str
    Maximum backoff duration between retry attempts (e.g., '1m', '30s').
    init_duration str
    Initial duration before the first retry attempt (e.g., '1s', '500ms').
    max_retries float
    Maximum number of retry attempts for file uploads.
    backoffDuration String
    Maximum backoff duration between retry attempts (e.g., '1m', '30s').
    initDuration String
    Initial duration before the first retry attempt (e.g., '1s', '500ms').
    maxRetries Number
    Maximum number of retry attempts for file uploads.

    FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimits, FleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimitsArgs

    Burst double
    Rate limiting burst count for diagnostics requests.
    Interval string
    Rate limiting interval for diagnostics requests (e.g., '1m', '30s').
    Burst float64
    Rate limiting burst count for diagnostics requests.
    Interval string
    Rate limiting interval for diagnostics requests (e.g., '1m', '30s').
    burst number
    Rate limiting burst count for diagnostics requests.
    interval string
    Rate limiting interval for diagnostics requests (e.g., '1m', '30s').
    burst Double
    Rate limiting burst count for diagnostics requests.
    interval String
    Rate limiting interval for diagnostics requests (e.g., '1m', '30s').
    burst number
    Rate limiting burst count for diagnostics requests.
    interval string
    Rate limiting interval for diagnostics requests (e.g., '1m', '30s').
    burst float
    Rate limiting burst count for diagnostics requests.
    interval str
    Rate limiting interval for diagnostics requests (e.g., '1m', '30s').
    burst Number
    Rate limiting burst count for diagnostics requests.
    interval String
    Rate limiting interval for diagnostics requests (e.g., '1m', '30s').

    FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpoint, FleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpointArgs

    BufferEnabled bool
    Enable monitoring buffer for the HTTP endpoint.
    Enabled bool
    Enable the HTTP monitoring endpoint. When enabled, exposes a /liveness endpoint for health checks.
    Host string
    Host for the HTTP monitoring endpoint.
    Port double
    Port for the HTTP monitoring endpoint.
    PprofEnabled bool
    Enable /debug/pprof/* profiling endpoints. Warning: enabling this may pose a security risk if the monitoring endpoint is accessible over a network.
    BufferEnabled bool
    Enable monitoring buffer for the HTTP endpoint.
    Enabled bool
    Enable the HTTP monitoring endpoint. When enabled, exposes a /liveness endpoint for health checks.
    Host string
    Host for the HTTP monitoring endpoint.
    Port float64
    Port for the HTTP monitoring endpoint.
    PprofEnabled bool
    Enable /debug/pprof/* profiling endpoints. Warning: enabling this may pose a security risk if the monitoring endpoint is accessible over a network.
    buffer_enabled bool
    Enable monitoring buffer for the HTTP endpoint.
    enabled bool
    Enable the HTTP monitoring endpoint. When enabled, exposes a /liveness endpoint for health checks.
    host string
    Host for the HTTP monitoring endpoint.
    port number
    Port for the HTTP monitoring endpoint.
    pprof_enabled bool
    Enable /debug/pprof/* profiling endpoints. Warning: enabling this may pose a security risk if the monitoring endpoint is accessible over a network.
    bufferEnabled Boolean
    Enable monitoring buffer for the HTTP endpoint.
    enabled Boolean
    Enable the HTTP monitoring endpoint. When enabled, exposes a /liveness endpoint for health checks.
    host String
    Host for the HTTP monitoring endpoint.
    port Double
    Port for the HTTP monitoring endpoint.
    pprofEnabled Boolean
    Enable /debug/pprof/* profiling endpoints. Warning: enabling this may pose a security risk if the monitoring endpoint is accessible over a network.
    bufferEnabled boolean
    Enable monitoring buffer for the HTTP endpoint.
    enabled boolean
    Enable the HTTP monitoring endpoint. When enabled, exposes a /liveness endpoint for health checks.
    host string
    Host for the HTTP monitoring endpoint.
    port number
    Port for the HTTP monitoring endpoint.
    pprofEnabled boolean
    Enable /debug/pprof/* profiling endpoints. Warning: enabling this may pose a security risk if the monitoring endpoint is accessible over a network.
    buffer_enabled bool
    Enable monitoring buffer for the HTTP endpoint.
    enabled bool
    Enable the HTTP monitoring endpoint. When enabled, exposes a /liveness endpoint for health checks.
    host str
    Host for the HTTP monitoring endpoint.
    port float
    Port for the HTTP monitoring endpoint.
    pprof_enabled bool
    Enable /debug/pprof/* profiling endpoints. Warning: enabling this may pose a security risk if the monitoring endpoint is accessible over a network.
    bufferEnabled Boolean
    Enable monitoring buffer for the HTTP endpoint.
    enabled Boolean
    Enable the HTTP monitoring endpoint. When enabled, exposes a /liveness endpoint for health checks.
    host String
    Host for the HTTP monitoring endpoint.
    port Number
    Port for the HTTP monitoring endpoint.
    pprofEnabled Boolean
    Enable /debug/pprof/* profiling endpoints. Warning: enabling this may pose a security risk if the monitoring endpoint is accessible over a network.

    FleetAgentPolicyAdvancedSettings, FleetAgentPolicyAdvancedSettingsArgs

    DownloadTargetDirectory string
    Target directory for downloading agent updates.
    DownloadTimeout string
    Timeout for downloading agent updates (e.g., '2h', '30m').
    GoMaxProcs double
    Maximum number of CPUs that the agent can use (GOMAXPROCS). Set to 0 to use all available CPUs.
    LoggingFilesInterval string
    Interval for log file rotation (e.g., '30s', '1m', '1h').
    LoggingFilesKeepfiles double
    Number of rotated log files to keep.
    LoggingFilesRotateeverybytes double
    Rotate log files when they reach this size in bytes.
    LoggingLevel string
    Logging level for the agent. Valid values: debug, info, warning, error.
    LoggingMetricsPeriod string
    Period for logging agent metrics (e.g., '30s', '1m').
    LoggingToFiles bool
    Enable logging to files.
    MonitoringRuntimeExperimental string
    Experimental runtime monitoring mode. Valid values: '' (empty string to disable), 'process', 'otel'.
    DownloadTargetDirectory string
    Target directory for downloading agent updates.
    DownloadTimeout string
    Timeout for downloading agent updates (e.g., '2h', '30m').
    GoMaxProcs float64
    Maximum number of CPUs that the agent can use (GOMAXPROCS). Set to 0 to use all available CPUs.
    LoggingFilesInterval string
    Interval for log file rotation (e.g., '30s', '1m', '1h').
    LoggingFilesKeepfiles float64
    Number of rotated log files to keep.
    LoggingFilesRotateeverybytes float64
    Rotate log files when they reach this size in bytes.
    LoggingLevel string
    Logging level for the agent. Valid values: debug, info, warning, error.
    LoggingMetricsPeriod string
    Period for logging agent metrics (e.g., '30s', '1m').
    LoggingToFiles bool
    Enable logging to files.
    MonitoringRuntimeExperimental string
    Experimental runtime monitoring mode. Valid values: '' (empty string to disable), 'process', 'otel'.
    download_target_directory string
    Target directory for downloading agent updates.
    download_timeout string
    Timeout for downloading agent updates (e.g., '2h', '30m').
    go_max_procs number
    Maximum number of CPUs that the agent can use (GOMAXPROCS). Set to 0 to use all available CPUs.
    logging_files_interval string
    Interval for log file rotation (e.g., '30s', '1m', '1h').
    logging_files_keepfiles number
    Number of rotated log files to keep.
    logging_files_rotateeverybytes number
    Rotate log files when they reach this size in bytes.
    logging_level string
    Logging level for the agent. Valid values: debug, info, warning, error.
    logging_metrics_period string
    Period for logging agent metrics (e.g., '30s', '1m').
    logging_to_files bool
    Enable logging to files.
    monitoring_runtime_experimental string
    Experimental runtime monitoring mode. Valid values: '' (empty string to disable), 'process', 'otel'.
    downloadTargetDirectory String
    Target directory for downloading agent updates.
    downloadTimeout String
    Timeout for downloading agent updates (e.g., '2h', '30m').
    goMaxProcs Double
    Maximum number of CPUs that the agent can use (GOMAXPROCS). Set to 0 to use all available CPUs.
    loggingFilesInterval String
    Interval for log file rotation (e.g., '30s', '1m', '1h').
    loggingFilesKeepfiles Double
    Number of rotated log files to keep.
    loggingFilesRotateeverybytes Double
    Rotate log files when they reach this size in bytes.
    loggingLevel String
    Logging level for the agent. Valid values: debug, info, warning, error.
    loggingMetricsPeriod String
    Period for logging agent metrics (e.g., '30s', '1m').
    loggingToFiles Boolean
    Enable logging to files.
    monitoringRuntimeExperimental String
    Experimental runtime monitoring mode. Valid values: '' (empty string to disable), 'process', 'otel'.
    downloadTargetDirectory string
    Target directory for downloading agent updates.
    downloadTimeout string
    Timeout for downloading agent updates (e.g., '2h', '30m').
    goMaxProcs number
    Maximum number of CPUs that the agent can use (GOMAXPROCS). Set to 0 to use all available CPUs.
    loggingFilesInterval string
    Interval for log file rotation (e.g., '30s', '1m', '1h').
    loggingFilesKeepfiles number
    Number of rotated log files to keep.
    loggingFilesRotateeverybytes number
    Rotate log files when they reach this size in bytes.
    loggingLevel string
    Logging level for the agent. Valid values: debug, info, warning, error.
    loggingMetricsPeriod string
    Period for logging agent metrics (e.g., '30s', '1m').
    loggingToFiles boolean
    Enable logging to files.
    monitoringRuntimeExperimental string
    Experimental runtime monitoring mode. Valid values: '' (empty string to disable), 'process', 'otel'.
    download_target_directory str
    Target directory for downloading agent updates.
    download_timeout str
    Timeout for downloading agent updates (e.g., '2h', '30m').
    go_max_procs float
    Maximum number of CPUs that the agent can use (GOMAXPROCS). Set to 0 to use all available CPUs.
    logging_files_interval str
    Interval for log file rotation (e.g., '30s', '1m', '1h').
    logging_files_keepfiles float
    Number of rotated log files to keep.
    logging_files_rotateeverybytes float
    Rotate log files when they reach this size in bytes.
    logging_level str
    Logging level for the agent. Valid values: debug, info, warning, error.
    logging_metrics_period str
    Period for logging agent metrics (e.g., '30s', '1m').
    logging_to_files bool
    Enable logging to files.
    monitoring_runtime_experimental str
    Experimental runtime monitoring mode. Valid values: '' (empty string to disable), 'process', 'otel'.
    downloadTargetDirectory String
    Target directory for downloading agent updates.
    downloadTimeout String
    Timeout for downloading agent updates (e.g., '2h', '30m').
    goMaxProcs Number
    Maximum number of CPUs that the agent can use (GOMAXPROCS). Set to 0 to use all available CPUs.
    loggingFilesInterval String
    Interval for log file rotation (e.g., '30s', '1m', '1h').
    loggingFilesKeepfiles Number
    Number of rotated log files to keep.
    loggingFilesRotateeverybytes Number
    Rotate log files when they reach this size in bytes.
    loggingLevel String
    Logging level for the agent. Valid values: debug, info, warning, error.
    loggingMetricsPeriod String
    Period for logging agent metrics (e.g., '30s', '1m').
    loggingToFiles Boolean
    Enable logging to files.
    monitoringRuntimeExperimental String
    Experimental runtime monitoring mode. Valid values: '' (empty string to disable), 'process', 'otel'.

    FleetAgentPolicyGlobalDataTags, FleetAgentPolicyGlobalDataTagsArgs

    NumberValue double
    Number value for the field. If this is set, string_value must not be defined.
    StringValue string
    String value for the field. If this is set, number_value must not be defined.
    NumberValue float64
    Number value for the field. If this is set, string_value must not be defined.
    StringValue string
    String value for the field. If this is set, number_value must not be defined.
    number_value number
    Number value for the field. If this is set, string_value must not be defined.
    string_value string
    String value for the field. If this is set, number_value must not be defined.
    numberValue Double
    Number value for the field. If this is set, string_value must not be defined.
    stringValue String
    String value for the field. If this is set, number_value must not be defined.
    numberValue number
    Number value for the field. If this is set, string_value must not be defined.
    stringValue string
    String value for the field. If this is set, number_value must not be defined.
    number_value float
    Number value for the field. If this is set, string_value must not be defined.
    string_value str
    String value for the field. If this is set, number_value must not be defined.
    numberValue Number
    Number value for the field. If this is set, string_value must not be defined.
    stringValue String
    String value for the field. If this is set, number_value must not be defined.

    FleetAgentPolicyKibanaConnection, FleetAgentPolicyKibanaConnectionArgs

    ApiKey string
    API Key to use for authentication to Kibana
    BearerToken string
    Bearer Token to use for authentication to Kibana
    CaCerts List<string>
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    Endpoints List<string>
    Insecure bool
    Disable TLS certificate validation
    Password string
    Password to use for API authentication to Kibana.
    Username string
    Username to use for API authentication to Kibana.
    ApiKey string
    API Key to use for authentication to Kibana
    BearerToken string
    Bearer Token to use for authentication to Kibana
    CaCerts []string
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    Endpoints []string
    Insecure bool
    Disable TLS certificate validation
    Password string
    Password to use for API authentication to Kibana.
    Username string
    Username to use for API authentication to Kibana.
    api_key string
    API Key to use for authentication to Kibana
    bearer_token string
    Bearer Token to use for authentication to Kibana
    ca_certs list(string)
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    endpoints list(string)
    insecure bool
    Disable TLS certificate validation
    password string
    Password to use for API authentication to Kibana.
    username string
    Username to use for API authentication to Kibana.
    apiKey String
    API Key to use for authentication to Kibana
    bearerToken String
    Bearer Token to use for authentication to Kibana
    caCerts List<String>
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    endpoints List<String>
    insecure Boolean
    Disable TLS certificate validation
    password String
    Password to use for API authentication to Kibana.
    username String
    Username to use for API authentication to Kibana.
    apiKey string
    API Key to use for authentication to Kibana
    bearerToken string
    Bearer Token to use for authentication to Kibana
    caCerts string[]
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    endpoints string[]
    insecure boolean
    Disable TLS certificate validation
    password string
    Password to use for API authentication to Kibana.
    username string
    Username to use for API authentication to Kibana.
    api_key str
    API Key to use for authentication to Kibana
    bearer_token str
    Bearer Token to use for authentication to Kibana
    ca_certs Sequence[str]
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    endpoints Sequence[str]
    insecure bool
    Disable TLS certificate validation
    password str
    Password to use for API authentication to Kibana.
    username str
    Username to use for API authentication to Kibana.
    apiKey String
    API Key to use for authentication to Kibana
    bearerToken String
    Bearer Token to use for authentication to Kibana
    caCerts List<String>
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    endpoints List<String>
    insecure Boolean
    Disable TLS certificate validation
    password String
    Password to use for API authentication to Kibana.
    username String
    Username to use for API authentication to Kibana.

    Import

    The pulumi import command can be used, for example:

    $ pulumi import elasticstack:index/fleetAgentPolicy:FleetAgentPolicy my_policy <space_id>/<fleet_agent_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.
    Viewing docs for elasticstack 0.15.0
    published on Thursday, May 14, 2026 by elastic
      Try Pulumi Cloud free. Your team will thank you.