1. Registry
  2. Packages
  3. Sumologic Provider
  4. API Docs
  5. ParserFolder
Viewing docs for sumologic 3.3.8
published on Wednesday, Nov 11, 2026 by sumologic
sumologic logo
Viewing docs for sumologic 3.3.8
published on Wednesday, Nov 11, 2026 by sumologic

    Provides a folder in the Sumo Logic Parsers library. Use its id as the parent_id of a sumologic.Parser or of another sumologic.ParserFolder to organize parsers.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const firewalls = new sumologic.ParserFolder("firewalls", {
        name: "Firewalls",
        description: "Parsers for firewall logs",
    });
    // A nested folder
    const paloAlto = new sumologic.ParserFolder("palo_alto", {
        name: "Palo Alto",
        parentId: firewalls.parserFolderId,
    });
    // A parser inside the nested folder
    const panFirewall = new sumologic.Parser("pan_firewall", {
        name: "PAN-firewall",
        parentId: paloAlto.parserFolderId,
        stanzas: `[sourcetype:PAN-firewall]
    FORMAT = CSV`,
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    firewalls = sumologic.ParserFolder("firewalls",
        name="Firewalls",
        description="Parsers for firewall logs")
    # A nested folder
    palo_alto = sumologic.ParserFolder("palo_alto",
        name="Palo Alto",
        parent_id=firewalls.parser_folder_id)
    # A parser inside the nested folder
    pan_firewall = sumologic.Parser("pan_firewall",
        name="PAN-firewall",
        parent_id=palo_alto.parser_folder_id,
        stanzas="""[sourcetype:PAN-firewall]
    FORMAT = CSV""")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sumologic/v3/sumologic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		firewalls, err := sumologic.NewParserFolder(ctx, "firewalls", &sumologic.ParserFolderArgs{
    			Name:        pulumi.String("Firewalls"),
    			Description: pulumi.String("Parsers for firewall logs"),
    		})
    		if err != nil {
    			return err
    		}
    		// A nested folder
    		paloAlto, err := sumologic.NewParserFolder(ctx, "palo_alto", &sumologic.ParserFolderArgs{
    			Name:     pulumi.String("Palo Alto"),
    			ParentId: firewalls.ParserFolderId,
    		})
    		if err != nil {
    			return err
    		}
    		// A parser inside the nested folder
    		_, err = sumologic.NewParser(ctx, "pan_firewall", &sumologic.ParserArgs{
    			Name:     pulumi.String("PAN-firewall"),
    			ParentId: paloAlto.ParserFolderId,
    			Stanzas:  pulumi.String("[sourcetype:PAN-firewall]\nFORMAT = CSV"),
    		})
    		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 firewalls = new Sumologic.ParserFolder("firewalls", new()
        {
            Name = "Firewalls",
            Description = "Parsers for firewall logs",
        });
    
        // A nested folder
        var paloAlto = new Sumologic.ParserFolder("palo_alto", new()
        {
            Name = "Palo Alto",
            ParentId = firewalls.ParserFolderId,
        });
    
        // A parser inside the nested folder
        var panFirewall = new Sumologic.Parser("pan_firewall", new()
        {
            Name = "PAN-firewall",
            ParentId = paloAlto.ParserFolderId,
            Stanzas = @"[sourcetype:PAN-firewall]
    FORMAT = CSV",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.ParserFolder;
    import com.pulumi.sumologic.ParserFolderArgs;
    import com.pulumi.sumologic.Parser;
    import com.pulumi.sumologic.ParserArgs;
    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 firewalls = new ParserFolder("firewalls", ParserFolderArgs.builder()
                .name("Firewalls")
                .description("Parsers for firewall logs")
                .build());
    
            // A nested folder
            var paloAlto = new ParserFolder("paloAlto", ParserFolderArgs.builder()
                .name("Palo Alto")
                .parentId(firewalls.parserFolderId())
                .build());
    
            // A parser inside the nested folder
            var panFirewall = new Parser("panFirewall", ParserArgs.builder()
                .name("PAN-firewall")
                .parentId(paloAlto.parserFolderId())
                .stanzas("""
    [sourcetype:PAN-firewall]
    FORMAT = CSV            """)
                .build());
    
        }
    }
    
    resources:
      firewalls:
        type: sumologic:ParserFolder
        properties:
          name: Firewalls
          description: Parsers for firewall logs
      # A nested folder
      paloAlto:
        type: sumologic:ParserFolder
        name: palo_alto
        properties:
          name: Palo Alto
          parentId: ${firewalls.parserFolderId}
      # A parser inside the nested folder
      panFirewall:
        type: sumologic:Parser
        name: pan_firewall
        properties:
          name: PAN-firewall
          parentId: ${paloAlto.parserFolderId}
          stanzas: |-
            [sourcetype:PAN-firewall]
            FORMAT = CSV
    
    Example coming soon!
    

    Attributes reference

    In addition to all arguments above, the following attributes are exported:

    • id - The identifier of the folder.
    • version - The current version of the folder.
    • content_type - The content type of the object (Folder).
    • created_at - Creation timestamp (RFC3339, UTC).
    • created_by - Identifier of the user who created the folder.
    • modified_at - Last modification timestamp (RFC3339, UTC).
    • modified_by - Identifier of the user who last modified the folder.
    • is_locked - Whether the folder is locked.
    • is_system - Whether the folder is provided by Sumo Logic.
    • is_mutable - Whether the folder can be modified.

    Create ParserFolder Resource

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

    Constructor syntax

    new ParserFolder(name: string, args?: ParserFolderArgs, opts?: CustomResourceOptions);
    @overload
    def ParserFolder(resource_name: str,
                     args: Optional[ParserFolderArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ParserFolder(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     description: Optional[str] = None,
                     name: Optional[str] = None,
                     parent_id: Optional[str] = None,
                     parser_folder_id: Optional[str] = None)
    func NewParserFolder(ctx *Context, name string, args *ParserFolderArgs, opts ...ResourceOption) (*ParserFolder, error)
    public ParserFolder(string name, ParserFolderArgs? args = null, CustomResourceOptions? opts = null)
    public ParserFolder(String name, ParserFolderArgs args)
    public ParserFolder(String name, ParserFolderArgs args, CustomResourceOptions options)
    
    type: sumologic:ParserFolder
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "sumologic_parser_folder" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ParserFolderArgs
    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 ParserFolderArgs
    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 ParserFolderArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ParserFolderArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ParserFolderArgs
    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 parserFolderResource = new Sumologic.ParserFolder("parserFolderResource", new()
    {
        Description = "string",
        Name = "string",
        ParentId = "string",
        ParserFolderId = "string",
    });
    
    example, err := sumologic.NewParserFolder(ctx, "parserFolderResource", &sumologic.ParserFolderArgs{
    	Description:    pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	ParentId:       pulumi.String("string"),
    	ParserFolderId: pulumi.String("string"),
    })
    
    resource "sumologic_parser_folder" "parserFolderResource" {
      lifecycle {
        create_before_destroy = true
      }
      description      = "string"
      name             = "string"
      parent_id        = "string"
      parser_folder_id = "string"
    }
    
    var parserFolderResource = new ParserFolder("parserFolderResource", ParserFolderArgs.builder()
        .description("string")
        .name("string")
        .parentId("string")
        .parserFolderId("string")
        .build());
    
    parser_folder_resource = sumologic.ParserFolder("parserFolderResource",
        description="string",
        name="string",
        parent_id="string",
        parser_folder_id="string")
    
    const parserFolderResource = new sumologic.ParserFolder("parserFolderResource", {
        description: "string",
        name: "string",
        parentId: "string",
        parserFolderId: "string",
    });
    
    type: sumologic:ParserFolder
    properties:
        description: string
        name: string
        parentId: string
        parserFolderId: string
    

    ParserFolder 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 ParserFolder resource accepts the following input properties:

    Description string
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    Name string
    Name of the folder. Between 1 and 255 characters.
    ParentId string
    ParserFolderId string
    Description string
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    Name string
    Name of the folder. Between 1 and 255 characters.
    ParentId string
    ParserFolderId string
    description string
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    name string
    Name of the folder. Between 1 and 255 characters.
    parent_id string
    parser_folder_id string
    description String
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    name String
    Name of the folder. Between 1 and 255 characters.
    parentId String
    parserFolderId String
    description string
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    name string
    Name of the folder. Between 1 and 255 characters.
    parentId string
    parserFolderId string
    description str
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    name str
    Name of the folder. Between 1 and 255 characters.
    parent_id str
    parser_folder_id str
    description String
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    name String
    Name of the folder. Between 1 and 255 characters.
    parentId String
    parserFolderId String

    Outputs

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

    ContentType string
    CreatedAt string
    CreatedBy string
    Id string
    The provider-assigned unique ID for this managed resource.
    IsLocked bool
    IsMutable bool
    IsSystem bool
    ModifiedAt string
    ModifiedBy string
    Version double
    ContentType string
    CreatedAt string
    CreatedBy string
    Id string
    The provider-assigned unique ID for this managed resource.
    IsLocked bool
    IsMutable bool
    IsSystem bool
    ModifiedAt string
    ModifiedBy string
    Version float64
    content_type string
    created_at string
    created_by string
    id string
    The provider-assigned unique ID for this managed resource.
    is_locked bool
    is_mutable bool
    is_system bool
    modified_at string
    modified_by string
    version number
    contentType String
    createdAt String
    createdBy String
    id String
    The provider-assigned unique ID for this managed resource.
    isLocked Boolean
    isMutable Boolean
    isSystem Boolean
    modifiedAt String
    modifiedBy String
    version Double
    contentType string
    createdAt string
    createdBy string
    id string
    The provider-assigned unique ID for this managed resource.
    isLocked boolean
    isMutable boolean
    isSystem boolean
    modifiedAt string
    modifiedBy string
    version number
    content_type str
    created_at str
    created_by str
    id str
    The provider-assigned unique ID for this managed resource.
    is_locked bool
    is_mutable bool
    is_system bool
    modified_at str
    modified_by str
    version float
    contentType String
    createdAt String
    createdBy String
    id String
    The provider-assigned unique ID for this managed resource.
    isLocked Boolean
    isMutable Boolean
    isSystem Boolean
    modifiedAt String
    modifiedBy String
    version Number

    Look up Existing ParserFolder Resource

    Get an existing ParserFolder 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?: ParserFolderState, opts?: CustomResourceOptions): ParserFolder
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            content_type: Optional[str] = None,
            created_at: Optional[str] = None,
            created_by: Optional[str] = None,
            description: Optional[str] = None,
            is_locked: Optional[bool] = None,
            is_mutable: Optional[bool] = None,
            is_system: Optional[bool] = None,
            modified_at: Optional[str] = None,
            modified_by: Optional[str] = None,
            name: Optional[str] = None,
            parent_id: Optional[str] = None,
            parser_folder_id: Optional[str] = None,
            version: Optional[float] = None) -> ParserFolder
    func GetParserFolder(ctx *Context, name string, id IDInput, state *ParserFolderState, opts ...ResourceOption) (*ParserFolder, error)
    public static ParserFolder Get(string name, Input<string> id, ParserFolderState? state, CustomResourceOptions? opts = null)
    public static ParserFolder get(String name, Output<String> id, ParserFolderState state, CustomResourceOptions options)
    resources:  _:    type: sumologic:ParserFolder    get:      id: ${id}
    import {
      to = sumologic_parser_folder.example
      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:
    ContentType string
    CreatedAt string
    CreatedBy string
    Description string
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    IsLocked bool
    IsMutable bool
    IsSystem bool
    ModifiedAt string
    ModifiedBy string
    Name string
    Name of the folder. Between 1 and 255 characters.
    ParentId string
    ParserFolderId string
    Version double
    ContentType string
    CreatedAt string
    CreatedBy string
    Description string
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    IsLocked bool
    IsMutable bool
    IsSystem bool
    ModifiedAt string
    ModifiedBy string
    Name string
    Name of the folder. Between 1 and 255 characters.
    ParentId string
    ParserFolderId string
    Version float64
    content_type string
    created_at string
    created_by string
    description string
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    is_locked bool
    is_mutable bool
    is_system bool
    modified_at string
    modified_by string
    name string
    Name of the folder. Between 1 and 255 characters.
    parent_id string
    parser_folder_id string
    version number
    contentType String
    createdAt String
    createdBy String
    description String
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    isLocked Boolean
    isMutable Boolean
    isSystem Boolean
    modifiedAt String
    modifiedBy String
    name String
    Name of the folder. Between 1 and 255 characters.
    parentId String
    parserFolderId String
    version Double
    contentType string
    createdAt string
    createdBy string
    description string
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    isLocked boolean
    isMutable boolean
    isSystem boolean
    modifiedAt string
    modifiedBy string
    name string
    Name of the folder. Between 1 and 255 characters.
    parentId string
    parserFolderId string
    version number
    content_type str
    created_at str
    created_by str
    description str
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    is_locked bool
    is_mutable bool
    is_system bool
    modified_at str
    modified_by str
    name str
    Name of the folder. Between 1 and 255 characters.
    parent_id str
    parser_folder_id str
    version float
    contentType String
    createdAt String
    createdBy String
    description String
    Description of the folder. Up to 4096 characters. Defaults to an empty string.
    isLocked Boolean
    isMutable Boolean
    isSystem Boolean
    modifiedAt String
    modifiedBy String
    name String
    Name of the folder. Between 1 and 255 characters.
    parentId String
    parserFolderId String
    version Number

    Import

    Parser folders can be imported using the folder id, e.g.:

    $ pulumi import sumologic:index/parserFolder:ParserFolder firewalls 0000000000000001
    

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

    Package Details

    Repository
    Sumo Logic sumologic/terraform-provider-sumologic
    License
    Notes
    This Pulumi package is based on the sumologic Terraform Provider.
    sumologic logo
    Viewing docs for sumologic 3.3.8
    published on Wednesday, Nov 11, 2026 by sumologic

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial