Disable/enable all partitions of a topic

POST /v1/cluster/partitions/{namespace}/{topic}

Disable or enable all partitions of a topic. To disable, use {'disabled': true} in request body. To enable, use {'disabled': false}.

Path parameters

  • namespace string Required
  • topic string Required
application/json

Body Required

  • disabled boolean

Responses

  • 200

    Partitions disabled or enabled successfully

POST /v1/cluster/partitions/{namespace}/{topic}
curl \
 --request POST 'http://localhost:9644/v1/cluster/partitions/{namespace}/{topic}' \
 --header "Content-Type: application/json" \
 --data '{"disabled":true}'
Request examples
{
  "disabled": true
}