Querying Kafka Cluster Information
Function
This API is used to query Kafka cluster information.
Calling Method
For details, see Calling APIs.
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. |
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.

