SumoLogic
Pulumi Official

Package maintained by Pulumiv0.6.0 published on Thursday, Apr 7, 2022 by Pulumi
getHttpSource
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 Pulumi;
using SumoLogic = Pulumi.SumoLogic;
class MyStack : Stack
{
public MyStack()
{
var @this = Output.Create(SumoLogic.GetHttpSource.InvokeAsync(new SumoLogic.GetHttpSourceArgs
{
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, &GetHttpSourceArgs{
CollectorId: pulumi.IntRef(121212),
Name: pulumi.StringRef("source_name"),
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
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 thisHttpSource = pulumi.output(sumologic.getHttpSource({
collectorId: 121212,
name: "source_name",
}));
Coming soon!
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:
- Collector
Id int - Id int
- Name string
- Collector
Id int - Id int
- Name string
- collector
Id Integer - id Integer
- name String
- collector
Id number - id number
- name string
- collector_
id int - id int
- name str
- collector
Id 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
- Collector
Id int - Name string
- Category string
- Description string
- Id int
- Multiline bool
- Timezone string
- Url string
- Collector
Id int - Name string
- category String
- description String
- id Integer
- multiline Boolean
- timezone String
- url String
- collector
Id Integer - name String
- category string
- description string
- id number
- multiline boolean
- timezone string
- url string
- collector
Id number - name string
- category str
- description str
- id int
- multiline bool
- timezone str
- url str
- collector_
id int - name str
- category String
- description String
- id Number
- multiline Boolean
- timezone String
- url String
- collector
Id Number - name 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.