Rest API for Collecting JMX Metric Data
GET /jmx/v1
Type | Name | Description | Schema |
---|---|---|---|
Query |
jmxurl |
Parameter jmxurl should be a comma-separated list of {IP:Port} or set to 'default' |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< JMXMetricDataV1 > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Fetch JMX metric data with query filter. You can get the query filter template through the API /jmx/v2/filters.
POST /jmx/v2
Type | Name | Description | Schema |
---|---|---|---|
Query |
jmxurl |
Parameter jmxurl should be a comma-separated list of {IP:Port} or set to 'default' |
string |
Body |
jmxQuery |
jmxQuery |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< JMXMetricData > array |
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Kafka Controller
GET /kafka/brokers
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< BrokerInfo > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/brokers/logdirs
Type | Name | Description | Schema |
---|---|---|---|
Query |
brokerList |
brokerList |
< integer(int32) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, < string > array > map |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
POST /kafka/brokers/logdirs/detail
Type | Name | Description | Schema |
---|---|---|---|
Query |
brokerList |
brokerList |
< integer(int32) > array(multi) |
Query |
logDirList |
logDirList |
< string > array(multi) |
Body |
topicPartitionMap |
topicPartitionMap |
< string, < integer(int32) > array > map |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, < string, LogDirInfo > map > map |
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/brokers/replicalogdir/{brokerId}/{topic}/{partition}
Type | Name | Description | Schema |
---|---|---|---|
Path |
brokerId |
brokerId |
integer(int32) |
Path |
partition |
partition |
integer(int32) |
Path |
topic |
topic |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/brokers/{brokerId}/conf
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< CustomConfigEntry > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/brokers/{brokerId}/dynconf
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, object > map |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
PUT /kafka/brokers/{brokerId}/dynconf
Type | Name | Description | Schema |
---|---|---|---|
Path |
brokerId |
brokerId |
integer(int32) |
Body |
props |
props |
< string, object > map |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, object > map |
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
DELETE /kafka/brokers/{brokerId}/dynconf
Type | Name | Description | Schema |
---|---|---|---|
Path |
brokerId |
brokerId |
integer(int32) |
Query |
configKeysToBeRemoved |
configKeysToBeRemoved |
< string > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
No Content |
204 |
No Content |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
GET /kafka/cluster
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/consumer/{topic}/{partition}/{offset}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
offset |
[long/yyyy-MM-dd HH:mm:ss.SSS] can be supported. |
string |
|
Path |
partition |
partition |
integer(int32) |
|
Path |
topic |
topic |
string |
|
Query |
avroSchema |
avroSchema |
string |
|
Query |
fetchTimeoutMs |
fetchTimeoutMs |
integer(int64) |
|
Query |
keyDecoder |
keyDecoder |
string |
|
Query |
maxRecords |
maxRecords |
integer(int32) |
|
Query |
valueDecoder |
valueDecoder |
string |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< Record > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
DELETE /kafka/consumergroup/{consumergroup}/{type}
Type | Name | Description | Schema |
---|---|---|---|
Path |
consumergroup |
consumergroup |
string |
Path |
type |
type |
enum (NEW, OLD) |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
204 |
No Content |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
GET /kafka/consumergroup/{consumergroup}/{type}/topic/{topic}/lastcommittime
Type | Name | Description | Schema |
---|---|---|---|
Path |
consumergroup |
consumergroup |
string |
Path |
topic |
topic |
string |
Path |
type |
type |
enum (NEW, OLD) |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, < string, integer(int64) > map > map |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Reset consumer group offset, earliest/latest can be used. Support reset by time for new consumer group, pass a parameter that satisfies yyyy-MM-dd HH:mm:ss.SSS to offset.
PUT /kafka/consumergroup/{consumergroup}/{type}/topic/{topic}/{partition}/{offset}
Type | Name | Description | Schema |
---|---|---|---|
Path |
consumergroup |
consumergroup |
string |
Path |
offset |
[earliest/latest/{long}/yyyy-MM-dd HH:mm:ss.SSS] can be supported. The date type is only valid for new consumer group. |
string |
Path |
partition |
partition |
integer(int32) |
Path |
topic |
topic |
string |
Path |
type |
type |
enum (NEW, OLD) |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/consumergroups
Type | Name | Description | Schema |
---|---|---|---|
Query |
topic |
topic |
string |
Query |
type |
type |
enum (NEW, OLD) |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, < string > array > map |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Get all the meta data of new consumer groups, including state, coordinator, assignmentStrategy, members
GET /kafka/consumergroups/meta
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< ConsumerGroupMeta > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Get the meta data of the specify new consumer group, including state, coordinator, assignmentStrategy, members
GET /kafka/consumergroups/{consumerGroup}/meta
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/consumergroups/{consumerGroup}/{type}
Type | Name | Description | Schema |
---|---|---|---|
Path |
consumerGroup |
consumerGroup |
string |
Path |
type |
type |
enum (NEW, OLD) |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, < ConsumerGroupDesc > array > map |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/consumergroups/{consumerGroup}/{type}/topic
Type | Name | Description | Schema |
---|---|---|---|
Path |
consumerGroup |
consumerGroup |
string |
Path |
type |
type |
enum (NEW, OLD) |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/consumergroups/{type}/topic/{topic}
Type | Name | Description | Schema |
---|---|---|---|
Path |
topic |
topic |
string |
Path |
type |
type |
enum (NEW, OLD) |
Query |
consumerGroup |
consumerGroup |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< ConsumerGroupDesc > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/controller
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/health
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
POST /kafka/partitions/add
Type | Name | Description | Schema |
---|---|---|---|
Body |
addPartitions |
addPartitions |
< AddPartition > array |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, GeneralResponse > map |
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
PUT /kafka/partitions/preferredreplica/elect
Type | Name | Description | Schema |
---|---|---|---|
Body |
partitionList |
partitionList |
< TopicPartition > array |
HTTP Code | Description | Schema |
---|---|---|
-1 |
Other preferred replica elect is in progress |
No Content |
-2 |
Partition doesn’t exist |
No Content |
0 |
Successfully started preferred replica election |
No Content |
200 |
OK |
< string, integer(int32) > map |
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
PUT /kafka/partitions/reassign/check
Type | Name | Description | Schema |
---|---|---|---|
Body |
reassign |
reassign |
HTTP Code | Description | Schema |
---|---|---|
-1 |
Reassignment Failed |
No Content |
0 |
Reassignment In Progress |
No Content |
1 |
Reassignment Completed |
No Content |
200 |
OK |
|
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
PUT /kafka/partitions/reassign/execute
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
interBrokerThrottle |
interBrokerThrottle |
integer(int64) |
|
Query |
replicaAlterLogDirsThrottle |
replicaAlterLogDirsThrottle |
integer(int64) |
|
Query |
timeoutMs |
timeoutMs |
integer(int64) |
|
Body |
reassign |
reassign |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
POST /kafka/partitions/reassign/generate
Type | Name | Description | Schema |
---|---|---|---|
Body |
reassignWrapper |
reassignWrapper |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< ReassignModel > array |
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
PUT /kafka/partitions/reassign/stop
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/topics
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
DELETE /kafka/topics
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, GeneralResponse > map |
204 |
No Content |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
POST /kafka/topics/create
Type | Name | Description | Schema |
---|---|---|---|
Body |
topicList |
topicList |
< TopicDetail > array |
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
< string, GeneralResponse > map |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
POST /kafka/topics/create/check
Type | Name | Description | Schema |
---|---|---|---|
Body |
topicList |
topicList |
< TopicDetail > array |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/topics/{topic}
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/topics/{topic}/conf
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< CustomConfigEntry > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
PUT /kafka/topics/{topic}/conf
Type | Name | Description | Schema |
---|---|---|---|
Path |
topic |
topic |
string |
Body |
props |
props |
< string, object > map |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< CustomConfigEntry > array |
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/topics/{topic}/conf/{key}
Type | Name | Description | Schema |
---|---|---|---|
Path |
key |
key |
string |
Path |
topic |
topic |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, object > map |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
PUT /kafka/topics/{topic}/conf/{key}={value}
Type | Name | Description | Schema |
---|---|---|---|
Path |
key |
key |
string |
Path |
topic |
topic |
string |
Path |
value |
value |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< CustomConfigEntry > array |
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/topics/{topic}/dynconf
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, object > map |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/topics/{topic}/exist
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
boolean |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /kafka/topicsbrief
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< TopicBrief > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Schema Registry Controller
GET /schemaregistry/schemas/ids/{schemaId}
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /schemaregistry/subjects
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< SchemaRegistryMetadata > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
POST /schemaregistry/subjects/{subject}
Type | Name | Description | Schema |
---|---|---|---|
Path |
subject |
subject |
string |
Query |
schemaStr |
schemaStr |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /schemaregistry/subjects/{subject}
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
DELETE /schemaregistry/subjects/{subject}
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< integer(int32) > array |
204 |
No Content |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
POST /schemaregistry/subjects/{subject}/versions
Type | Name | Description | Schema |
---|---|---|---|
Path |
subject |
subject |
string |
Query |
schemaStr |
schemaStr |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
integer(int32) |
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /schemaregistry/subjects/{subject}/versions
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< integer(int32) > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /schemaregistry/subjects/{subject}/versions/{versionId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
subject |
subject |
string |
Path |
versionId |
versionId |
integer(int32) |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Security User Management Controller.
POST /users
Type | Name | Description | Schema |
---|---|---|---|
Body |
user |
user |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /users
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
PUT /users
Type | Name | Description | Schema |
---|---|---|---|
Body |
user |
user |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
DELETE /users/{username}
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
204 |
No Content |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
Zookeeper Controller
GET /zk/connstate
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
string |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /zk/env
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, ZkServerEnvironment > map |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /zk/get/path
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
string |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /zk/ls/path
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
GET /zk/stat
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< string, ZkServerStat > map |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |