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.
Wire Diagram
Request Header
message_size
int32 · 4B
api_key
int16 · 2B
api_version
int16 · 2B
correlation_id
int32 · 4B
client_id
string
AlterConfigsRequest v0
ValidateOnly
bool · 1B
ResourceType
int8 · 1B
ResourceName
string
Name
string
Value?
string
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": "604800000" }] }], "ValidateOnly": true }