Adding 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 Adding Partitions to a Topic for a Kafka Instance.

URI

POST /v1.0/{project_id}/instances/{instance_id}/manage/topics/{topic}/partitions-reassignment

The following table describes the parameters.

Table 1 Parameters

Parameter

Type

Mandatory

Description

project_id

String

Yes

Project ID.

instance_id

String

Yes

Instance ID.

topic

String

Yes

Topic name.

Request

Request parameters

Table 2 Parameter

Parameter

Type

Mandatory

Description

partition

Integer

Yes

Total number of partitions after the addition. The value must be larger than current number of partitions. Maximum value: 100.

Example request

{
    "partition": 3
}

Response

Response parameters

None.

Example response

None.

Status Code

The following table describes the status code for successful operations.

Table 3 Status code

Status Code

Description

204

Partitions added successfully.