Set or remove quota values for an entity
PUT
/api/v1/clusters/{id}/quotas
const url = 'http://localhost:8080/api/v1/clusters/example/quotas';const options = { method: 'PUT', headers: { cookie: 'brokerium_session=<brokerium_session>', 'X-Brokerium-Request': '1', 'Content-Type': 'application/json' }, body: '{"entity":[{"type":"user","name":"example"}],"set":{"additionalProperty":1},"remove":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8080/api/v1/clusters/example/quotas \ --header 'Content-Type: application/json' \ --header 'X-Brokerium-Request: 1' \ --cookie brokerium_session=<brokerium_session> \ --data '{ "entity": [ { "type": "user", "name": "example" } ], "set": { "additionalProperty": 1 }, "remove": [ "example" ] }'Role: operator.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”X-Brokerium-Request
required
string
Required on every non-GET request.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
entity
required
Array<object>
object
type
required
string
name
Null selects the default entity.
string | null
set
object
key
additional properties
number
remove
Array<string>
Responses
Section titled “Responses”Applied.
Error.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example generated
{ "error": { "code": "example", "message": "example" }}Apache®, Apache Kafka® and Kafka® are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries. Brokerium is not affiliated with, endorsed by, or sponsored by the Apache Software Foundation.