tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getClsTopics
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 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 This property is required. string - Auto
Split This property is required. bool - Biz
Type This property is required. double - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- Create
Time This property is required. string - Describes
This property is required. string - Hot
Period This property is required. double - Index
This property is required. bool - Is
Web Tracking This property is required. bool - Logset
Id This property is required. string - Max
Split Partitions This property is required. double - Partition
Count This property is required. double - Period
This property is required. double - Status
This property is required. bool - Storage
Type This property is required. string - Sub
Assumer Name This property is required. string This property is required. List<GetCls Topics Topic Tag> - Topic
Id This property is required. string - Topic
Name This property is required. string
- Assumer
Name This property is required. string - Auto
Split This property is required. bool - Biz
Type This property is required. float64 - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- Create
Time This property is required. string - Describes
This property is required. string - Hot
Period This property is required. float64 - Index
This property is required. bool - Is
Web Tracking This property is required. bool - Logset
Id This property is required. string - Max
Split Partitions This property is required. float64 - Partition
Count This property is required. float64 - Period
This property is required. float64 - Status
This property is required. bool - Storage
Type This property is required. string - Sub
Assumer Name This property is required. string This property is required. []GetCls Topics Topic Tag - Topic
Id This property is required. string - Topic
Name This property is required. string
- assumer
Name This property is required. String - auto
Split This property is required. Boolean - biz
Type This property is required. Double - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- create
Time This property is required. String - describes
This property is required. String - hot
Period This property is required. Double - index
This property is required. Boolean - is
Web Tracking This property is required. Boolean - logset
Id This property is required. String - max
Split Partitions This property is required. Double - partition
Count This property is required. Double - period
This property is required. Double - status
This property is required. Boolean - storage
Type This property is required. String - sub
Assumer Name This property is required. String This property is required. List<GetCls Topics Topic Tag> - topic
Id This property is required. String - topic
Name This property is required. String
- assumer
Name This property is required. string - auto
Split This property is required. boolean - biz
Type This property is required. number - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- create
Time This property is required. string - describes
This property is required. string - hot
Period This property is required. number - index
This property is required. boolean - is
Web Tracking This property is required. boolean - logset
Id This property is required. string - max
Split Partitions This property is required. number - partition
Count This property is required. number - period
This property is required. number - status
This property is required. boolean - storage
Type This property is required. string - sub
Assumer Name This property is required. string This property is required. GetCls Topics Topic Tag[] - topic
Id This property is required. string - topic
Name This property is required. string
- assumer_
name This property is required. str - auto_
split This property is required. bool - biz_
type This property is required. float - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- create_
time This property is required. str - describes
This property is required. str - hot_
period This property is required. float - index
This property is required. bool - is_
web_ tracking This property is required. bool - logset_
id This property is required. str - max_
split_ partitions This property is required. float - partition_
count This property is required. float - period
This property is required. float - status
This property is required. bool - storage_
type This property is required. str - sub_
assumer_ name This property is required. str This property is required. Sequence[GetCls Topics Topic Tag] - topic_
id This property is required. str - topic_
name This property is required. str
- assumer
Name This property is required. String - auto
Split This property is required. Boolean - biz
Type This property is required. Number - Topic type
- 0 (default): Log topic.
- 1: Metric topic.
- create
Time This property is required. String - describes
This property is required. String - hot
Period This property is required. Number - index
This property is required. Boolean - is
Web Tracking This property is required. Boolean - logset
Id This property is required. String - max
Split Partitions This property is required. Number - partition
Count This property is required. Number - period
This property is required. Number - status
This property is required. Boolean - storage
Type This property is required. String - sub
Assumer Name This property is required. String This property is required. List<Property Map>- topic
Id This property is required. String - topic
Name This property is required. 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.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack