1. Packages
  2. Packages
  3. Newrelic Provider
  4. API Docs
  5. getFleetConfiguration
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 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 dictionary
    data "newrelic_getfleetconfiguration" "name" {
        # arguments
    }

    The following arguments are supported:

    ConfigurationId 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:

    OrganizationId string
    The organization ID. Resolved automatically from the provider account when omitted.
    VersionEntityId string
    The entity GUID of a specific configuration version. Returns the content of that exact version.
    ConfigurationId 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:

    OrganizationId string
    The organization ID. Resolved automatically from the provider account when omitted.
    VersionEntityId string
    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_id string
    The entity GUID of a specific configuration version. Returns the content of that exact version.
    configurationId 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:

    organizationId String
    The organization ID. Resolved automatically from the provider account when omitted.
    versionEntityId String
    The entity GUID of a specific configuration version. Returns the content of that exact version.
    configurationId 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:

    organizationId string
    The organization ID. Resolved automatically from the provider account when omitted.
    versionEntityId string
    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_id str
    The entity GUID of a specific configuration version. Returns the content of that exact version.
    configurationId 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:

    organizationId String
    The organization ID. Resolved automatically from the provider account when omitted.
    versionEntityId String
    The entity GUID of a specific configuration version. Returns the content of that exact version.

    getFleetConfiguration Result

    The following output properties are available:

    ConfigurationContent string
    The raw YAML/JSON content of the resolved version.
    ConfigurationId string
    The entity GUID of the fleet configuration.
    Id string
    The provider-assigned unique ID for this managed resource.
    LatestVersionEntityId string
    The entity GUID of the latest (highest-numbered) version.
    OrganizationId string
    The organization ID the configuration belongs to.
    VersionEntityIds List<string>
    Entity GUIDs of all versions ordered by version number, oldest first.
    Name string
    VersionEntityId string
    ConfigurationContent string
    The raw YAML/JSON content of the resolved version.
    ConfigurationId string
    The entity GUID of the fleet configuration.
    Id string
    The provider-assigned unique ID for this managed resource.
    LatestVersionEntityId string
    The entity GUID of the latest (highest-numbered) version.
    OrganizationId string
    The organization ID the configuration belongs to.
    VersionEntityIds []string
    Entity GUIDs of all versions ordered by version number, oldest first.
    Name string
    VersionEntityId string
    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_entity_id string
    The entity GUID of the latest (highest-numbered) version.
    organization_id string
    The organization ID the configuration belongs to.
    version_entity_ids list(string)
    Entity GUIDs of all versions ordered by version number, oldest first.
    name string
    version_entity_id string
    configurationContent String
    The raw YAML/JSON content of the resolved version.
    configurationId String
    The entity GUID of the fleet configuration.
    id String
    The provider-assigned unique ID for this managed resource.
    latestVersionEntityId String
    The entity GUID of the latest (highest-numbered) version.
    organizationId String
    The organization ID the configuration belongs to.
    versionEntityIds List<String>
    Entity GUIDs of all versions ordered by version number, oldest first.
    name String
    versionEntityId String
    configurationContent string
    The raw YAML/JSON content of the resolved version.
    configurationId string
    The entity GUID of the fleet configuration.
    id string
    The provider-assigned unique ID for this managed resource.
    latestVersionEntityId string
    The entity GUID of the latest (highest-numbered) version.
    organizationId string
    The organization ID the configuration belongs to.
    versionEntityIds string[]
    Entity GUIDs of all versions ordered by version number, oldest first.
    name string
    versionEntityId string
    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_entity_id str
    The entity GUID of the latest (highest-numbered) version.
    organization_id str
    The organization ID the configuration belongs to.
    version_entity_ids Sequence[str]
    Entity GUIDs of all versions ordered by version number, oldest first.
    name str
    version_entity_id str
    configurationContent String
    The raw YAML/JSON content of the resolved version.
    configurationId String
    The entity GUID of the fleet configuration.
    id String
    The provider-assigned unique ID for this managed resource.
    latestVersionEntityId String
    The entity GUID of the latest (highest-numbered) version.
    organizationId String
    The organization ID the configuration belongs to.
    versionEntityIds List<String>
    Entity GUIDs of all versions ordered by version number, oldest first.
    name String
    versionEntityId String

    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.