Querying Kafka Cluster Information
Function
This API is used to query Kafka cluster information.
URI
GET /v2/{project_id}/instances/{instance_id}/manage/cluster
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| instance_id | Yes | String | Definition Instance ID. You can call the API for querying all instances to obtain the instance ID. The instance ID is in the response body. Constraints N/A Range N/A Default Value N/A |
| project_id | Yes | String | Definition Project ID. For details, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| cluster | cluster object | Definition Cluster information. |
| Parameter | Type | Description |
|---|---|---|
| brokers | Array of brokers objects | Definition Broker details. |
Example Requests
GET https://{endpoint}/v2/{project_id}/instances/{instance_id}/manage/cluster Example Responses
Status code: 200
Kafka cluster information queried.
{
"cluster" : {
"brokers" : [ {
"host" : "192.168.0.1",
"port" : 9092,
"broker_id" : 0,
"health" : true
}, {
"host" : "192.168.0.2",
"port" : 9092,
"broker_id" : 1,
"health" : true
}, {
"host" : "192.168.0.3",
"port" : 9092,
"broker_id" : 2,
"health" : true
} ]
}
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Kafka cluster information queried. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot