published on Tuesday, May 12, 2026 by Pulumi
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
versionblock with the updated content. - Remove the old
versionblock 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:
- Agent
Type string - The type of agent this configuration is for. Valid values:
NRInfra,NRDOT,FluentBit,NRPrometheusAgent. Cannot be changed after creation. - Managed
Entity stringType - The type of entities this configuration manages. Valid values:
HOST,KUBERNETESCLUSTER. Cannot be changed after creation. - Versions
List<Pulumi.
New Relic. Inputs. Fleet Configuration Version> - One or more version blocks. At least one is required. See Nested
versionblocks below. - Name string
- The name of the configuration.
- Operating
System string - The operating system this configuration targets. Valid values:
LINUX,WINDOWS. Applicable toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. Cannot be changed after creation. - Organization
Id 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 stringType - The type of entities this configuration manages. Valid values:
HOST,KUBERNETESCLUSTER. Cannot be changed after creation. - Versions
[]Fleet
Configuration Version Args - One or more version blocks. At least one is required. See Nested
versionblocks below. - Name string
- The name of the configuration.
- Operating
System string - The operating system this configuration targets. Valid values:
LINUX,WINDOWS. Applicable toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. Cannot be changed after creation. - Organization
Id 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_ stringtype - 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
versionblocks below. - name string
- The name of the configuration.
- operating_
system string - The operating system this configuration targets. Valid values:
LINUX,WINDOWS. Applicable toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. Cannot be changed after creation. - organization_
id 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 StringType - The type of entities this configuration manages. Valid values:
HOST,KUBERNETESCLUSTER. Cannot be changed after creation. - versions
List<Fleet
Configuration Version> - One or more version blocks. At least one is required. See Nested
versionblocks below. - name String
- The name of the configuration.
- operating
System String - The operating system this configuration targets. Valid values:
LINUX,WINDOWS. Applicable toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. Cannot be changed after creation. - organization
Id 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 stringType - The type of entities this configuration manages. Valid values:
HOST,KUBERNETESCLUSTER. Cannot be changed after creation. - versions
Fleet
Configuration Version[] - One or more version blocks. At least one is required. See Nested
versionblocks below. - name string
- The name of the configuration.
- operating
System string - The operating system this configuration targets. Valid values:
LINUX,WINDOWS. Applicable toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. Cannot be changed after creation. - organization
Id 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_ strtype - The type of entities this configuration manages. Valid values:
HOST,KUBERNETESCLUSTER. Cannot be changed after creation. - versions
Sequence[Fleet
Configuration Version Args] - One or more version blocks. At least one is required. See Nested
versionblocks below. - name str
- The name of the configuration.
- operating_
system str - The operating system this configuration targets. Valid values:
LINUX,WINDOWS. Applicable toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. Cannot be changed after creation. - organization_
id str - 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 StringType - 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
versionblocks below. - name String
- The name of the configuration.
- operating
System String - The operating system this configuration targets. Valid values:
LINUX,WINDOWS. Applicable toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. Cannot be changed after creation. - organization
Id 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:
- Configuration
Id string - The entity GUID of the configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version stringEntity Id - The entity GUID of the highest-numbered version.
- Latest
Version intNumber - The highest version number across all versions.
- Total
Versions 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 stringEntity Id - The entity GUID of the highest-numbered version.
- Latest
Version intNumber - The highest version number across all versions.
- Total
Versions 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_ stringentity_ id - The entity GUID of the highest-numbered version.
- latest_
version_ numbernumber - The highest version number across all versions.
- total_
versions number - 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 StringEntity Id - The entity GUID of the highest-numbered version.
- latest
Version IntegerNumber - The highest version number across all versions.
- total
Versions Integer - 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 stringEntity Id - The entity GUID of the highest-numbered version.
- latest
Version numberNumber - The highest version number across all versions.
- total
Versions 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_ strentity_ id - The entity GUID of the highest-numbered version.
- latest_
version_ intnumber - The highest version number across all versions.
- total_
versions 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 StringEntity Id - The entity GUID of the highest-numbered version.
- latest
Version NumberNumber - The highest version number across all versions.
- total
Versions 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) -> FleetConfigurationfunc 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.
- 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 stringEntity Id - The entity GUID of the highest-numbered version.
- Latest
Version intNumber - The highest version number across all versions.
- Managed
Entity stringType - 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 toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. 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 int - Total number of versions currently in the configuration.
- Versions
List<Pulumi.
New Relic. Inputs. Fleet Configuration Version> - One or more version blocks. At least one is required. See Nested
versionblocks 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 stringEntity Id - The entity GUID of the highest-numbered version.
- Latest
Version intNumber - The highest version number across all versions.
- Managed
Entity stringType - 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 toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. 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 int - Total number of versions currently in the configuration.
- Versions
[]Fleet
Configuration Version Args - One or more version blocks. At least one is required. See Nested
versionblocks 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_ stringentity_ id - The entity GUID of the highest-numbered version.
- latest_
version_ numbernumber - The highest version number across all versions.
- managed_
entity_ stringtype - 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 toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. 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
versionblocks 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 StringEntity Id - The entity GUID of the highest-numbered version.
- latest
Version IntegerNumber - The highest version number across all versions.
- managed
Entity StringType - 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 toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. 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 Integer - Total number of versions currently in the configuration.
- versions
List<Fleet
Configuration Version> - One or more version blocks. At least one is required. See Nested
versionblocks 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 stringEntity Id - The entity GUID of the highest-numbered version.
- latest
Version numberNumber - The highest version number across all versions.
- managed
Entity stringType - 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 toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. 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
Fleet
Configuration Version[] - One or more version blocks. At least one is required. See Nested
versionblocks 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_ strentity_ id - The entity GUID of the highest-numbered version.
- latest_
version_ intnumber - The highest version number across all versions.
- managed_
entity_ strtype - 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 toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. 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[Fleet
Configuration Version Args] - One or more version blocks. At least one is required. See Nested
versionblocks 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 StringEntity Id - The entity GUID of the highest-numbered version.
- latest
Version NumberNumber - The highest version number across all versions.
- managed
Entity StringType - 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 toHOSTconfigurations only — must not be set whenmanagedEntityTypeisKUBERNETESCLUSTER. 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<Property Map>
- One or more version blocks. At least one is required. See Nested
versionblocks below.
Supporting Types
FleetConfigurationVersion, FleetConfigurationVersionArgs
- Configuration
Content string The YAML or JSON content for this version. Must be unique across all
versionblocks in the resource. Usefile()to load content from a file:file("${path.module}/config.yaml").The following attributes are exported from each
versionblock:- Version
Entity stringId - The entity GUID of this version.
- Version
Number 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
versionblocks in the resource. Usefile()to load content from a file:file("${path.module}/config.yaml").The following attributes are exported from each
versionblock:- Version
Entity stringId - The entity GUID of this version.
- Version
Number 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
versionblocks in the resource. Usefile()to load content from a file:file("${path.module}/config.yaml").The following attributes are exported from each
versionblock:- version_
entity_ stringid - The entity GUID of this version.
- version_
number number - 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
versionblocks in the resource. Usefile()to load content from a file:file("${path.module}/config.yaml").The following attributes are exported from each
versionblock:- version
Entity StringId - The entity GUID of this version.
- version
Number Integer - 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
versionblocks in the resource. Usefile()to load content from a file:file("${path.module}/config.yaml").The following attributes are exported from each
versionblock:- version
Entity stringId - The entity GUID of this version.
- version
Number 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
versionblocks in the resource. Usefile()to load content from a file:file("${path.module}/config.yaml").The following attributes are exported from each
versionblock:- version_
entity_ strid - The entity GUID of this version.
- version_
number 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
versionblocks in the resource. Usefile()to load content from a file:file("${path.module}/config.yaml").The following attributes are exported from each
versionblock:- version
Entity StringId - The entity GUID of this version.
- version
Number 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
newrelicTerraform Provider.
published on Tuesday, May 12, 2026 by Pulumi
