Viewing docs for elasticstack 0.17.0
published on Tuesday, Nov 10, 2026 by elastic
published on Tuesday, Nov 10, 2026 by elastic
elasticstack
Viewing docs for elasticstack 0.17.0
published on Tuesday, Nov 10, 2026 by elastic
published on Tuesday, Nov 10, 2026 by elastic
Returns a Fleet agent policy looked up by policy_id or name. 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 pernode = elasticstack.getFleetAgentPolicy({
name: "k8s-metrics-pernode",
spaceId: "default",
});
const pernodeGetFleetEnrollmentTokens = pernode.then(pernode => elasticstack.getFleetEnrollmentTokens({
policyId: pernode.policyId,
}));
const byId = elasticstack.getFleetAgentPolicy({
policyId: "223b1bf8-240f-463f-8466-5062670d0754",
});
import pulumi
import pulumi_elasticstack as elasticstack
pernode = elasticstack.get_fleet_agent_policy(name="k8s-metrics-pernode",
space_id="default")
pernode_get_fleet_enrollment_tokens = elasticstack.get_fleet_enrollment_tokens(policy_id=pernode.policy_id)
by_id = elasticstack.get_fleet_agent_policy(policy_id="223b1bf8-240f-463f-8466-5062670d0754")
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 {
pernode, err := elasticstack.LookupFleetAgentPolicy(ctx, &elasticstack.LookupFleetAgentPolicyArgs{
Name: pulumi.StringRef("k8s-metrics-pernode"),
SpaceId: pulumi.StringRef("default"),
}, nil)
if err != nil {
return err
}
_, err = elasticstack.GetFleetEnrollmentTokens(ctx, &elasticstack.GetFleetEnrollmentTokensArgs{
PolicyId: pulumi.StringRef(pernode.PolicyId),
}, nil)
if err != nil {
return err
}
_, err = elasticstack.LookupFleetAgentPolicy(ctx, &elasticstack.LookupFleetAgentPolicyArgs{
PolicyId: pulumi.StringRef("223b1bf8-240f-463f-8466-5062670d0754"),
}, nil)
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 pernode = Elasticstack.GetFleetAgentPolicy.Invoke(new()
{
Name = "k8s-metrics-pernode",
SpaceId = "default",
});
var pernodeGetFleetEnrollmentTokens = Elasticstack.GetFleetEnrollmentTokens.Invoke(new()
{
PolicyId = pernode.Apply(getFleetAgentPolicyResult => getFleetAgentPolicyResult.PolicyId),
});
var byId = Elasticstack.GetFleetAgentPolicy.Invoke(new()
{
PolicyId = "223b1bf8-240f-463f-8466-5062670d0754",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.elasticstack.ElasticstackFunctions;
import com.pulumi.elasticstack.inputs.GetFleetAgentPolicyArgs;
import com.pulumi.elasticstack.inputs.GetFleetEnrollmentTokensArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var pernode = ElasticstackFunctions.getFleetAgentPolicy(GetFleetAgentPolicyArgs.builder()
.name("k8s-metrics-pernode")
.spaceId("default")
.build());
final var pernodeGetFleetEnrollmentTokens = ElasticstackFunctions.getFleetEnrollmentTokens(GetFleetEnrollmentTokensArgs.builder()
.policyId(pernode.policyId())
.build());
final var byId = ElasticstackFunctions.getFleetAgentPolicy(GetFleetAgentPolicyArgs.builder()
.policyId("223b1bf8-240f-463f-8466-5062670d0754")
.build());
}
}
variables:
pernode:
fn::invoke:
function: elasticstack:getFleetAgentPolicy
arguments:
name: k8s-metrics-pernode
spaceId: default
pernodeGetFleetEnrollmentTokens:
fn::invoke:
function: elasticstack:getFleetEnrollmentTokens
arguments:
policyId: ${pernode.policyId}
byId:
fn::invoke:
function: elasticstack:getFleetAgentPolicy
arguments:
policyId: 223b1bf8-240f-463f-8466-5062670d0754
Example coming soon!
Using getFleetAgentPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFleetAgentPolicy(args: GetFleetAgentPolicyArgs, opts?: InvokeOptions): Promise<GetFleetAgentPolicyResult>
function getFleetAgentPolicyOutput(args: GetFleetAgentPolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetFleetAgentPolicyResult>def get_fleet_agent_policy(kibana_connections: Optional[Sequence[GetFleetAgentPolicyKibanaConnection]] = None,
name: Optional[str] = None,
policy_id: Optional[str] = None,
space_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFleetAgentPolicyResult
def get_fleet_agent_policy_output(kibana_connections: pulumi.Input[Optional[Sequence[pulumi.Input[GetFleetAgentPolicyKibanaConnectionArgs]]]] = None,
name: pulumi.Input[Optional[str]] = None,
policy_id: pulumi.Input[Optional[str]] = None,
space_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetFleetAgentPolicyResult]func LookupFleetAgentPolicy(ctx *Context, args *LookupFleetAgentPolicyArgs, opts ...InvokeOption) (*LookupFleetAgentPolicyResult, error)
func LookupFleetAgentPolicyOutput(ctx *Context, args *LookupFleetAgentPolicyOutputArgs, opts ...InvokeOption) LookupFleetAgentPolicyResultOutput> Note: This function is named LookupFleetAgentPolicy in the Go SDK.
public static class GetFleetAgentPolicy
{
public static Task<GetFleetAgentPolicyResult> InvokeAsync(GetFleetAgentPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetFleetAgentPolicyResult> Invoke(GetFleetAgentPolicyInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetFleetAgentPolicyResult> Invoke(GetFleetAgentPolicyInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetFleetAgentPolicyResult> getFleetAgentPolicy(GetFleetAgentPolicyArgs args, InvokeOptions options)
public static Output<GetFleetAgentPolicyResult> getFleetAgentPolicy(GetFleetAgentPolicyArgs args, InvokeOptions options)
public static Output<GetFleetAgentPolicyResult> getFleetAgentPolicy(GetFleetAgentPolicyArgs args, InvokeOutputOptions options)
fn::invoke:
function: elasticstack:index/getFleetAgentPolicy:getFleetAgentPolicy
arguments:
# arguments dictionarydata "elasticstack_get_fleet_agent_policy" "name" {
# arguments
}The following arguments are supported:
- Kibana
Connections List<GetFleet Agent Policy Kibana Connection> - Kibana connection configuration block.
- Name string
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - Policy
Id string - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Kibana
Connections []GetFleet Agent Policy Kibana Connection - Kibana connection configuration block.
- Name string
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - Policy
Id string - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- kibana_
connections list(object) - Kibana connection configuration block.
- name string
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - policy_
id string - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - space_
id string - An identifier for the space. If space_id is not provided, the default space is used.
- kibana
Connections List<GetFleet Agent Policy Kibana Connection> - Kibana connection configuration block.
- name String
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - policy
Id String - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- kibana
Connections GetFleet Agent Policy Kibana Connection[] - Kibana connection configuration block.
- name string
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - policy
Id string - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- kibana_
connections Sequence[GetFleet Agent Policy Kibana Connection] - Kibana connection configuration block.
- name str
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - policy_
id str - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - space_
id str - An identifier for the space. If space_id is not provided, the default space is used.
- kibana
Connections List<Property Map> - Kibana connection configuration block.
- name String
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - policy
Id String - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
getFleetAgentPolicy Result
The following output properties are available:
- Advanced
Monitoring GetOptions Fleet Agent Policy Advanced Monitoring Options - Advanced monitoring options for the agent policy, including the HTTP monitoring endpoint and diagnostic settings.
- Advanced
Settings GetFleet Agent Policy Advanced Settings - Advanced agent settings for logging, resource limits, and downloads.
- Data
Output stringId - The identifier for the data output.
- Description string
- The description of the agent policy, as returned by the Fleet API.
- Download
Source stringId - The identifier for the Elastic Agent binary download server.
- Fleet
Server stringHost Id - The identifier for the Fleet server host.
-
Dictionary<string, Get
Fleet Agent Policy Global Data Tags> - User-defined tags. Keyed by tag name; each entry has exactly one of
string_valueornumber_value. - Host
Name stringFormat - Hostname format reported for agents in this policy.
hostnameis the short hostname;fqdnis the fully qualified domain name. - Id string
- The ID of this agent policy.
- Inactivity
Timeout string - Time an agent can be inactive before it is marked inactive. A duration string such as
30s,2m, or1h. - Is
Protected bool - Whether tamper protection is enabled for this agent policy (Fleet API
is_protected). - Monitor
Logs bool - Whether collection of agent logs is enabled.
- Monitor
Metrics bool - Whether collection of agent metrics is enabled.
- Monitoring
Output stringId - The identifier for monitoring output.
- Name string
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - Namespace string
- The namespace of the agent policy.
- Policy
Id string - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - Required
Versions 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.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Space
Ids List<string> - The Kibana space IDs that this agent policy is available in.
- Supports
Agentless bool - Whether the agent policy supports agentless data collection.
- Unenrollment
Timeout string - Time an agent can be inactive before it is automatically unenrolled. A duration string such as
30s,2m, or1h. - Kibana
Connections List<GetFleet Agent Policy Kibana Connection> - Kibana connection configuration block.
- Advanced
Monitoring GetOptions Fleet Agent Policy Advanced Monitoring Options - Advanced monitoring options for the agent policy, including the HTTP monitoring endpoint and diagnostic settings.
- Advanced
Settings GetFleet Agent Policy Advanced Settings - Advanced agent settings for logging, resource limits, and downloads.
- Data
Output stringId - The identifier for the data output.
- Description string
- The description of the agent policy, as returned by the Fleet API.
- Download
Source stringId - The identifier for the Elastic Agent binary download server.
- Fleet
Server stringHost Id - The identifier for the Fleet server host.
-
map[string]Get
Fleet Agent Policy Global Data Tags - User-defined tags. Keyed by tag name; each entry has exactly one of
string_valueornumber_value. - Host
Name stringFormat - Hostname format reported for agents in this policy.
hostnameis the short hostname;fqdnis the fully qualified domain name. - Id string
- The ID of this agent policy.
- Inactivity
Timeout string - Time an agent can be inactive before it is marked inactive. A duration string such as
30s,2m, or1h. - Is
Protected bool - Whether tamper protection is enabled for this agent policy (Fleet API
is_protected). - Monitor
Logs bool - Whether collection of agent logs is enabled.
- Monitor
Metrics bool - Whether collection of agent metrics is enabled.
- Monitoring
Output stringId - The identifier for monitoring output.
- Name string
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - Namespace string
- The namespace of the agent policy.
- Policy
Id string - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - Required
Versions 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.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Space
Ids []string - The Kibana space IDs that this agent policy is available in.
- Supports
Agentless bool - Whether the agent policy supports agentless data collection.
- Unenrollment
Timeout string - Time an agent can be inactive before it is automatically unenrolled. A duration string such as
30s,2m, or1h. - Kibana
Connections []GetFleet Agent Policy Kibana Connection - Kibana connection configuration block.
- advanced_
monitoring_ objectoptions - Advanced monitoring options for the agent policy, including the HTTP monitoring endpoint and diagnostic settings.
- advanced_
settings object - Advanced agent settings for logging, resource limits, and downloads.
- data_
output_ stringid - The identifier for the data output.
- description string
- The description of the agent policy, as returned by the Fleet API.
- download_
source_ stringid - The identifier for the Elastic Agent binary download server.
- fleet_
server_ stringhost_ id - The identifier for the Fleet server host.
- map(object)
- User-defined tags. Keyed by tag name; each entry has exactly one of
string_valueornumber_value. - host_
name_ stringformat - Hostname format reported for agents in this policy.
hostnameis the short hostname;fqdnis the fully qualified domain name. - id string
- The ID of this agent policy.
- inactivity_
timeout string - Time an agent can be inactive before it is marked inactive. A duration string such as
30s,2m, or1h. - is_
protected bool - Whether tamper protection is enabled for this agent policy (Fleet API
is_protected). - monitor_
logs bool - Whether collection of agent logs is enabled.
- monitor_
metrics bool - Whether collection of agent metrics is enabled.
- monitoring_
output_ stringid - The identifier for monitoring output.
- name string
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - namespace string
- The namespace of the agent policy.
- policy_
id string - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - 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.
- space_
id string - An identifier for the space. If space_id is not provided, the default space is used.
- space_
ids list(string) - The Kibana space IDs that this agent policy is available in.
- supports_
agentless bool - Whether the agent policy supports agentless data collection.
- unenrollment_
timeout string - Time an agent can be inactive before it is automatically unenrolled. A duration string such as
30s,2m, or1h. - kibana_
connections list(object) - Kibana connection configuration block.
- advanced
Monitoring GetOptions Fleet Agent Policy Advanced Monitoring Options - Advanced monitoring options for the agent policy, including the HTTP monitoring endpoint and diagnostic settings.
- advanced
Settings GetFleet Agent Policy Advanced Settings - Advanced agent settings for logging, resource limits, and downloads.
- data
Output StringId - The identifier for the data output.
- description String
- The description of the agent policy, as returned by the Fleet API.
- download
Source StringId - The identifier for the Elastic Agent binary download server.
- fleet
Server StringHost Id - The identifier for the Fleet server host.
-
Map<String,Get
Fleet Agent Policy Global Data Tags> - User-defined tags. Keyed by tag name; each entry has exactly one of
string_valueornumber_value. - host
Name StringFormat - Hostname format reported for agents in this policy.
hostnameis the short hostname;fqdnis the fully qualified domain name. - id String
- The ID of this agent policy.
- inactivity
Timeout String - Time an agent can be inactive before it is marked inactive. A duration string such as
30s,2m, or1h. - is
Protected Boolean - Whether tamper protection is enabled for this agent policy (Fleet API
is_protected). - monitor
Logs Boolean - Whether collection of agent logs is enabled.
- monitor
Metrics Boolean - Whether collection of agent metrics is enabled.
- monitoring
Output StringId - The identifier for monitoring output.
- name String
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - namespace String
- The namespace of the agent policy.
- policy
Id String - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - required
Versions 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.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- space
Ids List<String> - The Kibana space IDs that this agent policy is available in.
- supports
Agentless Boolean - Whether the agent policy supports agentless data collection.
- unenrollment
Timeout String - Time an agent can be inactive before it is automatically unenrolled. A duration string such as
30s,2m, or1h. - kibana
Connections List<GetFleet Agent Policy Kibana Connection> - Kibana connection configuration block.
- advanced
Monitoring GetOptions Fleet Agent Policy Advanced Monitoring Options - Advanced monitoring options for the agent policy, including the HTTP monitoring endpoint and diagnostic settings.
- advanced
Settings GetFleet Agent Policy Advanced Settings - Advanced agent settings for logging, resource limits, and downloads.
- data
Output stringId - The identifier for the data output.
- description string
- The description of the agent policy, as returned by the Fleet API.
- download
Source stringId - The identifier for the Elastic Agent binary download server.
- fleet
Server stringHost Id - The identifier for the Fleet server host.
-
{[key: string]: Get
Fleet Agent Policy Global Data Tags} - User-defined tags. Keyed by tag name; each entry has exactly one of
string_valueornumber_value. - host
Name stringFormat - Hostname format reported for agents in this policy.
hostnameis the short hostname;fqdnis the fully qualified domain name. - id string
- The ID of this agent policy.
- inactivity
Timeout string - Time an agent can be inactive before it is marked inactive. A duration string such as
30s,2m, or1h. - is
Protected boolean - Whether tamper protection is enabled for this agent policy (Fleet API
is_protected). - monitor
Logs boolean - Whether collection of agent logs is enabled.
- monitor
Metrics boolean - Whether collection of agent metrics is enabled.
- monitoring
Output stringId - The identifier for monitoring output.
- name string
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - namespace string
- The namespace of the agent policy.
- policy
Id string - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - required
Versions {[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.
- space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- space
Ids string[] - The Kibana space IDs that this agent policy is available in.
- supports
Agentless boolean - Whether the agent policy supports agentless data collection.
- unenrollment
Timeout string - Time an agent can be inactive before it is automatically unenrolled. A duration string such as
30s,2m, or1h. - kibana
Connections GetFleet Agent Policy Kibana Connection[] - Kibana connection configuration block.
- advanced_
monitoring_ Getoptions Fleet Agent Policy Advanced Monitoring Options - Advanced monitoring options for the agent policy, including the HTTP monitoring endpoint and diagnostic settings.
- advanced_
settings GetFleet Agent Policy Advanced Settings - Advanced agent settings for logging, resource limits, and downloads.
- data_
output_ strid - The identifier for the data output.
- description str
- The description of the agent policy, as returned by the Fleet API.
- download_
source_ strid - The identifier for the Elastic Agent binary download server.
- fleet_
server_ strhost_ id - The identifier for the Fleet server host.
-
Mapping[str, Get
Fleet Agent Policy Global Data Tags] - User-defined tags. Keyed by tag name; each entry has exactly one of
string_valueornumber_value. - host_
name_ strformat - Hostname format reported for agents in this policy.
hostnameis the short hostname;fqdnis the fully qualified domain name. - id str
- The ID of this agent policy.
- inactivity_
timeout str - Time an agent can be inactive before it is marked inactive. A duration string such as
30s,2m, or1h. - is_
protected bool - Whether tamper protection is enabled for this agent policy (Fleet API
is_protected). - monitor_
logs bool - Whether collection of agent logs is enabled.
- monitor_
metrics bool - Whether collection of agent metrics is enabled.
- monitoring_
output_ strid - The identifier for monitoring output.
- name str
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - namespace str
- The namespace of the agent policy.
- policy_
id str - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - 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.
- space_
id str - An identifier for the space. If space_id is not provided, the default space is used.
- space_
ids Sequence[str] - The Kibana space IDs that this agent policy is available in.
- supports_
agentless bool - Whether the agent policy supports agentless data collection.
- unenrollment_
timeout str - Time an agent can be inactive before it is automatically unenrolled. A duration string such as
30s,2m, or1h. - kibana_
connections Sequence[GetFleet Agent Policy Kibana Connection] - Kibana connection configuration block.
- advanced
Monitoring Property MapOptions - Advanced monitoring options for the agent policy, including the HTTP monitoring endpoint and diagnostic settings.
- advanced
Settings Property Map - Advanced agent settings for logging, resource limits, and downloads.
- data
Output StringId - The identifier for the data output.
- description String
- The description of the agent policy, as returned by the Fleet API.
- download
Source StringId - The identifier for the Elastic Agent binary download server.
- fleet
Server StringHost Id - The identifier for the Fleet server host.
- Map<Property Map>
- User-defined tags. Keyed by tag name; each entry has exactly one of
string_valueornumber_value. - host
Name StringFormat - Hostname format reported for agents in this policy.
hostnameis the short hostname;fqdnis the fully qualified domain name. - id String
- The ID of this agent policy.
- inactivity
Timeout String - Time an agent can be inactive before it is marked inactive. A duration string such as
30s,2m, or1h. - is
Protected Boolean - Whether tamper protection is enabled for this agent policy (Fleet API
is_protected). - monitor
Logs Boolean - Whether collection of agent logs is enabled.
- monitor
Metrics Boolean - Whether collection of agent metrics is enabled.
- monitoring
Output StringId - The identifier for monitoring output.
- name String
- The name of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - namespace String
- The namespace of the agent policy.
- policy
Id String - The identifier of the agent policy. Set exactly one of
policy_idorname; the other is populated from the API response. - 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.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- space
Ids List<String> - The Kibana space IDs that this agent policy is available in.
- supports
Agentless Boolean - Whether the agent policy supports agentless data collection.
- unenrollment
Timeout String - Time an agent can be inactive before it is automatically unenrolled. A duration string such as
30s,2m, or1h. - kibana
Connections List<Property Map> - Kibana connection configuration block.
Supporting Types
GetFleetAgentPolicyAdvancedMonitoringOptions
- Diagnostics
Get
Fleet Agent Policy Advanced Monitoring Options Diagnostics - Diagnostic settings for rate limiting and file upload behavior.
- Http
Monitoring GetEndpoint Fleet Agent Policy Advanced Monitoring Options Http Monitoring Endpoint - HTTP monitoring endpoint configuration for agent health checks and liveness probes.
- Diagnostics
Get
Fleet Agent Policy Advanced Monitoring Options Diagnostics - Diagnostic settings for rate limiting and file upload behavior.
- Http
Monitoring GetEndpoint Fleet Agent Policy Advanced Monitoring Options Http Monitoring Endpoint - HTTP monitoring endpoint configuration for agent health checks and liveness probes.
- diagnostics object
- Diagnostic settings for rate limiting and file upload behavior.
- http_
monitoring_ objectendpoint - HTTP monitoring endpoint configuration for agent health checks and liveness probes.
- diagnostics
Get
Fleet Agent Policy Advanced Monitoring Options Diagnostics - Diagnostic settings for rate limiting and file upload behavior.
- http
Monitoring GetEndpoint Fleet Agent Policy Advanced Monitoring Options Http Monitoring Endpoint - HTTP monitoring endpoint configuration for agent health checks and liveness probes.
- diagnostics
Get
Fleet Agent Policy Advanced Monitoring Options Diagnostics - Diagnostic settings for rate limiting and file upload behavior.
- http
Monitoring GetEndpoint Fleet Agent Policy Advanced Monitoring Options Http Monitoring Endpoint - HTTP monitoring endpoint configuration for agent health checks and liveness probes.
- diagnostics
Get
Fleet Agent Policy Advanced Monitoring Options Diagnostics - Diagnostic settings for rate limiting and file upload behavior.
- http_
monitoring_ Getendpoint Fleet Agent Policy Advanced Monitoring Options Http Monitoring Endpoint - HTTP monitoring endpoint configuration for agent health checks and liveness probes.
- diagnostics Property Map
- Diagnostic settings for rate limiting and file upload behavior.
- http
Monitoring Property MapEndpoint - HTTP monitoring endpoint configuration for agent health checks and liveness probes.
GetFleetAgentPolicyAdvancedMonitoringOptionsDiagnostics
- File
Uploader GetFleet Agent Policy Advanced Monitoring Options Diagnostics File Uploader - Diagnostic file upload retry configuration.
- Rate
Limits GetFleet Agent Policy Advanced Monitoring Options Diagnostics Rate Limits - Rate limiting configuration for diagnostics requests from Fleet.
- File
Uploader GetFleet Agent Policy Advanced Monitoring Options Diagnostics File Uploader - Diagnostic file upload retry configuration.
- Rate
Limits GetFleet Agent Policy Advanced Monitoring Options Diagnostics Rate Limits - 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.
- file
Uploader GetFleet Agent Policy Advanced Monitoring Options Diagnostics File Uploader - Diagnostic file upload retry configuration.
- rate
Limits GetFleet Agent Policy Advanced Monitoring Options Diagnostics Rate Limits - Rate limiting configuration for diagnostics requests from Fleet.
- file
Uploader GetFleet Agent Policy Advanced Monitoring Options Diagnostics File Uploader - Diagnostic file upload retry configuration.
- rate
Limits GetFleet Agent Policy Advanced Monitoring Options Diagnostics Rate Limits - Rate limiting configuration for diagnostics requests from Fleet.
- file_
uploader GetFleet Agent Policy Advanced Monitoring Options Diagnostics File Uploader - Diagnostic file upload retry configuration.
- rate_
limits GetFleet Agent Policy Advanced Monitoring Options Diagnostics Rate Limits - Rate limiting configuration for diagnostics requests from Fleet.
- file
Uploader Property Map - Diagnostic file upload retry configuration.
- rate
Limits Property Map - Rate limiting configuration for diagnostics requests from Fleet.
GetFleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsFileUploader
- Backoff
Duration string - Maximum backoff duration between retry attempts.
- Init
Duration string - Initial duration before the first retry attempt.
- Max
Retries double - Maximum number of retry attempts for file uploads.
- Backoff
Duration string - Maximum backoff duration between retry attempts.
- Init
Duration string - Initial duration before the first retry attempt.
- Max
Retries float64 - Maximum number of retry attempts for file uploads.
- backoff_
duration string - Maximum backoff duration between retry attempts.
- init_
duration string - Initial duration before the first retry attempt.
- max_
retries number - Maximum number of retry attempts for file uploads.
- backoff
Duration String - Maximum backoff duration between retry attempts.
- init
Duration String - Initial duration before the first retry attempt.
- max
Retries Double - Maximum number of retry attempts for file uploads.
- backoff
Duration string - Maximum backoff duration between retry attempts.
- init
Duration string - Initial duration before the first retry attempt.
- max
Retries number - Maximum number of retry attempts for file uploads.
- backoff_
duration str - Maximum backoff duration between retry attempts.
- init_
duration str - Initial duration before the first retry attempt.
- max_
retries float - Maximum number of retry attempts for file uploads.
- backoff
Duration String - Maximum backoff duration between retry attempts.
- init
Duration String - Initial duration before the first retry attempt.
- max
Retries Number - Maximum number of retry attempts for file uploads.
GetFleetAgentPolicyAdvancedMonitoringOptionsDiagnosticsRateLimits
GetFleetAgentPolicyAdvancedMonitoringOptionsHttpMonitoringEndpoint
- Buffer
Enabled bool - Whether the monitoring buffer for the HTTP endpoint is enabled.
- Enabled bool
- Whether the HTTP monitoring endpoint is enabled.
- Host string
- Host for the HTTP monitoring endpoint.
- Port double
- Port for the HTTP monitoring endpoint.
- Pprof
Enabled bool - Whether /debug/pprof profiling endpoints are enabled.
- Buffer
Enabled bool - Whether the monitoring buffer for the HTTP endpoint is enabled.
- Enabled bool
- Whether the HTTP monitoring endpoint is enabled.
- Host string
- Host for the HTTP monitoring endpoint.
- Port float64
- Port for the HTTP monitoring endpoint.
- Pprof
Enabled bool - Whether /debug/pprof profiling endpoints are enabled.
- buffer_
enabled bool - Whether the monitoring buffer for the HTTP endpoint is enabled.
- enabled bool
- Whether the HTTP monitoring endpoint is enabled.
- host string
- Host for the HTTP monitoring endpoint.
- port number
- Port for the HTTP monitoring endpoint.
- pprof_
enabled bool - Whether /debug/pprof profiling endpoints are enabled.
- buffer
Enabled Boolean - Whether the monitoring buffer for the HTTP endpoint is enabled.
- enabled Boolean
- Whether the HTTP monitoring endpoint is enabled.
- host String
- Host for the HTTP monitoring endpoint.
- port Double
- Port for the HTTP monitoring endpoint.
- pprof
Enabled Boolean - Whether /debug/pprof profiling endpoints are enabled.
- buffer
Enabled boolean - Whether the monitoring buffer for the HTTP endpoint is enabled.
- enabled boolean
- Whether the HTTP monitoring endpoint is enabled.
- host string
- Host for the HTTP monitoring endpoint.
- port number
- Port for the HTTP monitoring endpoint.
- pprof
Enabled boolean - Whether /debug/pprof profiling endpoints are enabled.
- buffer_
enabled bool - Whether the monitoring buffer for the HTTP endpoint is enabled.
- enabled bool
- Whether the HTTP monitoring endpoint is enabled.
- host str
- Host for the HTTP monitoring endpoint.
- port float
- Port for the HTTP monitoring endpoint.
- pprof_
enabled bool - Whether /debug/pprof profiling endpoints are enabled.
- buffer
Enabled Boolean - Whether the monitoring buffer for the HTTP endpoint is enabled.
- enabled Boolean
- Whether the HTTP monitoring endpoint is enabled.
- host String
- Host for the HTTP monitoring endpoint.
- port Number
- Port for the HTTP monitoring endpoint.
- pprof
Enabled Boolean - Whether /debug/pprof profiling endpoints are enabled.
GetFleetAgentPolicyAdvancedSettings
- Download
Target stringDirectory - Target directory for downloading agent updates.
- Download
Timeout string - Timeout for downloading agent updates.
- Features
Disable boolPolicy Change Acks Enabled - Whether policy change acknowledgements from agents are disabled.
- bool
- Whether the agent's tags are included in events it sends.
- Go
Max doubleProcs - Maximum number of CPUs that the agent can use (GOMAXPROCS).
- Internal string
- Advanced internal agent settings as free-form YAML.
- Logging
Files stringInterval - Interval for log file rotation.
- Logging
Files doubleKeepfiles - Number of rotated log files to keep.
- Logging
Files doubleRotateeverybytes - Rotate log files when they reach this size in bytes.
- Logging
Level string - Logging level for the agent.
- Logging
Metrics stringPeriod - Period for logging agent metrics.
- Logging
To boolFiles - Whether logging to files is enabled.
- Monitoring
Runtime stringExperimental - Experimental runtime monitoring mode.
- Download
Target stringDirectory - Target directory for downloading agent updates.
- Download
Timeout string - Timeout for downloading agent updates.
- Features
Disable boolPolicy Change Acks Enabled - Whether policy change acknowledgements from agents are disabled.
- bool
- Whether the agent's tags are included in events it sends.
- Go
Max float64Procs - Maximum number of CPUs that the agent can use (GOMAXPROCS).
- Internal string
- Advanced internal agent settings as free-form YAML.
- Logging
Files stringInterval - Interval for log file rotation.
- Logging
Files float64Keepfiles - Number of rotated log files to keep.
- Logging
Files float64Rotateeverybytes - Rotate log files when they reach this size in bytes.
- Logging
Level string - Logging level for the agent.
- Logging
Metrics stringPeriod - Period for logging agent metrics.
- Logging
To boolFiles - Whether logging to files is enabled.
- Monitoring
Runtime stringExperimental - Experimental runtime monitoring mode.
- download_
target_ stringdirectory - Target directory for downloading agent updates.
- download_
timeout string - Timeout for downloading agent updates.
- features_
disable_ boolpolicy_ change_ acks_ enabled - Whether policy change acknowledgements from agents are disabled.
- bool
- Whether the agent's tags are included in events it sends.
- go_
max_ numberprocs - Maximum number of CPUs that the agent can use (GOMAXPROCS).
- internal string
- Advanced internal agent settings as free-form YAML.
- logging_
files_ stringinterval - Interval for log file rotation.
- logging_
files_ numberkeepfiles - Number of rotated log files to keep.
- logging_
files_ numberrotateeverybytes - Rotate log files when they reach this size in bytes.
- logging_
level string - Logging level for the agent.
- logging_
metrics_ stringperiod - Period for logging agent metrics.
- logging_
to_ boolfiles - Whether logging to files is enabled.
- monitoring_
runtime_ stringexperimental - Experimental runtime monitoring mode.
- download
Target StringDirectory - Target directory for downloading agent updates.
- download
Timeout String - Timeout for downloading agent updates.
- features
Disable BooleanPolicy Change Acks Enabled - Whether policy change acknowledgements from agents are disabled.
- Boolean
- Whether the agent's tags are included in events it sends.
- go
Max DoubleProcs - Maximum number of CPUs that the agent can use (GOMAXPROCS).
- internal String
- Advanced internal agent settings as free-form YAML.
- logging
Files StringInterval - Interval for log file rotation.
- logging
Files DoubleKeepfiles - Number of rotated log files to keep.
- logging
Files DoubleRotateeverybytes - Rotate log files when they reach this size in bytes.
- logging
Level String - Logging level for the agent.
- logging
Metrics StringPeriod - Period for logging agent metrics.
- logging
To BooleanFiles - Whether logging to files is enabled.
- monitoring
Runtime StringExperimental - Experimental runtime monitoring mode.
- download
Target stringDirectory - Target directory for downloading agent updates.
- download
Timeout string - Timeout for downloading agent updates.
- features
Disable booleanPolicy Change Acks Enabled - Whether policy change acknowledgements from agents are disabled.
- boolean
- Whether the agent's tags are included in events it sends.
- go
Max numberProcs - Maximum number of CPUs that the agent can use (GOMAXPROCS).
- internal string
- Advanced internal agent settings as free-form YAML.
- logging
Files stringInterval - Interval for log file rotation.
- logging
Files numberKeepfiles - Number of rotated log files to keep.
- logging
Files numberRotateeverybytes - Rotate log files when they reach this size in bytes.
- logging
Level string - Logging level for the agent.
- logging
Metrics stringPeriod - Period for logging agent metrics.
- logging
To booleanFiles - Whether logging to files is enabled.
- monitoring
Runtime stringExperimental - Experimental runtime monitoring mode.
- download_
target_ strdirectory - Target directory for downloading agent updates.
- download_
timeout str - Timeout for downloading agent updates.
- features_
disable_ boolpolicy_ change_ acks_ enabled - Whether policy change acknowledgements from agents are disabled.
- bool
- Whether the agent's tags are included in events it sends.
- go_
max_ floatprocs - Maximum number of CPUs that the agent can use (GOMAXPROCS).
- internal str
- Advanced internal agent settings as free-form YAML.
- logging_
files_ strinterval - Interval for log file rotation.
- logging_
files_ floatkeepfiles - Number of rotated log files to keep.
- logging_
files_ floatrotateeverybytes - Rotate log files when they reach this size in bytes.
- logging_
level str - Logging level for the agent.
- logging_
metrics_ strperiod - Period for logging agent metrics.
- logging_
to_ boolfiles - Whether logging to files is enabled.
- monitoring_
runtime_ strexperimental - Experimental runtime monitoring mode.
- download
Target StringDirectory - Target directory for downloading agent updates.
- download
Timeout String - Timeout for downloading agent updates.
- features
Disable BooleanPolicy Change Acks Enabled - Whether policy change acknowledgements from agents are disabled.
- Boolean
- Whether the agent's tags are included in events it sends.
- go
Max NumberProcs - Maximum number of CPUs that the agent can use (GOMAXPROCS).
- internal String
- Advanced internal agent settings as free-form YAML.
- logging
Files StringInterval - Interval for log file rotation.
- logging
Files NumberKeepfiles - Number of rotated log files to keep.
- logging
Files NumberRotateeverybytes - Rotate log files when they reach this size in bytes.
- logging
Level String - Logging level for the agent.
- logging
Metrics StringPeriod - Period for logging agent metrics.
- logging
To BooleanFiles - Whether logging to files is enabled.
- monitoring
Runtime StringExperimental - Experimental runtime monitoring mode.
GetFleetAgentPolicyGlobalDataTags
- Number
Value double - Number value for the tag.
- String
Value string - String value for the tag.
- Number
Value float64 - Number value for the tag.
- String
Value string - String value for the tag.
- number_
value number - Number value for the tag.
- string_
value string - String value for the tag.
- number
Value Double - Number value for the tag.
- string
Value String - String value for the tag.
- number
Value number - Number value for the tag.
- string
Value string - String value for the tag.
- number_
value float - Number value for the tag.
- string_
value str - String value for the tag.
- number
Value Number - Number value for the tag.
- string
Value String - String value for the tag.
GetFleetAgentPolicyKibanaConnection
- Api
Key string - API Key to use for authentication to Kibana
- Bearer
Token string - Bearer Token to use for authentication to Kibana
- Ca
Certs List<string> - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- Endpoints List<string>
- Headers Dictionary<string, string>
- A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
- Insecure bool
- Disable TLS certificate validation
- Password string
- Password to use for API authentication to Kibana.
- Username string
- Username to use for API authentication to Kibana.
- Api
Key string - API Key to use for authentication to Kibana
- Bearer
Token string - Bearer Token to use for authentication to Kibana
- Ca
Certs []string - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- Endpoints []string
- Headers map[string]string
- A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
- Insecure bool
- Disable TLS certificate validation
- Password string
- Password to use for API authentication to Kibana.
- Username string
- Username to use for API authentication to Kibana.
- api_
key string - API Key to use for authentication to Kibana
- bearer_
token string - Bearer Token to use for authentication to Kibana
- ca_
certs list(string) - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints list(string)
- headers map(string)
- A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
- insecure bool
- Disable TLS certificate validation
- password string
- Password to use for API authentication to Kibana.
- username string
- Username to use for API authentication to Kibana.
- api
Key String - API Key to use for authentication to Kibana
- bearer
Token String - Bearer Token to use for authentication to Kibana
- ca
Certs List<String> - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints List<String>
- headers Map<String,String>
- A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
- insecure Boolean
- Disable TLS certificate validation
- password String
- Password to use for API authentication to Kibana.
- username String
- Username to use for API authentication to Kibana.
- api
Key string - API Key to use for authentication to Kibana
- bearer
Token string - Bearer Token to use for authentication to Kibana
- ca
Certs string[] - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints string[]
- headers {[key: string]: string}
- A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
- insecure boolean
- Disable TLS certificate validation
- password string
- Password to use for API authentication to Kibana.
- username string
- Username to use for API authentication to Kibana.
- api_
key str - API Key to use for authentication to Kibana
- bearer_
token str - Bearer Token to use for authentication to Kibana
- ca_
certs Sequence[str] - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints Sequence[str]
- headers Mapping[str, str]
- A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
- insecure bool
- Disable TLS certificate validation
- password str
- Password to use for API authentication to Kibana.
- username str
- Username to use for API authentication to Kibana.
- api
Key String - API Key to use for authentication to Kibana
- bearer
Token String - Bearer Token to use for authentication to Kibana
- ca
Certs List<String> - A list of paths to CA certificates to validate the certificate presented by the Kibana server.
- endpoints List<String>
- headers Map<String>
- A map of headers to be sent with each request to Kibana. Custom header values may appear in provider debug logs: Authorization is masked, but arbitrary custom proxy-token headers are not generally redacted.
- insecure 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.
Package Details
- Repository
- elasticstack elastic/terraform-provider-elasticstack
- License
- Notes
- This Pulumi package is based on the
elasticstackTerraform Provider.
elasticstack
Viewing docs for elasticstack 0.17.0
published on Tuesday, Nov 10, 2026 by elastic
published on Tuesday, Nov 10, 2026 by elastic