1. Packages
  2. Sumologic Provider
  3. API Docs
  4. SourceTemplate
sumologic 3.1.0 published on Friday, Jun 27, 2025 by sumologic

sumologic.SourceTemplate

Explore with Pulumi AI

sumologic logo
sumologic 3.1.0 published on Friday, Jun 27, 2025 by sumologic

    Provides a Sumologic Source Template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const exampleSourceTemplate = new sumologic.SourceTemplate("exampleSourceTemplate", {
        schemaRef: {
            type: "Mac",
        },
        selectors: [{
            tags: [[{
                key: "new1",
                values: [
                    "Abc",
                    "Abc2",
                ],
            }]],
            names: ["TestCollector1"],
        }],
        inputJson: JSON.stringify({
            name: "hostmetrics_test_source_template_test",
            description: "Host metric source",
            receivers: {
                hostmetrics: {
                    receiverType: "hostmetrics",
                    collection_interval: "5m",
                    cpu_scraper_enabled: true,
                    disk_scraper_enabled: true,
                    load_scraper_enabled: true,
                    filesystem_scraper_enabled: true,
                    memory_scraper_enabled: true,
                    network_scraper_enabled: true,
                    processes_scraper_enabled: true,
                    paging_scraper_enabled: true,
                },
            },
            processors: {
                resource: {
                    processorType: "resource",
                    user_attributes: [{
                        key: "_sourceCategory",
                        value: "otel/host",
                    }],
                    default_attributes: [
                        {
                            key: "sumo.datasource",
                            value: "apache",
                        },
                        {
                            key: "host.name",
                            value: "host1",
                        },
                        {
                            key: "host.id",
                            value: "hostid",
                        },
                        {
                            key: "log.file.path",
                            value: "filePath",
                        },
                    ],
                },
            },
        }),
    });
    
    import pulumi
    import json
    import pulumi_sumologic as sumologic
    
    example_source_template = sumologic.SourceTemplate("exampleSourceTemplate",
        schema_ref={
            "type": "Mac",
        },
        selectors=[{
            "tags": [[{
                "key": "new1",
                "values": [
                    "Abc",
                    "Abc2",
                ],
            }]],
            "names": ["TestCollector1"],
        }],
        input_json=json.dumps({
            "name": "hostmetrics_test_source_template_test",
            "description": "Host metric source",
            "receivers": {
                "hostmetrics": {
                    "receiverType": "hostmetrics",
                    "collection_interval": "5m",
                    "cpu_scraper_enabled": True,
                    "disk_scraper_enabled": True,
                    "load_scraper_enabled": True,
                    "filesystem_scraper_enabled": True,
                    "memory_scraper_enabled": True,
                    "network_scraper_enabled": True,
                    "processes_scraper_enabled": True,
                    "paging_scraper_enabled": True,
                },
            },
            "processors": {
                "resource": {
                    "processorType": "resource",
                    "user_attributes": [{
                        "key": "_sourceCategory",
                        "value": "otel/host",
                    }],
                    "default_attributes": [
                        {
                            "key": "sumo.datasource",
                            "value": "apache",
                        },
                        {
                            "key": "host.name",
                            "value": "host1",
                        },
                        {
                            "key": "host.id",
                            "value": "hostid",
                        },
                        {
                            "key": "log.file.path",
                            "value": "filePath",
                        },
                    ],
                },
            },
        }))
    
    package main
    
    import (
    	"encoding/json"
    
    	"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 {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"name":        "hostmetrics_test_source_template_test",
    			"description": "Host metric source",
    			"receivers": map[string]interface{}{
    				"hostmetrics": map[string]interface{}{
    					"receiverType":               "hostmetrics",
    					"collection_interval":        "5m",
    					"cpu_scraper_enabled":        true,
    					"disk_scraper_enabled":       true,
    					"load_scraper_enabled":       true,
    					"filesystem_scraper_enabled": true,
    					"memory_scraper_enabled":     true,
    					"network_scraper_enabled":    true,
    					"processes_scraper_enabled":  true,
    					"paging_scraper_enabled":     true,
    				},
    			},
    			"processors": map[string]interface{}{
    				"resource": map[string]interface{}{
    					"processorType": "resource",
    					"user_attributes": []map[string]interface{}{
    						map[string]interface{}{
    							"key":   "_sourceCategory",
    							"value": "otel/host",
    						},
    					},
    					"default_attributes": []map[string]interface{}{
    						map[string]interface{}{
    							"key":   "sumo.datasource",
    							"value": "apache",
    						},
    						map[string]interface{}{
    							"key":   "host.name",
    							"value": "host1",
    						},
    						map[string]interface{}{
    							"key":   "host.id",
    							"value": "hostid",
    						},
    						map[string]interface{}{
    							"key":   "log.file.path",
    							"value": "filePath",
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = sumologic.NewSourceTemplate(ctx, "exampleSourceTemplate", &sumologic.SourceTemplateArgs{
    			SchemaRef: &sumologic.SourceTemplateSchemaRefArgs{
    				Type: pulumi.String("Mac"),
    			},
    			Selectors: sumologic.SourceTemplateSelectorArray{
    				&sumologic.SourceTemplateSelectorArgs{
    					Tags: sumologic.SourceTemplateSelectorTagArrayArray{
    						sumologic.SourceTemplateSelectorTagArray{
    							&sumologic.SourceTemplateSelectorTagArgs{
    								Key: pulumi.String("new1"),
    								Values: pulumi.StringArray{
    									pulumi.String("Abc"),
    									pulumi.String("Abc2"),
    								},
    							},
    						},
    					},
    					Names: pulumi.StringArray{
    						pulumi.String("TestCollector1"),
    					},
    				},
    			},
    			InputJson: pulumi.String(json0),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Sumologic = Pulumi.Sumologic;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleSourceTemplate = new Sumologic.SourceTemplate("exampleSourceTemplate", new()
        {
            SchemaRef = new Sumologic.Inputs.SourceTemplateSchemaRefArgs
            {
                Type = "Mac",
            },
            Selectors = new[]
            {
                new Sumologic.Inputs.SourceTemplateSelectorArgs
                {
                    Tags = new[]
                    {
                        new[]
                        {
                            new Sumologic.Inputs.SourceTemplateSelectorTagArgs
                            {
                                Key = "new1",
                                Values = new[]
                                {
                                    "Abc",
                                    "Abc2",
                                },
                            },
                        },
                    },
                    Names = new[]
                    {
                        "TestCollector1",
                    },
                },
            },
            InputJson = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["name"] = "hostmetrics_test_source_template_test",
                ["description"] = "Host metric source",
                ["receivers"] = new Dictionary<string, object?>
                {
                    ["hostmetrics"] = new Dictionary<string, object?>
                    {
                        ["receiverType"] = "hostmetrics",
                        ["collection_interval"] = "5m",
                        ["cpu_scraper_enabled"] = true,
                        ["disk_scraper_enabled"] = true,
                        ["load_scraper_enabled"] = true,
                        ["filesystem_scraper_enabled"] = true,
                        ["memory_scraper_enabled"] = true,
                        ["network_scraper_enabled"] = true,
                        ["processes_scraper_enabled"] = true,
                        ["paging_scraper_enabled"] = true,
                    },
                },
                ["processors"] = new Dictionary<string, object?>
                {
                    ["resource"] = new Dictionary<string, object?>
                    {
                        ["processorType"] = "resource",
                        ["user_attributes"] = new[]
                        {
                            new Dictionary<string, object?>
                            {
                                ["key"] = "_sourceCategory",
                                ["value"] = "otel/host",
                            },
                        },
                        ["default_attributes"] = new[]
                        {
                            new Dictionary<string, object?>
                            {
                                ["key"] = "sumo.datasource",
                                ["value"] = "apache",
                            },
                            new Dictionary<string, object?>
                            {
                                ["key"] = "host.name",
                                ["value"] = "host1",
                            },
                            new Dictionary<string, object?>
                            {
                                ["key"] = "host.id",
                                ["value"] = "hostid",
                            },
                            new Dictionary<string, object?>
                            {
                                ["key"] = "log.file.path",
                                ["value"] = "filePath",
                            },
                        },
                    },
                },
            }),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.SourceTemplate;
    import com.pulumi.sumologic.SourceTemplateArgs;
    import com.pulumi.sumologic.inputs.SourceTemplateSchemaRefArgs;
    import com.pulumi.sumologic.inputs.SourceTemplateSelectorArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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 exampleSourceTemplate = new SourceTemplate("exampleSourceTemplate", SourceTemplateArgs.builder()
                .schemaRef(SourceTemplateSchemaRefArgs.builder()
                    .type("Mac")
                    .build())
                .selectors(SourceTemplateSelectorArgs.builder()
                    .tags(SourceTemplateSelectorTagArgs.builder()
                        .key("new1")
                        .values(                    
                            "Abc",
                            "Abc2")
                        .build())
                    .names("TestCollector1")
                    .build())
                .inputJson(serializeJson(
                    jsonObject(
                        jsonProperty("name", "hostmetrics_test_source_template_test"),
                        jsonProperty("description", "Host metric source"),
                        jsonProperty("receivers", jsonObject(
                            jsonProperty("hostmetrics", jsonObject(
                                jsonProperty("receiverType", "hostmetrics"),
                                jsonProperty("collection_interval", "5m"),
                                jsonProperty("cpu_scraper_enabled", true),
                                jsonProperty("disk_scraper_enabled", true),
                                jsonProperty("load_scraper_enabled", true),
                                jsonProperty("filesystem_scraper_enabled", true),
                                jsonProperty("memory_scraper_enabled", true),
                                jsonProperty("network_scraper_enabled", true),
                                jsonProperty("processes_scraper_enabled", true),
                                jsonProperty("paging_scraper_enabled", true)
                            ))
                        )),
                        jsonProperty("processors", jsonObject(
                            jsonProperty("resource", jsonObject(
                                jsonProperty("processorType", "resource"),
                                jsonProperty("user_attributes", jsonArray(jsonObject(
                                    jsonProperty("key", "_sourceCategory"),
                                    jsonProperty("value", "otel/host")
                                ))),
                                jsonProperty("default_attributes", jsonArray(
                                    jsonObject(
                                        jsonProperty("key", "sumo.datasource"),
                                        jsonProperty("value", "apache")
                                    ), 
                                    jsonObject(
                                        jsonProperty("key", "host.name"),
                                        jsonProperty("value", "host1")
                                    ), 
                                    jsonObject(
                                        jsonProperty("key", "host.id"),
                                        jsonProperty("value", "hostid")
                                    ), 
                                    jsonObject(
                                        jsonProperty("key", "log.file.path"),
                                        jsonProperty("value", "filePath")
                                    )
                                ))
                            ))
                        ))
                    )))
                .build());
    
        }
    }
    
    resources:
      exampleSourceTemplate:
        type: sumologic:SourceTemplate
        properties:
          schemaRef:
            type: Mac
          selectors:
            - tags:
                - - key: new1
                    values:
                      - Abc
                      - Abc2
              names:
                - TestCollector1
          inputJson:
            fn::toJSON:
              name: hostmetrics_test_source_template_test
              description: Host metric source
              receivers:
                hostmetrics:
                  receiverType: hostmetrics
                  collection_interval: 5m
                  cpu_scraper_enabled: true
                  disk_scraper_enabled: true
                  load_scraper_enabled: true
                  filesystem_scraper_enabled: true
                  memory_scraper_enabled: true
                  network_scraper_enabled: true
                  processes_scraper_enabled: true
                  paging_scraper_enabled: true
              processors:
                resource:
                  processorType: resource
                  user_attributes:
                    - key: _sourceCategory
                      value: otel/host
                  default_attributes:
                    - key: sumo.datasource
                      value: apache
                    - key: host.name
                      value: host1
                    - key: host.id
                      value: hostid
                    - key: log.file.path
                      value: filePath
    

    Create SourceTemplate Resource

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

    Constructor syntax

    new SourceTemplate(name: string, args: SourceTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def SourceTemplate(resource_name: str,
                       args: SourceTemplateArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def SourceTemplate(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       input_json: Optional[str] = None,
                       schema_ref: Optional[SourceTemplateSchemaRefArgs] = None,
                       selectors: Optional[Sequence[SourceTemplateSelectorArgs]] = None,
                       source_template_id: Optional[str] = None)
    func NewSourceTemplate(ctx *Context, name string, args SourceTemplateArgs, opts ...ResourceOption) (*SourceTemplate, error)
    public SourceTemplate(string name, SourceTemplateArgs args, CustomResourceOptions? opts = null)
    public SourceTemplate(String name, SourceTemplateArgs args)
    public SourceTemplate(String name, SourceTemplateArgs args, CustomResourceOptions options)
    
    type: sumologic:SourceTemplate
    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 SourceTemplateArgs
    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 SourceTemplateArgs
    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 SourceTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SourceTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SourceTemplateArgs
    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 sourceTemplateResource = new Sumologic.SourceTemplate("sourceTemplateResource", new()
    {
        InputJson = "string",
        SchemaRef = new Sumologic.Inputs.SourceTemplateSchemaRefArgs
        {
            Type = "string",
            LatestVersion = "string",
            Version = "string",
        },
        Selectors = new[]
        {
            new Sumologic.Inputs.SourceTemplateSelectorArgs
            {
                Names = new[]
                {
                    "string",
                },
                Tags = new[]
                {
                    new[]
                    {
                        new Sumologic.Inputs.SourceTemplateSelectorTagArgs
                        {
                            Key = "string",
                            Values = new[]
                            {
                                "string",
                            },
                        },
                    },
                },
            },
        },
        SourceTemplateId = "string",
    });
    
    example, err := sumologic.NewSourceTemplate(ctx, "sourceTemplateResource", &sumologic.SourceTemplateArgs{
    	InputJson: pulumi.String("string"),
    	SchemaRef: &sumologic.SourceTemplateSchemaRefArgs{
    		Type:          pulumi.String("string"),
    		LatestVersion: pulumi.String("string"),
    		Version:       pulumi.String("string"),
    	},
    	Selectors: sumologic.SourceTemplateSelectorArray{
    		&sumologic.SourceTemplateSelectorArgs{
    			Names: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Tags: sumologic.SourceTemplateSelectorTagArrayArray{
    				sumologic.SourceTemplateSelectorTagArray{
    					&sumologic.SourceTemplateSelectorTagArgs{
    						Key: pulumi.String("string"),
    						Values: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    					},
    				},
    			},
    		},
    	},
    	SourceTemplateId: pulumi.String("string"),
    })
    
    var sourceTemplateResource = new SourceTemplate("sourceTemplateResource", SourceTemplateArgs.builder()
        .inputJson("string")
        .schemaRef(SourceTemplateSchemaRefArgs.builder()
            .type("string")
            .latestVersion("string")
            .version("string")
            .build())
        .selectors(SourceTemplateSelectorArgs.builder()
            .names("string")
            .tags(SourceTemplateSelectorTagArgs.builder()
                .key("string")
                .values("string")
                .build())
            .build())
        .sourceTemplateId("string")
        .build());
    
    source_template_resource = sumologic.SourceTemplate("sourceTemplateResource",
        input_json="string",
        schema_ref={
            "type": "string",
            "latest_version": "string",
            "version": "string",
        },
        selectors=[{
            "names": ["string"],
            "tags": [[{
                "key": "string",
                "values": ["string"],
            }]],
        }],
        source_template_id="string")
    
    const sourceTemplateResource = new sumologic.SourceTemplate("sourceTemplateResource", {
        inputJson: "string",
        schemaRef: {
            type: "string",
            latestVersion: "string",
            version: "string",
        },
        selectors: [{
            names: ["string"],
            tags: [[{
                key: "string",
                values: ["string"],
            }]],
        }],
        sourceTemplateId: "string",
    });
    
    type: sumologic:SourceTemplate
    properties:
        inputJson: string
        schemaRef:
            latestVersion: string
            type: string
            version: string
        selectors:
            - names:
                - string
              tags:
                - - key: string
                    values:
                        - string
        sourceTemplateId: string
    

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

    InputJson string
    This is a JSON object which contains the configuration parameters for the source template.
    SchemaRef SourceTemplateSchemaRef
    Schema reference for source template.
    Selectors List<SourceTemplateSelector>

    Conditions to select OT Agent.

    The following attributes are exported:

    SourceTemplateId string
    The internal ID of the source_template.
    InputJson string
    This is a JSON object which contains the configuration parameters for the source template.
    SchemaRef SourceTemplateSchemaRefArgs
    Schema reference for source template.
    Selectors []SourceTemplateSelectorArgs

    Conditions to select OT Agent.

    The following attributes are exported:

    SourceTemplateId string
    The internal ID of the source_template.
    inputJson String
    This is a JSON object which contains the configuration parameters for the source template.
    schemaRef SourceTemplateSchemaRef
    Schema reference for source template.
    selectors List<SourceTemplateSelector>

    Conditions to select OT Agent.

    The following attributes are exported:

    sourceTemplateId String
    The internal ID of the source_template.
    inputJson string
    This is a JSON object which contains the configuration parameters for the source template.
    schemaRef SourceTemplateSchemaRef
    Schema reference for source template.
    selectors SourceTemplateSelector[]

    Conditions to select OT Agent.

    The following attributes are exported:

    sourceTemplateId string
    The internal ID of the source_template.
    input_json str
    This is a JSON object which contains the configuration parameters for the source template.
    schema_ref SourceTemplateSchemaRefArgs
    Schema reference for source template.
    selectors Sequence[SourceTemplateSelectorArgs]

    Conditions to select OT Agent.

    The following attributes are exported:

    source_template_id str
    The internal ID of the source_template.
    inputJson String
    This is a JSON object which contains the configuration parameters for the source template.
    schemaRef Property Map
    Schema reference for source template.
    selectors List<Property Map>

    Conditions to select OT Agent.

    The following attributes are exported:

    sourceTemplateId String
    The internal ID of the source_template.

    Outputs

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

    Config string
    CreatedAt string
    CreatedBy string
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedAt string
    ModifiedBy string
    TotalCollectorLinked double
    Config string
    CreatedAt string
    CreatedBy string
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedAt string
    ModifiedBy string
    TotalCollectorLinked float64
    config String
    createdAt String
    createdBy String
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedAt String
    modifiedBy String
    totalCollectorLinked Double
    config string
    createdAt string
    createdBy string
    id string
    The provider-assigned unique ID for this managed resource.
    modifiedAt string
    modifiedBy string
    totalCollectorLinked number
    config str
    created_at str
    created_by str
    id str
    The provider-assigned unique ID for this managed resource.
    modified_at str
    modified_by str
    total_collector_linked float
    config String
    createdAt String
    createdBy String
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedAt String
    modifiedBy String
    totalCollectorLinked Number

    Look up Existing SourceTemplate Resource

    Get an existing SourceTemplate 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?: SourceTemplateState, opts?: CustomResourceOptions): SourceTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config: Optional[str] = None,
            created_at: Optional[str] = None,
            created_by: Optional[str] = None,
            input_json: Optional[str] = None,
            modified_at: Optional[str] = None,
            modified_by: Optional[str] = None,
            schema_ref: Optional[SourceTemplateSchemaRefArgs] = None,
            selectors: Optional[Sequence[SourceTemplateSelectorArgs]] = None,
            source_template_id: Optional[str] = None,
            total_collector_linked: Optional[float] = None) -> SourceTemplate
    func GetSourceTemplate(ctx *Context, name string, id IDInput, state *SourceTemplateState, opts ...ResourceOption) (*SourceTemplate, error)
    public static SourceTemplate Get(string name, Input<string> id, SourceTemplateState? state, CustomResourceOptions? opts = null)
    public static SourceTemplate get(String name, Output<String> id, SourceTemplateState state, CustomResourceOptions options)
    resources:  _:    type: sumologic:SourceTemplate    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:
    Config string
    CreatedAt string
    CreatedBy string
    InputJson string
    This is a JSON object which contains the configuration parameters for the source template.
    ModifiedAt string
    ModifiedBy string
    SchemaRef SourceTemplateSchemaRef
    Schema reference for source template.
    Selectors List<SourceTemplateSelector>

    Conditions to select OT Agent.

    The following attributes are exported:

    SourceTemplateId string
    The internal ID of the source_template.
    TotalCollectorLinked double
    Config string
    CreatedAt string
    CreatedBy string
    InputJson string
    This is a JSON object which contains the configuration parameters for the source template.
    ModifiedAt string
    ModifiedBy string
    SchemaRef SourceTemplateSchemaRefArgs
    Schema reference for source template.
    Selectors []SourceTemplateSelectorArgs

    Conditions to select OT Agent.

    The following attributes are exported:

    SourceTemplateId string
    The internal ID of the source_template.
    TotalCollectorLinked float64
    config String
    createdAt String
    createdBy String
    inputJson String
    This is a JSON object which contains the configuration parameters for the source template.
    modifiedAt String
    modifiedBy String
    schemaRef SourceTemplateSchemaRef
    Schema reference for source template.
    selectors List<SourceTemplateSelector>

    Conditions to select OT Agent.

    The following attributes are exported:

    sourceTemplateId String
    The internal ID of the source_template.
    totalCollectorLinked Double
    config string
    createdAt string
    createdBy string
    inputJson string
    This is a JSON object which contains the configuration parameters for the source template.
    modifiedAt string
    modifiedBy string
    schemaRef SourceTemplateSchemaRef
    Schema reference for source template.
    selectors SourceTemplateSelector[]

    Conditions to select OT Agent.

    The following attributes are exported:

    sourceTemplateId string
    The internal ID of the source_template.
    totalCollectorLinked number
    config str
    created_at str
    created_by str
    input_json str
    This is a JSON object which contains the configuration parameters for the source template.
    modified_at str
    modified_by str
    schema_ref SourceTemplateSchemaRefArgs
    Schema reference for source template.
    selectors Sequence[SourceTemplateSelectorArgs]

    Conditions to select OT Agent.

    The following attributes are exported:

    source_template_id str
    The internal ID of the source_template.
    total_collector_linked float
    config String
    createdAt String
    createdBy String
    inputJson String
    This is a JSON object which contains the configuration parameters for the source template.
    modifiedAt String
    modifiedBy String
    schemaRef Property Map
    Schema reference for source template.
    selectors List<Property Map>

    Conditions to select OT Agent.

    The following attributes are exported:

    sourceTemplateId String
    The internal ID of the source_template.
    totalCollectorLinked Number

    Supporting Types

    SourceTemplateSchemaRef, SourceTemplateSchemaRefArgs

    Type string
    Type of schema for the source template.
    LatestVersion string
    Version string
    Version of schema used for the source template. Takes the latest version, if this field is omitted.
    Type string
    Type of schema for the source template.
    LatestVersion string
    Version string
    Version of schema used for the source template. Takes the latest version, if this field is omitted.
    type String
    Type of schema for the source template.
    latestVersion String
    version String
    Version of schema used for the source template. Takes the latest version, if this field is omitted.
    type string
    Type of schema for the source template.
    latestVersion string
    version string
    Version of schema used for the source template. Takes the latest version, if this field is omitted.
    type str
    Type of schema for the source template.
    latest_version str
    version str
    Version of schema used for the source template. Takes the latest version, if this field is omitted.
    type String
    Type of schema for the source template.
    latestVersion String
    version String
    Version of schema used for the source template. Takes the latest version, if this field is omitted.

    SourceTemplateSelector, SourceTemplateSelectorArgs

    Names List<string>
    names to select custom agents
    Tags List<ImmutableArray<SourceTemplateSelectorTag>>
    tags filter for agents
    Names []string
    names to select custom agents
    Tags [][]SourceTemplateSelectorTag
    tags filter for agents
    names List<String>
    names to select custom agents
    tags List<List<SourceTemplateSelectorTag>>
    tags filter for agents
    names string[]
    names to select custom agents
    tags SourceTemplateSelectorTag[][]
    tags filter for agents
    names Sequence[str]
    names to select custom agents
    tags Sequence[Sequence[SourceTemplateSelectorTag]]
    tags filter for agents
    names List<String>
    names to select custom agents
    tags List<List<Property Map>>
    tags filter for agents

    SourceTemplateSelectorTag, SourceTemplateSelectorTagArgs

    Key string
    Key of the needed OT tag.
    Values List<string>
    Values of the given OT tag to be filtered.
    Key string
    Key of the needed OT tag.
    Values []string
    Values of the given OT tag to be filtered.
    key String
    Key of the needed OT tag.
    values List<String>
    Values of the given OT tag to be filtered.
    key string
    Key of the needed OT tag.
    values string[]
    Values of the given OT tag to be filtered.
    key str
    Key of the needed OT tag.
    values Sequence[str]
    Values of the given OT tag to be filtered.
    key String
    Key of the needed OT tag.
    values List<String>
    Values of the given OT tag to be filtered.

    Import

    Source Templates can be imported using the ST id, e.g.:

    hcl

    $ pulumi import sumologic:index/sourceTemplate:SourceTemplate test 0000000000000004
    

    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
    sumologic 3.1.0 published on Friday, Jun 27, 2025 by sumologic