1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getCkafkaGroupInfo
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.getCkafkaGroupInfo

Explore with Pulumi AI

Use this data source to query detailed information of ckafka group_info

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const groupInfo = tencentcloud.getCkafkaGroupInfo({
    groupLists: ["xxxxxx"],
    instanceId: "ckafka-xxxxxx",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

group_info = tencentcloud.get_ckafka_group_info(group_lists=["xxxxxx"],
    instance_id="ckafka-xxxxxx")
Copy
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.LookupCkafkaGroupInfo(ctx, &tencentcloud.LookupCkafkaGroupInfoArgs{
			GroupLists: []string{
				"xxxxxx",
			},
			InstanceId: "ckafka-xxxxxx",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var groupInfo = Tencentcloud.GetCkafkaGroupInfo.Invoke(new()
    {
        GroupLists = new[]
        {
            "xxxxxx",
        },
        InstanceId = "ckafka-xxxxxx",
    });

});
Copy
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.GetCkafkaGroupInfoArgs;
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 groupInfo = TencentcloudFunctions.getCkafkaGroupInfo(GetCkafkaGroupInfoArgs.builder()
            .groupLists("xxxxxx")
            .instanceId("ckafka-xxxxxx")
            .build());

    }
}
Copy
variables:
  groupInfo:
    fn::invoke:
      function: tencentcloud:getCkafkaGroupInfo
      arguments:
        groupLists:
          - xxxxxx
        instanceId: ckafka-xxxxxx
Copy

Using getCkafkaGroupInfo

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 getCkafkaGroupInfo(args: GetCkafkaGroupInfoArgs, opts?: InvokeOptions): Promise<GetCkafkaGroupInfoResult>
function getCkafkaGroupInfoOutput(args: GetCkafkaGroupInfoOutputArgs, opts?: InvokeOptions): Output<GetCkafkaGroupInfoResult>
Copy
def get_ckafka_group_info(group_lists: Optional[Sequence[str]] = None,
                          id: Optional[str] = None,
                          instance_id: Optional[str] = None,
                          result_output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetCkafkaGroupInfoResult
def get_ckafka_group_info_output(group_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          instance_id: Optional[pulumi.Input[str]] = None,
                          result_output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetCkafkaGroupInfoResult]
Copy
func LookupCkafkaGroupInfo(ctx *Context, args *LookupCkafkaGroupInfoArgs, opts ...InvokeOption) (*LookupCkafkaGroupInfoResult, error)
func LookupCkafkaGroupInfoOutput(ctx *Context, args *LookupCkafkaGroupInfoOutputArgs, opts ...InvokeOption) LookupCkafkaGroupInfoResultOutput
Copy

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

public static class GetCkafkaGroupInfo 
{
    public static Task<GetCkafkaGroupInfoResult> InvokeAsync(GetCkafkaGroupInfoArgs args, InvokeOptions? opts = null)
    public static Output<GetCkafkaGroupInfoResult> Invoke(GetCkafkaGroupInfoInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCkafkaGroupInfoResult> getCkafkaGroupInfo(GetCkafkaGroupInfoArgs args, InvokeOptions options)
public static Output<GetCkafkaGroupInfoResult> getCkafkaGroupInfo(GetCkafkaGroupInfoArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getCkafkaGroupInfo:getCkafkaGroupInfo
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

GroupLists This property is required. List<string>
Kafka consumption group, Consumer-group, here is an array format, format GroupList.0=xxx&amp;GroupList.1=yyy.
InstanceId This property is required. string
InstanceId.
Id string
ResultOutputFile string
Used to save results.
GroupLists This property is required. []string
Kafka consumption group, Consumer-group, here is an array format, format GroupList.0=xxx&amp;GroupList.1=yyy.
InstanceId This property is required. string
InstanceId.
Id string
ResultOutputFile string
Used to save results.
groupLists This property is required. List<String>
Kafka consumption group, Consumer-group, here is an array format, format GroupList.0=xxx&amp;GroupList.1=yyy.
instanceId This property is required. String
InstanceId.
id String
resultOutputFile String
Used to save results.
groupLists This property is required. string[]
Kafka consumption group, Consumer-group, here is an array format, format GroupList.0=xxx&amp;GroupList.1=yyy.
instanceId This property is required. string
InstanceId.
id string
resultOutputFile string
Used to save results.
group_lists This property is required. Sequence[str]
Kafka consumption group, Consumer-group, here is an array format, format GroupList.0=xxx&amp;GroupList.1=yyy.
instance_id This property is required. str
InstanceId.
id str
result_output_file str
Used to save results.
groupLists This property is required. List<String>
Kafka consumption group, Consumer-group, here is an array format, format GroupList.0=xxx&amp;GroupList.1=yyy.
instanceId This property is required. String
InstanceId.
id String
resultOutputFile String
Used to save results.

getCkafkaGroupInfo Result

The following output properties are available:

groupLists List<String>
id String
instanceId String
results List<Property Map>
result.
resultOutputFile String

Supporting Types

GetCkafkaGroupInfoResult

ErrorCode This property is required. string
Error code, normally 0.
Group This property is required. string
Kafka consumer group.
Members This property is required. List<GetCkafkaGroupInfoResultMember>
This array contains information only if state is Stable and protocol_type is consumer.
Protocol This property is required. string
Common consumer partition allocation algorithms are as follows (the default option for Kafka consumer SDK is range) range|roundrobin|sticky.
ProtocolType This property is required. string
The protocol type selected by the consumption group is normally the consumer, but some systems use their own protocol, such as kafka-connect, which uses connect. Only the standard consumer protocol, this interface knows the format of the specific allocation method, and can analyze the specific partition allocation.
State This property is required. string
Group state description (commonly Empty, Stable, and Dead states): Dead: The consumption group does not exist Empty: The consumption group does not currently have any consumer subscriptions PreparingRebalance: The consumption group is in the rebalance state CompletingRebalance: The consumption group is in the rebalance state Stable: Each consumer in the consumption group has joined and is in a stable state.
ErrorCode This property is required. string
Error code, normally 0.
Group This property is required. string
Kafka consumer group.
Members This property is required. []GetCkafkaGroupInfoResultMember
This array contains information only if state is Stable and protocol_type is consumer.
Protocol This property is required. string
Common consumer partition allocation algorithms are as follows (the default option for Kafka consumer SDK is range) range|roundrobin|sticky.
ProtocolType This property is required. string
The protocol type selected by the consumption group is normally the consumer, but some systems use their own protocol, such as kafka-connect, which uses connect. Only the standard consumer protocol, this interface knows the format of the specific allocation method, and can analyze the specific partition allocation.
State This property is required. string
Group state description (commonly Empty, Stable, and Dead states): Dead: The consumption group does not exist Empty: The consumption group does not currently have any consumer subscriptions PreparingRebalance: The consumption group is in the rebalance state CompletingRebalance: The consumption group is in the rebalance state Stable: Each consumer in the consumption group has joined and is in a stable state.
errorCode This property is required. String
Error code, normally 0.
group This property is required. String
Kafka consumer group.
members This property is required. List<GetCkafkaGroupInfoResultMember>
This array contains information only if state is Stable and protocol_type is consumer.
protocol This property is required. String
Common consumer partition allocation algorithms are as follows (the default option for Kafka consumer SDK is range) range|roundrobin|sticky.
protocolType This property is required. String
The protocol type selected by the consumption group is normally the consumer, but some systems use their own protocol, such as kafka-connect, which uses connect. Only the standard consumer protocol, this interface knows the format of the specific allocation method, and can analyze the specific partition allocation.
state This property is required. String
Group state description (commonly Empty, Stable, and Dead states): Dead: The consumption group does not exist Empty: The consumption group does not currently have any consumer subscriptions PreparingRebalance: The consumption group is in the rebalance state CompletingRebalance: The consumption group is in the rebalance state Stable: Each consumer in the consumption group has joined and is in a stable state.
errorCode This property is required. string
Error code, normally 0.
group This property is required. string
Kafka consumer group.
members This property is required. GetCkafkaGroupInfoResultMember[]
This array contains information only if state is Stable and protocol_type is consumer.
protocol This property is required. string
Common consumer partition allocation algorithms are as follows (the default option for Kafka consumer SDK is range) range|roundrobin|sticky.
protocolType This property is required. string
The protocol type selected by the consumption group is normally the consumer, but some systems use their own protocol, such as kafka-connect, which uses connect. Only the standard consumer protocol, this interface knows the format of the specific allocation method, and can analyze the specific partition allocation.
state This property is required. string
Group state description (commonly Empty, Stable, and Dead states): Dead: The consumption group does not exist Empty: The consumption group does not currently have any consumer subscriptions PreparingRebalance: The consumption group is in the rebalance state CompletingRebalance: The consumption group is in the rebalance state Stable: Each consumer in the consumption group has joined and is in a stable state.
error_code This property is required. str
Error code, normally 0.
group This property is required. str
Kafka consumer group.
members This property is required. Sequence[GetCkafkaGroupInfoResultMember]
This array contains information only if state is Stable and protocol_type is consumer.
protocol This property is required. str
Common consumer partition allocation algorithms are as follows (the default option for Kafka consumer SDK is range) range|roundrobin|sticky.
protocol_type This property is required. str
The protocol type selected by the consumption group is normally the consumer, but some systems use their own protocol, such as kafka-connect, which uses connect. Only the standard consumer protocol, this interface knows the format of the specific allocation method, and can analyze the specific partition allocation.
state This property is required. str
Group state description (commonly Empty, Stable, and Dead states): Dead: The consumption group does not exist Empty: The consumption group does not currently have any consumer subscriptions PreparingRebalance: The consumption group is in the rebalance state CompletingRebalance: The consumption group is in the rebalance state Stable: Each consumer in the consumption group has joined and is in a stable state.
errorCode This property is required. String
Error code, normally 0.
group This property is required. String
Kafka consumer group.
members This property is required. List<Property Map>
This array contains information only if state is Stable and protocol_type is consumer.
protocol This property is required. String
Common consumer partition allocation algorithms are as follows (the default option for Kafka consumer SDK is range) range|roundrobin|sticky.
protocolType This property is required. String
The protocol type selected by the consumption group is normally the consumer, but some systems use their own protocol, such as kafka-connect, which uses connect. Only the standard consumer protocol, this interface knows the format of the specific allocation method, and can analyze the specific partition allocation.
state This property is required. String
Group state description (commonly Empty, Stable, and Dead states): Dead: The consumption group does not exist Empty: The consumption group does not currently have any consumer subscriptions PreparingRebalance: The consumption group is in the rebalance state CompletingRebalance: The consumption group is in the rebalance state Stable: Each consumer in the consumption group has joined and is in a stable state.

GetCkafkaGroupInfoResultMember

Assignments This property is required. List<GetCkafkaGroupInfoResultMemberAssignment>
Stores the partition information assigned to the consumer.
ClientHost This property is required. string
Generally store the customer's IP address.
ClientId This property is required. string
The client.id information set by the client consumer SDK itself.
MemberId This property is required. string
ID that the coordinator generated for consumer.
Assignments This property is required. []GetCkafkaGroupInfoResultMemberAssignment
Stores the partition information assigned to the consumer.
ClientHost This property is required. string
Generally store the customer's IP address.
ClientId This property is required. string
The client.id information set by the client consumer SDK itself.
MemberId This property is required. string
ID that the coordinator generated for consumer.
assignments This property is required. List<GetCkafkaGroupInfoResultMemberAssignment>
Stores the partition information assigned to the consumer.
clientHost This property is required. String
Generally store the customer's IP address.
clientId This property is required. String
The client.id information set by the client consumer SDK itself.
memberId This property is required. String
ID that the coordinator generated for consumer.
assignments This property is required. GetCkafkaGroupInfoResultMemberAssignment[]
Stores the partition information assigned to the consumer.
clientHost This property is required. string
Generally store the customer's IP address.
clientId This property is required. string
The client.id information set by the client consumer SDK itself.
memberId This property is required. string
ID that the coordinator generated for consumer.
assignments This property is required. Sequence[GetCkafkaGroupInfoResultMemberAssignment]
Stores the partition information assigned to the consumer.
client_host This property is required. str
Generally store the customer's IP address.
client_id This property is required. str
The client.id information set by the client consumer SDK itself.
member_id This property is required. str
ID that the coordinator generated for consumer.
assignments This property is required. List<Property Map>
Stores the partition information assigned to the consumer.
clientHost This property is required. String
Generally store the customer's IP address.
clientId This property is required. String
The client.id information set by the client consumer SDK itself.
memberId This property is required. String
ID that the coordinator generated for consumer.

GetCkafkaGroupInfoResultMemberAssignment

Topics This property is required. List<GetCkafkaGroupInfoResultMemberAssignmentTopic>
topic list.
Version This property is required. double
assignment version information.
Topics This property is required. []GetCkafkaGroupInfoResultMemberAssignmentTopic
topic list.
Version This property is required. float64
assignment version information.
topics This property is required. List<GetCkafkaGroupInfoResultMemberAssignmentTopic>
topic list.
version This property is required. Double
assignment version information.
topics This property is required. GetCkafkaGroupInfoResultMemberAssignmentTopic[]
topic list.
version This property is required. number
assignment version information.
topics This property is required. Sequence[GetCkafkaGroupInfoResultMemberAssignmentTopic]
topic list.
version This property is required. float
assignment version information.
topics This property is required. List<Property Map>
topic list.
version This property is required. Number
assignment version information.

GetCkafkaGroupInfoResultMemberAssignmentTopic

Partitions This property is required. List<double>
Allocated partition information.
Topic This property is required. string
Assigned topic name.
Partitions This property is required. []float64
Allocated partition information.
Topic This property is required. string
Assigned topic name.
partitions This property is required. List<Double>
Allocated partition information.
topic This property is required. String
Assigned topic name.
partitions This property is required. number[]
Allocated partition information.
topic This property is required. string
Assigned topic name.
partitions This property is required. Sequence[float]
Allocated partition information.
topic This property is required. str
Assigned topic name.
partitions This property is required. List<Number>
Allocated partition information.
topic This property is required. String
Assigned topic name.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.