The ports command retrieves the Kafka cluster ports, indicating the leader with an * (asterisk).

JSON Input Data Format
{
    "id": string
}
id * Specifies the ID of the instance.
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": "*      41737,  33961,  33395,"
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}