Adding Partitions to a Topic for a Kafka Instance
Function
This API is used to add partitions to a topic for a Kafka instance.
Debugging
You can use API Explorer to debug this API.
URI
POST /v2/{project_id}/instances/{instance_id}/management/topics/{topic}/partitions-reassignment
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
| instance_id | Yes | String | Instance ID. |
| topic | Yes | String | Topic name. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| partition | No | Integer | Total number of partitions after the addition. The value must be larger than current number of partitions. Maximum value: 100. |
Response Parameters
None
Example Requests
POST https://{endpoint}/v2/{project_id}/instances/{instance_id}/management/topics/{topic}/partitions-reassignment
{
"partition" : 3
} Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 204 | Partitions are added successfully. |
Error Codes
See Error Codes.
Last Article: Querying Coordinator Details of a Kafka Instance
Next Article: Reassigning Replicas of a Topic for a Kafka Instance
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.