1. Packages
  2. Packages
  3. Newrelic Provider
  4. API Docs
  5. FleetConfiguration
Viewing docs for New Relic v5.72.2
published on Tuesday, Jun 23, 2026 by Pulumi
newrelic logo
Viewing docs for New Relic v5.72.2
published on Tuesday, Jun 23, 2026 by Pulumi

    Use this resource to create and manage New Relic fleet configurations for centralized agent management.

    A fleet configuration holds versioned agent settings. The configuration content is immutable — each change to configurationContent creates a new version on the API automatically, similar to how AWS launch templates work. The resource ID (the configuration entity GUID) never changes across updates. Use the newrelic.FleetConfiguration data source to access the content of a specific historical version.

    Example Usage

    Basic Infrastructure Agent Configuration

    import * as pulumi from "@pulumi/pulumi";
    import * as newrelic from "@pulumi/newrelic";
    
    const infra = new newrelic.FleetConfiguration("infra", {
        name: "Production Infrastructure Config",
        agentType: "NRInfra",
        managedEntityType: "HOST",
        operatingSystem: "LINUX",
        configurationContent: `log:
      level: info
      file: /var/log/newrelic-infra/newrelic-infra.log
    metrics:
      enabled: true
      system_sample_rate: 15
    `,
    });
    
    import pulumi
    import pulumi_newrelic as newrelic
    
    infra = newrelic.FleetConfiguration("infra",
        name="Production Infrastructure Config",
        agent_type="NRInfra",
        managed_entity_type="HOST",
        operating_system="LINUX",
        configuration_content="""log:
      level: info
      file: /var/log/newrelic-infra/newrelic-infra.log
    metrics:
      enabled: true
      system_sample_rate: 15
    """)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := newrelic.NewFleetConfiguration(ctx, "infra", &newrelic.FleetConfigurationArgs{
    			Name:              pulumi.String("Production Infrastructure Config"),
    			AgentType:         pulumi.String("NRInfra"),
    			ManagedEntityType: pulumi.String("HOST"),
    			OperatingSystem:   pulumi.String("LINUX"),
    			ConfigurationContent: pulumi.String(`log:
      level: info
      file: /var/log/newrelic-infra/newrelic-infra.log
    metrics:
      enabled: true
      system_sample_rate: 15
    `),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using NewRelic = Pulumi.NewRelic;
    
    return await Deployment.RunAsync(() => 
    {
        var infra = new NewRelic.FleetConfiguration("infra", new()
        {
            Name = "Production Infrastructure Config",
            AgentType = "NRInfra",
            ManagedEntityType = "HOST",
            OperatingSystem = "LINUX",
            ConfigurationContent = @"log:
      level: info
      file: /var/log/newrelic-infra/newrelic-infra.log
    metrics:
      enabled: true
      system_sample_rate: 15
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.newrelic.FleetConfiguration;
    import com.pulumi.newrelic.FleetConfigurationArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 infra = new FleetConfiguration("infra", FleetConfigurationArgs.builder()
                .name("Production Infrastructure Config")
                .agentType("NRInfra")
                .managedEntityType("HOST")
                .operatingSystem("LINUX")
                .configurationContent("""
    log:
      level: info
      file: /var/log/newrelic-infra/newrelic-infra.log
    metrics:
      enabled: true
      system_sample_rate: 15
                """)
                .build());
    
        }
    }
    
    resources:
      infra:
        type: newrelic:FleetConfiguration
        properties:
          name: Production Infrastructure Config
          agentType: NRInfra
          managedEntityType: HOST
          operatingSystem: LINUX
          configurationContent: |
            log:
              level: info
              file: /var/log/newrelic-infra/newrelic-infra.log
            metrics:
              enabled: true
              system_sample_rate: 15
    
    pulumi {
      required_providers {
        newrelic = {
          source = "pulumi/newrelic"
        }
      }
    }
    
    resource "newrelic_fleetconfiguration" "infra" {
      name                  = "Production Infrastructure Config"
      agent_type            = "NRInfra"
      managed_entity_type   = "HOST"
      operating_system      = "LINUX"
      configuration_content = "log:\n  level: info\n  file: /var/log/newrelic-infra/newrelic-infra.log\nmetrics:\n  enabled: true\n  system_sample_rate: 15\n"
    }
    

    Out-of-band drift warnings

    If a version is deleted outside of Terraform (UI, API, or another tool), the next plan or refresh will surface a warning so you understand why state changed:

    Warning: Fleet configuration drift: 1 version(s) deleted out-of-band
      The following version entity GUIDs were tracked in Terraform state but no longer
      exist in the New Relic API: [...]
      State has been synced to reflect the API.
    

    If the previously-tracked latest version was the one deleted, an additional, stronger warning fires explaining that configurationContent has been refreshed from the new latest version on the API. If your declared content differs from that new latest, the next apply will create a new version restoring your declared content — this is the expected, self-healing behavior.

    Create FleetConfiguration Resource

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

    Constructor syntax

    new FleetConfiguration(name: string, args: FleetConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def FleetConfiguration(resource_name: str,
                           args: FleetConfigurationArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def FleetConfiguration(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           agent_type: Optional[str] = None,
                           configuration_content: Optional[str] = None,
                           managed_entity_type: Optional[str] = None,
                           name: Optional[str] = None,
                           operating_system: Optional[str] = None,
                           organization_id: Optional[str] = None)
    func NewFleetConfiguration(ctx *Context, name string, args FleetConfigurationArgs, opts ...ResourceOption) (*FleetConfiguration, error)
    public FleetConfiguration(string name, FleetConfigurationArgs args, CustomResourceOptions? opts = null)
    public FleetConfiguration(String name, FleetConfigurationArgs args)
    public FleetConfiguration(String name, FleetConfigurationArgs args, CustomResourceOptions options)
    
    type: newrelic:FleetConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "newrelic_fleetconfiguration" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args FleetConfigurationArgs
    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 FleetConfigurationArgs
    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 FleetConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FleetConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FleetConfigurationArgs
    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 fleetConfigurationResource = new NewRelic.FleetConfiguration("fleetConfigurationResource", new()
    {
        AgentType = "string",
        ConfigurationContent = "string",
        ManagedEntityType = "string",
        Name = "string",
        OperatingSystem = "string",
        OrganizationId = "string",
    });
    
    example, err := newrelic.NewFleetConfiguration(ctx, "fleetConfigurationResource", &newrelic.FleetConfigurationArgs{
    	AgentType:            pulumi.String("string"),
    	ConfigurationContent: pulumi.String("string"),
    	ManagedEntityType:    pulumi.String("string"),
    	Name:                 pulumi.String("string"),
    	OperatingSystem:      pulumi.String("string"),
    	OrganizationId:       pulumi.String("string"),
    })
    
    resource "newrelic_fleetconfiguration" "fleetConfigurationResource" {
      agent_type            = "string"
      configuration_content = "string"
      managed_entity_type   = "string"
      name                  = "string"
      operating_system      = "string"
      organization_id       = "string"
    }
    
    var fleetConfigurationResource = new FleetConfiguration("fleetConfigurationResource", FleetConfigurationArgs.builder()
        .agentType("string")
        .configurationContent("string")
        .managedEntityType("string")
        .name("string")
        .operatingSystem("string")
        .organizationId("string")
        .build());
    
    fleet_configuration_resource = newrelic.FleetConfiguration("fleetConfigurationResource",
        agent_type="string",
        configuration_content="string",
        managed_entity_type="string",
        name="string",
        operating_system="string",
        organization_id="string")
    
    const fleetConfigurationResource = new newrelic.FleetConfiguration("fleetConfigurationResource", {
        agentType: "string",
        configurationContent: "string",
        managedEntityType: "string",
        name: "string",
        operatingSystem: "string",
        organizationId: "string",
    });
    
    type: newrelic:FleetConfiguration
    properties:
        agentType: string
        configurationContent: string
        managedEntityType: string
        name: string
        operatingSystem: string
        organizationId: string
    

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

    AgentType string
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    ConfigurationContent string
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    ManagedEntityType string
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    Name string
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    OperatingSystem string
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    OrganizationId string
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    AgentType string
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    ConfigurationContent string
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    ManagedEntityType string
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    Name string
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    OperatingSystem string
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    OrganizationId string
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    agent_type string
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    configuration_content string
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    managed_entity_type string
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    name string
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    operating_system string
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    organization_id string
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    agentType String
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    configurationContent String
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    managedEntityType String
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    name String
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    operatingSystem String
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    organizationId String
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    agentType string
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    configurationContent string
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    managedEntityType string
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    name string
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    operatingSystem string
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    organizationId string
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    agent_type str
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    configuration_content str
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    managed_entity_type str
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    name str
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    operating_system str
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    organization_id str
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    agentType String
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    configurationContent String
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    managedEntityType String
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    name String
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    operatingSystem String
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    organizationId String
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.

    Outputs

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

    ConfigurationId string
    The entity GUID of the configuration.
    Id string
    The provider-assigned unique ID for this managed resource.
    LatestVersionEntityId string
    The entity GUID of the highest-numbered version.
    LatestVersionNumber int
    The highest version number across all versions created so far.
    TotalVersions int
    Total number of versions currently in the configuration.
    VersionEntityIds List<string>
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.
    ConfigurationId string
    The entity GUID of the configuration.
    Id string
    The provider-assigned unique ID for this managed resource.
    LatestVersionEntityId string
    The entity GUID of the highest-numbered version.
    LatestVersionNumber int
    The highest version number across all versions created so far.
    TotalVersions int
    Total number of versions currently in the configuration.
    VersionEntityIds []string
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.
    configuration_id string
    The entity GUID of the configuration.
    id string
    The provider-assigned unique ID for this managed resource.
    latest_version_entity_id string
    The entity GUID of the highest-numbered version.
    latest_version_number number
    The highest version number across all versions created so far.
    total_versions number
    Total number of versions currently in the configuration.
    version_entity_ids list(string)
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.
    configurationId String
    The entity GUID of the configuration.
    id String
    The provider-assigned unique ID for this managed resource.
    latestVersionEntityId String
    The entity GUID of the highest-numbered version.
    latestVersionNumber Integer
    The highest version number across all versions created so far.
    totalVersions Integer
    Total number of versions currently in the configuration.
    versionEntityIds List<String>
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.
    configurationId string
    The entity GUID of the configuration.
    id string
    The provider-assigned unique ID for this managed resource.
    latestVersionEntityId string
    The entity GUID of the highest-numbered version.
    latestVersionNumber number
    The highest version number across all versions created so far.
    totalVersions number
    Total number of versions currently in the configuration.
    versionEntityIds string[]
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.
    configuration_id str
    The entity GUID of the configuration.
    id str
    The provider-assigned unique ID for this managed resource.
    latest_version_entity_id str
    The entity GUID of the highest-numbered version.
    latest_version_number int
    The highest version number across all versions created so far.
    total_versions int
    Total number of versions currently in the configuration.
    version_entity_ids Sequence[str]
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.
    configurationId String
    The entity GUID of the configuration.
    id String
    The provider-assigned unique ID for this managed resource.
    latestVersionEntityId String
    The entity GUID of the highest-numbered version.
    latestVersionNumber Number
    The highest version number across all versions created so far.
    totalVersions Number
    Total number of versions currently in the configuration.
    versionEntityIds List<String>
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.

    Look up Existing FleetConfiguration Resource

    Get an existing FleetConfiguration 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?: FleetConfigurationState, opts?: CustomResourceOptions): FleetConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agent_type: Optional[str] = None,
            configuration_content: Optional[str] = None,
            configuration_id: Optional[str] = None,
            latest_version_entity_id: Optional[str] = None,
            latest_version_number: Optional[int] = None,
            managed_entity_type: Optional[str] = None,
            name: Optional[str] = None,
            operating_system: Optional[str] = None,
            organization_id: Optional[str] = None,
            total_versions: Optional[int] = None,
            version_entity_ids: Optional[Sequence[str]] = None) -> FleetConfiguration
    func GetFleetConfiguration(ctx *Context, name string, id IDInput, state *FleetConfigurationState, opts ...ResourceOption) (*FleetConfiguration, error)
    public static FleetConfiguration Get(string name, Input<string> id, FleetConfigurationState? state, CustomResourceOptions? opts = null)
    public static FleetConfiguration get(String name, Output<String> id, FleetConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: newrelic:FleetConfiguration    get:      id: ${id}
    import {
      to = newrelic_fleetconfiguration.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:
    AgentType string
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    ConfigurationContent string
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    ConfigurationId string
    The entity GUID of the configuration.
    LatestVersionEntityId string
    The entity GUID of the highest-numbered version.
    LatestVersionNumber int
    The highest version number across all versions created so far.
    ManagedEntityType string
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    Name string
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    OperatingSystem string
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    OrganizationId string
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    TotalVersions int
    Total number of versions currently in the configuration.
    VersionEntityIds List<string>
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.
    AgentType string
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    ConfigurationContent string
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    ConfigurationId string
    The entity GUID of the configuration.
    LatestVersionEntityId string
    The entity GUID of the highest-numbered version.
    LatestVersionNumber int
    The highest version number across all versions created so far.
    ManagedEntityType string
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    Name string
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    OperatingSystem string
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    OrganizationId string
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    TotalVersions int
    Total number of versions currently in the configuration.
    VersionEntityIds []string
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.
    agent_type string
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    configuration_content string
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    configuration_id string
    The entity GUID of the configuration.
    latest_version_entity_id string
    The entity GUID of the highest-numbered version.
    latest_version_number number
    The highest version number across all versions created so far.
    managed_entity_type string
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    name string
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    operating_system string
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    organization_id string
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    total_versions number
    Total number of versions currently in the configuration.
    version_entity_ids list(string)
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.
    agentType String
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    configurationContent String
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    configurationId String
    The entity GUID of the configuration.
    latestVersionEntityId String
    The entity GUID of the highest-numbered version.
    latestVersionNumber Integer
    The highest version number across all versions created so far.
    managedEntityType String
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    name String
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    operatingSystem String
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    organizationId String
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    totalVersions Integer
    Total number of versions currently in the configuration.
    versionEntityIds List<String>
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.
    agentType string
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    configurationContent string
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    configurationId string
    The entity GUID of the configuration.
    latestVersionEntityId string
    The entity GUID of the highest-numbered version.
    latestVersionNumber number
    The highest version number across all versions created so far.
    managedEntityType string
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    name string
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    operatingSystem string
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    organizationId string
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    totalVersions number
    Total number of versions currently in the configuration.
    versionEntityIds string[]
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.
    agent_type str
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    configuration_content str
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    configuration_id str
    The entity GUID of the configuration.
    latest_version_entity_id str
    The entity GUID of the highest-numbered version.
    latest_version_number int
    The highest version number across all versions created so far.
    managed_entity_type str
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    name str
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    operating_system str
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    organization_id str
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    total_versions int
    Total number of versions currently in the configuration.
    version_entity_ids Sequence[str]
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.
    agentType String
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    configurationContent String
    The YAML or JSON content for this configuration. Use file() to load content from a file. Each change to this field creates a new immutable version on the API; the resource ID remains constant.
    configurationId String
    The entity GUID of the configuration.
    latestVersionEntityId String
    The entity GUID of the highest-numbered version.
    latestVersionNumber Number
    The highest version number across all versions created so far.
    managedEntityType String
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    name String
    The name of the configuration. Changing this forces resource recreation — the API does not support renaming a configuration in place.
    operatingSystem String
    The operating system this configuration targets. Valid values: LINUX, WINDOWS. Applicable to HOST configurations only — must not be set when managedEntityType is KUBERNETESCLUSTER. Cannot be changed after creation.
    organizationId String
    The organization ID. Auto-fetched from the account when not provided. Cannot be changed after creation.
    totalVersions Number
    Total number of versions currently in the configuration.
    versionEntityIds List<String>
    A list of entity GUIDs for all versions, sorted oldest-first. Use with the newrelic.FleetConfiguration data source to retrieve the content of a specific historical version.

    Import

    Fleet configurations can be imported using a composite ID of <configuration_guid>:<managed_entity_type>:

    $ pulumi import newrelic:index/fleetConfiguration:FleetConfiguration infra <configuration_guid>:HOST
    $ pulumi import newrelic:index/fleetConfiguration:FleetConfiguration infra <configuration_guid>:KUBERNETESCLUSTER
    

    The managedEntityType portion is required because the New Relic API does not return it via the entity lookup query (a GraphQL schema constraint). All other attributes — name, agentType, operatingSystem, organizationId, configurationContent — are resolved automatically from the API.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    New Relic pulumi/pulumi-newrelic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the newrelic Terraform Provider.
    newrelic logo
    Viewing docs for New Relic v5.72.2
    published on Tuesday, Jun 23, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial