Skip to main content

top_level_config

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

Overview

Nametop_level_config
TypeResource
Idconfluent.schema_registry.top_level_config

Fields

The following fields are returned by SELECT queries:

The global compatibility level.

NameDatatypeDescription
aliasstringIf alias is specified, then this subject is an alias for the subject named by the alias. That means that any reference to this subject will be replaced by the alias.
compatibilityGroupstringOnly schemas that belong to the same compatibility group will be checked for compatibility.
compatibilityLevelstringCompatibility Level (example: FULL_TRANSITIVE)
defaultMetadataobjectDefault value for the metadata to be used during schema registration.
defaultRuleSetobjectDefault value for the ruleSet to be used during schema registration.
normalizebooleanIf true, then schemas are automatically normalized when registered or when passed during lookups. This means that clients do not have to pass the "normalize" query parameter to have normalization occur.
overrideMetadataobjectOverride value for the metadata to be used during schema registration.
overrideRuleSetobjectOverride value for the ruleSet to be used during schema registration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_top_level_configselectRetrieves the global compatibility level, compatibility group,
normalization, default metadata, and rule set.
update_top_level_configreplaceUpdates the global compatibility level, compatibility group,
schema normalization, default metadata, and rule set. On success, echoes the
original request back to the client.
delete_top_level_configdeleteDeletes the global compatibility level config and reverts to the default.

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

SELECT examples

Retrieves the global compatibility level, compatibility group,
normalization, default metadata, and rule set.

SELECT
alias,
compatibilityGroup,
compatibilityLevel,
defaultMetadata,
defaultRuleSet,
normalize,
overrideMetadata,
overrideRuleSet
FROM confluent.schema_registry.top_level_config
;

REPLACE examples

Updates the global compatibility level, compatibility group,
schema normalization, default metadata, and rule set. On success, echoes the
original request back to the client.

REPLACE confluent.schema_registry.top_level_config
SET
alias = '{{ alias }}',
normalize = {{ normalize }},
compatibility = '{{ compatibility }}',
compatibilityGroup = '{{ compatibilityGroup }}',
defaultMetadata = '{{ defaultMetadata }}',
overrideMetadata = '{{ overrideMetadata }}',
defaultRuleSet = '{{ defaultRuleSet }}',
overrideRuleSet = '{{ overrideRuleSet }}'
RETURNING
alias,
compatibility,
compatibilityGroup,
defaultMetadata,
defaultRuleSet,
normalize,
overrideMetadata,
overrideRuleSet;

DELETE examples

Deletes the global compatibility level config and reverts to the default.

DELETE FROM confluent.schema_registry.top_level_config
;