Creates a new schema exporter
POST/exporters
Creates a new schema exporter. All attributes in request body are optional except config.
Request
Responses
- 200
- 400
- 401
- 403
- 409
- 429
- 500
Schema successfully registered.
Bad Request
Unauthorized
Forbidden
Conflict. Error code 40950 – Missing or invalid exporter name \ Error code 40951 – Missing or invalid exporter config \ Error code 40952 – Invalid exporter subjects \ Error code 40960 – Exporter already exists \ Error code 40964 – Too many exporters
Rate Limit Exceeded
Response Headers
The unique identifier for the API request.
The maximum number of requests you're permitted to make per time period.
The number of requests remaining in the current rate limit window.
The relative time in seconds until the current rate-limit window resets.
Important: This differs from Github and Twitter's same-named header which uses UTC epoch seconds. We use relative time to avoid client/server time synchronization issues.
The number of seconds to wait until the rate limit window resets. Only sent when the rate limit is reached.
Internal Server Error
OpenAPI definition (YAML)
paths:
/exporters:
post:
tags:
- Exporters (v1)
description: Creates a new schema exporter. All attributes in request body are optional except config.
operationId: registerExporter
requestBody:
description: Schema
content:
application/vnd.schemaregistry.v1+json:
schema:
type: object
properties:
name:
type: string
description: Name of the exporter
example: test-exporter
contextType:
description: Context type of the exporter. One of CUSTOM, NONE or AUTO (default)
type: string
example: CUSTOM
enum:
- CUSTOM
- AUTO
- NONE
context:
type: string
description: Customized context of the exporter if contextType equals CUSTOM.
example: User
subjects:
type: array
description: Name of each exporter subject
items:
type: string
kekRenameFormat:
type: string
description: Format 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.
subjectRenameFormat:
type: string
description: Format 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.
config:
type: object
description: The map containing exporter's configurations
additionalProperties:
type: string
description: The format for a typical exporter object
title: ExporterReference
application/vnd.schemaregistry+json:
schema:
type: object
properties:
name:
type: string
description: Name of the exporter
example: test-exporter
contextType:
description: Context type of the exporter. One of CUSTOM, NONE or AUTO (default)
type: string
example: CUSTOM
enum:
- CUSTOM
- AUTO
- NONE
context:
type: string
description: Customized context of the exporter if contextType equals CUSTOM.
example: User
subjects:
type: array
description: Name of each exporter subject
items:
type: string
kekRenameFormat:
type: string
description: Format 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.
subjectRenameFormat:
type: string
description: Format 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.
config:
type: object
description: The map containing exporter's configurations
additionalProperties:
type: string
description: The format for a typical exporter object
title: ExporterReference
application/json:
schema:
type: object
properties:
name:
type: string
description: Name of the exporter
example: test-exporter
contextType:
description: Context type of the exporter. One of CUSTOM, NONE or AUTO (default)
type: string
example: CUSTOM
enum:
- CUSTOM
- AUTO
- NONE
context:
type: string
description: Customized context of the exporter if contextType equals CUSTOM.
example: User
subjects:
type: array
description: Name of each exporter subject
items:
type: string
kekRenameFormat:
type: string
description: Format 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.
subjectRenameFormat:
type: string
description: Format 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.
config:
type: object
description: The map containing exporter's configurations
additionalProperties:
type: string
description: The format for a typical exporter object
title: ExporterReference
required: true
responses:
'200':
description: Schema successfully registered.
content:
application/json; qs=0.5:
schema:
type: object
properties:
name:
type: string
description: Name of the exporter
example: test-exporter
description: Exporter register response
title: ExporterResponse
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
error_code:
type: integer
description: The error code
format: int32
message:
type: string
description: The error message
description: Error message of this operation
title: ErrorMessage
example:
error_code: 400
message: Bad Request
'401':
description: Unauthorized
content:
application/json:
schema:
type: object
properties:
error_code:
type: integer
description: The error code
format: int32
message:
type: string
description: The error message
description: Error message of this operation
title: ErrorMessage
example:
error_code: 401
message: Unauthorized
'403':
description: Forbidden
content:
application/json:
schema:
type: object
properties:
error_code:
type: integer
description: The error code
format: int32
message:
type: string
description: The error message
description: Error message of this operation
title: ErrorMessage
example:
error_code: 403
message: Forbidden
'409':
description: Conflict. Error code 40950 – Missing or invalid exporter name \ Error code 40951
– Missing or invalid exporter config \ Error code 40952 – Invalid exporter subjects \ Error
code 40960 – Exporter already exists \ Error code 40964 – Too many exporters
content:
application/vnd.schemaregistry.v1+json:
schema:
type: object
properties:
error_code:
type: integer
description: The error code
format: int32
message:
type: string
description: The error message
description: Error message of this operation
title: ErrorMessage
application/vnd.schemaregistry+json; qs=0.9:
schema:
type: object
properties:
error_code:
type: integer
description: The error code
format: int32
message:
type: string
description: The error message
description: Error message of this operation
title: ErrorMessage
application/json; qs=0.5:
schema:
type: object
properties:
error_code:
type: integer
description: The error code
format: int32
message:
type: string
description: The error message
description: Error message of this operation
title: ErrorMessage
'429':
description: Rate Limit Exceeded
headers:
X-Request-Id:
schema:
type: string
description: The unique identifier for the API request.
X-RateLimit-Limit:
schema:
type: integer
description: The maximum number of requests you're permitted to make per time period.
X-RateLimit-Remaining:
schema:
type: integer
description: The number of requests remaining in the current rate limit window.
X-RateLimit-Reset:
schema:
type: integer
description: "The relative time in seconds until the current rate-limit window resets. \
\ \n \n**Important:** This differs from Github and Twitter's same-named header which\
\ uses UTC epoch seconds. We use relative time to avoid client/server time synchronization\
\ issues."
Retry-After:
schema:
type: integer
description: The number of seconds to wait until the rate limit window resets. Only sent
when the rate limit is reached.
'500':
description: Internal Server Error
content:
application/json:
schema:
type: object
properties:
error_code:
type: integer
description: The error code
format: int32
message:
type: string
description: The error message
description: Error message of this operation
title: ErrorMessage
example:
error_code: 500
message: Oops, something went wrong
security:
- resource-api-key: []
- external-access-token: []
servers:
- url: https://psrc-00000.region.provider.confluent.cloud
description: Confluent Cloud Schema Registry Endpoint.
jsonRequestBodyExample:
name: test-exporter
contextType: CUSTOM
context: User
subjects:
- string
kekRenameFormat: string
subjectRenameFormat: string
config: {}