[ https://issues.apache.org/jira/browse/KAFKA-14357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17634397#comment-17634397 ]
Mickael Maison commented on KAFKA-14357: ---------------------------------------- Looking further into describeClientQuotas() it doesn't quite work like I thought. Some ClientQuotaFilterComponent can be additive, for example it's possible to describe quotas for a USER and CLIENT_ID combination. On the other hand it's not possible to combine them with an IP entity. For this reason it's probably best to keep the current restrictions, only a single entry per entity type, on ClientQuotaFilterComponent to preserve the current semantics. So if we want to describe multiple entities, we should have a collection of ClientQuotaFilter objects, so we basically end up with an API like the proposed describeAcls(). {code:java} Collection<ClientQuotaFilter> filters = Arrays.asList( ClientQuotaFilter.contains(Collections.singletonList(ClientQuotaFilterComponent.ofEntity(USER, "user1"))), ClientQuotaFilter.contains(Collections.singletonList(ClientQuotaFilterComponent.ofEntity(USER, "user2"))) ); DescribeClientQuotasResult quotas = admin.describeClientQuotas(filters); {code} > Make it possible to batch describe requests in the Kafka Admin API > ------------------------------------------------------------------ > > Key: KAFKA-14357 > URL: https://issues.apache.org/jira/browse/KAFKA-14357 > Project: Kafka > Issue Type: Improvement > Reporter: Jakub Scholz > Priority: Major > > The Admin API has several methods to describe different objects such as ACLs, > Quotas or SCRAM-SHA users. But these API seem to be usable only in one for > the two modes: > * Query or one users ACLs / Quotas / SCRAM-SHA credentials > * Query all existing ACLs / Quotas / SCRAM-SHA credentials > But there seems to be no way how to batch the describe requests for multiple > users. E.g. {_}describe ACLs of users Joe, John and Mike{_}. It would be nice > to have such option as it might make it easier for applications using the > Admin API to make less different API calls. -- This message was sent by Atlassian Jira (v8.20.10#820010)