Skip to main content

kafka_schema_config

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

Overview

Namekafka_schema_config
TypeResource
Iddigitalocean.databases.kafka_schema_config

Fields

The following fields are returned by SELECT queries:

A JSON object with a key of compatibility_level.

NameDatatypeDescription
compatibility_levelstringThe compatibility level of the schema registry.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
databases_get_kafka_schema_configselectdatabase_cluster_uuidTo retrieve the Schema Registry configuration for a Kafka cluster, send a GET request to
/v2/databases/$DATABASE_ID/schema-registry/config.
The response is a JSON object with a compatibility_level key, which is set to an object
containing any database configuration parameters.
databases_update_kafka_schema_configreplacedatabase_cluster_uuid, data__compatibility_levelTo update the Schema Registry configuration for a Kafka cluster, send a PUT request to
/v2/databases/$DATABASE_ID/schema-registry/config.
The response is a JSON object with a compatibility_level key, which is set to an object
containing any database configuration parameters.

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
database_cluster_uuidstring (uuid)A unique identifier for a database cluster. (example: 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30)

SELECT examples

To retrieve the Schema Registry configuration for a Kafka cluster, send a GET request to
/v2/databases/$DATABASE_ID/schema-registry/config.
The response is a JSON object with a compatibility_level key, which is set to an object
containing any database configuration parameters.

SELECT
compatibility_level
FROM digitalocean.databases.kafka_schema_config
WHERE database_cluster_uuid = '{{ database_cluster_uuid }}' -- required;

REPLACE examples

To update the Schema Registry configuration for a Kafka cluster, send a PUT request to
/v2/databases/$DATABASE_ID/schema-registry/config.
The response is a JSON object with a compatibility_level key, which is set to an object
containing any database configuration parameters.

REPLACE digitalocean.databases.kafka_schema_config
SET
data__compatibility_level = '{{ compatibility_level }}'
WHERE
database_cluster_uuid = '{{ database_cluster_uuid }}' --required
AND data__compatibility_level = '{{ compatibility_level }}' --required
RETURNING
compatibility_level;