Skip to main content

subtopologies

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

Overview

Namesubtopologies
TypeResource
Idkafka.streams_group.subtopologies

Fields

The following fields are returned by SELECT queries:

The streams group subtopology.

NameDatatypeDescription
cluster_idstringThe unique identifier of the Kafka cluster.
group_idstringThe unique identifier of the Streams group.
subtopology_idstringThe unique identifier of the Streams subtopology.
kindstring
metadataobject
source_topicsarrayThe list of source topics for the subtopology.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_kafka_streams_group_subtopologyselectcluster_id, group_id, subtopology_id, kafka_endpoint_id, region, cloud_providerReturn the subtopology specified by the subtopology_id.
list_kafka_streams_group_subtopologiesselectcluster_id, group_id, kafka_endpoint_id, region, cloud_providerReturn a list of subtopologies 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)
regionstringCloud region the cluster runs in, e.g. ap-southeast-2 (from the cluster spec.region). (default: region)
subtopology_idstringThe streams subtopology ID. (example: subtopology-1)

SELECT examples

Return the subtopology specified by the subtopology_id.

SELECT
cluster_id,
group_id,
subtopology_id,
kind,
metadata,
source_topics
FROM kafka.streams_group.subtopologies
WHERE cluster_id = '{{ cluster_id }}' -- required
AND group_id = '{{ group_id }}' -- required
AND subtopology_id = '{{ subtopology_id }}' -- required
AND kafka_endpoint_id = '{{ kafka_endpoint_id }}' -- required
AND region = '{{ region }}' -- required
AND cloud_provider = '{{ cloud_provider }}' -- required
;