1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. LtsQuickSearchCriteriaV1
opentelekomcloud 1.36.38 published on Friday, May 9, 2025 by opentelekomcloud

opentelekomcloud.LtsQuickSearchCriteriaV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.38 published on Friday, May 9, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for LTS log group you can get at documentation portal

    Manages an LTS quick search criteria resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const logGroupId = config.requireObject("logGroupId");
    const logStreamId = config.requireObject("logStreamId");
    const qsc = new opentelekomcloud.LtsQuickSearchCriteriaV1("qsc", {
        logGroupId: logGroupId,
        logStreamId: logStreamId,
        criteria: "content:test",
        type: "ORIGINALLOG",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    log_group_id = config.require_object("logGroupId")
    log_stream_id = config.require_object("logStreamId")
    qsc = opentelekomcloud.LtsQuickSearchCriteriaV1("qsc",
        log_group_id=log_group_id,
        log_stream_id=log_stream_id,
        criteria="content:test",
        type="ORIGINALLOG")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		logGroupId := cfg.RequireObject("logGroupId")
    		logStreamId := cfg.RequireObject("logStreamId")
    		_, err := opentelekomcloud.NewLtsQuickSearchCriteriaV1(ctx, "qsc", &opentelekomcloud.LtsQuickSearchCriteriaV1Args{
    			LogGroupId:  pulumi.Any(logGroupId),
    			LogStreamId: pulumi.Any(logStreamId),
    			Criteria:    pulumi.String("content:test"),
    			Type:        pulumi.String("ORIGINALLOG"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var logGroupId = config.RequireObject<dynamic>("logGroupId");
        var logStreamId = config.RequireObject<dynamic>("logStreamId");
        var qsc = new Opentelekomcloud.LtsQuickSearchCriteriaV1("qsc", new()
        {
            LogGroupId = logGroupId,
            LogStreamId = logStreamId,
            Criteria = "content:test",
            Type = "ORIGINALLOG",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LtsQuickSearchCriteriaV1;
    import com.pulumi.opentelekomcloud.LtsQuickSearchCriteriaV1Args;
    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 config = ctx.config();
            final var logGroupId = config.get("logGroupId");
            final var logStreamId = config.get("logStreamId");
            var qsc = new LtsQuickSearchCriteriaV1("qsc", LtsQuickSearchCriteriaV1Args.builder()
                .logGroupId(logGroupId)
                .logStreamId(logStreamId)
                .criteria("content:test")
                .type("ORIGINALLOG")
                .build());
    
        }
    }
    
    configuration:
      logGroupId:
        type: dynamic
      logStreamId:
        type: dynamic
    resources:
      qsc:
        type: opentelekomcloud:LtsQuickSearchCriteriaV1
        properties:
          logGroupId: ${logGroupId}
          logStreamId: ${logStreamId}
          criteria: content:test
          type: ORIGINALLOG
    

    Create LtsQuickSearchCriteriaV1 Resource

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

    Constructor syntax

    new LtsQuickSearchCriteriaV1(name: string, args: LtsQuickSearchCriteriaV1Args, opts?: CustomResourceOptions);
    @overload
    def LtsQuickSearchCriteriaV1(resource_name: str,
                                 args: LtsQuickSearchCriteriaV1Args,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def LtsQuickSearchCriteriaV1(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 criteria: Optional[str] = None,
                                 log_group_id: Optional[str] = None,
                                 log_stream_id: Optional[str] = None,
                                 type: Optional[str] = None,
                                 lts_quick_search_criteria_v1_id: Optional[str] = None,
                                 name: Optional[str] = None)
    func NewLtsQuickSearchCriteriaV1(ctx *Context, name string, args LtsQuickSearchCriteriaV1Args, opts ...ResourceOption) (*LtsQuickSearchCriteriaV1, error)
    public LtsQuickSearchCriteriaV1(string name, LtsQuickSearchCriteriaV1Args args, CustomResourceOptions? opts = null)
    public LtsQuickSearchCriteriaV1(String name, LtsQuickSearchCriteriaV1Args args)
    public LtsQuickSearchCriteriaV1(String name, LtsQuickSearchCriteriaV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:LtsQuickSearchCriteriaV1
    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 LtsQuickSearchCriteriaV1Args
    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 LtsQuickSearchCriteriaV1Args
    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 LtsQuickSearchCriteriaV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LtsQuickSearchCriteriaV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LtsQuickSearchCriteriaV1Args
    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 ltsQuickSearchCriteriaV1Resource = new Opentelekomcloud.LtsQuickSearchCriteriaV1("ltsQuickSearchCriteriaV1Resource", new()
    {
        Criteria = "string",
        LogGroupId = "string",
        LogStreamId = "string",
        Type = "string",
        LtsQuickSearchCriteriaV1Id = "string",
        Name = "string",
    });
    
    example, err := opentelekomcloud.NewLtsQuickSearchCriteriaV1(ctx, "ltsQuickSearchCriteriaV1Resource", &opentelekomcloud.LtsQuickSearchCriteriaV1Args{
    	Criteria:                   pulumi.String("string"),
    	LogGroupId:                 pulumi.String("string"),
    	LogStreamId:                pulumi.String("string"),
    	Type:                       pulumi.String("string"),
    	LtsQuickSearchCriteriaV1Id: pulumi.String("string"),
    	Name:                       pulumi.String("string"),
    })
    
    var ltsQuickSearchCriteriaV1Resource = new LtsQuickSearchCriteriaV1("ltsQuickSearchCriteriaV1Resource", LtsQuickSearchCriteriaV1Args.builder()
        .criteria("string")
        .logGroupId("string")
        .logStreamId("string")
        .type("string")
        .ltsQuickSearchCriteriaV1Id("string")
        .name("string")
        .build());
    
    lts_quick_search_criteria_v1_resource = opentelekomcloud.LtsQuickSearchCriteriaV1("ltsQuickSearchCriteriaV1Resource",
        criteria="string",
        log_group_id="string",
        log_stream_id="string",
        type="string",
        lts_quick_search_criteria_v1_id="string",
        name="string")
    
    const ltsQuickSearchCriteriaV1Resource = new opentelekomcloud.LtsQuickSearchCriteriaV1("ltsQuickSearchCriteriaV1Resource", {
        criteria: "string",
        logGroupId: "string",
        logStreamId: "string",
        type: "string",
        ltsQuickSearchCriteriaV1Id: "string",
        name: "string",
    });
    
    type: opentelekomcloud:LtsQuickSearchCriteriaV1
    properties:
        criteria: string
        logGroupId: string
        logStreamId: string
        ltsQuickSearchCriteriaV1Id: string
        name: string
        type: string
    

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

    Criteria string

    Specifies the content of search criteria.

    Changing this parameter will create a new resource.

    LogGroupId string

    Specifies the ID of a log group.

    Changing this parameter will create a new resource.

    LogStreamId string

    Specifies the ID of a log stream.

    Changing this parameter will create a new resource.

    Type string

    Specifies the type of the search criteria. Available types are ORIGINALLOG (for raw logs).

    Changing this parameter will create a new resource.

    LtsQuickSearchCriteriaV1Id string
    The resource ID.
    Name string

    Specifies the name of the search criteria. The name can only contain English letters, numbers, hyphens, underscores, and periods. It cannot start with a period or underscore or end with a period.

    Changing this parameter will create a new resource.

    Criteria string

    Specifies the content of search criteria.

    Changing this parameter will create a new resource.

    LogGroupId string

    Specifies the ID of a log group.

    Changing this parameter will create a new resource.

    LogStreamId string

    Specifies the ID of a log stream.

    Changing this parameter will create a new resource.

    Type string

    Specifies the type of the search criteria. Available types are ORIGINALLOG (for raw logs).

    Changing this parameter will create a new resource.

    LtsQuickSearchCriteriaV1Id string
    The resource ID.
    Name string

    Specifies the name of the search criteria. The name can only contain English letters, numbers, hyphens, underscores, and periods. It cannot start with a period or underscore or end with a period.

    Changing this parameter will create a new resource.

    criteria String

    Specifies the content of search criteria.

    Changing this parameter will create a new resource.

    logGroupId String

    Specifies the ID of a log group.

    Changing this parameter will create a new resource.

    logStreamId String

    Specifies the ID of a log stream.

    Changing this parameter will create a new resource.

    type String

    Specifies the type of the search criteria. Available types are ORIGINALLOG (for raw logs).

    Changing this parameter will create a new resource.

    ltsQuickSearchCriteriaV1Id String
    The resource ID.
    name String

    Specifies the name of the search criteria. The name can only contain English letters, numbers, hyphens, underscores, and periods. It cannot start with a period or underscore or end with a period.

    Changing this parameter will create a new resource.

    criteria string

    Specifies the content of search criteria.

    Changing this parameter will create a new resource.

    logGroupId string

    Specifies the ID of a log group.

    Changing this parameter will create a new resource.

    logStreamId string

    Specifies the ID of a log stream.

    Changing this parameter will create a new resource.

    type string

    Specifies the type of the search criteria. Available types are ORIGINALLOG (for raw logs).

    Changing this parameter will create a new resource.

    ltsQuickSearchCriteriaV1Id string
    The resource ID.
    name string

    Specifies the name of the search criteria. The name can only contain English letters, numbers, hyphens, underscores, and periods. It cannot start with a period or underscore or end with a period.

    Changing this parameter will create a new resource.

    criteria str

    Specifies the content of search criteria.

    Changing this parameter will create a new resource.

    log_group_id str

    Specifies the ID of a log group.

    Changing this parameter will create a new resource.

    log_stream_id str

    Specifies the ID of a log stream.

    Changing this parameter will create a new resource.

    type str

    Specifies the type of the search criteria. Available types are ORIGINALLOG (for raw logs).

    Changing this parameter will create a new resource.

    lts_quick_search_criteria_v1_id str
    The resource ID.
    name str

    Specifies the name of the search criteria. The name can only contain English letters, numbers, hyphens, underscores, and periods. It cannot start with a period or underscore or end with a period.

    Changing this parameter will create a new resource.

    criteria String

    Specifies the content of search criteria.

    Changing this parameter will create a new resource.

    logGroupId String

    Specifies the ID of a log group.

    Changing this parameter will create a new resource.

    logStreamId String

    Specifies the ID of a log stream.

    Changing this parameter will create a new resource.

    type String

    Specifies the type of the search criteria. Available types are ORIGINALLOG (for raw logs).

    Changing this parameter will create a new resource.

    ltsQuickSearchCriteriaV1Id String
    The resource ID.
    name String

    Specifies the name of the search criteria. The name can only contain English letters, numbers, hyphens, underscores, and periods. It cannot start with a period or underscore or end with a period.

    Changing this parameter will create a new resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    Shows the region in the search criteria resource created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    Shows the region in the search criteria resource created.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    Shows the region in the search criteria resource created.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    Shows the region in the search criteria resource created.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    Shows the region in the search criteria resource created.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    Shows the region in the search criteria resource created.

    Look up Existing LtsQuickSearchCriteriaV1 Resource

    Get an existing LtsQuickSearchCriteriaV1 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?: LtsQuickSearchCriteriaV1State, opts?: CustomResourceOptions): LtsQuickSearchCriteriaV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            criteria: Optional[str] = None,
            log_group_id: Optional[str] = None,
            log_stream_id: Optional[str] = None,
            lts_quick_search_criteria_v1_id: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            type: Optional[str] = None) -> LtsQuickSearchCriteriaV1
    func GetLtsQuickSearchCriteriaV1(ctx *Context, name string, id IDInput, state *LtsQuickSearchCriteriaV1State, opts ...ResourceOption) (*LtsQuickSearchCriteriaV1, error)
    public static LtsQuickSearchCriteriaV1 Get(string name, Input<string> id, LtsQuickSearchCriteriaV1State? state, CustomResourceOptions? opts = null)
    public static LtsQuickSearchCriteriaV1 get(String name, Output<String> id, LtsQuickSearchCriteriaV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:LtsQuickSearchCriteriaV1    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:
    Criteria string

    Specifies the content of search criteria.

    Changing this parameter will create a new resource.

    LogGroupId string

    Specifies the ID of a log group.

    Changing this parameter will create a new resource.

    LogStreamId string

    Specifies the ID of a log stream.

    Changing this parameter will create a new resource.

    LtsQuickSearchCriteriaV1Id string
    The resource ID.
    Name string

    Specifies the name of the search criteria. The name can only contain English letters, numbers, hyphens, underscores, and periods. It cannot start with a period or underscore or end with a period.

    Changing this parameter will create a new resource.

    Region string
    Shows the region in the search criteria resource created.
    Type string

    Specifies the type of the search criteria. Available types are ORIGINALLOG (for raw logs).

    Changing this parameter will create a new resource.

    Criteria string

    Specifies the content of search criteria.

    Changing this parameter will create a new resource.

    LogGroupId string

    Specifies the ID of a log group.

    Changing this parameter will create a new resource.

    LogStreamId string

    Specifies the ID of a log stream.

    Changing this parameter will create a new resource.

    LtsQuickSearchCriteriaV1Id string
    The resource ID.
    Name string

    Specifies the name of the search criteria. The name can only contain English letters, numbers, hyphens, underscores, and periods. It cannot start with a period or underscore or end with a period.

    Changing this parameter will create a new resource.

    Region string
    Shows the region in the search criteria resource created.
    Type string

    Specifies the type of the search criteria. Available types are ORIGINALLOG (for raw logs).

    Changing this parameter will create a new resource.

    criteria String

    Specifies the content of search criteria.

    Changing this parameter will create a new resource.

    logGroupId String

    Specifies the ID of a log group.

    Changing this parameter will create a new resource.

    logStreamId String

    Specifies the ID of a log stream.

    Changing this parameter will create a new resource.

    ltsQuickSearchCriteriaV1Id String
    The resource ID.
    name String

    Specifies the name of the search criteria. The name can only contain English letters, numbers, hyphens, underscores, and periods. It cannot start with a period or underscore or end with a period.

    Changing this parameter will create a new resource.

    region String
    Shows the region in the search criteria resource created.
    type String

    Specifies the type of the search criteria. Available types are ORIGINALLOG (for raw logs).

    Changing this parameter will create a new resource.

    criteria string

    Specifies the content of search criteria.

    Changing this parameter will create a new resource.

    logGroupId string

    Specifies the ID of a log group.

    Changing this parameter will create a new resource.

    logStreamId string

    Specifies the ID of a log stream.

    Changing this parameter will create a new resource.

    ltsQuickSearchCriteriaV1Id string
    The resource ID.
    name string

    Specifies the name of the search criteria. The name can only contain English letters, numbers, hyphens, underscores, and periods. It cannot start with a period or underscore or end with a period.

    Changing this parameter will create a new resource.

    region string
    Shows the region in the search criteria resource created.
    type string

    Specifies the type of the search criteria. Available types are ORIGINALLOG (for raw logs).

    Changing this parameter will create a new resource.

    criteria str

    Specifies the content of search criteria.

    Changing this parameter will create a new resource.

    log_group_id str

    Specifies the ID of a log group.

    Changing this parameter will create a new resource.

    log_stream_id str

    Specifies the ID of a log stream.

    Changing this parameter will create a new resource.

    lts_quick_search_criteria_v1_id str
    The resource ID.
    name str

    Specifies the name of the search criteria. The name can only contain English letters, numbers, hyphens, underscores, and periods. It cannot start with a period or underscore or end with a period.

    Changing this parameter will create a new resource.

    region str
    Shows the region in the search criteria resource created.
    type str

    Specifies the type of the search criteria. Available types are ORIGINALLOG (for raw logs).

    Changing this parameter will create a new resource.

    criteria String

    Specifies the content of search criteria.

    Changing this parameter will create a new resource.

    logGroupId String

    Specifies the ID of a log group.

    Changing this parameter will create a new resource.

    logStreamId String

    Specifies the ID of a log stream.

    Changing this parameter will create a new resource.

    ltsQuickSearchCriteriaV1Id String
    The resource ID.
    name String

    Specifies the name of the search criteria. The name can only contain English letters, numbers, hyphens, underscores, and periods. It cannot start with a period or underscore or end with a period.

    Changing this parameter will create a new resource.

    region String
    Shows the region in the search criteria resource created.
    type String

    Specifies the type of the search criteria. Available types are ORIGINALLOG (for raw logs).

    Changing this parameter will create a new resource.

    Import

    The search criteria can be imported using the group ID, stream ID, and resource ID separated by the slashes, e.g.

    bash

    $ pulumi import opentelekomcloud:index/ltsQuickSearchCriteriaV1:LtsQuickSearchCriteriaV1 test <log_group_id>/<log_stream_id>/<id>
    

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.38 published on Friday, May 9, 2025 by opentelekomcloud