published on Tuesday, May 12, 2026 by Pulumi
published on Tuesday, May 12, 2026 by Pulumi
Use this data source to fetch the content and version metadata of an existing New Relic fleet configuration. Three mutually exclusive lookup modes are supported: by configuration GUID, by version entity GUID, or by name.
Example Usage
Look Up by Configuration GUID
Fetches the content of the latest version of the configuration identified by its entity GUID. Also returns the GUIDs of all versions.
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const byId = newrelic.getFleetConfiguration({
configurationId: "NjQyNTg2NXxOR0VQ...",
});
export const latestContent = byId.then(byId => byId.configurationContent);
export const allVersionGuids = byId.then(byId => byId.versionEntityIds);
import pulumi
import pulumi_newrelic as newrelic
by_id = newrelic.get_fleet_configuration(configuration_id="NjQyNTg2NXxOR0VQ...")
pulumi.export("latestContent", by_id.configuration_content)
pulumi.export("allVersionGuids", by_id.version_entity_ids)
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 {
byId, err := newrelic.GetFleetConfiguration(ctx, &newrelic.LookupFleetConfigurationArgs{
ConfigurationId: pulumi.StringRef("NjQyNTg2NXxOR0VQ..."),
}, nil)
if err != nil {
return err
}
ctx.Export("latestContent", byId.ConfigurationContent)
ctx.Export("allVersionGuids", byId.VersionEntityIds)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var byId = NewRelic.GetFleetConfiguration.Invoke(new()
{
ConfigurationId = "NjQyNTg2NXxOR0VQ...",
});
return new Dictionary<string, object?>
{
["latestContent"] = byId.Apply(getFleetConfigurationResult => getFleetConfigurationResult.ConfigurationContent),
["allVersionGuids"] = byId.Apply(getFleetConfigurationResult => getFleetConfigurationResult.VersionEntityIds),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.NewrelicFunctions;
import com.pulumi.newrelic.inputs.GetFleetConfigurationArgs;
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) {
final var byId = NewrelicFunctions.getFleetConfiguration(GetFleetConfigurationArgs.builder()
.configurationId("NjQyNTg2NXxOR0VQ...")
.build());
ctx.export("latestContent", byId.configurationContent());
ctx.export("allVersionGuids", byId.versionEntityIds());
}
}
variables:
byId:
fn::invoke:
function: newrelic:getFleetConfiguration
arguments:
configurationId: NjQyNTg2NXxOR0VQ...
outputs:
latestContent: ${byId.configurationContent}
allVersionGuids: ${byId.versionEntityIds}
Example coming soon!
Look Up by Version Entity GUID
Fetches the content of a specific version identified by its version entity GUID. Also resolves and returns the parent configuration GUID.
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const byVersion = newrelic.getFleetConfiguration({
versionEntityId: "NjQyNTg2NXxOR0VQfEFHRU5UX0NPTkZJR1VSQVRJT05fVkVSU0lPTnw...",
});
export const versionContent = byVersion.then(byVersion => byVersion.configurationContent);
export const parentConfigGuid = byVersion.then(byVersion => byVersion.configurationId);
import pulumi
import pulumi_newrelic as newrelic
by_version = newrelic.get_fleet_configuration(version_entity_id="NjQyNTg2NXxOR0VQfEFHRU5UX0NPTkZJR1VSQVRJT05fVkVSU0lPTnw...")
pulumi.export("versionContent", by_version.configuration_content)
pulumi.export("parentConfigGuid", by_version.configuration_id)
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 {
byVersion, err := newrelic.GetFleetConfiguration(ctx, &newrelic.LookupFleetConfigurationArgs{
VersionEntityId: pulumi.StringRef("NjQyNTg2NXxOR0VQfEFHRU5UX0NPTkZJR1VSQVRJT05fVkVSU0lPTnw..."),
}, nil)
if err != nil {
return err
}
ctx.Export("versionContent", byVersion.ConfigurationContent)
ctx.Export("parentConfigGuid", byVersion.ConfigurationId)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var byVersion = NewRelic.GetFleetConfiguration.Invoke(new()
{
VersionEntityId = "NjQyNTg2NXxOR0VQfEFHRU5UX0NPTkZJR1VSQVRJT05fVkVSU0lPTnw...",
});
return new Dictionary<string, object?>
{
["versionContent"] = byVersion.Apply(getFleetConfigurationResult => getFleetConfigurationResult.ConfigurationContent),
["parentConfigGuid"] = byVersion.Apply(getFleetConfigurationResult => getFleetConfigurationResult.ConfigurationId),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.NewrelicFunctions;
import com.pulumi.newrelic.inputs.GetFleetConfigurationArgs;
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) {
final var byVersion = NewrelicFunctions.getFleetConfiguration(GetFleetConfigurationArgs.builder()
.versionEntityId("NjQyNTg2NXxOR0VQfEFHRU5UX0NPTkZJR1VSQVRJT05fVkVSU0lPTnw...")
.build());
ctx.export("versionContent", byVersion.configurationContent());
ctx.export("parentConfigGuid", byVersion.configurationId());
}
}
variables:
byVersion:
fn::invoke:
function: newrelic:getFleetConfiguration
arguments:
versionEntityId: NjQyNTg2NXxOR0VQfEFHRU5UX0NPTkZJR1VSQVRJT05fVkVSU0lPTnw...
outputs:
versionContent: ${byVersion.configurationContent}
parentConfigGuid: ${byVersion.configurationId}
Example coming soon!
Look Up by Name
Fetches the content of the latest version of the configuration matching the given name. Also returns the GUIDs of all versions. The first matching configuration is returned if multiple share the same name.
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const byName = newrelic.getFleetConfiguration({
name: "Production Infrastructure Config",
});
export const latestContent = byName.then(byName => byName.configurationContent);
import pulumi
import pulumi_newrelic as newrelic
by_name = newrelic.get_fleet_configuration(name="Production Infrastructure Config")
pulumi.export("latestContent", by_name.configuration_content)
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 {
byName, err := newrelic.GetFleetConfiguration(ctx, &newrelic.LookupFleetConfigurationArgs{
Name: pulumi.StringRef("Production Infrastructure Config"),
}, nil)
if err != nil {
return err
}
ctx.Export("latestContent", byName.ConfigurationContent)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var byName = NewRelic.GetFleetConfiguration.Invoke(new()
{
Name = "Production Infrastructure Config",
});
return new Dictionary<string, object?>
{
["latestContent"] = byName.Apply(getFleetConfigurationResult => getFleetConfigurationResult.ConfigurationContent),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.NewrelicFunctions;
import com.pulumi.newrelic.inputs.GetFleetConfigurationArgs;
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) {
final var byName = NewrelicFunctions.getFleetConfiguration(GetFleetConfigurationArgs.builder()
.name("Production Infrastructure Config")
.build());
ctx.export("latestContent", byName.configurationContent());
}
}
variables:
byName:
fn::invoke:
function: newrelic:getFleetConfiguration
arguments:
name: Production Infrastructure Config
outputs:
latestContent: ${byName.configurationContent}
Example coming soon!
Using getFleetConfiguration
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFleetConfiguration(args: GetFleetConfigurationArgs, opts?: InvokeOptions): Promise<GetFleetConfigurationResult>
function getFleetConfigurationOutput(args: GetFleetConfigurationOutputArgs, opts?: InvokeOptions): Output<GetFleetConfigurationResult>def get_fleet_configuration(configuration_id: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
version_entity_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFleetConfigurationResult
def get_fleet_configuration_output(configuration_id: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
organization_id: pulumi.Input[Optional[str]] = None,
version_entity_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFleetConfigurationResult]func LookupFleetConfiguration(ctx *Context, args *LookupFleetConfigurationArgs, opts ...InvokeOption) (*LookupFleetConfigurationResult, error)
func LookupFleetConfigurationOutput(ctx *Context, args *LookupFleetConfigurationOutputArgs, opts ...InvokeOption) LookupFleetConfigurationResultOutput> Note: This function is named LookupFleetConfiguration in the Go SDK.
public static class GetFleetConfiguration
{
public static Task<GetFleetConfigurationResult> InvokeAsync(GetFleetConfigurationArgs args, InvokeOptions? opts = null)
public static Output<GetFleetConfigurationResult> Invoke(GetFleetConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFleetConfigurationResult> getFleetConfiguration(GetFleetConfigurationArgs args, InvokeOptions options)
public static Output<GetFleetConfigurationResult> getFleetConfiguration(GetFleetConfigurationArgs args, InvokeOptions options)
fn::invoke:
function: newrelic:index/getFleetConfiguration:getFleetConfiguration
arguments:
# arguments dictionarydata "newrelic_getfleetconfiguration" "name" {
# arguments
}The following arguments are supported:
- Configuration
Id string - The entity GUID of the fleet configuration. Returns the content of its latest version. This attribute is also populated as an output when looking up by
versionEntityId. - Name string
The name of the fleet configuration. Returns the content of its latest version. The first matching configuration is returned if multiple share the same name.
The following optional argument is supported in all modes:
- Organization
Id string - The organization ID. Resolved automatically from the provider account when omitted.
- Version
Entity stringId - The entity GUID of a specific configuration version. Returns the content of that exact version.
- Configuration
Id string - The entity GUID of the fleet configuration. Returns the content of its latest version. This attribute is also populated as an output when looking up by
versionEntityId. - Name string
The name of the fleet configuration. Returns the content of its latest version. The first matching configuration is returned if multiple share the same name.
The following optional argument is supported in all modes:
- Organization
Id string - The organization ID. Resolved automatically from the provider account when omitted.
- Version
Entity stringId - The entity GUID of a specific configuration version. Returns the content of that exact version.
- configuration_
id string - The entity GUID of the fleet configuration. Returns the content of its latest version. This attribute is also populated as an output when looking up by
versionEntityId. - name string
The name of the fleet configuration. Returns the content of its latest version. The first matching configuration is returned if multiple share the same name.
The following optional argument is supported in all modes:
- organization_
id string - The organization ID. Resolved automatically from the provider account when omitted.
- version_
entity_ stringid - The entity GUID of a specific configuration version. Returns the content of that exact version.
- configuration
Id String - The entity GUID of the fleet configuration. Returns the content of its latest version. This attribute is also populated as an output when looking up by
versionEntityId. - name String
The name of the fleet configuration. Returns the content of its latest version. The first matching configuration is returned if multiple share the same name.
The following optional argument is supported in all modes:
- organization
Id String - The organization ID. Resolved automatically from the provider account when omitted.
- version
Entity StringId - The entity GUID of a specific configuration version. Returns the content of that exact version.
- configuration
Id string - The entity GUID of the fleet configuration. Returns the content of its latest version. This attribute is also populated as an output when looking up by
versionEntityId. - name string
The name of the fleet configuration. Returns the content of its latest version. The first matching configuration is returned if multiple share the same name.
The following optional argument is supported in all modes:
- organization
Id string - The organization ID. Resolved automatically from the provider account when omitted.
- version
Entity stringId - The entity GUID of a specific configuration version. Returns the content of that exact version.
- configuration_
id str - The entity GUID of the fleet configuration. Returns the content of its latest version. This attribute is also populated as an output when looking up by
versionEntityId. - name str
The name of the fleet configuration. Returns the content of its latest version. The first matching configuration is returned if multiple share the same name.
The following optional argument is supported in all modes:
- organization_
id str - The organization ID. Resolved automatically from the provider account when omitted.
- version_
entity_ strid - The entity GUID of a specific configuration version. Returns the content of that exact version.
- configuration
Id String - The entity GUID of the fleet configuration. Returns the content of its latest version. This attribute is also populated as an output when looking up by
versionEntityId. - name String
The name of the fleet configuration. Returns the content of its latest version. The first matching configuration is returned if multiple share the same name.
The following optional argument is supported in all modes:
- organization
Id String - The organization ID. Resolved automatically from the provider account when omitted.
- version
Entity StringId - The entity GUID of a specific configuration version. Returns the content of that exact version.
getFleetConfiguration Result
The following output properties are available:
- Configuration
Content string - The raw YAML/JSON content of the resolved version.
- Configuration
Id string - The entity GUID of the fleet configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version stringEntity Id - The entity GUID of the latest (highest-numbered) version.
- Organization
Id string - The organization ID the configuration belongs to.
- Version
Entity List<string>Ids - Entity GUIDs of all versions ordered by version number, oldest first.
- Name string
- Version
Entity stringId
- Configuration
Content string - The raw YAML/JSON content of the resolved version.
- Configuration
Id string - The entity GUID of the fleet configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version stringEntity Id - The entity GUID of the latest (highest-numbered) version.
- Organization
Id string - The organization ID the configuration belongs to.
- Version
Entity []stringIds - Entity GUIDs of all versions ordered by version number, oldest first.
- Name string
- Version
Entity stringId
- configuration_
content string - The raw YAML/JSON content of the resolved version.
- configuration_
id string - The entity GUID of the fleet configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- latest_
version_ stringentity_ id - The entity GUID of the latest (highest-numbered) version.
- organization_
id string - The organization ID the configuration belongs to.
- version_
entity_ list(string)ids - Entity GUIDs of all versions ordered by version number, oldest first.
- name string
- version_
entity_ stringid
- configuration
Content String - The raw YAML/JSON content of the resolved version.
- configuration
Id String - The entity GUID of the fleet configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version StringEntity Id - The entity GUID of the latest (highest-numbered) version.
- organization
Id String - The organization ID the configuration belongs to.
- version
Entity List<String>Ids - Entity GUIDs of all versions ordered by version number, oldest first.
- name String
- version
Entity StringId
- configuration
Content string - The raw YAML/JSON content of the resolved version.
- configuration
Id string - The entity GUID of the fleet configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- latest
Version stringEntity Id - The entity GUID of the latest (highest-numbered) version.
- organization
Id string - The organization ID the configuration belongs to.
- version
Entity string[]Ids - Entity GUIDs of all versions ordered by version number, oldest first.
- name string
- version
Entity stringId
- configuration_
content str - The raw YAML/JSON content of the resolved version.
- configuration_
id str - The entity GUID of the fleet configuration.
- id str
- The provider-assigned unique ID for this managed resource.
- latest_
version_ strentity_ id - The entity GUID of the latest (highest-numbered) version.
- organization_
id str - The organization ID the configuration belongs to.
- version_
entity_ Sequence[str]ids - Entity GUIDs of all versions ordered by version number, oldest first.
- name str
- version_
entity_ strid
- configuration
Content String - The raw YAML/JSON content of the resolved version.
- configuration
Id String - The entity GUID of the fleet configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version StringEntity Id - The entity GUID of the latest (highest-numbered) version.
- organization
Id String - The organization ID the configuration belongs to.
- version
Entity List<String>Ids - Entity GUIDs of all versions ordered by version number, oldest first.
- name String
- version
Entity StringId
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
