tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack
tencentcloud.getClsTopics
tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack
Use this data source to query detailed information of CLS topics
Example Usage
Query all topics
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getClsTopics({});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_cls_topics()
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.GetClsTopics(ctx, &tencentcloud.GetClsTopicsArgs{}, 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 example = Tencentcloud.GetClsTopics.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.GetClsTopicsArgs;
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 example = TencentcloudFunctions.getClsTopics();
    }
}
variables:
  example:
    fn::invoke:
      function: tencentcloud:getClsTopics
      arguments: {}
Query topics by filters
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getClsTopics({
    filters: [
        {
            key: "topicId",
            values: ["88babc9b-ab8f-4dd1-9b04-3e2925cf9c4c"],
        },
        {
            key: "topicName",
            values: ["tf-example"],
        },
        {
            key: "logsetId",
            values: ["3e8e0521-32db-4532-beeb-9beefa56d3ea"],
        },
        {
            key: "storageType",
            values: ["hot"],
        },
    ],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_cls_topics(filters=[
    {
        "key": "topicId",
        "values": ["88babc9b-ab8f-4dd1-9b04-3e2925cf9c4c"],
    },
    {
        "key": "topicName",
        "values": ["tf-example"],
    },
    {
        "key": "logsetId",
        "values": ["3e8e0521-32db-4532-beeb-9beefa56d3ea"],
    },
    {
        "key": "storageType",
        "values": ["hot"],
    },
])
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.GetClsTopics(ctx, &tencentcloud.GetClsTopicsArgs{
			Filters: []tencentcloud.GetClsTopicsFilter{
				{
					Key: "topicId",
					Values: []string{
						"88babc9b-ab8f-4dd1-9b04-3e2925cf9c4c",
					},
				},
				{
					Key: "topicName",
					Values: []string{
						"tf-example",
					},
				},
				{
					Key: "logsetId",
					Values: []string{
						"3e8e0521-32db-4532-beeb-9beefa56d3ea",
					},
				},
				{
					Key: "storageType",
					Values: []string{
						"hot",
					},
				},
			},
		}, 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 example = Tencentcloud.GetClsTopics.Invoke(new()
    {
        Filters = new[]
        {
            new Tencentcloud.Inputs.GetClsTopicsFilterInputArgs
            {
                Key = "topicId",
                Values = new[]
                {
                    "88babc9b-ab8f-4dd1-9b04-3e2925cf9c4c",
                },
            },
            new Tencentcloud.Inputs.GetClsTopicsFilterInputArgs
            {
                Key = "topicName",
                Values = new[]
                {
                    "tf-example",
                },
            },
            new Tencentcloud.Inputs.GetClsTopicsFilterInputArgs
            {
                Key = "logsetId",
                Values = new[]
                {
                    "3e8e0521-32db-4532-beeb-9beefa56d3ea",
                },
            },
            new Tencentcloud.Inputs.GetClsTopicsFilterInputArgs
            {
                Key = "storageType",
                Values = new[]
                {
                    "hot",
                },
            },
        },
    });
});
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.GetClsTopicsArgs;
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 example = TencentcloudFunctions.getClsTopics(GetClsTopicsArgs.builder()
            .filters(            
                GetClsTopicsFilterArgs.builder()
                    .key("topicId")
                    .values("88babc9b-ab8f-4dd1-9b04-3e2925cf9c4c")
                    .build(),
                GetClsTopicsFilterArgs.builder()
                    .key("topicName")
                    .values("tf-example")
                    .build(),
                GetClsTopicsFilterArgs.builder()
                    .key("logsetId")
                    .values("3e8e0521-32db-4532-beeb-9beefa56d3ea")
                    .build(),
                GetClsTopicsFilterArgs.builder()
                    .key("storageType")
                    .values("hot")
                    .build())
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: tencentcloud:getClsTopics
      arguments:
        filters:
          - key: topicId
            values:
              - 88babc9b-ab8f-4dd1-9b04-3e2925cf9c4c
          - key: topicName
            values:
              - tf-example
          - key: logsetId
            values:
              - 3e8e0521-32db-4532-beeb-9beefa56d3ea
          - key: storageType
            values:
              - hot
Using getClsTopics
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 getClsTopics(args: GetClsTopicsArgs, opts?: InvokeOptions): Promise<GetClsTopicsResult>
function getClsTopicsOutput(args: GetClsTopicsOutputArgs, opts?: InvokeOptions): Output<GetClsTopicsResult>def get_cls_topics(biz_type: Optional[float] = None,
                   filters: Optional[Sequence[GetClsTopicsFilter]] = None,
                   id: Optional[str] = None,
                   precise_search: Optional[float] = None,
                   result_output_file: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetClsTopicsResult
def get_cls_topics_output(biz_type: Optional[pulumi.Input[float]] = None,
                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetClsTopicsFilterArgs]]]] = None,
                   id: Optional[pulumi.Input[str]] = None,
                   precise_search: Optional[pulumi.Input[float]] = None,
                   result_output_file: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetClsTopicsResult]func GetClsTopics(ctx *Context, args *GetClsTopicsArgs, opts ...InvokeOption) (*GetClsTopicsResult, error)
func GetClsTopicsOutput(ctx *Context, args *GetClsTopicsOutputArgs, opts ...InvokeOption) GetClsTopicsResultOutput> Note: This function is named GetClsTopics in the Go SDK.
public static class GetClsTopics 
{
    public static Task<GetClsTopicsResult> InvokeAsync(GetClsTopicsArgs args, InvokeOptions? opts = null)
    public static Output<GetClsTopicsResult> Invoke(GetClsTopicsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClsTopicsResult> getClsTopics(GetClsTopicsArgs args, InvokeOptions options)
public static Output<GetClsTopicsResult> getClsTopics(GetClsTopicsArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getClsTopics:getClsTopics
  arguments:
    # arguments dictionaryThe following arguments are supported:
- BizType double
- Topic type- 0 (default): Log topic.
- 1: Metric topic.
 
- Filters
List<GetCls Topics Filter> 
- Id string
- PreciseSearch double
- Match mode for Filtersfields.- 0: Fuzzy match for topicNameandlogsetName. This is the default value.
- 1: Exact match for topicName.
- 2: Exact match for logsetName.
- 3: Exact match for topicNameandlogsetName.
 
- 0: Fuzzy match for 
- ResultOutput stringFile 
- Used to save results.
- BizType float64
- Topic type- 0 (default): Log topic.
- 1: Metric topic.
 
- Filters
[]GetCls Topics Filter 
- Id string
- PreciseSearch float64
- Match mode for Filtersfields.- 0: Fuzzy match for topicNameandlogsetName. This is the default value.
- 1: Exact match for topicName.
- 2: Exact match for logsetName.
- 3: Exact match for topicNameandlogsetName.
 
- 0: Fuzzy match for 
- ResultOutput stringFile 
- Used to save results.
- bizType Double
- Topic type- 0 (default): Log topic.
- 1: Metric topic.
 
- filters
List<GetCls Topics Filter> 
- id String
- preciseSearch Double
- Match mode for Filtersfields.- 0: Fuzzy match for topicNameandlogsetName. This is the default value.
- 1: Exact match for topicName.
- 2: Exact match for logsetName.
- 3: Exact match for topicNameandlogsetName.
 
- 0: Fuzzy match for 
- resultOutput StringFile 
- Used to save results.
- bizType number
- Topic type- 0 (default): Log topic.
- 1: Metric topic.
 
- filters
GetCls Topics Filter[] 
- id string
- preciseSearch number
- Match mode for Filtersfields.- 0: Fuzzy match for topicNameandlogsetName. This is the default value.
- 1: Exact match for topicName.
- 2: Exact match for logsetName.
- 3: Exact match for topicNameandlogsetName.
 
- 0: Fuzzy match for 
- resultOutput stringFile 
- Used to save results.
- biz_type float
- Topic type- 0 (default): Log topic.
- 1: Metric topic.
 
- filters
Sequence[GetCls Topics Filter] 
- id str
- precise_search float
- Match mode for Filtersfields.- 0: Fuzzy match for topicNameandlogsetName. This is the default value.
- 1: Exact match for topicName.
- 2: Exact match for logsetName.
- 3: Exact match for topicNameandlogsetName.
 
- 0: Fuzzy match for 
- result_output_ strfile 
- Used to save results.
- bizType Number
- Topic type- 0 (default): Log topic.
- 1: Metric topic.
 
- filters List<Property Map>
- id String
- preciseSearch Number
- Match mode for Filtersfields.- 0: Fuzzy match for topicNameandlogsetName. This is the default value.
- 1: Exact match for topicName.
- 2: Exact match for logsetName.
- 3: Exact match for topicNameandlogsetName.
 
- 0: Fuzzy match for 
- resultOutput StringFile 
- Used to save results.
getClsTopics Result
The following output properties are available:
- Id string
- Topics
List<GetCls Topics Topic> 
- Log topic list.
- BizType double
- Filters
List<GetCls Topics Filter> 
- PreciseSearch double
- ResultOutput stringFile 
- Id string
- Topics
[]GetCls Topics Topic 
- Log topic list.
- BizType float64
- Filters
[]GetCls Topics Filter 
- PreciseSearch float64
- ResultOutput stringFile 
- id String
- topics
List<GetCls Topics Topic> 
- Log topic list.
- bizType Double
- filters
List<GetCls Topics Filter> 
- preciseSearch Double
- resultOutput StringFile 
- id string
- topics
GetCls Topics Topic[] 
- Log topic list.
- bizType number
- filters
GetCls Topics Filter[] 
- preciseSearch number
- resultOutput stringFile 
- id str
- topics
Sequence[GetCls Topics Topic] 
- Log topic list.
- biz_type float
- filters
Sequence[GetCls Topics Filter] 
- precise_search float
- result_output_ strfile 
- id String
- topics List<Property Map>
- Log topic list.
- bizType Number
- filters List<Property Map>
- preciseSearch Number
- resultOutput StringFile 
Supporting Types
GetClsTopicsFilter   
GetClsTopicsTopic   
- AssumerName string
- AutoSplit bool
- BizType double
- Topic type- 0 (default): Log topic.
- 1: Metric topic.
 
- CreateTime string
- Describes string
- HotPeriod double
- Index bool
- IsWeb boolTracking 
- LogsetId string
- MaxSplit doublePartitions 
- PartitionCount double
- Period double
- Status bool
- StorageType string
- SubAssumer stringName 
- 
List<GetCls Topics Topic Tag> 
- TopicId string
- TopicName string
- AssumerName string
- AutoSplit bool
- BizType float64
- Topic type- 0 (default): Log topic.
- 1: Metric topic.
 
- CreateTime string
- Describes string
- HotPeriod float64
- Index bool
- IsWeb boolTracking 
- LogsetId string
- MaxSplit float64Partitions 
- PartitionCount float64
- Period float64
- Status bool
- StorageType string
- SubAssumer stringName 
- 
[]GetCls Topics Topic Tag 
- TopicId string
- TopicName string
- assumerName String
- autoSplit Boolean
- bizType Double
- Topic type- 0 (default): Log topic.
- 1: Metric topic.
 
- createTime String
- describes String
- hotPeriod Double
- index Boolean
- isWeb BooleanTracking 
- logsetId String
- maxSplit DoublePartitions 
- partitionCount Double
- period Double
- status Boolean
- storageType String
- subAssumer StringName 
- 
List<GetCls Topics Topic Tag> 
- topicId String
- topicName String
- assumerName string
- autoSplit boolean
- bizType number
- Topic type- 0 (default): Log topic.
- 1: Metric topic.
 
- createTime string
- describes string
- hotPeriod number
- index boolean
- isWeb booleanTracking 
- logsetId string
- maxSplit numberPartitions 
- partitionCount number
- period number
- status boolean
- storageType string
- subAssumer stringName 
- 
GetCls Topics Topic Tag[] 
- topicId string
- topicName string
- assumer_name str
- auto_split bool
- biz_type float
- Topic type- 0 (default): Log topic.
- 1: Metric topic.
 
- create_time str
- describes str
- hot_period float
- index bool
- is_web_ booltracking 
- logset_id str
- max_split_ floatpartitions 
- partition_count float
- period float
- status bool
- storage_type str
- sub_assumer_ strname 
- 
Sequence[GetCls Topics Topic Tag] 
- topic_id str
- topic_name str
- assumerName String
- autoSplit Boolean
- bizType Number
- Topic type- 0 (default): Log topic.
- 1: Metric topic.
 
- createTime String
- describes String
- hotPeriod Number
- index Boolean
- isWeb BooleanTracking 
- logsetId String
- maxSplit NumberPartitions 
- partitionCount Number
- period Number
- status Boolean
- storageType String
- subAssumer StringName 
- List<Property Map>
- topicId String
- topicName String
GetClsTopicsTopicTag    
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack
