Sumo Logic v0.23.7 published on Thursday, Oct 24, 2024 by Pulumi
sumologic.getHttpSource
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const this = sumologic.getHttpSource({
collectorId: 121212,
name: "source_name",
});
import pulumi
import pulumi_sumologic as sumologic
this = sumologic.get_http_source(collector_id=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
})
}
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 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());
}
}
variables:
this:
fn::invoke:
Function: sumologic:getHttpSource
Arguments:
collectorId: 121212
name: source_name
A HTTP Source can be looked up by using a combination of collector_id
& name
.
If either id
or name
are not present, the data source block fails with a panic (at this point).
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.
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
- Sumo Logic pulumi/pulumi-sumologic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sumologic
Terraform Provider.