published on Tuesday, Jun 23, 2026 by Pulumi
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:
- 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 stringType - 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 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. - 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 stringType - 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 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. - 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_ stringtype - 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 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. - 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 StringType - 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 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. - 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 stringType - 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 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. - 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_ strtype - 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 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. - 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 StringType - 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 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 created so far.
- Total
Versions int - Total number of versions currently in the configuration.
- Version
Entity List<string>Ids - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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 stringEntity Id - The entity GUID of the highest-numbered version.
- Latest
Version intNumber - The highest version number across all versions created so far.
- Total
Versions int - Total number of versions currently in the configuration.
- Version
Entity []stringIds - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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_ stringentity_ id - The entity GUID of the highest-numbered version.
- latest_
version_ numbernumber - The highest version number across all versions created so far.
- total_
versions number - Total number of versions currently in the configuration.
- version_
entity_ list(string)ids - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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 StringEntity Id - The entity GUID of the highest-numbered version.
- latest
Version IntegerNumber - The highest version number across all versions created so far.
- total
Versions Integer - Total number of versions currently in the configuration.
- version
Entity List<String>Ids - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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 stringEntity Id - The entity GUID of the highest-numbered version.
- latest
Version numberNumber - The highest version number across all versions created so far.
- total
Versions number - Total number of versions currently in the configuration.
- version
Entity string[]Ids - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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_ strentity_ id - The entity GUID of the highest-numbered version.
- latest_
version_ intnumber - The highest version number across all versions created so far.
- total_
versions int - Total number of versions currently in the configuration.
- version_
entity_ Sequence[str]ids - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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 StringEntity Id - The entity GUID of the highest-numbered version.
- latest
Version NumberNumber - The highest version number across all versions created so far.
- total
Versions Number - Total number of versions currently in the configuration.
- version
Entity List<String>Ids - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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) -> 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
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 stringEntity Id - The entity GUID of the highest-numbered version.
- Latest
Version intNumber - The highest version number across all versions created so far.
- 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. 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 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.
- Version
Entity List<string>Ids - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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 stringEntity Id - The entity GUID of the highest-numbered version.
- Latest
Version intNumber - The highest version number across all versions created so far.
- 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. 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 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.
- Version
Entity []stringIds - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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_ stringentity_ id - The entity GUID of the highest-numbered version.
- latest_
version_ numbernumber - The highest version number across all versions created so far.
- 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. 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 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.
- version_
entity_ list(string)ids - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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 StringEntity Id - The entity GUID of the highest-numbered version.
- latest
Version IntegerNumber - The highest version number across all versions created so far.
- 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. 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 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.
- version
Entity List<String>Ids - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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 stringEntity Id - The entity GUID of the highest-numbered version.
- latest
Version numberNumber - The highest version number across all versions created so far.
- 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. 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 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.
- version
Entity string[]Ids - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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_ strentity_ id - The entity GUID of the highest-numbered version.
- latest_
version_ intnumber - The highest version number across all versions created so far.
- 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. 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 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.
- version_
entity_ Sequence[str]ids - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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 StringEntity Id - The entity GUID of the highest-numbered version.
- latest
Version NumberNumber - The highest version number across all versions created so far.
- 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. 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 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.
- version
Entity List<String>Ids - A list of entity GUIDs for all versions, sorted oldest-first. Use with the
newrelic.FleetConfigurationdata 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
newrelicTerraform Provider.
published on Tuesday, Jun 23, 2026 by Pulumi