Skip to main content

members

Creates, updates, deletes, gets or lists a members resource.

Overview

Namemembers
TypeResource
Idkafka.streams_group.members

Fields

The following fields are returned by SELECT queries:

The streams group member.

NameDatatypeDescription
client_idstringThe client identifier of the Streams group member.
cluster_idstringThe unique identifier of the Kafka cluster.
group_idstringThe unique identifier of the Streams group.
instance_idstringThe instance identifier of the Streams group member.
member_idstringThe unique identifier of the Streams group member.
process_idstringThe process identifier of the Streams group member.
assignmentsobject
is_classicbooleanThe flag indicating if the member is a classic consumer.
kindstring
member_epochintegerThe epoch of the Streams group member.
metadataobject
target_assignmentobject
topology_epochintegerThe epoch of the Streams topology for the member.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_kafka_streams_group_memberselectcluster_id, group_id, member_id, kafka_endpoint_id, region, cloud_providerReturn the members specified by the member_id.
list_kafka_streams_group_membersselectcluster_id, group_id, kafka_endpoint_id, region, cloud_providerReturn a list of members that belong to the specified streams group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
cloud_providerstringCloud provider, lowercase: aws, gcp, or azure (from the cluster spec.cloud). (default: cloud)
cluster_idstringThe Kafka cluster ID. (example: cluster-1)
group_idstringThe group ID. (example: group-1)
kafka_endpoint_idstringPer-cluster Kafka REST endpoint ID (the pkc-* host prefix from the Confluent UI Cluster -> Overview -> REST endpoint, or extract from confluent.managed_kafka_clusters.clusters spec.http_endpoint). (default: pkc-00000)
member_idstringThe streams member ID. (example: member-1)
regionstringCloud region the cluster runs in, e.g. ap-southeast-2 (from the cluster spec.region). (default: region)

SELECT examples

Return the members specified by the member_id.

SELECT
client_id,
cluster_id,
group_id,
instance_id,
member_id,
process_id,
assignments,
is_classic,
kind,
member_epoch,
metadata,
target_assignment,
topology_epoch
FROM kafka.streams_group.members
WHERE cluster_id = '{{ cluster_id }}' -- required
AND group_id = '{{ group_id }}' -- required
AND member_id = '{{ member_id }}' -- required
AND kafka_endpoint_id = '{{ kafka_endpoint_id }}' -- required
AND region = '{{ region }}' -- required
AND cloud_provider = '{{ cloud_provider }}' -- required
;