Deleting a User or Client Quota

Updated on 2025-03-07 GMT+08:00

Function

This API is used to submit a task of deleting a user or client quota from a Kafka instance. A job_id is returned if the task succeeds.

Calling Method

For details, see Calling APIs.

URI

DELETE /v2/kafka/{project_id}/instances/{instance_id}/kafka-user-client-quota

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

instance_id

Yes

String

Instance ID.

project_id

Yes

String

Project ID. For details, see Obtaining a Project ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

user

No

String

Username.

Either the username or the client ID must be specified if the quotas are not applied to all users or clients.

client

No

String

Client ID.

Either the username or the client ID must be specified if the quotas are not applied to all users or clients.

user-default

No

Boolean

Indicates whether to use the default user settings.

  • Yes: Apply the quota to all users. In this case, the username cannot be set.

  • No: Apply the quota to specific users. In this case, set the username.

client-default

No

Boolean

Indicates whether to use the default client settings.

  • Yes: Apply the quota to all clients. In this case, the client ID cannot be set.

  • No: Apply the quota to specific clients. In this case, set the client ID.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

job_id

String

ID of the task for deleting quotas.

Example Requests

Deleting a user or client quota

DELETE https://{endpoint}/v2/kafka/{project_id}/instances/{instance_id}/kafka-user-client-quota

{
  "user" : "",
  "client" : "",
  "user-default" : false,
  "client-default" : true
}

Example Responses

Status code: 200

User or client quotas deleted.

{
  "job_id" : "ff8080828bdc0f64018bdcadfd8f00d7"
}

Status Codes

Status Code

Description

200

User or client quotas deleted.

Error Codes

See Error Codes.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback