SumoLogic

Pulumi Official
Package maintained by Pulumi
v0.7.1 published on Tuesday, Jun 14, 2022 by Pulumi

getCollector

Provides a way to retrieve Sumo Logic collector details (id, names, etc) for a collector.

Attributes reference

The following attributes are exported:

  • id - The internal ID of the collector. This can be used to attach sources to the collector.
  • name - The name of the collector.
  • description - The description of the collector.
  • category - The default source category for any source attached to this collector.
  • timezone - The time zone to use for this collector. The value follows the [tzdata][2] naming convention.

Example Usage

using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

class MyStack : Stack
{
    public MyStack()
    {
        var @this = Output.Create(SumoLogic.GetCollector.InvokeAsync(new SumoLogic.GetCollectorArgs
        {
            Name = "MyCollector",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sumologic.LookupCollector(ctx, &GetCollectorArgs{
			Name: pulumi.StringRef("MyCollector"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_sumologic as sumologic

this = sumologic.get_collector(name="MyCollector")
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const thisCollector = pulumi.output(sumologic.getCollector({
    name: "MyCollector",
}));

Coming soon!

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[int] = None,
                  name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetCollectorResult
def get_collector_output(id: Optional[pulumi.Input[int]] = None,
                  name: 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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: sumologic:index/getCollector:getCollector
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Id int
Name string
Id int
Name string
id Integer
name String
id number
name string
id int
name str
id Number
name String

getCollector Result

The following output properties are available:

Category string
Description string
Fields Dictionary<string, string>
Id int
Name string
Timezone string
Category string
Description string
Fields map[string]string
Id int
Name string
Timezone string
category String
description String
fields Map<String,String>
id Integer
name String
timezone String
category string
description string
fields {[key: string]: string}
id number
name string
timezone string
category str
description str
fields Mapping[str, str]
id int
name str
timezone str
category String
description String
fields Map<String>
id Number
name String
timezone String

Package Details

Repository
https://github.com/pulumi/pulumi-sumologic
License
Apache-2.0
Notes

This Pulumi package is based on the sumologic Terraform Provider.