tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getClsTopics
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary
The following arguments are supported:
- Biz
Type double - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- Filters
List<Get
Cls Topics Filter> - Id string
- Precise
Search double - Match mode for
Filters
fields.- 0: Fuzzy match for
topicName
andlogsetName
. This is the default value. - 1: Exact match for
topicName
. - 2: Exact match for
logsetName
. - 3: Exact match for
topicName
andlogsetName
.
- 0: Fuzzy match for
- Result
Output stringFile - Used to save results.
- Biz
Type float64 - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- Filters
[]Get
Cls Topics Filter - Id string
- Precise
Search float64 - Match mode for
Filters
fields.- 0: Fuzzy match for
topicName
andlogsetName
. This is the default value. - 1: Exact match for
topicName
. - 2: Exact match for
logsetName
. - 3: Exact match for
topicName
andlogsetName
.
- 0: Fuzzy match for
- Result
Output stringFile - Used to save results.
- biz
Type Double - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- filters
List<Get
Cls Topics Filter> - id String
- precise
Search Double - Match mode for
Filters
fields.- 0: Fuzzy match for
topicName
andlogsetName
. This is the default value. - 1: Exact match for
topicName
. - 2: Exact match for
logsetName
. - 3: Exact match for
topicName
andlogsetName
.
- 0: Fuzzy match for
- result
Output StringFile - Used to save results.
- biz
Type number - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- filters
Get
Cls Topics Filter[] - id string
- precise
Search number - Match mode for
Filters
fields.- 0: Fuzzy match for
topicName
andlogsetName
. This is the default value. - 1: Exact match for
topicName
. - 2: Exact match for
logsetName
. - 3: Exact match for
topicName
andlogsetName
.
- 0: Fuzzy match for
- result
Output stringFile - Used to save results.
- biz_
type float - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- filters
Sequence[Get
Cls Topics Filter] - id str
- precise_
search float - Match mode for
Filters
fields.- 0: Fuzzy match for
topicName
andlogsetName
. This is the default value. - 1: Exact match for
topicName
. - 2: Exact match for
logsetName
. - 3: Exact match for
topicName
andlogsetName
.
- 0: Fuzzy match for
- result_
output_ strfile - Used to save results.
- biz
Type Number - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- filters List<Property Map>
- id String
- precise
Search Number - Match mode for
Filters
fields.- 0: Fuzzy match for
topicName
andlogsetName
. This is the default value. - 1: Exact match for
topicName
. - 2: Exact match for
logsetName
. - 3: Exact match for
topicName
andlogsetName
.
- 0: Fuzzy match for
- result
Output StringFile - Used to save results.
getClsTopics Result
The following output properties are available:
- Id string
- Topics
List<Get
Cls Topics Topic> - Log topic list.
- Biz
Type double - Filters
List<Get
Cls Topics Filter> - Precise
Search double - Result
Output stringFile
- Id string
- Topics
[]Get
Cls Topics Topic - Log topic list.
- Biz
Type float64 - Filters
[]Get
Cls Topics Filter - Precise
Search float64 - Result
Output stringFile
- id String
- topics
List<Get
Cls Topics Topic> - Log topic list.
- biz
Type Double - filters
List<Get
Cls Topics Filter> - precise
Search Double - result
Output StringFile
- id string
- topics
Get
Cls Topics Topic[] - Log topic list.
- biz
Type number - filters
Get
Cls Topics Filter[] - precise
Search number - result
Output stringFile
- id str
- topics
Sequence[Get
Cls Topics Topic] - Log topic list.
- biz_
type float - filters
Sequence[Get
Cls Topics Filter] - precise_
search float - result_
output_ strfile
- id String
- topics List<Property Map>
- Log topic list.
- biz
Type Number - filters List<Property Map>
- precise
Search Number - result
Output StringFile
Supporting Types
GetClsTopicsFilter
GetClsTopicsTopic
- Assumer
Name string - Auto
Split bool - Biz
Type double - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- Create
Time string - Describes string
- Hot
Period double - Index bool
- Is
Web boolTracking - Logset
Id string - Max
Split doublePartitions - Partition
Count double - Period double
- Status bool
- Storage
Type string - Sub
Assumer stringName - List<Get
Cls Topics Topic Tag> - Topic
Id string - Topic
Name string
- Assumer
Name string - Auto
Split bool - Biz
Type float64 - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- Create
Time string - Describes string
- Hot
Period float64 - Index bool
- Is
Web boolTracking - Logset
Id string - Max
Split float64Partitions - Partition
Count float64 - Period float64
- Status bool
- Storage
Type string - Sub
Assumer stringName - []Get
Cls Topics Topic Tag - Topic
Id string - Topic
Name string
- assumer
Name String - auto
Split Boolean - biz
Type Double - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- create
Time String - describes String
- hot
Period Double - index Boolean
- is
Web BooleanTracking - logset
Id String - max
Split DoublePartitions - partition
Count Double - period Double
- status Boolean
- storage
Type String - sub
Assumer StringName - List<Get
Cls Topics Topic Tag> - topic
Id String - topic
Name String
- assumer
Name string - auto
Split boolean - biz
Type number - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- create
Time string - describes string
- hot
Period number - index boolean
- is
Web booleanTracking - logset
Id string - max
Split numberPartitions - partition
Count number - period number
- status boolean
- storage
Type string - sub
Assumer stringName - Get
Cls Topics Topic Tag[] - topic
Id string - topic
Name 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[Get
Cls Topics Topic Tag] - topic_
id str - topic_
name str
- assumer
Name String - auto
Split Boolean - biz
Type Number - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- create
Time String - describes String
- hot
Period Number - index Boolean
- is
Web BooleanTracking - logset
Id String - max
Split NumberPartitions - partition
Count Number - period Number
- status Boolean
- storage
Type String - sub
Assumer StringName - List<Property Map>
- topic
Id String - topic
Name String
GetClsTopicsTopicTag
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack