conduktor.io ↗

Kafka AlterConfigs Request Wire Format v2 — Binary Protocol Layout

What is AlterConfigs?

Updates broker or topic configuration, but replaces the entire config, not just the changed keys. Prefer IncrementalAlterConfigs for any new code; AlterConfigs silently resets configs not explicitly included in the request.

Related Errors

NOT_CONTROLLER · POLICY_VIOLATION

Wire Diagram

Request Header · flexible
message_size int32 · 4B
api_key int16 · 2B
api_version int16 · 2B
correlation_id int32 · 4B
client_id string (compact)
tagged var
AlterConfigsRequest v2
Resources array
ValidateOnly bool · 1B
tagged var
ResourceType int8 · 1B
ResourceName string (compact)
Configs array
tagged var
Name string (compact)
Value? string (compact)
tagged var

Schema & Example

Schema
{
  "Resources": [{
      "ResourceType": int8,
      "ResourceName": string,
      "Configs": [{
          "Name": string,
          "Value": string?
      }]
  }],
  "ValidateOnly": bool
}
Example
{
  "Resources": [{
      "ResourceType": 2,
      "ResourceName": "orders",
      "Configs": [{
          "Name": "orders",
          "Value": null
      }]
  }],
  "ValidateOnly": true
}