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

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

    A fleet configuration defines versioned agent settings deployable to your fleets. Each configuration is specific to an agent type and managed entity type. Versions are immutable - their content cannot be modified after creation. To add a new configuration, add a version block; to remove one, delete its block.

    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",
        versions: [{
            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",
        versions=[{
            "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"),
    			Versions: newrelic.FleetConfigurationVersionArray{
    				&newrelic.FleetConfigurationVersionArgs{
    					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",
            Versions = new[]
            {
                new NewRelic.Inputs.FleetConfigurationVersionArgs
                {
                    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 com.pulumi.newrelic.inputs.FleetConfigurationVersionArgs;
    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")
                .versions(FleetConfigurationVersionArgs.builder()
                    .configurationContent("""
    log:
      level: info
      file: /var/log/newrelic-infra/newrelic-infra.log
    metrics:
      enabled: true
      system_sample_rate: 15
                    """)
                    .build())
                .build());
    
        }
    }
    
    resources:
      infra:
        type: newrelic:FleetConfiguration
        properties:
          name: Production Infrastructure Config
          agentType: NRInfra
          managedEntityType: HOST
          versions:
            - configurationContent: |
                log:
                  level: info
                  file: /var/log/newrelic-infra/newrelic-infra.log
                metrics:
                  enabled: true
                  system_sample_rate: 15
    
    Example coming soon!
    

    Version Immutability

    Version content is immutable - the API does not support updating the content of an existing version. If you attempt to modify configurationContent of an already-applied version block, Terraform will catch this at plan time and surface an error before any API call is made:

    configuration_content cannot be modified in place - versions are immutable:
      - index 0: content was changed (edit detected)
    

    To update the configuration in use:

    • Add a new version block with the updated content.
    • Remove the old version block whose content you no longer need.

    Terraform applies removals (API deletes) before creates, so if you add and remove a block in the same apply, the old version is deleted first and the new one is created after.

    Unique Content Requirement

    All version blocks within a resource must have distinct configurationContent values. Duplicate content is caught at plan time before any changes are applied:

    duplicate configuration_content detected across version blocks
    

    This also applies to rollback scenarios. If you previously had versions A → B and want to roll back by reintroducing A’s content as a new version, add a new version block with A’s content rather than restoring an old block - the new version will get a new version number from the API.

    Version Numbering

    Version numbers are assigned sequentially by the API and are never reused or renumbered. When you remove a version block, the remaining versions keep their original numbers. For example, if you have versions 1, 2, and 3 and remove version 2, the configuration will have versions 1 and 3 - the API does not compact the sequence.

    latestVersionNumber and latestVersionEntityId always reflect the highest-numbered version, regardless of how many versions exist.

    Externally Deleted Versions

    If a version is deleted outside of Terraform (for example, via the API or the New Relic UI), the next pulumi preview will show a warning for the affected version:

    Warning: version entity not found
      version block at index N (version_entity_id = "...") no longer exists in the API.
      Remove the block from your configuration if the deletion was intentional,
      or run pulumi up to recreate it.
    

    The warning indicates that Terraform will recreate the missing version on the next apply. If the deletion was intentional, remove the corresponding version block from your configuration before applying.

    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,
                           managed_entity_type: Optional[str] = None,
                           versions: Optional[Sequence[FleetConfigurationVersionArgs]] = 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",
        ManagedEntityType = "string",
        Versions = new[]
        {
            new NewRelic.Inputs.FleetConfigurationVersionArgs
            {
                ConfigurationContent = "string",
                VersionEntityId = "string",
                VersionNumber = 0,
            },
        },
        Name = "string",
        OperatingSystem = "string",
        OrganizationId = "string",
    });
    
    example, err := newrelic.NewFleetConfiguration(ctx, "fleetConfigurationResource", &newrelic.FleetConfigurationArgs{
    	AgentType:         pulumi.String("string"),
    	ManagedEntityType: pulumi.String("string"),
    	Versions: newrelic.FleetConfigurationVersionArray{
    		&newrelic.FleetConfigurationVersionArgs{
    			ConfigurationContent: pulumi.String("string"),
    			VersionEntityId:      pulumi.String("string"),
    			VersionNumber:        pulumi.Int(0),
    		},
    	},
    	Name:            pulumi.String("string"),
    	OperatingSystem: pulumi.String("string"),
    	OrganizationId:  pulumi.String("string"),
    })
    
    resource "newrelic_fleetconfiguration" "fleetConfigurationResource" {
      agent_type          = "string"
      managed_entity_type = "string"
      versions {
        configuration_content = "string"
        version_entity_id     = "string"
        version_number        = 0
      }
      name             = "string"
      operating_system = "string"
      organization_id  = "string"
    }
    
    var fleetConfigurationResource = new FleetConfiguration("fleetConfigurationResource", FleetConfigurationArgs.builder()
        .agentType("string")
        .managedEntityType("string")
        .versions(FleetConfigurationVersionArgs.builder()
            .configurationContent("string")
            .versionEntityId("string")
            .versionNumber(0)
            .build())
        .name("string")
        .operatingSystem("string")
        .organizationId("string")
        .build());
    
    fleet_configuration_resource = newrelic.FleetConfiguration("fleetConfigurationResource",
        agent_type="string",
        managed_entity_type="string",
        versions=[{
            "configuration_content": "string",
            "version_entity_id": "string",
            "version_number": 0,
        }],
        name="string",
        operating_system="string",
        organization_id="string")
    
    const fleetConfigurationResource = new newrelic.FleetConfiguration("fleetConfigurationResource", {
        agentType: "string",
        managedEntityType: "string",
        versions: [{
            configurationContent: "string",
            versionEntityId: "string",
            versionNumber: 0,
        }],
        name: "string",
        operatingSystem: "string",
        organizationId: "string",
    });
    
    type: newrelic:FleetConfiguration
    properties:
        agentType: string
        managedEntityType: string
        name: string
        operatingSystem: string
        organizationId: string
        versions:
            - configurationContent: string
              versionEntityId: string
              versionNumber: 0
    

    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.
    ManagedEntityType string
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    Versions List<Pulumi.NewRelic.Inputs.FleetConfigurationVersion>
    One or more version blocks. At least one is required. See Nested version blocks below.
    Name string
    The name of the configuration.
    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.
    ManagedEntityType string
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    Versions []FleetConfigurationVersionArgs
    One or more version blocks. At least one is required. See Nested version blocks below.
    Name string
    The name of the configuration.
    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.
    managed_entity_type string
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    versions list(object)
    One or more version blocks. At least one is required. See Nested version blocks below.
    name string
    The name of the configuration.
    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.
    managedEntityType String
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    versions List<FleetConfigurationVersion>
    One or more version blocks. At least one is required. See Nested version blocks below.
    name String
    The name of the configuration.
    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.
    managedEntityType string
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    versions FleetConfigurationVersion[]
    One or more version blocks. At least one is required. See Nested version blocks below.
    name string
    The name of the configuration.
    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.
    managed_entity_type str
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    versions Sequence[FleetConfigurationVersionArgs]
    One or more version blocks. At least one is required. See Nested version blocks below.
    name str
    The name of the configuration.
    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.
    managedEntityType String
    The type of entities this configuration manages. Valid values: HOST, KUBERNETESCLUSTER. Cannot be changed after creation.
    versions List<Property Map>
    One or more version blocks. At least one is required. See Nested version blocks below.
    name String
    The name of the configuration.
    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.
    TotalVersions int
    Total number of versions currently in the configuration.
    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.
    TotalVersions int
    Total number of versions currently in the configuration.
    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.
    total_versions number
    Total number of versions currently in the configuration.
    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.
    totalVersions Integer
    Total number of versions currently in the configuration.
    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.
    totalVersions number
    Total number of versions currently in the configuration.
    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.
    total_versions int
    Total number of versions currently in the configuration.
    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.
    totalVersions Number
    Total number of versions currently in the configuration.

    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_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,
            versions: Optional[Sequence[FleetConfigurationVersionArgs]] = 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.
    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.
    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.
    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.
    Versions List<Pulumi.NewRelic.Inputs.FleetConfigurationVersion>
    One or more version blocks. At least one is required. See Nested version blocks below.
    AgentType string
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    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.
    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.
    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.
    Versions []FleetConfigurationVersionArgs
    One or more version blocks. At least one is required. See Nested version blocks below.
    agent_type string
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    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.
    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.
    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.
    versions list(object)
    One or more version blocks. At least one is required. See Nested version blocks below.
    agentType String
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    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.
    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.
    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.
    versions List<FleetConfigurationVersion>
    One or more version blocks. At least one is required. See Nested version blocks below.
    agentType string
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    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.
    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.
    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.
    versions FleetConfigurationVersion[]
    One or more version blocks. At least one is required. See Nested version blocks below.
    agent_type str
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    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.
    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.
    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.
    versions Sequence[FleetConfigurationVersionArgs]
    One or more version blocks. At least one is required. See Nested version blocks below.
    agentType String
    The type of agent this configuration is for. Valid values: NRInfra, NRDOT, FluentBit, NRPrometheusAgent. Cannot be changed after creation.
    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.
    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.
    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.
    versions List<Property Map>
    One or more version blocks. At least one is required. See Nested version blocks below.

    Supporting Types

    FleetConfigurationVersion, FleetConfigurationVersionArgs

    ConfigurationContent string

    The YAML or JSON content for this version. Must be unique across all version blocks in the resource. Use file() to load content from a file: file("${path.module}/config.yaml").

    The following attributes are exported from each version block:

    VersionEntityId string
    The entity GUID of this version.
    VersionNumber int
    The version number assigned by the API (1, 2, 3, …).
    ConfigurationContent string

    The YAML or JSON content for this version. Must be unique across all version blocks in the resource. Use file() to load content from a file: file("${path.module}/config.yaml").

    The following attributes are exported from each version block:

    VersionEntityId string
    The entity GUID of this version.
    VersionNumber int
    The version number assigned by the API (1, 2, 3, …).
    configuration_content string

    The YAML or JSON content for this version. Must be unique across all version blocks in the resource. Use file() to load content from a file: file("${path.module}/config.yaml").

    The following attributes are exported from each version block:

    version_entity_id string
    The entity GUID of this version.
    version_number number
    The version number assigned by the API (1, 2, 3, …).
    configurationContent String

    The YAML or JSON content for this version. Must be unique across all version blocks in the resource. Use file() to load content from a file: file("${path.module}/config.yaml").

    The following attributes are exported from each version block:

    versionEntityId String
    The entity GUID of this version.
    versionNumber Integer
    The version number assigned by the API (1, 2, 3, …).
    configurationContent string

    The YAML or JSON content for this version. Must be unique across all version blocks in the resource. Use file() to load content from a file: file("${path.module}/config.yaml").

    The following attributes are exported from each version block:

    versionEntityId string
    The entity GUID of this version.
    versionNumber number
    The version number assigned by the API (1, 2, 3, …).
    configuration_content str

    The YAML or JSON content for this version. Must be unique across all version blocks in the resource. Use file() to load content from a file: file("${path.module}/config.yaml").

    The following attributes are exported from each version block:

    version_entity_id str
    The entity GUID of this version.
    version_number int
    The version number assigned by the API (1, 2, 3, …).
    configurationContent String

    The YAML or JSON content for this version. Must be unique across all version blocks in the resource. Use file() to load content from a file: file("${path.module}/config.yaml").

    The following attributes are exported from each version block:

    versionEntityId String
    The entity GUID of this version.
    versionNumber Number
    The version number assigned by the API (1, 2, 3, …).

    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 — 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.66.2
    published on Tuesday, May 12, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.