Skip to main content

client_quotas

Creates, updates, deletes, gets or lists a client_quotas resource.

Overview

Nameclient_quotas
TypeResource
Idconfluent.quotas.client_quotas

Fields

The following fields are returned by SELECT queries:

Client Quota.

NameDatatypeDescription
idstringID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object kinds or objects of the same kind within a different scope/namespace ("space"). (example: dlz-f3a90de)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (kafka-quotas/v1)
kindstringKind defines the object this REST resource represents. (ClientQuota)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
specobjectThe desired state of the Client Quota

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_kafka_quotas_v1_client_quotaselectidMake a request to read a client quota.
list_kafka_quotas_v1_client_quotasselectspec.cluster, environmentpage_size, page_tokenRetrieve a sorted, filtered, paginated list of all client quotas.
create_kafka_quotas_v1_client_quotainsertMake a request to create a client quota.
update_kafka_quotas_v1_client_quotaupdateid, specMake a request to update a client quota.

delete_kafka_quotas_v1_client_quotadeleteidMake a request to delete a client quota.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
environmentstringFilter the results by exact match for environment. (example: env-xxxxx)
idstringThe unique identifier for the client quota.
spec.clusterstringFilter the results by exact match for spec.cluster. (example: lkc-xxxxx)
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.

SELECT examples

Make a request to read a client quota.

SELECT
id,
api_version,
kind,
metadata,
spec
FROM confluent.quotas.client_quotas
WHERE id = '{{ id }}' -- required
;

INSERT examples

Make a request to create a client quota.

INSERT INTO confluent.quotas.client_quotas (

)
SELECT

RETURNING
id,
api_version,
kind,
metadata,
spec
;

UPDATE examples

Make a request to update a client quota.

UPDATE confluent.quotas.client_quotas
SET
spec = '{{ spec }}'
WHERE
id = '{{ id }}' --required
AND spec = '{{ spec }}' --required
RETURNING
id,
api_version,
kind,
metadata,
spec;

DELETE examples

Make a request to delete a client quota.

DELETE FROM confluent.quotas.client_quotas
WHERE id = '{{ id }}' --required
;