1. Packages
  2. Grafana Cloud
  3. API Docs
  4. fleetManagement
  5. getCollector
Grafana v0.19.2 published on Friday, Jul 18, 2025 by pulumiverse

grafana.fleetManagement.getCollector

Explore with Pulumi AI

grafana logo
Grafana v0.19.2 published on Friday, Jul 18, 2025 by pulumiverse

    Represents a Grafana Fleet Management collector.

    Required access policy scopes:

    • fleet-management:read

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumiverse/grafana";
    
    const test = grafana.fleetManagement.getCollector({
        id: "my_collector",
    });
    
    import pulumi
    import pulumi_grafana as grafana
    
    test = grafana.fleetManagement.get_collector(id="my_collector")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/fleetmanagement"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fleetmanagement.GetCollector(ctx, &fleetmanagement.GetCollectorArgs{
    			Id: "my_collector",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumi.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Grafana.FleetManagement.GetCollector.Invoke(new()
        {
            Id = "my_collector",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.fleetManagement.FleetManagementFunctions;
    import com.pulumi.grafana.fleetManagement.inputs.GetCollectorArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 test = FleetManagementFunctions.getCollector(GetCollectorArgs.builder()
                .id("my_collector")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: grafana:fleetManagement:getCollector
          arguments:
            id: my_collector
    

    Using getCollector

    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 getCollector(args: GetCollectorArgs, opts?: InvokeOptions): Promise<GetCollectorResult>
    function getCollectorOutput(args: GetCollectorOutputArgs, opts?: InvokeOptions): Output<GetCollectorResult>
    def get_collector(id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetCollectorResult
    def get_collector_output(id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetCollectorResult]
    func LookupCollector(ctx *Context, args *LookupCollectorArgs, opts ...InvokeOption) (*LookupCollectorResult, error)
    func LookupCollectorOutput(ctx *Context, args *LookupCollectorOutputArgs, opts ...InvokeOption) LookupCollectorResultOutput

    > Note: This function is named LookupCollector in the Go SDK.

    public static class GetCollector 
    {
        public static Task<GetCollectorResult> InvokeAsync(GetCollectorArgs args, InvokeOptions? opts = null)
        public static Output<GetCollectorResult> Invoke(GetCollectorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCollectorResult> getCollector(GetCollectorArgs args, InvokeOptions options)
    public static Output<GetCollectorResult> getCollector(GetCollectorArgs args, InvokeOptions options)
    
    fn::invoke:
      function: grafana:fleetManagement/getCollector:getCollector
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the collector
    Id string
    ID of the collector
    id String
    ID of the collector
    id string
    ID of the collector
    id str
    ID of the collector
    id String
    ID of the collector

    getCollector Result

    The following output properties are available:

    Enabled bool
    Whether remote configuration for the collector is enabled or not. If the collector is disabled, it will receive empty configurations from the Fleet Management service
    Id string
    ID of the collector
    LocalAttributes Dictionary<string, string>
    Local attributes for the collector
    RemoteAttributes Dictionary<string, string>
    Remote attributes for the collector
    Enabled bool
    Whether remote configuration for the collector is enabled or not. If the collector is disabled, it will receive empty configurations from the Fleet Management service
    Id string
    ID of the collector
    LocalAttributes map[string]string
    Local attributes for the collector
    RemoteAttributes map[string]string
    Remote attributes for the collector
    enabled Boolean
    Whether remote configuration for the collector is enabled or not. If the collector is disabled, it will receive empty configurations from the Fleet Management service
    id String
    ID of the collector
    localAttributes Map<String,String>
    Local attributes for the collector
    remoteAttributes Map<String,String>
    Remote attributes for the collector
    enabled boolean
    Whether remote configuration for the collector is enabled or not. If the collector is disabled, it will receive empty configurations from the Fleet Management service
    id string
    ID of the collector
    localAttributes {[key: string]: string}
    Local attributes for the collector
    remoteAttributes {[key: string]: string}
    Remote attributes for the collector
    enabled bool
    Whether remote configuration for the collector is enabled or not. If the collector is disabled, it will receive empty configurations from the Fleet Management service
    id str
    ID of the collector
    local_attributes Mapping[str, str]
    Local attributes for the collector
    remote_attributes Mapping[str, str]
    Remote attributes for the collector
    enabled Boolean
    Whether remote configuration for the collector is enabled or not. If the collector is disabled, it will receive empty configurations from the Fleet Management service
    id String
    ID of the collector
    localAttributes Map<String>
    Local attributes for the collector
    remoteAttributes Map<String>
    Remote attributes for the collector

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.19.2 published on Friday, Jul 18, 2025 by pulumiverse