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

tencentcloud.getCkafkaTopicSyncReplica

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 ckafka topic_sync_replica

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const topicSyncReplica = tencentcloud.getCkafkaTopicSyncReplica({
        instanceId: "ckafka-xxxxxx",
        topicName: "xxxxxx",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    topic_sync_replica = tencentcloud.get_ckafka_topic_sync_replica(instance_id="ckafka-xxxxxx",
        topic_name="xxxxxx")
    
    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.GetCkafkaTopicSyncReplica(ctx, &tencentcloud.GetCkafkaTopicSyncReplicaArgs{
    			InstanceId: "ckafka-xxxxxx",
    			TopicName:  "xxxxxx",
    		}, 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 topicSyncReplica = Tencentcloud.GetCkafkaTopicSyncReplica.Invoke(new()
        {
            InstanceId = "ckafka-xxxxxx",
            TopicName = "xxxxxx",
        });
    
    });
    
    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.GetCkafkaTopicSyncReplicaArgs;
    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 topicSyncReplica = TencentcloudFunctions.getCkafkaTopicSyncReplica(GetCkafkaTopicSyncReplicaArgs.builder()
                .instanceId("ckafka-xxxxxx")
                .topicName("xxxxxx")
                .build());
    
        }
    }
    
    variables:
      topicSyncReplica:
        fn::invoke:
          function: tencentcloud:getCkafkaTopicSyncReplica
          arguments:
            instanceId: ckafka-xxxxxx
            topicName: xxxxxx
    

    Using getCkafkaTopicSyncReplica

    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 getCkafkaTopicSyncReplica(args: GetCkafkaTopicSyncReplicaArgs, opts?: InvokeOptions): Promise<GetCkafkaTopicSyncReplicaResult>
    function getCkafkaTopicSyncReplicaOutput(args: GetCkafkaTopicSyncReplicaOutputArgs, opts?: InvokeOptions): Output<GetCkafkaTopicSyncReplicaResult>
    def get_ckafka_topic_sync_replica(id: Optional[str] = None,
                                      instance_id: Optional[str] = None,
                                      out_of_sync_replica_only: Optional[bool] = None,
                                      result_output_file: Optional[str] = None,
                                      topic_name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetCkafkaTopicSyncReplicaResult
    def get_ckafka_topic_sync_replica_output(id: Optional[pulumi.Input[str]] = None,
                                      instance_id: Optional[pulumi.Input[str]] = None,
                                      out_of_sync_replica_only: Optional[pulumi.Input[bool]] = None,
                                      result_output_file: Optional[pulumi.Input[str]] = None,
                                      topic_name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetCkafkaTopicSyncReplicaResult]
    func GetCkafkaTopicSyncReplica(ctx *Context, args *GetCkafkaTopicSyncReplicaArgs, opts ...InvokeOption) (*GetCkafkaTopicSyncReplicaResult, error)
    func GetCkafkaTopicSyncReplicaOutput(ctx *Context, args *GetCkafkaTopicSyncReplicaOutputArgs, opts ...InvokeOption) GetCkafkaTopicSyncReplicaResultOutput

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

    public static class GetCkafkaTopicSyncReplica 
    {
        public static Task<GetCkafkaTopicSyncReplicaResult> InvokeAsync(GetCkafkaTopicSyncReplicaArgs args, InvokeOptions? opts = null)
        public static Output<GetCkafkaTopicSyncReplicaResult> Invoke(GetCkafkaTopicSyncReplicaInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCkafkaTopicSyncReplicaResult> getCkafkaTopicSyncReplica(GetCkafkaTopicSyncReplicaArgs args, InvokeOptions options)
    public static Output<GetCkafkaTopicSyncReplicaResult> getCkafkaTopicSyncReplica(GetCkafkaTopicSyncReplicaArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCkafkaTopicSyncReplica:getCkafkaTopicSyncReplica
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    InstanceId.
    TopicName string
    TopicName.
    Id string
    OutOfSyncReplicaOnly bool
    Filter only unsynced replicas.
    ResultOutputFile string
    Used to save results.
    InstanceId string
    InstanceId.
    TopicName string
    TopicName.
    Id string
    OutOfSyncReplicaOnly bool
    Filter only unsynced replicas.
    ResultOutputFile string
    Used to save results.
    instanceId String
    InstanceId.
    topicName String
    TopicName.
    id String
    outOfSyncReplicaOnly Boolean
    Filter only unsynced replicas.
    resultOutputFile String
    Used to save results.
    instanceId string
    InstanceId.
    topicName string
    TopicName.
    id string
    outOfSyncReplicaOnly boolean
    Filter only unsynced replicas.
    resultOutputFile string
    Used to save results.
    instance_id str
    InstanceId.
    topic_name str
    TopicName.
    id str
    out_of_sync_replica_only bool
    Filter only unsynced replicas.
    result_output_file str
    Used to save results.
    instanceId String
    InstanceId.
    topicName String
    TopicName.
    id String
    outOfSyncReplicaOnly Boolean
    Filter only unsynced replicas.
    resultOutputFile String
    Used to save results.

    getCkafkaTopicSyncReplica Result

    The following output properties are available:

    id String
    instanceId String
    topicInSyncReplicaLists List<Property Map>
    Topic details and copy collection.
    topicName String
    outOfSyncReplicaOnly Boolean
    resultOutputFile String

    Supporting Types

    GetCkafkaTopicSyncReplicaTopicInSyncReplicaList

    BeginOffset double
    BeginOffset.
    EndOffset double
    EndOffset.
    InSyncReplica string
    ISR.
    Leader double
    Leader Id.
    MessageCount double
    Message Count.
    OutOfSyncReplica string
    Out Of Sync Replica.
    Partition string
    partition name.
    Replica string
    replica set.
    BeginOffset float64
    BeginOffset.
    EndOffset float64
    EndOffset.
    InSyncReplica string
    ISR.
    Leader float64
    Leader Id.
    MessageCount float64
    Message Count.
    OutOfSyncReplica string
    Out Of Sync Replica.
    Partition string
    partition name.
    Replica string
    replica set.
    beginOffset Double
    BeginOffset.
    endOffset Double
    EndOffset.
    inSyncReplica String
    ISR.
    leader Double
    Leader Id.
    messageCount Double
    Message Count.
    outOfSyncReplica String
    Out Of Sync Replica.
    partition String
    partition name.
    replica String
    replica set.
    beginOffset number
    BeginOffset.
    endOffset number
    EndOffset.
    inSyncReplica string
    ISR.
    leader number
    Leader Id.
    messageCount number
    Message Count.
    outOfSyncReplica string
    Out Of Sync Replica.
    partition string
    partition name.
    replica string
    replica set.
    begin_offset float
    BeginOffset.
    end_offset float
    EndOffset.
    in_sync_replica str
    ISR.
    leader float
    Leader Id.
    message_count float
    Message Count.
    out_of_sync_replica str
    Out Of Sync Replica.
    partition str
    partition name.
    replica str
    replica set.
    beginOffset Number
    BeginOffset.
    endOffset Number
    EndOffset.
    inSyncReplica String
    ISR.
    leader Number
    Leader Id.
    messageCount Number
    Message Count.
    outOfSyncReplica String
    Out Of Sync Replica.
    partition String
    partition name.
    replica String
    replica set.

    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