Skip to main content

cluster_links

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

Overview

Namecluster_links
TypeResource
Idconfluent.kafka.cluster_links

Fields

NameDatatypeDescription
cluster_link_idstring
destination_cluster_idstring
kindstring
link_errorstring
link_error_messagestring
link_idstring
link_namestring
link_statestring
metadataobject
remote_cluster_idstring
source_cluster_idstring
tasksarray
topic_namesarray

Methods

NameAccessible byRequired ParamsDescription
get_kafka_linkSELECTcluster_id, link_nameGenerally Available link_id in ListLinksResponseData is deprecated and may be removed in a future release. Use the new cluster_link_id instead.
list_kafka_linksSELECTcluster_idGenerally Available link_id in ListLinksResponseData is deprecated and may be removed in a future release. Use the new cluster_link_id instead.
create_kafka_linkINSERTcluster_idGenerally Available Cluster link creation requires source cluster security configurations in the configs JSON section of the data request payload.
delete_kafka_linkDELETEcluster_id, link_nameGenerally Available

SELECT examples

Generally Available link_id in ListLinksResponseData is deprecated and may be removed in a future release. Use the new cluster_link_id instead.

SELECT
cluster_link_id,
destination_cluster_id,
kind,
link_error,
link_error_message,
link_id,
link_name,
link_state,
metadata,
remote_cluster_id,
source_cluster_id,
tasks,
topic_names
FROM confluent.kafka.cluster_links
WHERE cluster_id = '{{ cluster_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new cluster_links resource.

/*+ create */
INSERT INTO confluent.kafka.cluster_links (
data__source_cluster_id,
data__destination_cluster_id,
data__remote_cluster_id,
data__cluster_link_id,
data__configs,
cluster_id
)
SELECT
'{{ source_cluster_id }}',
'{{ destination_cluster_id }}',
'{{ remote_cluster_id }}',
'{{ cluster_link_id }}',
'{{ configs }}',
'{{ cluster_id }}'
;

DELETE example

Deletes the specified cluster_links resource.

/*+ delete */
DELETE FROM confluent.kafka.cluster_links
WHERE cluster_id = '{{ cluster_id }}'
AND link_name = '{{ link_name }}';