Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idconfluent.kafka.clusters

Fields

The following fields are returned by SELECT queries:

The Kafka cluster.

NameDatatypeDescription
cluster_idstring
aclsobject
broker_configsobject
brokersobject
consumer_groupsobject
controllerobject
kindstring
metadataobject
partition_reassignmentsobject
topicsobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_kafka_clusterselectcluster_id, kafka_endpoint_id, region, cloud_providerReturn the Kafka cluster with the specified cluster_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
cloud_providerstringCloud provider, lowercase: aws, gcp, or azure (from the cluster spec.cloud). (default: cloud)
cluster_idstringThe Kafka cluster ID. (example: cluster-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 Kafka cluster with the specified cluster_id.

SELECT
cluster_id,
acls,
broker_configs,
brokers,
consumer_groups,
controller,
kind,
metadata,
partition_reassignments,
topics
FROM confluent.kafka.clusters
WHERE cluster_id = '{{ cluster_id }}' -- required
AND kafka_endpoint_id = '{{ kafka_endpoint_id }}' -- required
AND region = '{{ region }}' -- required
AND cloud_provider = '{{ cloud_provider }}' -- required
;