tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getCkafkaTopics
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 ckafka topic.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getCkafkaTopics({
instanceId: "ckafka-vv7wp5nx",
topicName: "tf_example",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_ckafka_topics(instance_id="ckafka-vv7wp5nx",
topic_name="tf_example")
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.GetCkafkaTopics(ctx, &tencentcloud.GetCkafkaTopicsArgs{
InstanceId: "ckafka-vv7wp5nx",
TopicName: pulumi.StringRef("tf_example"),
}, 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.GetCkafkaTopics.Invoke(new()
{
InstanceId = "ckafka-vv7wp5nx",
TopicName = "tf_example",
});
});
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.GetCkafkaTopicsArgs;
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.getCkafkaTopics(GetCkafkaTopicsArgs.builder()
.instanceId("ckafka-vv7wp5nx")
.topicName("tf_example")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getCkafkaTopics
arguments:
instanceId: ckafka-vv7wp5nx
topicName: tf_example
Using getCkafkaTopics
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 getCkafkaTopics(args: GetCkafkaTopicsArgs, opts?: InvokeOptions): Promise<GetCkafkaTopicsResult>
function getCkafkaTopicsOutput(args: GetCkafkaTopicsOutputArgs, opts?: InvokeOptions): Output<GetCkafkaTopicsResult>
def get_ckafka_topics(id: Optional[str] = None,
instance_id: Optional[str] = None,
result_output_file: Optional[str] = None,
topic_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCkafkaTopicsResult
def get_ckafka_topics_output(id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
topic_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCkafkaTopicsResult]
func GetCkafkaTopics(ctx *Context, args *GetCkafkaTopicsArgs, opts ...InvokeOption) (*GetCkafkaTopicsResult, error)
func GetCkafkaTopicsOutput(ctx *Context, args *GetCkafkaTopicsOutputArgs, opts ...InvokeOption) GetCkafkaTopicsResultOutput
> Note: This function is named GetCkafkaTopics
in the Go SDK.
public static class GetCkafkaTopics
{
public static Task<GetCkafkaTopicsResult> InvokeAsync(GetCkafkaTopicsArgs args, InvokeOptions? opts = null)
public static Output<GetCkafkaTopicsResult> Invoke(GetCkafkaTopicsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCkafkaTopicsResult> getCkafkaTopics(GetCkafkaTopicsArgs args, InvokeOptions options)
public static Output<GetCkafkaTopicsResult> getCkafkaTopics(GetCkafkaTopicsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCkafkaTopics:getCkafkaTopics
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Ckafka instance ID.
- Id string
- Result
Output stringFile - Used to store results.
- Topic
Name string - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). The length range is from 1 to 64.
- Instance
Id string - Ckafka instance ID.
- Id string
- Result
Output stringFile - Used to store results.
- Topic
Name string - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). The length range is from 1 to 64.
- instance
Id String - Ckafka instance ID.
- id String
- result
Output StringFile - Used to store results.
- topic
Name String - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). The length range is from 1 to 64.
- instance
Id string - Ckafka instance ID.
- id string
- result
Output stringFile - Used to store results.
- topic
Name string - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). The length range is from 1 to 64.
- instance_
id str - Ckafka instance ID.
- id str
- result_
output_ strfile - Used to store results.
- topic_
name str - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). The length range is from 1 to 64.
- instance
Id String - Ckafka instance ID.
- id String
- result
Output StringFile - Used to store results.
- topic
Name String - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). The length range is from 1 to 64.
getCkafkaTopics Result
The following output properties are available:
- Id string
- Instance
Id string - Instance
Lists List<GetCkafka Topics Instance List> - A list of instances. Each element contains the following attributes.
- Result
Output stringFile - Topic
Name string - Name of the CKafka topic.
- Id string
- Instance
Id string - Instance
Lists []GetCkafka Topics Instance List - A list of instances. Each element contains the following attributes.
- Result
Output stringFile - Topic
Name string - Name of the CKafka topic.
- id String
- instance
Id String - instance
Lists List<GetCkafka Topics Instance List> - A list of instances. Each element contains the following attributes.
- result
Output StringFile - topic
Name String - Name of the CKafka topic.
- id string
- instance
Id string - instance
Lists GetCkafka Topics Instance List[] - A list of instances. Each element contains the following attributes.
- result
Output stringFile - topic
Name string - Name of the CKafka topic.
- id str
- instance_
id str - instance_
lists Sequence[GetCkafka Topics Instance List] - A list of instances. Each element contains the following attributes.
- result_
output_ strfile - topic_
name str - Name of the CKafka topic.
- id String
- instance
Id String - instance
Lists List<Property Map> - A list of instances. Each element contains the following attributes.
- result
Output StringFile - topic
Name String - Name of the CKafka topic.
Supporting Types
GetCkafkaTopicsInstanceList
- Clean
Up stringPolicy - Clear log policy, log clear mode.
delete
: logs are deleted according to the storage time,compact
: logs are compressed according to the key,compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - Create
Time string - Create time of the CKafka topic.
- Enable
White boolList - Whether to open the IP Whitelist.
true
: open,false
: close. - Forward
Cos stringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- Forward
Interval double - Periodic frequency of data backup to cos.
- Forward
Status double - Data backup cos status.
1
: do not open data backup,0
: open data backup. - Ip
White doubleList Count - IP Whitelist count.
- Max
Message doubleBytes - Max message bytes.
- Note string
- CKafka topic note description.
- Partition
Num double - The number of partition.
- Replica
Num double - The number of replica.
- Retention double
- Message can be selected. Retention time(unit ms).
- Segment double
- Segment scrolling time, in ms.
- Segment
Bytes double - Number of bytes rolled by shard.
- Sync
Replica doubleMin Num - Min number of sync replicas.
- Topic
Id string - ID of the CKafka topic.
- Topic
Name string - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). The length range is from 1 to 64.
- Unclean
Leader boolElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- Clean
Up stringPolicy - Clear log policy, log clear mode.
delete
: logs are deleted according to the storage time,compact
: logs are compressed according to the key,compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - Create
Time string - Create time of the CKafka topic.
- Enable
White boolList - Whether to open the IP Whitelist.
true
: open,false
: close. - Forward
Cos stringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- Forward
Interval float64 - Periodic frequency of data backup to cos.
- Forward
Status float64 - Data backup cos status.
1
: do not open data backup,0
: open data backup. - Ip
White float64List Count - IP Whitelist count.
- Max
Message float64Bytes - Max message bytes.
- Note string
- CKafka topic note description.
- Partition
Num float64 - The number of partition.
- Replica
Num float64 - The number of replica.
- Retention float64
- Message can be selected. Retention time(unit ms).
- Segment float64
- Segment scrolling time, in ms.
- Segment
Bytes float64 - Number of bytes rolled by shard.
- Sync
Replica float64Min Num - Min number of sync replicas.
- Topic
Id string - ID of the CKafka topic.
- Topic
Name string - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). The length range is from 1 to 64.
- Unclean
Leader boolElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- clean
Up StringPolicy - Clear log policy, log clear mode.
delete
: logs are deleted according to the storage time,compact
: logs are compressed according to the key,compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - create
Time String - Create time of the CKafka topic.
- enable
White BooleanList - Whether to open the IP Whitelist.
true
: open,false
: close. - forward
Cos StringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- forward
Interval Double - Periodic frequency of data backup to cos.
- forward
Status Double - Data backup cos status.
1
: do not open data backup,0
: open data backup. - ip
White DoubleList Count - IP Whitelist count.
- max
Message DoubleBytes - Max message bytes.
- note String
- CKafka topic note description.
- partition
Num Double - The number of partition.
- replica
Num Double - The number of replica.
- retention Double
- Message can be selected. Retention time(unit ms).
- segment Double
- Segment scrolling time, in ms.
- segment
Bytes Double - Number of bytes rolled by shard.
- sync
Replica DoubleMin Num - Min number of sync replicas.
- topic
Id String - ID of the CKafka topic.
- topic
Name String - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). The length range is from 1 to 64.
- unclean
Leader BooleanElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- clean
Up stringPolicy - Clear log policy, log clear mode.
delete
: logs are deleted according to the storage time,compact
: logs are compressed according to the key,compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - create
Time string - Create time of the CKafka topic.
- enable
White booleanList - Whether to open the IP Whitelist.
true
: open,false
: close. - forward
Cos stringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- forward
Interval number - Periodic frequency of data backup to cos.
- forward
Status number - Data backup cos status.
1
: do not open data backup,0
: open data backup. - ip
White numberList Count - IP Whitelist count.
- max
Message numberBytes - Max message bytes.
- note string
- CKafka topic note description.
- partition
Num number - The number of partition.
- replica
Num number - The number of replica.
- retention number
- Message can be selected. Retention time(unit ms).
- segment number
- Segment scrolling time, in ms.
- segment
Bytes number - Number of bytes rolled by shard.
- sync
Replica numberMin Num - Min number of sync replicas.
- topic
Id string - ID of the CKafka topic.
- topic
Name string - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). The length range is from 1 to 64.
- unclean
Leader booleanElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- clean_
up_ strpolicy - Clear log policy, log clear mode.
delete
: logs are deleted according to the storage time,compact
: logs are compressed according to the key,compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - create_
time str - Create time of the CKafka topic.
- enable_
white_ boollist - Whether to open the IP Whitelist.
true
: open,false
: close. - forward_
cos_ strbucket - Data backup cos bucket: the bucket address that is dumped to cos.
- forward_
interval float - Periodic frequency of data backup to cos.
- forward_
status float - Data backup cos status.
1
: do not open data backup,0
: open data backup. - ip_
white_ floatlist_ count - IP Whitelist count.
- max_
message_ floatbytes - Max message bytes.
- note str
- CKafka topic note description.
- partition_
num float - The number of partition.
- replica_
num float - The number of replica.
- retention float
- Message can be selected. Retention time(unit ms).
- segment float
- Segment scrolling time, in ms.
- segment_
bytes float - Number of bytes rolled by shard.
- sync_
replica_ floatmin_ num - Min number of sync replicas.
- topic_
id str - ID of the CKafka topic.
- topic_
name str - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). The length range is from 1 to 64.
- unclean_
leader_ boolelection_ enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- clean
Up StringPolicy - Clear log policy, log clear mode.
delete
: logs are deleted according to the storage time,compact
: logs are compressed according to the key,compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - create
Time String - Create time of the CKafka topic.
- enable
White BooleanList - Whether to open the IP Whitelist.
true
: open,false
: close. - forward
Cos StringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- forward
Interval Number - Periodic frequency of data backup to cos.
- forward
Status Number - Data backup cos status.
1
: do not open data backup,0
: open data backup. - ip
White NumberList Count - IP Whitelist count.
- max
Message NumberBytes - Max message bytes.
- note String
- CKafka topic note description.
- partition
Num Number - The number of partition.
- replica
Num Number - The number of replica.
- retention Number
- Message can be selected. Retention time(unit ms).
- segment Number
- Segment scrolling time, in ms.
- segment
Bytes Number - Number of bytes rolled by shard.
- sync
Replica NumberMin Num - Min number of sync replicas.
- topic
Id String - ID of the CKafka topic.
- topic
Name String - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). The length range is from 1 to 64.
- unclean
Leader BooleanElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
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