1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getClsLogsets
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getClsLogsets

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of cls logsets

    Example Usage

    Query all cls logsets

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const logsets = tencentcloud.getClsLogsets({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    logsets = tencentcloud.get_cls_logsets()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetClsLogsets(ctx, &tencentcloud.GetClsLogsetsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var logsets = Tencentcloud.GetClsLogsets.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetClsLogsetsArgs;
    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 logsets = TencentcloudFunctions.getClsLogsets();
    
        }
    }
    
    variables:
      logsets:
        fn::invoke:
          function: tencentcloud:getClsLogsets
          arguments: {}
    

    Query by filters

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const logsets = tencentcloud.getClsLogsets({
        filters: [{
            key: "tag:createdBy",
            values: ["terraform"],
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    logsets = tencentcloud.get_cls_logsets(filters=[{
        "key": "tag:createdBy",
        "values": ["terraform"],
    }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetClsLogsets(ctx, &tencentcloud.GetClsLogsetsArgs{
    			Filters: []tencentcloud.GetClsLogsetsFilter{
    				{
    					Key: "tag:createdBy",
    					Values: []string{
    						"terraform",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var logsets = Tencentcloud.GetClsLogsets.Invoke(new()
        {
            Filters = new[]
            {
                new Tencentcloud.Inputs.GetClsLogsetsFilterInputArgs
                {
                    Key = "tag:createdBy",
                    Values = new[]
                    {
                        "terraform",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetClsLogsetsArgs;
    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 logsets = TencentcloudFunctions.getClsLogsets(GetClsLogsetsArgs.builder()
                .filters(GetClsLogsetsFilterArgs.builder()
                    .key("tag:createdBy")
                    .values("terraform")
                    .build())
                .build());
    
        }
    }
    
    variables:
      logsets:
        fn::invoke:
          function: tencentcloud:getClsLogsets
          arguments:
            filters:
              - key: tag:createdBy
                values:
                  - terraform
    

    Using getClsLogsets

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getClsLogsets(args: GetClsLogsetsArgs, opts?: InvokeOptions): Promise<GetClsLogsetsResult>
    function getClsLogsetsOutput(args: GetClsLogsetsOutputArgs, opts?: InvokeOptions): Output<GetClsLogsetsResult>
    def get_cls_logsets(filters: Optional[Sequence[GetClsLogsetsFilter]] = None,
                        id: Optional[str] = None,
                        result_output_file: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetClsLogsetsResult
    def get_cls_logsets_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetClsLogsetsFilterArgs]]]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        result_output_file: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetClsLogsetsResult]
    func GetClsLogsets(ctx *Context, args *GetClsLogsetsArgs, opts ...InvokeOption) (*GetClsLogsetsResult, error)
    func GetClsLogsetsOutput(ctx *Context, args *GetClsLogsetsOutputArgs, opts ...InvokeOption) GetClsLogsetsResultOutput

    > Note: This function is named GetClsLogsets in the Go SDK.

    public static class GetClsLogsets 
    {
        public static Task<GetClsLogsetsResult> InvokeAsync(GetClsLogsetsArgs args, InvokeOptions? opts = null)
        public static Output<GetClsLogsetsResult> Invoke(GetClsLogsetsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClsLogsetsResult> getClsLogsets(GetClsLogsetsArgs args, InvokeOptions options)
    public static Output<GetClsLogsetsResult> getClsLogsets(GetClsLogsetsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getClsLogsets:getClsLogsets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetClsLogsetsFilter>
    Query by filter.
    Id string
    ResultOutputFile string
    Used to save results.
    Filters []GetClsLogsetsFilter
    Query by filter.
    Id string
    ResultOutputFile string
    Used to save results.
    filters List<GetClsLogsetsFilter>
    Query by filter.
    id String
    resultOutputFile String
    Used to save results.
    filters GetClsLogsetsFilter[]
    Query by filter.
    id string
    resultOutputFile string
    Used to save results.
    filters Sequence[GetClsLogsetsFilter]
    Query by filter.
    id str
    result_output_file str
    Used to save results.
    filters List<Property Map>
    Query by filter.
    id String
    resultOutputFile String
    Used to save results.

    getClsLogsets Result

    The following output properties are available:

    Supporting Types

    GetClsLogsetsFilter

    Key string
    Fields that need to be filtered. Support: logsetName, logsetId, tagKey, tag:tagKey.
    Values List<string>
    The values that need to be filtered.
    Key string
    Fields that need to be filtered. Support: logsetName, logsetId, tagKey, tag:tagKey.
    Values []string
    The values that need to be filtered.
    key String
    Fields that need to be filtered. Support: logsetName, logsetId, tagKey, tag:tagKey.
    values List<String>
    The values that need to be filtered.
    key string
    Fields that need to be filtered. Support: logsetName, logsetId, tagKey, tag:tagKey.
    values string[]
    The values that need to be filtered.
    key str
    Fields that need to be filtered. Support: logsetName, logsetId, tagKey, tag:tagKey.
    values Sequence[str]
    The values that need to be filtered.
    key String
    Fields that need to be filtered. Support: logsetName, logsetId, tagKey, tag:tagKey.
    values List<String>
    The values that need to be filtered.

    GetClsLogsetsLogset

    AssumerName string
    Cloud product identification, when the log set is created by another cloud product, this field will display the cloud product name, such as CDN, TKE.
    CreateTime string
    Create time.
    LogsetId string
    Logset Id.
    LogsetName string
    Logset name.
    RoleName string
    If assumer_name is not empty, it indicates the service role that created the log set.
    Tags List<GetClsLogsetsLogsetTag>
    Tags.
    TopicCount double
    Topic count.
    AssumerName string
    Cloud product identification, when the log set is created by another cloud product, this field will display the cloud product name, such as CDN, TKE.
    CreateTime string
    Create time.
    LogsetId string
    Logset Id.
    LogsetName string
    Logset name.
    RoleName string
    If assumer_name is not empty, it indicates the service role that created the log set.
    Tags []GetClsLogsetsLogsetTag
    Tags.
    TopicCount float64
    Topic count.
    assumerName String
    Cloud product identification, when the log set is created by another cloud product, this field will display the cloud product name, such as CDN, TKE.
    createTime String
    Create time.
    logsetId String
    Logset Id.
    logsetName String
    Logset name.
    roleName String
    If assumer_name is not empty, it indicates the service role that created the log set.
    tags List<GetClsLogsetsLogsetTag>
    Tags.
    topicCount Double
    Topic count.
    assumerName string
    Cloud product identification, when the log set is created by another cloud product, this field will display the cloud product name, such as CDN, TKE.
    createTime string
    Create time.
    logsetId string
    Logset Id.
    logsetName string
    Logset name.
    roleName string
    If assumer_name is not empty, it indicates the service role that created the log set.
    tags GetClsLogsetsLogsetTag[]
    Tags.
    topicCount number
    Topic count.
    assumer_name str
    Cloud product identification, when the log set is created by another cloud product, this field will display the cloud product name, such as CDN, TKE.
    create_time str
    Create time.
    logset_id str
    Logset Id.
    logset_name str
    Logset name.
    role_name str
    If assumer_name is not empty, it indicates the service role that created the log set.
    tags Sequence[GetClsLogsetsLogsetTag]
    Tags.
    topic_count float
    Topic count.
    assumerName String
    Cloud product identification, when the log set is created by another cloud product, this field will display the cloud product name, such as CDN, TKE.
    createTime String
    Create time.
    logsetId String
    Logset Id.
    logsetName String
    Logset name.
    roleName String
    If assumer_name is not empty, it indicates the service role that created the log set.
    tags List<Property Map>
    Tags.
    topicCount Number
    Topic count.

    GetClsLogsetsLogsetTag

    Key string
    Tag key.
    Value string
    Tag value.
    Key string
    Tag key.
    Value string
    Tag value.
    key String
    Tag key.
    value String
    Tag value.
    key string
    Tag key.
    value string
    Tag value.
    key str
    Tag key.
    value str
    Tag value.
    key String
    Tag key.
    value String
    Tag value.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack