This API is used to add partitions to a topic for a Kafka instance.
This API is out-of-date and may not be maintained in the future. Please use the API described in Modifying Topics of a Kafka Instance.
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 a project ID, see Obtaining a Project ID. |
instance_id |
Yes |
String |
Instance ID. |
topic |
Yes |
String |
Topic name. |
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. |
None.
Adding partitions to a topic.
POST https://{endpoint}/v2/{project_id}/instances/{instance_id}/management/topics/{topic}/partitions-reassignment { "partition" : 3 }
None.
Status Code |
Description |
---|---|
204 |
Partitions added successfully. |
For details, see Error Codes.