Skip to main content

v2_clusters

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

Overview

Namev2_clusters
TypeResource
Idconfluent.schema_registry_clusters.v2_clusters

Fields

The following fields are returned by SELECT queries:

Cluster.

NameDatatypeDescription
idstringID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object kinds or objects of the same kind within a different scope/namespace ("space"). (example: dlz-f3a90de)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (srcm/v2)
kindstringKind defines the object this REST resource represents. (Cluster)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
specobjectThe desired state of the Cluster
statusobjectThe status of the Cluster

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_srcm_v2_clusterselectenvironment, idMake a request to read a cluster.
list_srcm_v2_clustersselectenvironmentpage_size, page_tokenRetrieve a sorted, filtered, paginated list of all clusters.
create_srcm_v2_clusterinsertspecMake a request to create a cluster.
update_srcm_v2_clusterupdateid, specMake a request to update a cluster.

delete_srcm_v2_clusterdeleteenvironment, idMake a request to delete a 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
environmentstringScope the operation to the given environment. (example: env-00000)
idstringThe unique identifier for the cluster.
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.

SELECT examples

Make a request to read a cluster.

SELECT
id,
api_version,
kind,
metadata,
spec,
status
FROM confluent.schema_registry_clusters.v2_clusters
WHERE environment = '{{ environment }}' -- required
AND id = '{{ id }}' -- required
;

INSERT examples

Make a request to create a cluster.

INSERT INTO confluent.schema_registry_clusters.v2_clusters (
spec
)
SELECT
'{{ spec }}' /* required */
RETURNING
id,
api_version,
kind,
metadata,
spec,
status
;

UPDATE examples

Make a request to update a cluster.

UPDATE confluent.schema_registry_clusters.v2_clusters
SET
spec = '{{ spec }}'
WHERE
id = '{{ id }}' --required
AND spec = '{{ spec }}' --required
RETURNING
id,
api_version,
kind,
metadata,
spec,
status;

DELETE examples

Make a request to delete a cluster.

DELETE FROM confluent.schema_registry_clusters.v2_clusters
WHERE environment = '{{ environment }}' --required
AND id = '{{ id }}' --required
;