Skip to main content

streams_groups

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

Overview

Namestreams_groups
TypeResource
Idkafka.streams_group.streams_groups

Fields

The following fields are returned by SELECT queries:

The streams group.

NameDatatypeDescription
cluster_idstringThe unique identifier of the Kafka cluster.
group_idstringThe unique identifier of the Streams group.
group_epochintegerThe epoch of the Streams group.
kindstring
member_countintegerThe number of members in the Streams group.
membersobject
metadataobject
statestringThe state of the Streams group.
subtopologiesobject
subtopology_countintegerThe number of subtopologies in the Streams group.
target_assignment_epochintegerThe epoch of the target assignment.
topology_epochintegerThe epoch of the Streams topology.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_kafka_streams_groupselectcluster_id, group_id, kafka_endpoint_id, region, cloud_providerReturn the streams group specified by the group_id.
list_kafka_streams_groupsselectcluster_id, kafka_endpoint_id, region, cloud_providerReturn the list of streams groups that belong to the specified Kafka cluster

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)
regionstringCloud region the cluster runs in, e.g. ap-southeast-2 (from the cluster spec.region). (default: region)

SELECT examples

Return the streams group specified by the group_id.

SELECT
cluster_id,
group_id,
group_epoch,
kind,
member_count,
members,
metadata,
state,
subtopologies,
subtopology_count,
target_assignment_epoch,
topology_epoch
FROM kafka.streams_group.streams_groups
WHERE cluster_id = '{{ cluster_id }}' -- required
AND group_id = '{{ group_id }}' -- required
AND kafka_endpoint_id = '{{ kafka_endpoint_id }}' -- required
AND region = '{{ region }}' -- required
AND cloud_provider = '{{ cloud_provider }}' -- required
;