---
title: "Update a DBaaS Kafka service"
method: PUT
path: "/dbaas-kafka/{name}"
tags: ["dbaas"]
---

# Update a DBaaS Kafka service

`PUT /dbaas-kafka/{name}`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/dbaas-kafka/{name}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/dbaas-kafka/:name/put.ts> (a function with typed inputs; its response is checked against the schema)

Update a DBaaS Kafka service

## Path parameters

- `name` string, required

## Request body

- object
  - `authentication-methods` object: Kafka authentication methods
    - `certificate` boolean: Enable certificate/SSL authentication
    - `sasl` boolean: Enable SASL authentication
  - `kafka-rest-enabled` boolean: Enable Kafka-REST service
  - `kafka-connect-enabled` boolean: Allow clients to connect to kafka_connect from the public internet for service nodes that are in a project VPC or another type of private network
  - `ip-filter` string[]: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'
  - `schema-registry-settings` JsonSchemaSchemaRegistry
    - `leader_eligibility` boolean: If true, Karapace / Schema Registry on the service nodes can participate in leader election. It might be needed to disable this when the schemas topic is replicated to a secondary cluster and Karapace / Schema Registry there must not participate in leader election. Defaults to `true`.
    - `topic_name` string: The durable single partition topic that acts as the durable log for the data. This topic must be compacted to avoid losing data due to retention policy. Please note that changing this configuration in an existing Schema Registry / Karapace setup leads to previous schemas being inaccessible, data encoded with them potentially unreadable and schema ID sequence put out of order. It's only possible to do the switch while Schema Registry / Karapace is disabled. Defaults to `_schemas`.
  - `kafka-rest-settings` JsonSchemaKafkaRest
    - `producer_compression_type` 'gzip' | 'snappy' | 'lz4' | 'zstd' | 'none': Specify the default compression type for producers. This configuration accepts the standard compression codecs ('gzip', 'snappy', 'lz4', 'zstd'). It additionally accepts 'none' which is the default and equivalent to no compression.
    - `name_strategy_validation` boolean: If true, validate that given schema is registered under expected subject name by the used name strategy when producing messages.
    - `name_strategy` 'topic_name' | 'record_name' | 'topic_record_name': Name strategy to use when selecting subject for storing schemas
    - `consumer_enable_auto_commit` boolean: If true the consumer's offset will be periodically committed to Kafka in the background
    - `producer_acks` 'all' | '-1' | '0' | '1': The number of acknowledgments the producer requires the leader to have received before considering a request complete. If set to 'all' or '-1', the leader will wait for the full set of in-sync replicas to acknowledge the record.
    - `consumer_request_max_bytes` integer: Maximum number of bytes in unencoded message keys and values by a single request
    - `producer_max_request_size` integer: The maximum size of a request in bytes. Note that Kafka broker can also cap the record batch size.
    - `simpleconsumer_pool_size_max` integer: Maximum number of SimpleConsumers that can be instantiated per broker
    - `producer_linger_ms` integer: Wait for up to the given delay to allow batching records together
    - `consumer_request_timeout_ms` 1000 | 15000 | 30000: The maximum total time to wait for messages for a request if the maximum number of messages has not yet been reached
  - `termination-protection` boolean: Service is protected against termination and powering off
  - `kafka-connect-settings` JsonSchemaKafkaConnect
    - `producer_buffer_memory` integer: The total bytes of memory the producer can use to buffer records waiting to be sent to the broker (defaults to 33554432).
    - `consumer_max_poll_interval_ms` integer: The maximum delay in milliseconds between invocations of poll() when using consumer group management (defaults to 300000).
    - `producer_compression_type` 'gzip' | 'snappy' | 'lz4' | 'zstd' | 'none': Specify the default compression type for producers. This configuration accepts the standard compression codecs ('gzip', 'snappy', 'lz4', 'zstd'). It additionally accepts 'none' which is the default and equivalent to no compression.
    - `connector_client_config_override_policy` 'None' | 'All': Defines what client configurations can be overridden by the connector. Default is None
    - `offset_flush_interval_ms` integer: The interval at which to try committing offsets for tasks (defaults to 60000).
    - `scheduled_rebalance_max_delay_ms` integer: The maximum delay that is scheduled in order to wait for the return of one or more departed workers before rebalancing and reassigning their connectors and tasks to the group. During this period the connectors and tasks of the departed workers remain unassigned. Defaults to 5 minutes.
    - `consumer_fetch_max_bytes` integer: Records are fetched in batches by the consumer, and if the first record batch in the first non-empty partition of the fetch is larger than this value, the record batch will still be returned to ensure that the consumer can make progress. As such, this is not a absolute maximum.
    - `consumer_max_partition_fetch_bytes` integer: Records are fetched in batches by the consumer.If the first record batch in the first non-empty partition of the fetch is larger than this limit, the batch will still be returned to ensure that the consumer can make progress.
    - `offset_flush_timeout_ms` integer: Maximum number of milliseconds to wait for records to flush and partition offset data to be committed to offset storage before cancelling the process and restoring the offset data to be committed in a future attempt (defaults to 5000).
    - `consumer_auto_offset_reset` 'earliest' | 'latest': What to do when there is no initial offset in Kafka or if the current offset does not exist any more on the server. Default is earliest
    - `producer_max_request_size` integer: This setting will limit the number of record batches the producer will send in a single request to avoid sending huge requests.
    - `producer_batch_size` integer: This setting gives the upper bound of the batch size to be sent. If there are fewer than this many bytes accumulated for this partition, the producer will 'linger' for the linger.ms time waiting for more records to show up. A batch size of zero will disable batching entirely (defaults to 16384).
    - `session_timeout_ms` integer: The timeout in milliseconds used to detect failures when using Kafka’s group management facilities (defaults to 10000).
    - `producer_linger_ms` integer: This setting gives the upper bound on the delay for batching: once there is batch.size worth of records for a partition it will be sent immediately regardless of this setting, however if there are fewer than this many bytes accumulated for this partition the producer will 'linger' for the specified time waiting for more records to show up. Defaults to 0.
    - `consumer_isolation_level` 'read_uncommitted' | 'read_committed': Transaction read isolation level. read_uncommitted is the default, but read_committed can be used if consume-exactly-once behavior is desired.
    - `consumer_max_poll_records` integer: The maximum number of records returned in a single call to poll() (defaults to 500).
  - `maintenance` object: Automatic maintenance settings
    - `dow` 'saturday' | 'tuesday' | 'never' | 'wednesday' | 'sunday' | 'friday' | 'monday' | 'thursday', required: Day of week for installing updates
    - `time` string, required: Time for installing updates, UTC
  - `kafka-settings` JsonSchemaKafka
    - `sasl_oauthbearer_expected_audience` string: The (optional) comma-delimited setting for the broker to use to verify that the JWT was issued for one of the expected audiences.
    - `group_max_session_timeout_ms` integer: The maximum allowed session timeout for registered consumers. Longer timeouts give consumers more time to process messages in between heartbeats at the cost of a longer time to detect failures.
    - `log_flush_interval_messages` integer: The number of messages accumulated on a log partition before messages are flushed to disk
    - `sasl_oauthbearer_jwks_endpoint_url` string: OIDC JWKS endpoint URL. By setting this the SASL SSL OAuth2/OIDC authentication is enabled. See also other options for SASL OAuth2/OIDC.
    - `max_connections_per_ip` integer: The maximum number of connections allowed from each ip address (defaults to 2147483647).
    - `sasl_oauthbearer_expected_issuer` string: Optional setting for the broker to use to verify that the JWT was created by the expected issuer.
    - `log_index_size_max_bytes` integer: The maximum size in bytes of the offset index
    - `auto_create_topics_enable` boolean: Enable auto creation of topics
    - `log_index_interval_bytes` integer: The interval with which Kafka adds an entry to the offset index
    - `replica_fetch_max_bytes` integer: The number of bytes of messages to attempt to fetch for each partition (defaults to 1048576). This is not an absolute maximum, if the first record batch in the first non-empty partition of the fetch is larger than this value, the record batch will still be returned to ensure that progress can be made.
    - `num_partitions` integer: Number of partitions for autocreated topics
    - `transaction_state_log_segment_bytes` integer: The transaction topic segment bytes should be kept relatively small in order to facilitate faster log compaction and cache loads (defaults to 104857600 (100 mebibytes)).
    - `replica_fetch_response_max_bytes` integer: Maximum bytes expected for the entire fetch response (defaults to 10485760). Records are fetched in batches, and if the first record batch in the first non-empty partition of the fetch is larger than this value, the record batch will still be returned to ensure that progress can be made. As such, this is not an absolute maximum.
    - `log_message_timestamp_type` 'CreateTime' | 'LogAppendTime': Define whether the timestamp in the message is message create time or log append time.
    - `connections_max_idle_ms` integer: Idle connections timeout: the server socket processor threads close the connections that idle for longer than this.
    - `log_flush_interval_ms` integer: The maximum time in ms that a message in any topic is kept in memory before flushed to disk. If not set, the value in log.flush.scheduler.interval.ms is used
    - `log_preallocate` boolean: Should pre allocate file when create new segment?
    - `log_segment_delete_delay_ms` integer: The amount of time to wait before deleting a file from the filesystem
    - `message_max_bytes` integer: The maximum size of message that the server can receive.
    - `group_initial_rebalance_delay_ms` integer: The amount of time, in milliseconds, the group coordinator will wait for more consumers to join a new group before performing the first rebalance. A longer delay means potentially fewer rebalances, but increases the time until processing begins. The default value for this is 3 seconds. During development and testing it might be desirable to set this to 0 in order to not delay test execution time.
    - `log_local_retention_bytes` integer: The maximum size of local log segments that can grow for a partition before it gets eligible for deletion. If set to -2, the value of log.retention.bytes is used. The effective value should always be less than or equal to log.retention.bytes value.
    - `log_roll_jitter_ms` integer: The maximum jitter to subtract from logRollTimeMillis (in milliseconds). If not set, the value in log.roll.jitter.hours is used
    - `transaction_remove_expired_transaction_cleanup_interval_ms` integer: The interval at which to remove transactions that have expired due to transactional.id.expiration.ms passing (defaults to 3600000 (1 hour)).
    - `transaction_partition_verification_enable` boolean: Enable verification that checks that the partition has been added to the transaction before writing transactional records to the partition
    - `default_replication_factor` integer: Replication factor for autocreated topics
    - `log_roll_ms` integer: The maximum time before a new log segment is rolled out (in milliseconds).
    - `producer_purgatory_purge_interval_requests` integer: The purge interval (in number of requests) of the producer request purgatory(defaults to 1000).
    - `log_retention_bytes` integer: The maximum size of the log before deleting messages
    - `min_insync_replicas` integer: When a producer sets acks to 'all' (or '-1'), min.insync.replicas specifies the minimum number of replicas that must acknowledge a write for the write to be considered successful.
    - `compression_type` 'gzip' | 'snappy' | 'lz4' | 'zstd' | 'uncompressed' | 'producer': Specify the final compression type for a given topic. This configuration accepts the standard compression codecs ('gzip', 'snappy', 'lz4', 'zstd'). It additionally accepts 'uncompressed' which is equivalent to no compression; and 'producer' which means retain the original compression codec set by the producer.
    - `log_message_timestamp_difference_max_ms` integer: The maximum difference allowed between the timestamp when a broker receives a message and the timestamp specified in the message
    - `log_local_retention_ms` integer: The number of milliseconds to keep the local log segments before it gets eligible for deletion. If set to -2, the value of log.retention.ms is used. The effective value should always be less than or equal to log.retention.ms value.
    - `log_message_downconversion_enable` boolean: This configuration controls whether down-conversion of message formats is enabled to satisfy consume requests.
    - `sasl_oauthbearer_sub_claim_name` string: Name of the scope from which to extract the subject claim from the JWT. Defaults to sub.
    - `max_incremental_fetch_session_cache_slots` integer: The maximum number of incremental fetch sessions that the broker will maintain.
    - `log_retention_hours` integer: The number of hours to keep a log file before deleting it
    - `group_min_session_timeout_ms` integer: The minimum allowed session timeout for registered consumers. Longer timeouts give consumers more time to process messages in between heartbeats at the cost of a longer time to detect failures.
    - `socket_request_max_bytes` integer: The maximum number of bytes in a socket request (defaults to 104857600).
    - `log_segment_bytes` integer: The maximum size of a single log file
    - `log-cleanup-and-compaction` object
      - `log_cleaner_delete_retention_ms` integer: How long are delete records retained?
      - `log_cleaner_max_compaction_lag_ms` integer: The maximum amount of time message will remain uncompacted. Only applicable for logs that are being compacted
      - `log_cleaner_min_cleanable_ratio` number: Controls log compactor frequency. Larger value means more frequent compactions but also more space wasted for logs. Consider setting log.cleaner.max.compaction.lag.ms to enforce compactions sooner, instead of setting a very high value for this option.
      - `log_cleaner_min_compaction_lag_ms` integer: The minimum time a message will remain uncompacted in the log. Only applicable for logs that are being compacted.
      - `log_cleanup_policy` 'delete' | 'compact' | 'compact,delete': The default cleanup policy for segments beyond the retention window
    - `offsets_retention_minutes` integer: Log retention window in minutes for offsets topic
    - `log_retention_ms` integer: The number of milliseconds to keep a log file before deleting it (in milliseconds), If not set, the value in log.retention.minutes is used. If set to -1, no time limit is applied.
  - `schema-registry-enabled` boolean: Enable Schema-Registry service
  - `version` string: Kafka major version
  - `plan` string: Subscription plan

## Response `200`

200

- Operation: Operation
  - `id` string, uuid: Operation ID
  - `reason` 'incorrect' | 'unknown' | 'unavailable' | 'forbidden' | 'busy' | 'fault' | 'partial' | 'not-found' | 'interrupted' | 'unsupported' | 'conflict': Operation failure reason
  - `reference` object: Related resource reference
    - `id` string, uuid: Reference ID
    - `link` string: Link to the referenced resource
    - `command` string: Command name
  - `message` string: Operation message
  - `state` 'failure' | 'pending' | 'success' | 'timeout': Operation status

## Changes

- **2024-05-22** `d1903c399d90`: 3 breaking, 4 info
  - added the pattern `^[^\r\n]*$` to the request property `kafka-settings/sasl_oauthbearer_expected_audience`
  - added the pattern `^[^\r\n]*$` to the request property `kafka-settings/sasl_oauthbearer_expected_issuer`
  - added the pattern `^[^\r\n]*$` to the request property `kafka-settings/sasl_oauthbearer_sub_claim_name`
  - added the new optional request property `kafka-rest-settings/name_strategy`
  - …3 more
- **2023-12-08** `ec6a2a6bc1c1`: 69 info
  - added the new optional request property `kafka-connect-settings/connector_client_config_override_policy`
  - added the new optional request property `kafka-connect-settings/consumer_auto_offset_reset`
  - added the new optional request property `kafka-connect-settings/consumer_fetch_max_bytes`
  - added the new optional request property `kafka-connect-settings/consumer_isolation_level`
  - …65 more
- **2023-02-03** `6e9809fd1444`: 3 breaking, 35 warning, 13 info
  - removed the required property `name` from the response with the `200` status
  - removed the required property `plan` from the response with the `200` status
  - removed the required property `type` from the response with the `200` status
  - removed the request property `db-config`
  - …47 more

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/dbaas-kafka/:name/put.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
