kafka__CreateReassignmentTask
Creates a Kafka partition reassignment task or estimates its completion time by redistributing partitions across brokers for an instance, with optional scheduled execution.
Instructions
[KAFKA] 该接口用于向Kafka实例提交分区平衡任务或计算分区平衡预估时间。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instance_id": "<instance_id>",
"project_id": "<project_id>",
"reassignments": "<reassignments>"
},
"name": "kafka__CreateReassignmentTask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| throttle | No | 分区平衡门限值。 | |
| execute_at | No | 定时时间,格式为Unix时间戳,单位为毫秒 | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](kafka-api-0036212547.xml)。 | |
| instance_id | Yes | 实例ID。 | |
| is_schedule | No | 是否作为定时任务执行。若非定时执行,is_schedule和execute_at字段可为空。若为定时执行,is_schedule为true,execute_at字段非空。 | |
| reassignments | Yes | 分区平衡分配方案。 | |
| time_estimate | No | 设为true表示执行时间预估任务,false为执行分区平衡任务。 |