sumologic logo
Sumo Logic v0.14.0, May 25 23

sumologic.getHttpSource

Explore with Pulumi AI

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.
  • multiline - Multiline processing enabled or not.
  • url - The HTTP endpoint to use for sending data to this source.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var @this = SumoLogic.GetHttpSource.Invoke(new()
    {
        CollectorId = 121212,
        Name = "source_name",
    });

});
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.LookupHttpSource(ctx, &sumologic.LookupHttpSourceArgs{
			CollectorId: pulumi.IntRef(121212),
			Name:        pulumi.StringRef("source_name"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.SumologicFunctions;
import com.pulumi.sumologic.inputs.GetHttpSourceArgs;
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 this = SumologicFunctions.getHttpSource(GetHttpSourceArgs.builder()
            .collectorId(121212)
            .name("source_name")
            .build());

    }
}
import pulumi
import pulumi_sumologic as sumologic

this = sumologic.get_http_source(collector_id=121212,
    name="source_name")
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const this = sumologic.getHttpSource({
    collectorId: 121212,
    name: "source_name",
});
variables:
  this:
    fn::invoke:
      Function: sumologic:getHttpSource
      Arguments:
        collectorId: 121212
        name: source_name

Using getHttpSource

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 getHttpSource(args: GetHttpSourceArgs, opts?: InvokeOptions): Promise<GetHttpSourceResult>
function getHttpSourceOutput(args: GetHttpSourceOutputArgs, opts?: InvokeOptions): Output<GetHttpSourceResult>
def get_http_source(collector_id: Optional[int] = None,
                    id: Optional[int] = None,
                    name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetHttpSourceResult
def get_http_source_output(collector_id: Optional[pulumi.Input[int]] = None,
                    id: Optional[pulumi.Input[int]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetHttpSourceResult]
func LookupHttpSource(ctx *Context, args *LookupHttpSourceArgs, opts ...InvokeOption) (*LookupHttpSourceResult, error)
func LookupHttpSourceOutput(ctx *Context, args *LookupHttpSourceOutputArgs, opts ...InvokeOption) LookupHttpSourceResultOutput

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

public static class GetHttpSource 
{
    public static Task<GetHttpSourceResult> InvokeAsync(GetHttpSourceArgs args, InvokeOptions? opts = null)
    public static Output<GetHttpSourceResult> Invoke(GetHttpSourceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHttpSourceResult> getHttpSource(GetHttpSourceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: sumologic:index/getHttpSource:getHttpSource
  arguments:
    # arguments dictionary

The following arguments are supported:

CollectorId int
Id int
Name string
CollectorId int
Id int
Name string
collectorId Integer
id Integer
name String
collectorId number
id number
name string
collector_id int
id int
name str
collectorId Number
id Number
name String

getHttpSource Result

The following output properties are available:

Category string
Description string
Id int
Multiline bool
Timezone string
Url string
CollectorId int
Name string
Category string
Description string
Id int
Multiline bool
Timezone string
Url string
CollectorId int
Name string
category String
description String
id Integer
multiline Boolean
timezone String
url String
collectorId Integer
name String
category string
description string
id number
multiline boolean
timezone string
url string
collectorId number
name string
category String
description String
id Number
multiline Boolean
timezone String
url String
collectorId Number
name String

Package Details

Repository
Sumo Logic pulumi/pulumi-sumologic
License
Apache-2.0
Notes

This Pulumi package is based on the sumologic Terraform Provider.