Skip to main content

share_groups

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

Overview

Nameshare_groups
TypeResource
Idconfluent.share_group.share_groups

Fields

The following fields are returned by SELECT queries:

The share group.

NameDatatypeDescription
cluster_idstring
share_group_idstring
assigned_topic_partitionsarrayList of topic-partitions assigned to this share group, including those from empty groups
consumer_countinteger (int32)Number of consumers in this share group
consumersobject
coordinatorobject
kindstring
metadataobject
partition_countinteger (int32)Total number of partitions assigned to this share group across all consumers
statestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_kafka_share_groupselectcluster_id, group_idReturn the share group specified by the group_id.
list_kafka_share_groupsselectcluster_idReturn the list of share groups that belong to the specified
Kafka cluster.
delete_kafka_share_groupdeletecluster_id, group_idDelete the share group specified by the group_id.

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
cluster_idstringThe Kafka cluster ID. (example: cluster-1)
group_idstringThe group ID. (example: group-1)

SELECT examples

Return the share group specified by the group_id.

SELECT
cluster_id,
share_group_id,
assigned_topic_partitions,
consumer_count,
consumers,
coordinator,
kind,
metadata,
partition_count,
state
FROM confluent.share_group.share_groups
WHERE cluster_id = '{{ cluster_id }}' -- required
AND group_id = '{{ group_id }}' -- required
;

DELETE examples

Delete the share group specified by the group_id.

DELETE FROM confluent.share_group.share_groups
WHERE cluster_id = '{{ cluster_id }}' --required
AND group_id = '{{ group_id }}' --required
;