1. Packages
  2. Sumologic Provider
  3. API Docs
  4. OtCollector
Sumo Logic v1.0.7 published on Friday, Apr 11, 2025 by Pulumi

sumologic.OtCollector

Explore with Pulumi AI

sumologic logo
Sumo Logic v1.0.7 published on Friday, Apr 11, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const exampleOtCollector = new sumologic.OtCollector("example_ot_collector", {
        description: "Testing OT collector using terraform",
        timeZone: "UTC",
        category: "apache",
        isRemotelyManaged: true,
        ephemeral: false,
        name: "test OT Collector",
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    example_ot_collector = sumologic.OtCollector("example_ot_collector",
        description="Testing OT collector using terraform",
        time_zone="UTC",
        category="apache",
        is_remotely_managed=True,
        ephemeral=False,
        name="test OT Collector")
    
    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.NewOtCollector(ctx, "example_ot_collector", &sumologic.OtCollectorArgs{
    			Description:       pulumi.String("Testing OT collector using terraform"),
    			TimeZone:          pulumi.String("UTC"),
    			Category:          pulumi.String("apache"),
    			IsRemotelyManaged: pulumi.Bool(true),
    			Ephemeral:         pulumi.Bool(false),
    			Name:              pulumi.String("test OT Collector"),
    		})
    		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 exampleOtCollector = new SumoLogic.OtCollector("example_ot_collector", new()
        {
            Description = "Testing OT collector using terraform",
            TimeZone = "UTC",
            Category = "apache",
            IsRemotelyManaged = true,
            Ephemeral = false,
            Name = "test OT Collector",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.OtCollector;
    import com.pulumi.sumologic.OtCollectorArgs;
    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) {
            var exampleOtCollector = new OtCollector("exampleOtCollector", OtCollectorArgs.builder()
                .description("Testing OT collector using terraform")
                .timeZone("UTC")
                .category("apache")
                .isRemotelyManaged(true)
                .ephemeral(false)
                .name("test OT Collector")
                .build());
    
        }
    }
    
    resources:
      exampleOtCollector:
        type: sumologic:OtCollector
        name: example_ot_collector
        properties:
          description: Testing OT collector using terraform
          timeZone: UTC
          category: apache
          isRemotelyManaged: 'true'
          ephemeral: 'false'
          name: test OT Collector
    

    Create OtCollector Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OtCollector(name: string, args?: OtCollectorArgs, opts?: CustomResourceOptions);
    @overload
    def OtCollector(resource_name: str,
                    args: Optional[OtCollectorArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def OtCollector(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    category: Optional[str] = None,
                    description: Optional[str] = None,
                    ephemeral: Optional[bool] = None,
                    is_remotely_managed: Optional[bool] = None,
                    name: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    time_zone: Optional[str] = None)
    func NewOtCollector(ctx *Context, name string, args *OtCollectorArgs, opts ...ResourceOption) (*OtCollector, error)
    public OtCollector(string name, OtCollectorArgs? args = null, CustomResourceOptions? opts = null)
    public OtCollector(String name, OtCollectorArgs args)
    public OtCollector(String name, OtCollectorArgs args, CustomResourceOptions options)
    
    type: sumologic:OtCollector
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args OtCollectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args OtCollectorArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args OtCollectorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OtCollectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OtCollectorArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var otCollectorResource = new SumoLogic.OtCollector("otCollectorResource", new()
    {
        Category = "string",
        Description = "string",
        Ephemeral = false,
        IsRemotelyManaged = false,
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
        TimeZone = "string",
    });
    
    example, err := sumologic.NewOtCollector(ctx, "otCollectorResource", &sumologic.OtCollectorArgs{
    	Category:          pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	Ephemeral:         pulumi.Bool(false),
    	IsRemotelyManaged: pulumi.Bool(false),
    	Name:              pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TimeZone: pulumi.String("string"),
    })
    
    var otCollectorResource = new OtCollector("otCollectorResource", OtCollectorArgs.builder()
        .category("string")
        .description("string")
        .ephemeral(false)
        .isRemotelyManaged(false)
        .name("string")
        .tags(Map.of("string", "string"))
        .timeZone("string")
        .build());
    
    ot_collector_resource = sumologic.OtCollector("otCollectorResource",
        category="string",
        description="string",
        ephemeral=False,
        is_remotely_managed=False,
        name="string",
        tags={
            "string": "string",
        },
        time_zone="string")
    
    const otCollectorResource = new sumologic.OtCollector("otCollectorResource", {
        category: "string",
        description: "string",
        ephemeral: false,
        isRemotelyManaged: false,
        name: "string",
        tags: {
            string: "string",
        },
        timeZone: "string",
    });
    
    type: sumologic:OtCollector
    properties:
        category: string
        description: string
        ephemeral: false
        isRemotelyManaged: false
        name: string
        tags:
            string: string
        timeZone: string
    

    OtCollector Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The OtCollector resource accepts the following input properties:

    Category string
    The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
    Description string
    Description of the OT Collector.
    Ephemeral bool
    When true, the collector will be deleted after 12 hours of inactivity. For more information, see Setting a Collector as Ephemeral.
    IsRemotelyManaged bool
    Management Status of the OT Collector based on if it is remotely or locally managed.
    Name string
    Name of the OT Collector.
    Tags Dictionary<string, string>

    Map containing [key/value pairs][3].

    The following attributes are exported:

    TimeZone string
    The time zone to use for this collector. The value follows the tzdata naming convention.
    Category string
    The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
    Description string
    Description of the OT Collector.
    Ephemeral bool
    When true, the collector will be deleted after 12 hours of inactivity. For more information, see Setting a Collector as Ephemeral.
    IsRemotelyManaged bool
    Management Status of the OT Collector based on if it is remotely or locally managed.
    Name string
    Name of the OT Collector.
    Tags map[string]string

    Map containing [key/value pairs][3].

    The following attributes are exported:

    TimeZone string
    The time zone to use for this collector. The value follows the tzdata naming convention.
    category String
    The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
    description String
    Description of the OT Collector.
    ephemeral Boolean
    When true, the collector will be deleted after 12 hours of inactivity. For more information, see Setting a Collector as Ephemeral.
    isRemotelyManaged Boolean
    Management Status of the OT Collector based on if it is remotely or locally managed.
    name String
    Name of the OT Collector.
    tags Map<String,String>

    Map containing [key/value pairs][3].

    The following attributes are exported:

    timeZone String
    The time zone to use for this collector. The value follows the tzdata naming convention.
    category string
    The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
    description string
    Description of the OT Collector.
    ephemeral boolean
    When true, the collector will be deleted after 12 hours of inactivity. For more information, see Setting a Collector as Ephemeral.
    isRemotelyManaged boolean
    Management Status of the OT Collector based on if it is remotely or locally managed.
    name string
    Name of the OT Collector.
    tags {[key: string]: string}

    Map containing [key/value pairs][3].

    The following attributes are exported:

    timeZone string
    The time zone to use for this collector. The value follows the tzdata naming convention.
    category str
    The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
    description str
    Description of the OT Collector.
    ephemeral bool
    When true, the collector will be deleted after 12 hours of inactivity. For more information, see Setting a Collector as Ephemeral.
    is_remotely_managed bool
    Management Status of the OT Collector based on if it is remotely or locally managed.
    name str
    Name of the OT Collector.
    tags Mapping[str, str]

    Map containing [key/value pairs][3].

    The following attributes are exported:

    time_zone str
    The time zone to use for this collector. The value follows the tzdata naming convention.
    category String
    The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
    description String
    Description of the OT Collector.
    ephemeral Boolean
    When true, the collector will be deleted after 12 hours of inactivity. For more information, see Setting a Collector as Ephemeral.
    isRemotelyManaged Boolean
    Management Status of the OT Collector based on if it is remotely or locally managed.
    name String
    Name of the OT Collector.
    tags Map<String>

    Map containing [key/value pairs][3].

    The following attributes are exported:

    timeZone String
    The time zone to use for this collector. The value follows the tzdata naming convention.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OtCollector resource produces the following output properties:

    Alive bool
    CreatedAt string
    CreatedBy string
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedAt string
    ModifiedBy string
    Alive bool
    CreatedAt string
    CreatedBy string
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedAt string
    ModifiedBy string
    alive Boolean
    createdAt String
    createdBy String
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedAt String
    modifiedBy String
    alive boolean
    createdAt string
    createdBy string
    id string
    The provider-assigned unique ID for this managed resource.
    modifiedAt string
    modifiedBy string
    alive bool
    created_at str
    created_by str
    id str
    The provider-assigned unique ID for this managed resource.
    modified_at str
    modified_by str
    alive Boolean
    createdAt String
    createdBy String
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedAt String
    modifiedBy String

    Look up Existing OtCollector Resource

    Get an existing OtCollector resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: OtCollectorState, opts?: CustomResourceOptions): OtCollector
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alive: Optional[bool] = None,
            category: Optional[str] = None,
            created_at: Optional[str] = None,
            created_by: Optional[str] = None,
            description: Optional[str] = None,
            ephemeral: Optional[bool] = None,
            is_remotely_managed: Optional[bool] = None,
            modified_at: Optional[str] = None,
            modified_by: Optional[str] = None,
            name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            time_zone: Optional[str] = None) -> OtCollector
    func GetOtCollector(ctx *Context, name string, id IDInput, state *OtCollectorState, opts ...ResourceOption) (*OtCollector, error)
    public static OtCollector Get(string name, Input<string> id, OtCollectorState? state, CustomResourceOptions? opts = null)
    public static OtCollector get(String name, Output<String> id, OtCollectorState state, CustomResourceOptions options)
    resources:  _:    type: sumologic:OtCollector    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Alive bool
    Category string
    The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
    CreatedAt string
    CreatedBy string
    Description string
    Description of the OT Collector.
    Ephemeral bool
    When true, the collector will be deleted after 12 hours of inactivity. For more information, see Setting a Collector as Ephemeral.
    IsRemotelyManaged bool
    Management Status of the OT Collector based on if it is remotely or locally managed.
    ModifiedAt string
    ModifiedBy string
    Name string
    Name of the OT Collector.
    Tags Dictionary<string, string>

    Map containing [key/value pairs][3].

    The following attributes are exported:

    TimeZone string
    The time zone to use for this collector. The value follows the tzdata naming convention.
    Alive bool
    Category string
    The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
    CreatedAt string
    CreatedBy string
    Description string
    Description of the OT Collector.
    Ephemeral bool
    When true, the collector will be deleted after 12 hours of inactivity. For more information, see Setting a Collector as Ephemeral.
    IsRemotelyManaged bool
    Management Status of the OT Collector based on if it is remotely or locally managed.
    ModifiedAt string
    ModifiedBy string
    Name string
    Name of the OT Collector.
    Tags map[string]string

    Map containing [key/value pairs][3].

    The following attributes are exported:

    TimeZone string
    The time zone to use for this collector. The value follows the tzdata naming convention.
    alive Boolean
    category String
    The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
    createdAt String
    createdBy String
    description String
    Description of the OT Collector.
    ephemeral Boolean
    When true, the collector will be deleted after 12 hours of inactivity. For more information, see Setting a Collector as Ephemeral.
    isRemotelyManaged Boolean
    Management Status of the OT Collector based on if it is remotely or locally managed.
    modifiedAt String
    modifiedBy String
    name String
    Name of the OT Collector.
    tags Map<String,String>

    Map containing [key/value pairs][3].

    The following attributes are exported:

    timeZone String
    The time zone to use for this collector. The value follows the tzdata naming convention.
    alive boolean
    category string
    The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
    createdAt string
    createdBy string
    description string
    Description of the OT Collector.
    ephemeral boolean
    When true, the collector will be deleted after 12 hours of inactivity. For more information, see Setting a Collector as Ephemeral.
    isRemotelyManaged boolean
    Management Status of the OT Collector based on if it is remotely or locally managed.
    modifiedAt string
    modifiedBy string
    name string
    Name of the OT Collector.
    tags {[key: string]: string}

    Map containing [key/value pairs][3].

    The following attributes are exported:

    timeZone string
    The time zone to use for this collector. The value follows the tzdata naming convention.
    alive bool
    category str
    The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
    created_at str
    created_by str
    description str
    Description of the OT Collector.
    ephemeral bool
    When true, the collector will be deleted after 12 hours of inactivity. For more information, see Setting a Collector as Ephemeral.
    is_remotely_managed bool
    Management Status of the OT Collector based on if it is remotely or locally managed.
    modified_at str
    modified_by str
    name str
    Name of the OT Collector.
    tags Mapping[str, str]

    Map containing [key/value pairs][3].

    The following attributes are exported:

    time_zone str
    The time zone to use for this collector. The value follows the tzdata naming convention.
    alive Boolean
    category String
    The default source category for any source attached to this collector. Can be overridden in the configuration of said sources.
    createdAt String
    createdBy String
    description String
    Description of the OT Collector.
    ephemeral Boolean
    When true, the collector will be deleted after 12 hours of inactivity. For more information, see Setting a Collector as Ephemeral.
    isRemotelyManaged Boolean
    Management Status of the OT Collector based on if it is remotely or locally managed.
    modifiedAt String
    modifiedBy String
    name String
    Name of the OT Collector.
    tags Map<String>

    Map containing [key/value pairs][3].

    The following attributes are exported:

    timeZone String
    The time zone to use for this collector. The value follows the tzdata naming convention.

    Import

    OT Collectors can be imported using the collector id, e.g.:

    hcl

    $ pulumi import sumologic:index/otCollector:OtCollector test 00005AF3107A4007
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Sumo Logic pulumi/pulumi-sumologic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sumologic Terraform Provider.
    sumologic logo
    Sumo Logic v1.0.7 published on Friday, Apr 11, 2025 by Pulumi