Skip to main content

exporters

Creates, updates, deletes, gets or lists an exporters resource.

Overview

Nameexporters
TypeResource
Idconfluent.schema_registry.exporters

Fields

The following fields are returned by SELECT queries:

The original request.

NameDatatypeDescription
namestringName of the exporter (example: test-exporter)
configobjectThe map containing exporter's configurations
contextstringCustomized context of the exporter if contextType equals CUSTOM. (example: User)
contextTypestringContext type of the exporter. One of CUSTOM, NONE or AUTO (default) (example: CUSTOM)
kekRenameFormatstringFormat string for the KEK name in the destination cluster, which may contain ${kek} as a placeholder for the originating KEK name. For example, dc_${kek} for the KEK aws_key will map to the destination KEK name dc_aws_key.
subjectRenameFormatstringFormat string for the subject name in the destination cluster, which may contain ${subject} as a placeholder for the originating subject name. For example, dc_${subject} for the subject orders will map to the destination subject name dc_orders.
subjectsarrayName of each exporter subject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_exporter_info_by_nameselectnameRetrieves the information of the schema exporter.
list_exportersselectRetrieves a list of schema exporters that have been created.
register_exporterinsertCreates a new schema exporter. All attributes in request body are optional except config.
update_exporter_inforeplacenameUpdates the information or configurations of the schema exporter. All attributes in request body are optional.
delete_exporterdeletenameDeletes the schema exporter.
pause_exporter_by_nameexecnamePauses the state of the schema exporter.
reset_exporter_by_nameexecnameReset the state of the schema exporter.
resume_exporter_by_nameexecnameResume running of the schema exporter.

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
namestringName of the exporter

SELECT examples

Retrieves the information of the schema exporter.

SELECT
name,
config,
context,
contextType,
kekRenameFormat,
subjectRenameFormat,
subjects
FROM confluent.schema_registry.exporters
WHERE name = '{{ name }}' -- required
;

INSERT examples

Creates a new schema exporter. All attributes in request body are optional except config.

INSERT INTO confluent.schema_registry.exporters (
name,
contextType,
context,
subjects,
kekRenameFormat,
subjectRenameFormat,
config
)
SELECT
'{{ name }}',
'{{ contextType }}',
'{{ context }}',
'{{ subjects }}',
'{{ kekRenameFormat }}',
'{{ subjectRenameFormat }}',
'{{ config }}'
RETURNING
name
;

REPLACE examples

Updates the information or configurations of the schema exporter. All attributes in request body are optional.

REPLACE confluent.schema_registry.exporters
SET
contextType = '{{ contextType }}',
context = '{{ context }}',
subjects = '{{ subjects }}',
kekRenameFormat = '{{ kekRenameFormat }}',
subjectRenameFormat = '{{ subjectRenameFormat }}',
config = '{{ config }}'
WHERE
name = '{{ name }}' --required
RETURNING
name;

DELETE examples

Deletes the schema exporter.

DELETE FROM confluent.schema_registry.exporters
WHERE name = '{{ name }}' --required
;

Lifecycle Methods

Pauses the state of the schema exporter.

EXEC confluent.schema_registry.exporters.pause_exporter_by_name
@name='{{ name }}' --required
;