1. Packages
  2. Grafana Cloud
  3. API Docs
  4. fleetManagement
  5. getCollectors
Grafana v2.14.1 published on Thursday, Nov 6, 2025 by pulumiverse

grafana.fleetManagement.getCollectors

Start a Neo task
Explain and create a grafana.fleetManagement.getCollectors resource
grafana logo
Grafana v2.14.1 published on Thursday, Nov 6, 2025 by pulumiverse

    Represents a list of Grafana Fleet Management collectors.

    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.getCollectors({});
    
    import pulumi
    import pulumi_grafana as grafana
    
    test = grafana.fleetManagement.get_collectors()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/fleetmanagement"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fleetmanagement.GetCollectors(ctx, map[string]interface{}{}, 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.GetCollectors.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.fleetManagement.FleetManagementFunctions;
    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.getCollectors(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: grafana:fleetManagement:getCollectors
          arguments: {}
    

    Using getCollectors

    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 getCollectors(opts?: InvokeOptions): Promise<GetCollectorsResult>
    function getCollectorsOutput(opts?: InvokeOptions): Output<GetCollectorsResult>
    def get_collectors(opts: Optional[InvokeOptions] = None) -> GetCollectorsResult
    def get_collectors_output(opts: Optional[InvokeOptions] = None) -> Output[GetCollectorsResult]
    func GetCollectors(ctx *Context, opts ...InvokeOption) (*GetCollectorsResult, error)
    func GetCollectorsOutput(ctx *Context, opts ...InvokeOption) GetCollectorsResultOutput

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

    public static class GetCollectors 
    {
        public static Task<GetCollectorsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetCollectorsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCollectorsResult> getCollectors(InvokeOptions options)
    public static Output<GetCollectorsResult> getCollectors(InvokeOptions options)
    
    fn::invoke:
      function: grafana:fleetManagement/getCollectors:getCollectors
      arguments:
        # arguments dictionary

    getCollectors Result

    The following output properties are available:

    Collectors List<Pulumiverse.Grafana.FleetManagement.Outputs.GetCollectorsCollector>
    List of collectors
    Id string
    The provider-assigned unique ID for this managed resource.
    Collectors []GetCollectorsCollector
    List of collectors
    Id string
    The provider-assigned unique ID for this managed resource.
    collectors List<GetCollectorsCollector>
    List of collectors
    id String
    The provider-assigned unique ID for this managed resource.
    collectors GetCollectorsCollector[]
    List of collectors
    id string
    The provider-assigned unique ID for this managed resource.
    collectors Sequence[GetCollectorsCollector]
    List of collectors
    id str
    The provider-assigned unique ID for this managed resource.
    collectors List<Property Map>
    List of collectors
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GetCollectorsCollector

    Enabled bool
    Id string
    LocalAttributes Dictionary<string, string>
    RemoteAttributes Dictionary<string, string>
    Enabled bool
    Id string
    LocalAttributes map[string]string
    RemoteAttributes map[string]string
    enabled Boolean
    id String
    localAttributes Map<String,String>
    remoteAttributes Map<String,String>
    enabled boolean
    id string
    localAttributes {[key: string]: string}
    remoteAttributes {[key: string]: string}
    enabled bool
    id str
    local_attributes Mapping[str, str]
    remote_attributes Mapping[str, str]
    enabled Boolean
    id String
    localAttributes Map<String>
    remoteAttributes Map<String>

    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 v2.14.1 published on Thursday, Nov 6, 2025 by pulumiverse
      Meet Neo: Your AI Platform Teammate