Skip to main content

subject_level_config

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

Overview

Namesubject_level_config
TypeResource
Idconfluent.schema_registry.subject_level_config

Fields

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
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

NameAccessible byRequired ParamsDescription
get_subject_level_configSELECTsubjectRetrieves compatibility level, compatibility group, normalization, default metadata, and rule set for a subject.
delete_subject_configDELETEsubjectDeletes the specified subject-level compatibility level config and reverts to the global default.
update_subject_level_configEXECsubjectUpdate compatibility level, compatibility group, normalization, default metadata, and rule set for the specified subject. On success, echoes the original request back to the client.

SELECT examples

Retrieves compatibility level, compatibility group, normalization, default metadata, and rule set for a subject.

SELECT
alias,
compatibilityGroup,
compatibilityLevel,
defaultMetadata,
defaultRuleSet,
normalize,
overrideMetadata,
overrideRuleSet
FROM confluent.schema_registry.subject_level_config
WHERE subject = '{{ subject }}';

DELETE example

Deletes the specified subject_level_config resource.

/*+ delete */
DELETE FROM confluent.schema_registry.subject_level_config
WHERE subject = '{{ subject }}';