Skip to main content

connect_clusters

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

Overview

Nameconnect_clusters
TypeResource
Idgoogle.managedkafka.connect_clusters

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The name of the Kafka Connect cluster. Structured like: projects/{project_number}/locations/{location}/connectClusters/{connect_cluster_id}
capacityConfigobjectRequired. Capacity configuration for the Kafka Connect cluster. (id: CapacityConfig)
configobjectOptional. Configurations for the worker that are overridden from the defaults. The key of the map is a Kafka Connect worker property name, for example: exactly.once.source.support.
createTimestring (google-datetime)Output only. The time when the cluster was created.
gcpConfigobjectRequired. Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform. (id: ConnectGcpConfig)
kafkaClusterstringRequired. Immutable. The name of the Kafka cluster this Kafka Connect cluster is attached to. Structured like: projects/{project}/locations/{location}/clusters/{cluster}
labelsobjectOptional. Labels as key value pairs.
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
statestringOutput only. The current state of the cluster.
updateTimestring (google-datetime)Output only. The time when the cluster was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, connectClustersIdReturns the properties of a single Kafka Connect cluster.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists the Kafka Connect clusters in a given project and location.
createinsertprojectsId, locationsIdconnectClusterId, requestIdCreates a new Kafka Connect cluster in a given project and location.
patchupdateprojectsId, locationsId, connectClustersIdupdateMask, requestIdUpdates the properties of a single Kafka Connect cluster.
deletedeleteprojectsId, locationsId, connectClustersIdrequestIdDeletes a single Connect 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
connectClustersIdstring
locationsIdstring
projectsIdstring
connectClusterIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Returns the properties of a single Kafka Connect cluster.

SELECT
name,
capacityConfig,
config,
createTime,
gcpConfig,
kafkaCluster,
labels,
satisfiesPzi,
satisfiesPzs,
state,
updateTime
FROM google.managedkafka.connect_clusters
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND connectClustersId = '{{ connectClustersId }}' -- required;

INSERT examples

Creates a new Kafka Connect cluster in a given project and location.

INSERT INTO google.managedkafka.connect_clusters (
data__gcpConfig,
data__name,
data__kafkaCluster,
data__labels,
data__capacityConfig,
data__config,
projectsId,
locationsId,
connectClusterId,
requestId
)
SELECT
'{{ gcpConfig }}',
'{{ name }}',
'{{ kafkaCluster }}',
'{{ labels }}',
'{{ capacityConfig }}',
'{{ config }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ connectClusterId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the properties of a single Kafka Connect cluster.

UPDATE google.managedkafka.connect_clusters
SET
data__gcpConfig = '{{ gcpConfig }}',
data__name = '{{ name }}',
data__kafkaCluster = '{{ kafkaCluster }}',
data__labels = '{{ labels }}',
data__capacityConfig = '{{ capacityConfig }}',
data__config = '{{ config }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND connectClustersId = '{{ connectClustersId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single Connect cluster.

DELETE FROM google.managedkafka.connect_clusters
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND connectClustersId = '{{ connectClustersId }}' --required
AND requestId = '{{ requestId }}';