DeleteAcls
This page encodes the smallest legal instance of the request and the response: numeric fields are zero, strings and byte arrays are empty, every array carries exactly one sample element, and any records field holds one empty 61-byte RecordBatch v2. Version 3 is a flexible version, so every struct is terminated by a uvarint tagged-field count and strings and arrays carry compact length-plus-one prefixes. Sizes below include the leading int32 size prefix.
- API key
- 31
- Encoded at
- v3
- Flexible versions
- 2+
- Headers
- req v2, resp v1
- Request versions
- 1-3
- Response versions
- 1-3
- Request size
- 25 bytes
- Response size
- 31 bytes
framerpc headerrequest bodyRecordBatchRecordresponse bodytagged_fields
Request
DeleteAclsRequest v3, request header v2, 25 bytes on the wire
byte layout (25 bytes, 16 bytes per row)
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0000
0010
object tree
DeleteAclsRequest message v3 [0x0000, 25B] +-- Frame [0x0000, 4B] length-delimited framing | +-- size int32 = 21 [0x0000, 4B] number of bytes that follow, patched after encoding +-- RequestHeader v2 [0x0004, 11B] common request header | +-- request_api_key int16 = 31 (DeleteAcls) [0x0004, 2B] numeric id of the API being invoked | +-- request_api_version int16 = 3 [0x0006, 2B] version of the API being invoked | +-- correlation_id int32 = 0 [0x0008, 4B] echoed back by the broker in the response | +-- client_id nullable_string = "" (int16 len=0) [0x000c, 2B] always a non-flexible int16-prefixed string | +-- tagged_fields uvarint = 0 [0x000e, 1B] number of tagged fields in the header +-- DeleteAclsRequest struct [0x000f, 10B] message body, version 3 +-- Filters []DeleteAclsFilter = 1 element [0x000f, 9B] The filters to use when deleting ACLs. | +-- length uvarint = 2 (compact, n+1) [0x000f, 1B] one sample element follows | +-- DeleteAclsFilter[0] DeleteAclsFilter = struct [0x0010, 8B] | +-- ResourceTypeFilter int8 = 0 [0x0010, 1B] The resource type. | +-- ResourceNameFilter string = "" (compact, len+1=1) [0x0011, 1B] The resource name. | +-- PatternTypeFilter int8 = 0 [0x0012, 1B] The pattern type. | +-- PrincipalFilter string = "" (compact, len+1=1) [0x0013, 1B] The principal filter, or null to accept all principals. | +-- HostFilter string = "" (compact, len+1=1) [0x0014, 1B] The host filter, or null to accept all hosts. | +-- Operation int8 = 0 [0x0015, 1B] The ACL operation. | +-- PermissionType int8 = 0 [0x0016, 1B] The permission type. | +-- tagged_fields uvarint = 0 [0x0017, 1B] number of tagged fields in this struct +-- tagged_fields uvarint = 0 [0x0018, 1B] number of tagged fields in this struct
kafka message schema (.json)
{ "apiKey": 31, "type": "request", "listeners": ["broker", "controller"], "name": "DeleteAclsRequest", // Version 0 was removed in Apache Kafka 4.0, Version 1 is the new baseline. // Version 1 adds the pattern type. // Version 2 enables flexible versions. // Version 3 adds the user resource type. "validVersions": "1-3", "flexibleVersions": "2+", "fields": [ { "name": "Filters", "type": "[]DeleteAclsFilter", "versions": "0+", "about": "The filters to use when deleting ACLs.", "fields": [ { "name": "ResourceTypeFilter", "type": "int8", "versions": "0+", "about": "The resource type." }, { "name": "ResourceNameFilter", "type": "string", "versions": "0+", "nullableVersions": "0+", "about": "The resource name." }, { "name": "PatternTypeFilter", "type": "int8", "versions": "1+", "default": "3", "ignorable": false, "about": "The pattern type." }, { "name": "PrincipalFilter", "type": "string", "versions": "0+", "nullableVersions": "0+", "about": "The principal filter, or null to accept all principals." }, { "name": "HostFilter", "type": "string", "versions": "0+", "nullableVersions": "0+", "about": "The host filter, or null to accept all hosts." }, { "name": "Operation", "type": "int8", "versions": "0+", "about": "The ACL operation." }, { "name": "PermissionType", "type": "int8", "versions": "0+", "about": "The permission type." } ]} ] }
Response
DeleteAclsResponse v3, response header v1, 31 bytes on the wire
byte layout (31 bytes, 16 bytes per row)
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0000
0010
object tree
DeleteAclsResponse message v3 [0x0000, 31B] +-- Frame [0x0000, 4B] length-delimited framing | +-- size int32 = 27 [0x0000, 4B] number of bytes that follow, patched after encoding +-- ResponseHeader v1 [0x0004, 5B] common response header | +-- correlation_id int32 = 0 [0x0004, 4B] matches the correlation_id of the request | +-- tagged_fields uvarint = 0 [0x0008, 1B] number of tagged fields in the header +-- DeleteAclsResponse struct [0x0009, 22B] message body, version 3 +-- ThrottleTimeMs int32 = 0 [0x0009, 4B] The duration in milliseconds for which the request was throttled due to a q... +-- FilterResults []DeleteAclsFilterResult = 1 element [0x000d, 17B] The results for each filter. | +-- length uvarint = 2 (compact, n+1) [0x000d, 1B] one sample element follows | +-- DeleteAclsFilterResult[0] DeleteAclsFilterResult = struct [0x000e, 16B] | +-- ErrorCode int16 = 0 [0x000e, 2B] The error code, or 0 if the filter succeeded. | +-- ErrorMessage string = "" (compact, len+1=1) [0x0010, 1B] The error message, or null if the filter succeeded. | +-- MatchingAcls []DeleteAclsMatchingAcl = 1 element [0x0011, 12B] The ACLs which matched this filter. | | +-- length uvarint = 2 (compact, n+1) [0x0011, 1B] one sample element follows | | +-- DeleteAclsMatchingAcl[0] DeleteAclsMatchingAcl = struct [0x0012, 11B] | | +-- ErrorCode int16 = 0 [0x0012, 2B] The deletion error code, or 0 if the deletion succeeded. | | +-- ErrorMessage string = "" (compact, len+1=1) [0x0014, 1B] The deletion error message, or null if the deletion succeeded. | | +-- ResourceType int8 = 0 [0x0015, 1B] The ACL resource type. | | +-- ResourceName string = "" (compact, len+1=1) [0x0016, 1B] The ACL resource name. | | +-- PatternType int8 = 0 [0x0017, 1B] The ACL resource pattern type. | | +-- Principal string = "" (compact, len+1=1) [0x0018, 1B] The ACL principal. | | +-- Host string = "" (compact, len+1=1) [0x0019, 1B] The ACL host. | | +-- Operation int8 = 0 [0x001a, 1B] The ACL operation. | | +-- PermissionType int8 = 0 [0x001b, 1B] The ACL permission type. | | +-- tagged_fields uvarint = 0 [0x001c, 1B] number of tagged fields in this struct | +-- tagged_fields uvarint = 0 [0x001d, 1B] number of tagged fields in this struct +-- tagged_fields uvarint = 0 [0x001e, 1B] number of tagged fields in this struct
kafka message schema (.json)
{ "apiKey": 31, "type": "response", "name": "DeleteAclsResponse", // Version 0 was removed in Apache Kafka 4.0, Version 1 is the new baseline. // Version 1 adds the resource pattern type. // Starting in version 1, on quota violation, brokers send out responses before throttling. // Version 2 enables flexible versions. // Version 3 adds the user resource type. "validVersions": "1-3", "flexibleVersions": "2+", "fields": [ { "name": "ThrottleTimeMs", "type": "int32", "versions": "0+", "about": "The duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota." }, { "name": "FilterResults", "type": "[]DeleteAclsFilterResult", "versions": "0+", "about": "The results for each filter.", "fields": [ { "name": "ErrorCode", "type": "int16", "versions": "0+", "about": "The error code, or 0 if the filter succeeded." }, { "name": "ErrorMessage", "type": "string", "versions": "0+", "nullableVersions": "0+", "about": "The error message, or null if the filter succeeded." }, { "name": "MatchingAcls", "type": "[]DeleteAclsMatchingAcl", "versions": "0+", "about": "The ACLs which matched this filter.", "fields": [ { "name": "ErrorCode", "type": "int16", "versions": "0+", "about": "The deletion error code, or 0 if the deletion succeeded." }, { "name": "ErrorMessage", "type": "string", "versions": "0+", "nullableVersions": "0+", "about": "The deletion error message, or null if the deletion succeeded." }, { "name": "ResourceType", "type": "int8", "versions": "0+", "about": "The ACL resource type." }, { "name": "ResourceName", "type": "string", "versions": "0+", "about": "The ACL resource name." }, { "name": "PatternType", "type": "int8", "versions": "1+", "default": "3", "ignorable": false, "about": "The ACL resource pattern type." }, { "name": "Principal", "type": "string", "versions": "0+", "about": "The ACL principal." }, { "name": "Host", "type": "string", "versions": "0+", "about": "The ACL host." }, { "name": "Operation", "type": "int8", "versions": "0+", "about": "The ACL operation." }, { "name": "PermissionType", "type": "int8", "versions": "0+", "about": "The ACL permission type." } ]} ]} ] }