Adding Partitions to a Topic for a Kafka Instance
Function
This API is used to add partitions to a topic for a Kafka instance.
URI
POST /v2/{project_id}/instances/{instance_id}/management/topics/{topic}/partitions-reassignment
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain it, see Obtaining a 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 and smaller than or equal to . |
Response Parameters
None
Example Requests
Adding topic partitions
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot