kafka-ui-api.yaml 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723
  1. openapi: 3.0.0
  2. info:
  3. description: Api Documentation
  4. version: 0.1.0
  5. title: Api Documentation
  6. termsOfService: urn:tos
  7. contact: {}
  8. license:
  9. name: Apache 2.0
  10. url: http://www.apache.org/licenses/LICENSE-2.0
  11. tags:
  12. - name: /api/clusters
  13. - name: /api/clusters/connects
  14. servers:
  15. - url: /localhost
  16. paths:
  17. /api/clusters:
  18. get:
  19. tags:
  20. - Clusters
  21. summary: getClusters
  22. operationId: getClusters
  23. responses:
  24. 200:
  25. description: OK
  26. content:
  27. application/json:
  28. schema:
  29. type: array
  30. items:
  31. $ref: '#/components/schemas/Cluster'
  32. /api/clusters/{clusterName}/cache:
  33. post:
  34. tags:
  35. - Clusters
  36. summary: updateClusterInfo
  37. operationId: updateClusterInfo
  38. parameters:
  39. - name: clusterName
  40. in: path
  41. required: true
  42. schema:
  43. type: string
  44. responses:
  45. 200:
  46. description: OK
  47. content:
  48. application/json:
  49. schema:
  50. $ref: '#/components/schemas/Cluster'
  51. 404:
  52. description: Not found
  53. /api/clusters/{clusterName}/brokers:
  54. get:
  55. tags:
  56. - Brokers
  57. summary: getBrokers
  58. operationId: getBrokers
  59. parameters:
  60. - name: clusterName
  61. in: path
  62. required: true
  63. schema:
  64. type: string
  65. responses:
  66. 200:
  67. description: OK
  68. content:
  69. application/json:
  70. schema:
  71. type: array
  72. items:
  73. $ref: '#/components/schemas/Broker'
  74. /api/clusters/{clusterName}/brokers/{id}/configs:
  75. get:
  76. tags:
  77. - Brokers
  78. summary: getBrokerConfig
  79. operationId: getBrokerConfig
  80. parameters:
  81. - name: clusterName
  82. in: path
  83. required: true
  84. schema:
  85. type: string
  86. - name: id
  87. in: path
  88. required: true
  89. schema:
  90. type: integer
  91. responses:
  92. 200:
  93. description: OK
  94. content:
  95. application/json:
  96. schema:
  97. type: array
  98. items:
  99. $ref: '#/components/schemas/BrokerConfig'
  100. 404:
  101. description: Not found
  102. /api/clusters/{clusterName}/brokers/{id}/configs/{name}:
  103. put:
  104. tags:
  105. - Brokers
  106. summary: updateBrokerConfigByName
  107. operationId: updateBrokerConfigByName
  108. parameters:
  109. - name: clusterName
  110. in: path
  111. required: true
  112. schema:
  113. type: string
  114. - name: id
  115. in: path
  116. required: true
  117. schema:
  118. type: integer
  119. - name: name
  120. in: path
  121. required: true
  122. schema:
  123. type: string
  124. requestBody:
  125. content:
  126. application/json:
  127. schema:
  128. $ref: '#/components/schemas/BrokerConfigItem'
  129. responses:
  130. 200:
  131. description: OK
  132. /api/clusters/{clusterName}/metrics:
  133. get:
  134. tags:
  135. - Clusters
  136. summary: getClusterMetrics
  137. operationId: getClusterMetrics
  138. parameters:
  139. - name: clusterName
  140. in: path
  141. required: true
  142. schema:
  143. type: string
  144. responses:
  145. 200:
  146. description: OK
  147. content:
  148. application/json:
  149. schema:
  150. $ref: '#/components/schemas/ClusterMetrics'
  151. /api/clusters/{clusterName}/stats:
  152. get:
  153. tags:
  154. - Clusters
  155. summary: getClusterStats
  156. operationId: getClusterStats
  157. parameters:
  158. - name: clusterName
  159. in: path
  160. required: true
  161. schema:
  162. type: string
  163. responses:
  164. 200:
  165. description: OK
  166. content:
  167. application/json:
  168. schema:
  169. $ref: '#/components/schemas/ClusterStats'
  170. /api/clusters/{clusterName}/brokers/{id}/metrics:
  171. get:
  172. tags:
  173. - Brokers
  174. summary: getBrokersMetrics
  175. operationId: getBrokersMetrics
  176. parameters:
  177. - name: clusterName
  178. in: path
  179. required: true
  180. schema:
  181. type: string
  182. - name: id
  183. in: path
  184. required: true
  185. schema:
  186. type: integer
  187. responses:
  188. 200:
  189. description: OK
  190. content:
  191. application/json:
  192. schema:
  193. $ref: '#/components/schemas/BrokerMetrics'
  194. /api/clusters/{clusterName}/brokers/logdirs:
  195. get:
  196. tags:
  197. - Brokers
  198. summary: getAllBrokersLogdirs
  199. operationId: getAllBrokersLogdirs
  200. parameters:
  201. - name: clusterName
  202. in: path
  203. required: true
  204. schema:
  205. type: string
  206. - name: broker
  207. in: query
  208. description: array of broker ids
  209. required: false
  210. schema:
  211. type: array
  212. items:
  213. type: integer
  214. responses:
  215. 200:
  216. description: OK
  217. content:
  218. application/json:
  219. schema:
  220. type: array
  221. items:
  222. $ref: '#/components/schemas/BrokersLogdirs'
  223. /api/clusters/{clusterName}/brokers/{id}/logdirs:
  224. patch:
  225. tags:
  226. - Brokers
  227. summary: updateBrokerTopicPartitionLogDir
  228. operationId: updateBrokerTopicPartitionLogDir
  229. parameters:
  230. - name: clusterName
  231. in: path
  232. required: true
  233. schema:
  234. type: string
  235. - name: id
  236. in: path
  237. required: true
  238. schema:
  239. type: integer
  240. requestBody:
  241. content:
  242. application/json:
  243. schema:
  244. $ref: '#/components/schemas/BrokerLogdirUpdate'
  245. responses:
  246. 200:
  247. description: OK
  248. /api/clusters/{clusterName}/topics:
  249. get:
  250. tags:
  251. - Topics
  252. summary: getTopics
  253. operationId: getTopics
  254. parameters:
  255. - name: clusterName
  256. in: path
  257. required: true
  258. schema:
  259. type: string
  260. - name: page
  261. in: query
  262. required: false
  263. schema:
  264. type: integer
  265. - name: perPage
  266. in: query
  267. required: false
  268. schema:
  269. type: integer
  270. - name: showInternal
  271. in: query
  272. required: false
  273. schema:
  274. type: boolean
  275. - name: search
  276. in: query
  277. required: false
  278. schema:
  279. type: string
  280. - name: orderBy
  281. in: query
  282. required: false
  283. schema:
  284. $ref: '#/components/schemas/TopicColumnsToSort'
  285. responses:
  286. 200:
  287. description: OK
  288. content:
  289. application/json:
  290. schema:
  291. $ref: '#/components/schemas/TopicsResponse'
  292. post:
  293. tags:
  294. - Topics
  295. summary: createTopic
  296. operationId: createTopic
  297. parameters:
  298. - name: clusterName
  299. in: path
  300. required: true
  301. schema:
  302. type: string
  303. requestBody:
  304. content:
  305. application/json:
  306. schema:
  307. $ref: '#/components/schemas/TopicCreation'
  308. responses:
  309. 201:
  310. description: Created
  311. content:
  312. application/json:
  313. schema:
  314. $ref: '#/components/schemas/Topic'
  315. /api/clusters/{clusterName}/topics/{topicName}:
  316. get:
  317. tags:
  318. - Topics
  319. summary: getTopicDetails
  320. operationId: getTopicDetails
  321. parameters:
  322. - name: clusterName
  323. in: path
  324. required: true
  325. schema:
  326. type: string
  327. - name: topicName
  328. in: path
  329. required: true
  330. schema:
  331. type: string
  332. responses:
  333. 200:
  334. description: OK
  335. content:
  336. application/json:
  337. schema:
  338. $ref: '#/components/schemas/TopicDetails'
  339. patch:
  340. tags:
  341. - Topics
  342. summary: updateTopic
  343. operationId: updateTopic
  344. parameters:
  345. - name: clusterName
  346. in: path
  347. required: true
  348. schema:
  349. type: string
  350. - name: topicName
  351. in: path
  352. required: true
  353. schema:
  354. type: string
  355. requestBody:
  356. content:
  357. application/json:
  358. schema:
  359. $ref: '#/components/schemas/TopicUpdate'
  360. responses:
  361. 200:
  362. description: Updated
  363. content:
  364. application/json:
  365. schema:
  366. $ref: '#/components/schemas/Topic'
  367. delete:
  368. tags:
  369. - Topics
  370. summary: deleteTopic
  371. operationId: deleteTopic
  372. parameters:
  373. - name: clusterName
  374. in: path
  375. required: true
  376. schema:
  377. type: string
  378. - name: topicName
  379. in: path
  380. required: true
  381. schema:
  382. type: string
  383. responses:
  384. 200:
  385. description: OK
  386. 404:
  387. description: Not found
  388. /api/clusters/{clusterName}/topics/{topicName}/config:
  389. get:
  390. tags:
  391. - Topics
  392. summary: getTopicConfigs
  393. operationId: getTopicConfigs
  394. parameters:
  395. - name: clusterName
  396. in: path
  397. required: true
  398. schema:
  399. type: string
  400. - name: topicName
  401. in: path
  402. required: true
  403. schema:
  404. type: string
  405. responses:
  406. 200:
  407. description: OK
  408. content:
  409. application/json:
  410. schema:
  411. type: array
  412. items:
  413. $ref: '#/components/schemas/TopicConfig'
  414. /api/clusters/{clusterName}/topics/{topicName}/replications:
  415. patch:
  416. tags:
  417. - Topics
  418. summary: changeReplicationFactor
  419. operationId: changeReplicationFactor
  420. parameters:
  421. - name: clusterName
  422. in: path
  423. required: true
  424. schema:
  425. type: string
  426. - name: topicName
  427. in: path
  428. required: true
  429. schema:
  430. type: string
  431. requestBody:
  432. content:
  433. application/json:
  434. schema:
  435. $ref: '#/components/schemas/ReplicationFactorChange'
  436. responses:
  437. 200:
  438. description: OK
  439. content:
  440. application/json:
  441. schema:
  442. $ref: '#/components/schemas/ReplicationFactorChangeResponse'
  443. 404:
  444. description: Not found
  445. /api/clusters/{clusterName}/topics/{topicName}/messages:
  446. get:
  447. tags:
  448. - Messages
  449. summary: getTopicMessages
  450. operationId: getTopicMessages
  451. parameters:
  452. - name: clusterName
  453. in: path
  454. required: true
  455. schema:
  456. type: string
  457. - name: topicName
  458. in: path
  459. required: true
  460. schema:
  461. type: string
  462. - name: seekType
  463. in: query
  464. schema:
  465. $ref: "#/components/schemas/SeekType"
  466. - name: seekTo
  467. in: query
  468. schema:
  469. type: array
  470. items:
  471. type: string
  472. description: The format is [partition]::[offset] for specifying offsets or [partition]::[timestamp in millis] for specifying timestamps
  473. - name: limit
  474. in: query
  475. schema:
  476. type: integer
  477. - name: q
  478. in: query
  479. schema:
  480. type: string
  481. - name: seekDirection
  482. in: query
  483. schema:
  484. $ref: "#/components/schemas/SeekDirection"
  485. responses:
  486. 200:
  487. description: OK
  488. content:
  489. text/event-stream:
  490. schema:
  491. type: array
  492. items:
  493. $ref: '#/components/schemas/TopicMessageEvent'
  494. delete:
  495. tags:
  496. - Messages
  497. summary: deleteTopicMessages
  498. operationId: deleteTopicMessages
  499. parameters:
  500. - name: clusterName
  501. in: path
  502. required: true
  503. schema:
  504. type: string
  505. - name: topicName
  506. in: path
  507. required: true
  508. schema:
  509. type: string
  510. - name: partitions
  511. in: query
  512. required: false
  513. schema:
  514. type: array
  515. items:
  516. type: integer
  517. responses:
  518. 200:
  519. description: OK
  520. 404:
  521. description: Not found
  522. post:
  523. tags:
  524. - Messages
  525. summary: sendTopicMessages
  526. operationId: sendTopicMessages
  527. parameters:
  528. - name: clusterName
  529. in: path
  530. required: true
  531. schema:
  532. type: string
  533. - name: topicName
  534. in: path
  535. required: true
  536. schema:
  537. type: string
  538. requestBody:
  539. content:
  540. application/json:
  541. schema:
  542. $ref: '#/components/schemas/CreateTopicMessage'
  543. responses:
  544. 200:
  545. description: OK
  546. 404:
  547. description: Not found
  548. /api/clusters/{clusterName}/topics/{topicName}/messages/schema:
  549. get:
  550. tags:
  551. - Messages
  552. summary: getTopicSchema
  553. operationId: getTopicSchema
  554. parameters:
  555. - name: clusterName
  556. in: path
  557. required: true
  558. schema:
  559. type: string
  560. - name: topicName
  561. in: path
  562. required: true
  563. schema:
  564. type: string
  565. responses:
  566. 200:
  567. description: OK
  568. content:
  569. application/json:
  570. schema:
  571. $ref: '#/components/schemas/TopicMessageSchema'
  572. /api/clusters/{clusterName}/topics/{topicName}/consumer-groups:
  573. get:
  574. tags:
  575. - Consumer Groups
  576. summary: get Consumer Groups By Topics
  577. operationId: getTopicConsumerGroups
  578. parameters:
  579. - name: clusterName
  580. in: path
  581. required: true
  582. schema:
  583. type: string
  584. - name: topicName
  585. in: path
  586. required: true
  587. schema:
  588. type: string
  589. responses:
  590. 200:
  591. description: OK
  592. content:
  593. application/json:
  594. schema:
  595. type: array
  596. items:
  597. $ref: '#/components/schemas/ConsumerGroup'
  598. /api/clusters/{clusterName}/consumer-groups/paged:
  599. get:
  600. tags:
  601. - Consumer Groups
  602. summary: Get consumer croups with paging support
  603. operationId: getConsumerGroupsPage
  604. parameters:
  605. - name: clusterName
  606. in: path
  607. required: true
  608. schema:
  609. type: string
  610. - name: page
  611. in: query
  612. required: false
  613. schema:
  614. type: integer
  615. - name: perPage
  616. in: query
  617. required: false
  618. schema:
  619. type: integer
  620. - name: search
  621. in: query
  622. required: false
  623. schema:
  624. type: string
  625. - name: orderBy
  626. in: query
  627. required: false
  628. schema:
  629. $ref: '#/components/schemas/ConsumerGroupOrdering'
  630. responses:
  631. 200:
  632. description: OK
  633. content:
  634. application/json:
  635. schema:
  636. $ref: '#/components/schemas/ConsumerGroupsPageResponse'
  637. /api/clusters/{clusterName}/consumer-groups/{id}:
  638. get:
  639. tags:
  640. - Consumer Groups
  641. summary: get Consumer Group By Id
  642. operationId: getConsumerGroup
  643. parameters:
  644. - name: clusterName
  645. in: path
  646. required: true
  647. schema:
  648. type: string
  649. - name: id
  650. in: path
  651. required: true
  652. schema:
  653. type: string
  654. responses:
  655. 200:
  656. description: OK
  657. content:
  658. application/json:
  659. schema:
  660. $ref: '#/components/schemas/ConsumerGroupDetails'
  661. delete:
  662. tags:
  663. - Consumer Groups
  664. summary: Delete Consumer Group by ID
  665. operationId: deleteConsumerGroup
  666. parameters:
  667. - name: clusterName
  668. in: path
  669. required: true
  670. schema:
  671. type: string
  672. - name: id
  673. in: path
  674. required: true
  675. schema:
  676. type: string
  677. responses:
  678. 200:
  679. description: OK
  680. /api/clusters/{clusterName}/consumer-groups:
  681. get:
  682. tags:
  683. - Consumer Groups
  684. summary: get all ConsumerGroups
  685. operationId: getConsumerGroups
  686. parameters:
  687. - name: clusterName
  688. in: path
  689. required: true
  690. schema:
  691. type: string
  692. responses:
  693. 200:
  694. description: OK
  695. content:
  696. application/json:
  697. schema:
  698. type: array
  699. items:
  700. $ref: '#/components/schemas/ConsumerGroup'
  701. /api/clusters/{clusterName}/consumer-groups/{id}/offsets:
  702. post:
  703. tags:
  704. - Consumer Groups
  705. summary: resets consumer group offsets
  706. operationId: resetConsumerGroupOffsets
  707. parameters:
  708. - name: clusterName
  709. in: path
  710. required: true
  711. schema:
  712. type: string
  713. - name: id
  714. in: path
  715. required: true
  716. schema:
  717. type: string
  718. requestBody:
  719. content:
  720. application/json:
  721. schema:
  722. $ref: '#/components/schemas/ConsumerGroupOffsetsReset'
  723. responses:
  724. 200:
  725. description: OK
  726. /api/clusters/{clusterName}/schemas:
  727. post:
  728. tags:
  729. - Schemas
  730. summary: create a new subject schema
  731. operationId: createNewSchema
  732. parameters:
  733. - name: clusterName
  734. in: path
  735. required: true
  736. schema:
  737. type: string
  738. requestBody:
  739. content:
  740. application/json:
  741. schema:
  742. $ref: '#/components/schemas/NewSchemaSubject'
  743. responses:
  744. 200:
  745. description: Ok
  746. content:
  747. application/json:
  748. schema:
  749. $ref: '#/components/schemas/SchemaSubject'
  750. 400:
  751. description: Bad request
  752. 409:
  753. description: Duplicate schema
  754. 422:
  755. description: Invalid parameters
  756. get:
  757. tags:
  758. - Schemas
  759. summary: get all schemas of latest version from Schema Registry service
  760. operationId: getSchemas
  761. parameters:
  762. - name: clusterName
  763. in: path
  764. required: true
  765. schema:
  766. type: string
  767. - name: page
  768. in: query
  769. required: false
  770. schema:
  771. type: integer
  772. - name: perPage
  773. in: query
  774. required: false
  775. schema:
  776. type: integer
  777. - name: search
  778. in: query
  779. required: false
  780. schema:
  781. type: string
  782. responses:
  783. 200:
  784. description: OK
  785. content:
  786. application/json:
  787. schema:
  788. $ref: '#/components/schemas/SchemaSubjectsResponse'
  789. /api/clusters/{clusterName}/schemas/{subject}:
  790. delete:
  791. tags:
  792. - Schemas
  793. summary: delete schema from Schema Registry service
  794. operationId: deleteSchema
  795. parameters:
  796. - name: clusterName
  797. in: path
  798. required: true
  799. schema:
  800. type: string
  801. - name: subject
  802. in: path
  803. required: true
  804. schema:
  805. type: string
  806. responses:
  807. 200:
  808. description: OK
  809. 404:
  810. description: Not found
  811. /api/clusters/{clusterName}/schemas/{subject}/versions:
  812. get:
  813. tags:
  814. - Schemas
  815. summary: get all version of subject from Schema Registry service
  816. operationId: getAllVersionsBySubject
  817. parameters:
  818. - name: clusterName
  819. in: path
  820. required: true
  821. schema:
  822. type: string
  823. - name: subject
  824. in: path
  825. required: true
  826. schema:
  827. type: string
  828. responses:
  829. 200:
  830. description: OK
  831. content:
  832. application/json:
  833. schema:
  834. type: array
  835. items:
  836. $ref: '#/components/schemas/SchemaSubject'
  837. /api/clusters/{clusterName}/schemas/{subject}/latest:
  838. get:
  839. tags:
  840. - Schemas
  841. summary: get the latest schema from Schema Registry service
  842. operationId: getLatestSchema
  843. parameters:
  844. - name: clusterName
  845. in: path
  846. required: true
  847. schema:
  848. type: string
  849. - name: subject
  850. in: path
  851. required: true
  852. schema:
  853. type: string
  854. responses:
  855. 200:
  856. description: OK
  857. content:
  858. application/json:
  859. schema:
  860. $ref: '#/components/schemas/SchemaSubject'
  861. delete:
  862. tags:
  863. - Schemas
  864. summary: delete the latest schema from schema registry
  865. operationId: deleteLatestSchema
  866. parameters:
  867. - name: clusterName
  868. in: path
  869. required: true
  870. schema:
  871. type: string
  872. - name: subject
  873. in: path
  874. required: true
  875. schema:
  876. type: string
  877. responses:
  878. 200:
  879. description: OK
  880. 404:
  881. description: Not found
  882. /api/clusters/{clusterName}/schemas/{subject}/versions/{version}:
  883. get:
  884. tags:
  885. - Schemas
  886. summary: get schema by version from Schema Registry service
  887. operationId: getSchemaByVersion
  888. parameters:
  889. - name: clusterName
  890. in: path
  891. required: true
  892. schema:
  893. type: string
  894. - name: subject
  895. in: path
  896. required: true
  897. schema:
  898. type: string
  899. - name: version
  900. in: path
  901. required: true
  902. schema:
  903. type: integer
  904. responses:
  905. 200:
  906. description: OK
  907. content:
  908. application/json:
  909. schema:
  910. $ref: '#/components/schemas/SchemaSubject'
  911. delete:
  912. tags:
  913. - Schemas
  914. summary: delete schema by version from schema registry
  915. operationId: deleteSchemaByVersion
  916. parameters:
  917. - name: clusterName
  918. in: path
  919. required: true
  920. schema:
  921. type: string
  922. - name: subject
  923. in: path
  924. required: true
  925. schema:
  926. type: string
  927. - name: version
  928. in: path
  929. required: true
  930. schema:
  931. type: integer
  932. responses:
  933. 200:
  934. description: OK
  935. 404:
  936. description: Not found
  937. /api/clusters/{clusterName}/schemas/compatibility:
  938. get:
  939. tags:
  940. - Schemas
  941. summary: Get global schema compatibility level
  942. operationId: getGlobalSchemaCompatibilityLevel
  943. parameters:
  944. - name: clusterName
  945. in: path
  946. required: true
  947. schema:
  948. type: string
  949. responses:
  950. 200:
  951. description: OK
  952. content:
  953. application/json:
  954. schema:
  955. $ref: '#/components/schemas/CompatibilityLevel'
  956. put:
  957. tags:
  958. - Schemas
  959. summary: Update compatibility level globally
  960. operationId: updateGlobalSchemaCompatibilityLevel
  961. parameters:
  962. - name: clusterName
  963. in: path
  964. required: true
  965. schema:
  966. type: string
  967. requestBody:
  968. content:
  969. application/json:
  970. schema:
  971. $ref: '#/components/schemas/CompatibilityLevel'
  972. responses:
  973. 200:
  974. description: OK
  975. 404:
  976. description: Not Found
  977. /api/clusters/{clusterName}/schemas/{subject}/compatibility:
  978. put:
  979. tags:
  980. - Schemas
  981. summary: Update compatibility level for specific schema.
  982. operationId: updateSchemaCompatibilityLevel
  983. parameters:
  984. - name: clusterName
  985. in: path
  986. required: true
  987. schema:
  988. type: string
  989. - name: subject
  990. in: path
  991. required: true
  992. schema:
  993. type: string
  994. requestBody:
  995. content:
  996. application/json:
  997. schema:
  998. $ref: '#/components/schemas/CompatibilityLevel'
  999. responses:
  1000. 200:
  1001. description: OK
  1002. 404:
  1003. description: Not Found
  1004. /api/clusters/{clusterName}/schemas/{subject}/check:
  1005. post:
  1006. tags:
  1007. - Schemas
  1008. summary: Check compatibility of the schema.
  1009. operationId: checkSchemaCompatibility
  1010. parameters:
  1011. - name: clusterName
  1012. in: path
  1013. required: true
  1014. schema:
  1015. type: string
  1016. - name: subject
  1017. in: path
  1018. required: true
  1019. schema:
  1020. type: string
  1021. requestBody:
  1022. content:
  1023. application/json:
  1024. schema:
  1025. $ref: '#/components/schemas/NewSchemaSubject'
  1026. responses:
  1027. 200:
  1028. description: OK
  1029. content:
  1030. application/json:
  1031. schema:
  1032. $ref: '#/components/schemas/CompatibilityCheckResponse'
  1033. 404:
  1034. description: Not Found
  1035. /api/clusters/{clusterName}/connects:
  1036. get:
  1037. tags:
  1038. - Kafka Connect
  1039. summary: get all kafka connect instances
  1040. operationId: getConnects
  1041. parameters:
  1042. - name: clusterName
  1043. in: path
  1044. required: true
  1045. schema:
  1046. type: string
  1047. responses:
  1048. 200:
  1049. description: OK
  1050. content:
  1051. application/json:
  1052. schema:
  1053. type: array
  1054. items:
  1055. $ref: '#/components/schemas/Connect'
  1056. /api/clusters/{clusterName}/connectors:
  1057. get:
  1058. tags:
  1059. - Kafka Connect
  1060. summary: get filtered kafka connectors
  1061. operationId: getAllConnectors
  1062. parameters:
  1063. - name: clusterName
  1064. in: path
  1065. required: true
  1066. schema:
  1067. type: string
  1068. - name: search
  1069. in: query
  1070. required: false
  1071. schema:
  1072. type: string
  1073. responses:
  1074. 200:
  1075. description: OK
  1076. content:
  1077. application/json:
  1078. schema:
  1079. type: array
  1080. items:
  1081. $ref: '#/components/schemas/FullConnectorInfo'
  1082. /api/clusters/{clusterName}/connects/{connectName}/connectors:
  1083. get:
  1084. tags:
  1085. - Kafka Connect
  1086. summary: get connectors for provided kafka connect instance
  1087. operationId: getConnectors
  1088. parameters:
  1089. - name: clusterName
  1090. in: path
  1091. required: true
  1092. schema:
  1093. type: string
  1094. - name: connectName
  1095. in: path
  1096. required: true
  1097. schema:
  1098. type: string
  1099. responses:
  1100. 200:
  1101. description: OK
  1102. content:
  1103. application/json:
  1104. schema:
  1105. type: array
  1106. items:
  1107. type: string
  1108. post:
  1109. tags:
  1110. - Kafka Connect
  1111. summary: create new connector
  1112. operationId: createConnector
  1113. parameters:
  1114. - name: clusterName
  1115. in: path
  1116. required: true
  1117. schema:
  1118. type: string
  1119. - name: connectName
  1120. in: path
  1121. required: true
  1122. schema:
  1123. type: string
  1124. requestBody:
  1125. content:
  1126. application/json:
  1127. schema:
  1128. $ref: '#/components/schemas/NewConnector'
  1129. responses:
  1130. 200:
  1131. description: OK
  1132. content:
  1133. application/json:
  1134. schema:
  1135. $ref: '#/components/schemas/Connector'
  1136. 409:
  1137. description: rebalance is in progress
  1138. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}:
  1139. get:
  1140. tags:
  1141. - Kafka Connect
  1142. summary: get information about the connector
  1143. operationId: getConnector
  1144. parameters:
  1145. - name: clusterName
  1146. in: path
  1147. required: true
  1148. schema:
  1149. type: string
  1150. - name: connectName
  1151. in: path
  1152. required: true
  1153. schema:
  1154. type: string
  1155. - name: connectorName
  1156. in: path
  1157. required: true
  1158. schema:
  1159. type: string
  1160. responses:
  1161. 200:
  1162. description: OK
  1163. content:
  1164. application/json:
  1165. schema:
  1166. $ref: '#/components/schemas/Connector'
  1167. delete:
  1168. tags:
  1169. - Kafka Connect
  1170. summary: delete connector
  1171. operationId: deleteConnector
  1172. parameters:
  1173. - name: clusterName
  1174. in: path
  1175. required: true
  1176. schema:
  1177. type: string
  1178. - name: connectName
  1179. in: path
  1180. required: true
  1181. schema:
  1182. type: string
  1183. - name: connectorName
  1184. in: path
  1185. required: true
  1186. schema:
  1187. type: string
  1188. responses:
  1189. 200:
  1190. description: OK
  1191. 409:
  1192. description: rebalance is in progress
  1193. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/action/{action}:
  1194. post:
  1195. tags:
  1196. - Kafka Connect
  1197. summary: update connector state (restart, pause or resume)
  1198. operationId: updateConnectorState
  1199. parameters:
  1200. - name: clusterName
  1201. in: path
  1202. required: true
  1203. schema:
  1204. type: string
  1205. - name: connectName
  1206. in: path
  1207. required: true
  1208. schema:
  1209. type: string
  1210. - name: connectorName
  1211. in: path
  1212. required: true
  1213. schema:
  1214. type: string
  1215. - name: action
  1216. in: path
  1217. required: true
  1218. schema:
  1219. $ref: '#/components/schemas/ConnectorAction'
  1220. responses:
  1221. 200:
  1222. description: OK
  1223. 409:
  1224. description: rebalance is in progress
  1225. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/config:
  1226. get:
  1227. tags:
  1228. - Kafka Connect
  1229. summary: get connector configuration
  1230. operationId: getConnectorConfig
  1231. parameters:
  1232. - name: clusterName
  1233. in: path
  1234. required: true
  1235. schema:
  1236. type: string
  1237. - name: connectName
  1238. in: path
  1239. required: true
  1240. schema:
  1241. type: string
  1242. - name: connectorName
  1243. in: path
  1244. required: true
  1245. schema:
  1246. type: string
  1247. responses:
  1248. 200:
  1249. description: OK
  1250. content:
  1251. application/json:
  1252. schema:
  1253. $ref: '#/components/schemas/ConnectorConfig'
  1254. put:
  1255. tags:
  1256. - Kafka Connect
  1257. summary: update or create connector with provided config
  1258. operationId: setConnectorConfig
  1259. parameters:
  1260. - name: clusterName
  1261. in: path
  1262. required: true
  1263. schema:
  1264. type: string
  1265. - name: connectName
  1266. in: path
  1267. required: true
  1268. schema:
  1269. type: string
  1270. - name: connectorName
  1271. in: path
  1272. required: true
  1273. schema:
  1274. type: string
  1275. requestBody:
  1276. content:
  1277. application/json:
  1278. schema:
  1279. $ref: '#/components/schemas/ConnectorConfig'
  1280. responses:
  1281. 200:
  1282. description: OK
  1283. content:
  1284. application/json:
  1285. schema:
  1286. $ref: '#/components/schemas/Connector'
  1287. 409:
  1288. description: rebalance is in progress
  1289. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/tasks:
  1290. get:
  1291. tags:
  1292. - Kafka Connect
  1293. summary: get connector tasks
  1294. operationId: getConnectorTasks
  1295. parameters:
  1296. - name: clusterName
  1297. in: path
  1298. required: true
  1299. schema:
  1300. type: string
  1301. - name: connectName
  1302. in: path
  1303. required: true
  1304. schema:
  1305. type: string
  1306. - name: connectorName
  1307. in: path
  1308. required: true
  1309. schema:
  1310. type: string
  1311. responses:
  1312. 200:
  1313. description: OK
  1314. content:
  1315. application/json:
  1316. schema:
  1317. type: array
  1318. items:
  1319. $ref: '#/components/schemas/Task'
  1320. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/tasks/{taskId}/action/restart:
  1321. post:
  1322. tags:
  1323. - Kafka Connect
  1324. summary: restart connector task
  1325. operationId: restartConnectorTask
  1326. parameters:
  1327. - name: clusterName
  1328. in: path
  1329. required: true
  1330. schema:
  1331. type: string
  1332. - name: connectName
  1333. in: path
  1334. required: true
  1335. schema:
  1336. type: string
  1337. - name: connectorName
  1338. in: path
  1339. required: true
  1340. schema:
  1341. type: string
  1342. - name: taskId
  1343. in: path
  1344. required: true
  1345. schema:
  1346. type: integer
  1347. responses:
  1348. 200:
  1349. description: OK
  1350. /api/clusters/{clusterName}/ksql:
  1351. description: Deprecated - use ksql/v2 instead!
  1352. post:
  1353. tags:
  1354. - Ksql
  1355. summary: executeKsqlCommand
  1356. operationId: executeKsqlCommand
  1357. parameters:
  1358. - name: clusterName
  1359. in: path
  1360. required: true
  1361. schema:
  1362. type: string
  1363. requestBody:
  1364. content:
  1365. application/json:
  1366. schema:
  1367. $ref: '#/components/schemas/KsqlCommand'
  1368. responses:
  1369. 200:
  1370. description: OK
  1371. content:
  1372. application/json:
  1373. schema:
  1374. $ref: '#/components/schemas/KsqlCommandResponse'
  1375. /api/clusters/{clusterName}/ksql/v2:
  1376. post:
  1377. tags:
  1378. - Ksql
  1379. summary: executeKsql
  1380. operationId: executeKsql
  1381. parameters:
  1382. - name: clusterName
  1383. in: path
  1384. required: true
  1385. schema:
  1386. type: string
  1387. requestBody:
  1388. content:
  1389. application/json:
  1390. schema:
  1391. $ref: '#/components/schemas/KsqlCommand'
  1392. responses:
  1393. 200:
  1394. description: OK
  1395. content:
  1396. text/event-stream:
  1397. schema:
  1398. type: array
  1399. items:
  1400. $ref: '#/components/schemas/KsqlResponse'
  1401. /api/clusters/{clusterName}/connects/{connectName}/plugins:
  1402. get:
  1403. tags:
  1404. - Kafka Connect
  1405. summary: get connector plugins
  1406. operationId: getConnectorPlugins
  1407. parameters:
  1408. - name: clusterName
  1409. in: path
  1410. required: true
  1411. schema:
  1412. type: string
  1413. - name: connectName
  1414. in: path
  1415. required: true
  1416. schema:
  1417. type: string
  1418. responses:
  1419. 200:
  1420. description: OK
  1421. content:
  1422. application/json:
  1423. schema:
  1424. type: array
  1425. items:
  1426. $ref: '#/components/schemas/ConnectorPlugin'
  1427. /api/clusters/{clusterName}/connects/{connectName}/plugins/{pluginName}/config/validate:
  1428. put:
  1429. tags:
  1430. - Kafka Connect
  1431. summary: validate connector plugin configuration
  1432. operationId: validateConnectorPluginConfig
  1433. parameters:
  1434. - name: clusterName
  1435. in: path
  1436. required: true
  1437. schema:
  1438. type: string
  1439. - name: connectName
  1440. in: path
  1441. required: true
  1442. schema:
  1443. type: string
  1444. - name: pluginName
  1445. in: path
  1446. required: true
  1447. schema:
  1448. type: string
  1449. requestBody:
  1450. content:
  1451. application/json:
  1452. schema:
  1453. $ref: '#/components/schemas/ConnectorConfig'
  1454. responses:
  1455. 200:
  1456. description: OK
  1457. content:
  1458. application/json:
  1459. schema:
  1460. $ref: '#/components/schemas/ConnectorPluginConfigValidationResponse'
  1461. /api/clusters/{clusterName}/topics/{topicName}/partitions:
  1462. patch:
  1463. tags:
  1464. - Topics
  1465. summary: increaseTopicPartitions
  1466. operationId: increaseTopicPartitions
  1467. parameters:
  1468. - name: clusterName
  1469. in: path
  1470. required: true
  1471. schema:
  1472. type: string
  1473. - name: topicName
  1474. in: path
  1475. required: true
  1476. schema:
  1477. type: string
  1478. requestBody:
  1479. content:
  1480. application/json:
  1481. schema:
  1482. $ref: '#/components/schemas/PartitionsIncrease'
  1483. responses:
  1484. 200:
  1485. description: OK
  1486. content:
  1487. application/json:
  1488. schema:
  1489. $ref: '#/components/schemas/PartitionsIncreaseResponse'
  1490. 404:
  1491. description: Not found
  1492. components:
  1493. schemas:
  1494. ErrorResponse:
  1495. description: Error object that will be returned with 4XX and 5XX HTTP statuses
  1496. type: object
  1497. properties:
  1498. code:
  1499. type: integer
  1500. description: Internal error code (can be used for message formatting & localization on UI)
  1501. message:
  1502. type: string
  1503. description: Error message
  1504. timestamp:
  1505. type: number
  1506. description: Response unix timestamp in ms
  1507. requestId:
  1508. type: string
  1509. description: Unique server-defined request id for convenient debugging
  1510. fieldsErrors:
  1511. type: array
  1512. items:
  1513. $ref: '#/components/schemas/FieldError'
  1514. stackTrace:
  1515. type: string
  1516. FieldError:
  1517. type: object
  1518. properties:
  1519. fieldName:
  1520. type: string
  1521. description: Name of field that violated format
  1522. restrictions:
  1523. description: Field format violations description (ex. ["size must be between 0 and 20", "must be a well-formed email address"])
  1524. type: array
  1525. items:
  1526. type: string
  1527. MetricsCollectionError:
  1528. type: object
  1529. properties:
  1530. message:
  1531. type: string
  1532. stackTrace:
  1533. type: string
  1534. Cluster:
  1535. type: object
  1536. properties:
  1537. name:
  1538. type: string
  1539. defaultCluster:
  1540. type: boolean
  1541. status:
  1542. $ref: '#/components/schemas/ServerStatus'
  1543. lastError:
  1544. $ref: '#/components/schemas/MetricsCollectionError'
  1545. brokerCount:
  1546. type: integer
  1547. onlinePartitionCount:
  1548. type: integer
  1549. topicCount:
  1550. type: integer
  1551. bytesInPerSec:
  1552. type: number
  1553. bytesOutPerSec:
  1554. type: number
  1555. readOnly:
  1556. type: boolean
  1557. version:
  1558. type: string
  1559. features:
  1560. type: array
  1561. items:
  1562. type: string
  1563. enum:
  1564. - SCHEMA_REGISTRY
  1565. - KAFKA_CONNECT
  1566. - KSQL_DB
  1567. - TOPIC_DELETION
  1568. required:
  1569. - id
  1570. - name
  1571. - status
  1572. ServerStatus:
  1573. type: string
  1574. enum:
  1575. - online
  1576. - offline
  1577. ClusterMetrics:
  1578. type: object
  1579. properties:
  1580. items:
  1581. type: array
  1582. items:
  1583. $ref: '#/components/schemas/Metric'
  1584. ClusterStats:
  1585. type: object
  1586. properties:
  1587. brokerCount:
  1588. type: integer
  1589. zooKeeperStatus:
  1590. type: integer
  1591. activeControllers:
  1592. type: integer
  1593. onlinePartitionCount:
  1594. type: integer
  1595. offlinePartitionCount:
  1596. type: integer
  1597. inSyncReplicasCount:
  1598. type: integer
  1599. outOfSyncReplicasCount:
  1600. type: integer
  1601. underReplicatedPartitionCount:
  1602. type: integer
  1603. diskUsage:
  1604. type: array
  1605. items:
  1606. $ref: '#/components/schemas/BrokerDiskUsage'
  1607. version:
  1608. type: string
  1609. BrokerDiskUsage:
  1610. type: object
  1611. properties:
  1612. brokerId:
  1613. type: integer
  1614. segmentSize:
  1615. type: integer
  1616. format: int64
  1617. segmentCount:
  1618. type: integer
  1619. required:
  1620. - brokerId
  1621. BrokerMetrics:
  1622. type: object
  1623. properties:
  1624. segmentSize:
  1625. type: integer
  1626. format: int64
  1627. segmentCount:
  1628. type: integer
  1629. metrics:
  1630. type: array
  1631. items:
  1632. $ref: '#/components/schemas/Metric'
  1633. BrokerLogdirs:
  1634. type: object
  1635. properties:
  1636. name:
  1637. type: string
  1638. error:
  1639. type: string
  1640. topics:
  1641. type: array
  1642. items:
  1643. $ref: '#/components/schemas/TopicLogdirs'
  1644. BrokersLogdirs:
  1645. type: object
  1646. properties:
  1647. name:
  1648. type: string
  1649. error:
  1650. type: string
  1651. topics:
  1652. type: array
  1653. items:
  1654. $ref: '#/components/schemas/BrokerTopicLogdirs'
  1655. TopicsResponse:
  1656. type: object
  1657. properties:
  1658. pageCount:
  1659. type: integer
  1660. topics:
  1661. type: array
  1662. items:
  1663. $ref: '#/components/schemas/Topic'
  1664. TopicColumnsToSort:
  1665. type: string
  1666. enum:
  1667. - NAME
  1668. - OUT_OF_SYNC_REPLICAS
  1669. - TOTAL_PARTITIONS
  1670. - REPLICATION_FACTOR
  1671. Topic:
  1672. type: object
  1673. properties:
  1674. name:
  1675. type: string
  1676. internal:
  1677. type: boolean
  1678. partitionCount:
  1679. type: integer
  1680. replicationFactor:
  1681. type: integer
  1682. replicas:
  1683. type: integer
  1684. inSyncReplicas:
  1685. type: integer
  1686. segmentSize:
  1687. type: integer
  1688. format: int64
  1689. segmentCount:
  1690. type: integer
  1691. underReplicatedPartitions:
  1692. type: integer
  1693. cleanUpPolicy:
  1694. $ref: '#/components/schemas/CleanUpPolicy'
  1695. partitions:
  1696. type: array
  1697. items:
  1698. $ref: "#/components/schemas/Partition"
  1699. required:
  1700. - name
  1701. Replica:
  1702. type: object
  1703. properties:
  1704. broker:
  1705. type: integer
  1706. leader:
  1707. type: boolean
  1708. inSync:
  1709. type: boolean
  1710. TopicDetails:
  1711. type: object
  1712. properties:
  1713. name:
  1714. type: string
  1715. internal:
  1716. type: boolean
  1717. partitions:
  1718. type: array
  1719. items:
  1720. $ref: "#/components/schemas/Partition"
  1721. partitionCount:
  1722. type: integer
  1723. replicationFactor:
  1724. type: integer
  1725. replicas:
  1726. type: integer
  1727. inSyncReplicas:
  1728. type: integer
  1729. bytesInPerSec:
  1730. type: number
  1731. bytesOutPerSec:
  1732. type: number
  1733. segmentSize:
  1734. type: integer
  1735. format: int64
  1736. segmentCount:
  1737. type: integer
  1738. underReplicatedPartitions:
  1739. type: integer
  1740. cleanUpPolicy:
  1741. $ref: '#/components/schemas/CleanUpPolicy'
  1742. required:
  1743. - name
  1744. TopicConfig:
  1745. type: object
  1746. properties:
  1747. name:
  1748. type: string
  1749. value:
  1750. type: string
  1751. defaultValue:
  1752. type: string
  1753. source:
  1754. $ref: "#/components/schemas/ConfigSource"
  1755. isSensitive:
  1756. type: boolean
  1757. isReadOnly:
  1758. type: boolean
  1759. synonyms:
  1760. type: array
  1761. items:
  1762. $ref: "#/components/schemas/ConfigSynonym"
  1763. required:
  1764. - name
  1765. TopicCreation:
  1766. type: object
  1767. properties:
  1768. name:
  1769. type: string
  1770. partitions:
  1771. type: integer
  1772. replicationFactor:
  1773. type: integer
  1774. configs:
  1775. type: object
  1776. additionalProperties:
  1777. type: string
  1778. required:
  1779. - name
  1780. - partitions
  1781. - replicationFactor
  1782. TopicUpdate:
  1783. type: object
  1784. properties:
  1785. configs:
  1786. type: object
  1787. additionalProperties:
  1788. type: string
  1789. required:
  1790. - configs
  1791. Broker:
  1792. type: object
  1793. properties:
  1794. id:
  1795. type: integer
  1796. host:
  1797. type: string
  1798. required:
  1799. - id
  1800. BrokerLogdirUpdate:
  1801. type: object
  1802. properties:
  1803. topic:
  1804. type: string
  1805. partition:
  1806. type: integer
  1807. logDir:
  1808. type: string
  1809. ConsumerGroupState:
  1810. type: string
  1811. enum:
  1812. - UNKNOWN
  1813. - PREPARING_REBALANCE
  1814. - COMPLETING_REBALANCE
  1815. - STABLE
  1816. - DEAD
  1817. - EMPTY
  1818. MessageFormat:
  1819. type: string
  1820. enum:
  1821. - AVRO
  1822. - JSON
  1823. - PROTOBUF
  1824. - UNKNOWN
  1825. ConsumerGroup:
  1826. type: object
  1827. properties:
  1828. groupId:
  1829. type: string
  1830. members:
  1831. type: integer
  1832. topics:
  1833. type: integer
  1834. simple:
  1835. type: boolean
  1836. partitionAssignor:
  1837. type: string
  1838. state:
  1839. $ref: "#/components/schemas/ConsumerGroupState"
  1840. coordinator:
  1841. $ref: "#/components/schemas/Broker"
  1842. messagesBehind:
  1843. type: integer
  1844. format: int64
  1845. required:
  1846. - groupId
  1847. ConsumerGroupOrdering:
  1848. type: string
  1849. enum:
  1850. - NAME
  1851. - MEMBERS
  1852. - STATE
  1853. ConsumerGroupsPageResponse:
  1854. type: object
  1855. properties:
  1856. pageCount:
  1857. type: integer
  1858. consumerGroups:
  1859. type: array
  1860. items:
  1861. $ref: '#/components/schemas/ConsumerGroup'
  1862. CreateTopicMessage:
  1863. type: object
  1864. properties:
  1865. partition:
  1866. type: integer
  1867. key:
  1868. type: string
  1869. nullable: true
  1870. headers:
  1871. type: object
  1872. additionalProperties:
  1873. type: string
  1874. content:
  1875. type: string
  1876. nullable: true
  1877. required:
  1878. - partition
  1879. TopicMessageSchema:
  1880. type: object
  1881. properties:
  1882. key:
  1883. $ref: "#/components/schemas/MessageSchema"
  1884. value:
  1885. $ref: "#/components/schemas/MessageSchema"
  1886. required:
  1887. - key
  1888. - value
  1889. MessageSchema:
  1890. type: object
  1891. properties:
  1892. name:
  1893. type: string
  1894. source:
  1895. type: string
  1896. enum:
  1897. - SOURCE_SCHEMA_REGISTRY
  1898. - SOURCE_PROTO_FILE
  1899. - SOURCE_UNKNOWN
  1900. schema:
  1901. type: string
  1902. required:
  1903. - name
  1904. - source
  1905. - schema
  1906. TopicMessageEvent:
  1907. type: object
  1908. properties:
  1909. type:
  1910. type: string
  1911. enum:
  1912. - PHASE
  1913. - MESSAGE
  1914. - CONSUMING
  1915. - DONE
  1916. message:
  1917. $ref: "#/components/schemas/TopicMessage"
  1918. phase:
  1919. $ref: "#/components/schemas/TopicMessagePhase"
  1920. consuming:
  1921. $ref: "#/components/schemas/TopicMessageConsuming"
  1922. TopicMessagePhase:
  1923. type: object
  1924. properties:
  1925. name:
  1926. type: string
  1927. TopicMessageConsuming:
  1928. type: object
  1929. properties:
  1930. bytesConsumed:
  1931. type: integer
  1932. format: int64
  1933. elapsedMs:
  1934. type: integer
  1935. format: int64
  1936. isCancelled:
  1937. type: boolean
  1938. messagesConsumed:
  1939. type: integer
  1940. TopicMessage:
  1941. type: object
  1942. properties:
  1943. partition:
  1944. type: integer
  1945. offset:
  1946. type: integer
  1947. format: int64
  1948. timestamp:
  1949. type: string
  1950. format: date-time
  1951. timestampType:
  1952. type: string
  1953. enum:
  1954. - NO_TIMESTAMP_TYPE
  1955. - CREATE_TIME
  1956. - LOG_APPEND_TIME
  1957. key:
  1958. type: string
  1959. headers:
  1960. type: object
  1961. additionalProperties:
  1962. type: string
  1963. content:
  1964. type: string
  1965. keyFormat:
  1966. $ref: "#/components/schemas/MessageFormat"
  1967. valueFormat:
  1968. $ref: "#/components/schemas/MessageFormat"
  1969. keySize:
  1970. type: integer
  1971. format: int64
  1972. valueSize:
  1973. type: integer
  1974. format: int64
  1975. keySchemaId:
  1976. type: string
  1977. valueSchemaId:
  1978. type: string
  1979. headersSize:
  1980. type: integer
  1981. format: int64
  1982. required:
  1983. - partition
  1984. - offset
  1985. - timestamp
  1986. SeekType:
  1987. type: string
  1988. enum:
  1989. - BEGINNING
  1990. - OFFSET
  1991. - TIMESTAMP
  1992. SeekDirection:
  1993. type: string
  1994. enum:
  1995. - FORWARD
  1996. - BACKWARD
  1997. default: FORWARD
  1998. Partition:
  1999. type: object
  2000. properties:
  2001. partition:
  2002. type: integer
  2003. leader:
  2004. type: integer
  2005. replicas:
  2006. type: array
  2007. items:
  2008. $ref: '#/components/schemas/Replica'
  2009. offsetMax:
  2010. type: integer
  2011. format: int64
  2012. offsetMin:
  2013. type: integer
  2014. format: int64
  2015. required:
  2016. - topic
  2017. - partition
  2018. - offsetMax
  2019. - offsetMin
  2020. ConsumerGroupTopicPartition:
  2021. type: object
  2022. properties:
  2023. topic:
  2024. type: string
  2025. partition:
  2026. type: integer
  2027. currentOffset:
  2028. type: integer
  2029. format: int64
  2030. endOffset:
  2031. type: integer
  2032. format: int64
  2033. messagesBehind:
  2034. type: integer
  2035. format: int64
  2036. consumerId:
  2037. type: string
  2038. host:
  2039. type: string
  2040. required:
  2041. - topic
  2042. - partition
  2043. ConsumerGroupDetails:
  2044. allOf:
  2045. - $ref: '#/components/schemas/ConsumerGroup'
  2046. - type: object
  2047. properties:
  2048. partitions:
  2049. type: array
  2050. items:
  2051. $ref: '#/components/schemas/ConsumerGroupTopicPartition'
  2052. Metric:
  2053. type: object
  2054. properties:
  2055. name:
  2056. type: string
  2057. canonicalName:
  2058. type: string
  2059. params:
  2060. type: string
  2061. additionalProperties:
  2062. type: string
  2063. value:
  2064. type: string
  2065. additionalProperties:
  2066. type: number
  2067. TopicLogdirs:
  2068. type: object
  2069. properties:
  2070. name:
  2071. type: string
  2072. partitions:
  2073. type: array
  2074. items:
  2075. $ref: '#/components/schemas/TopicPartitionLogdir'
  2076. BrokerTopicLogdirs:
  2077. type: object
  2078. properties:
  2079. name:
  2080. type: string
  2081. partitions:
  2082. type: array
  2083. items:
  2084. $ref: '#/components/schemas/BrokerTopicPartitionLogdir'
  2085. TopicPartitionLogdir:
  2086. type: object
  2087. properties:
  2088. partition:
  2089. type: integer
  2090. size:
  2091. type: integer
  2092. format: int64
  2093. offsetLag:
  2094. type: integer
  2095. format: int64
  2096. BrokerTopicPartitionLogdir:
  2097. allOf:
  2098. - $ref: '#/components/schemas/TopicPartitionLogdir'
  2099. - type: object
  2100. properties:
  2101. broker:
  2102. type: integer
  2103. SchemaSubject:
  2104. type: object
  2105. properties:
  2106. subject:
  2107. type: string
  2108. version:
  2109. type: string
  2110. id:
  2111. type: integer
  2112. schema:
  2113. type: string
  2114. compatibilityLevel:
  2115. type: string
  2116. schemaType:
  2117. $ref: '#/components/schemas/SchemaType'
  2118. required:
  2119. - id
  2120. - subject
  2121. - version
  2122. - schema
  2123. - compatibilityLevel
  2124. - schemaType
  2125. NewSchemaSubject:
  2126. type: object
  2127. properties:
  2128. subject:
  2129. type: string
  2130. schema:
  2131. type: string
  2132. schemaType:
  2133. $ref: '#/components/schemas/SchemaType'
  2134. required:
  2135. - subject
  2136. - schema
  2137. - schemaType
  2138. CompatibilityLevel:
  2139. type: object
  2140. properties:
  2141. compatibility:
  2142. type: string
  2143. enum:
  2144. - BACKWARD
  2145. - BACKWARD_TRANSITIVE
  2146. - FORWARD
  2147. - FORWARD_TRANSITIVE
  2148. - FULL
  2149. - FULL_TRANSITIVE
  2150. - NONE
  2151. required:
  2152. - compatibility
  2153. SchemaType:
  2154. type: string
  2155. enum:
  2156. - AVRO
  2157. - JSON
  2158. - PROTOBUF
  2159. CompatibilityCheckResponse:
  2160. type: object
  2161. properties:
  2162. isCompatible:
  2163. type: boolean
  2164. required:
  2165. - isCompatible
  2166. SchemaSubjectsResponse:
  2167. type: object
  2168. properties:
  2169. pageCount:
  2170. type: integer
  2171. schemas:
  2172. type: array
  2173. items:
  2174. $ref: '#/components/schemas/SchemaSubject'
  2175. Connect:
  2176. type: object
  2177. properties:
  2178. name:
  2179. type: string
  2180. address:
  2181. type: string
  2182. required:
  2183. - name
  2184. ConnectorConfig:
  2185. type: object
  2186. additionalProperties:
  2187. type: object
  2188. TaskId:
  2189. type: object
  2190. properties:
  2191. connector:
  2192. type: string
  2193. task:
  2194. type: integer
  2195. Task:
  2196. type: object
  2197. properties:
  2198. id:
  2199. $ref: '#/components/schemas/TaskId'
  2200. status:
  2201. $ref: '#/components/schemas/TaskStatus'
  2202. config:
  2203. $ref: '#/components/schemas/ConnectorConfig'
  2204. required:
  2205. - status
  2206. NewConnector:
  2207. type: object
  2208. properties:
  2209. name:
  2210. type: string
  2211. config:
  2212. $ref: '#/components/schemas/ConnectorConfig'
  2213. required:
  2214. - name
  2215. - config
  2216. Connector:
  2217. allOf:
  2218. - $ref: '#/components/schemas/NewConnector'
  2219. - type: object
  2220. properties:
  2221. tasks:
  2222. type: array
  2223. items:
  2224. $ref: '#/components/schemas/TaskId'
  2225. type:
  2226. $ref: '#/components/schemas/ConnectorType'
  2227. status:
  2228. $ref: '#/components/schemas/ConnectorStatus'
  2229. connect:
  2230. type: string
  2231. required:
  2232. - type
  2233. - status
  2234. - connect
  2235. ConnectorType:
  2236. type: string
  2237. enum:
  2238. - SOURCE
  2239. - SINK
  2240. ConsumerGroupOffsetsReset:
  2241. type: object
  2242. properties:
  2243. topic:
  2244. type: string
  2245. resetType:
  2246. $ref: '#/components/schemas/ConsumerGroupOffsetsResetType'
  2247. partitions:
  2248. type: array
  2249. items:
  2250. type: integer
  2251. description: list of target partitions, all partitions will be used if it is not set or empty
  2252. resetToTimestamp:
  2253. type: integer
  2254. format: int64
  2255. description: should be set if resetType is TIMESTAMP
  2256. partitionsOffsets:
  2257. type: array
  2258. items:
  2259. $ref: '#/components/schemas/PartitionOffset'
  2260. description: List of partition offsets to reset to, should be set when resetType is OFFSET
  2261. required:
  2262. - topic
  2263. - resetType
  2264. PartitionOffset:
  2265. type: object
  2266. properties:
  2267. partition:
  2268. type: integer
  2269. offset:
  2270. type: integer
  2271. format: int64
  2272. required:
  2273. - partition
  2274. ConsumerGroupOffsetsResetType:
  2275. type: string
  2276. enum:
  2277. - EARLIEST
  2278. - LATEST
  2279. - TIMESTAMP
  2280. - OFFSET
  2281. TaskStatus:
  2282. type: object
  2283. properties:
  2284. id:
  2285. type: integer
  2286. state:
  2287. $ref: '#/components/schemas/ConnectorTaskStatus'
  2288. worker_id:
  2289. type: string
  2290. trace:
  2291. type: string
  2292. required:
  2293. - id
  2294. - state
  2295. - worker_id
  2296. ConnectorStatus:
  2297. type: object
  2298. properties:
  2299. state:
  2300. $ref: '#/components/schemas/ConnectorState'
  2301. worker_id:
  2302. type: string
  2303. required:
  2304. - state
  2305. ConnectorTaskStatus:
  2306. type: string
  2307. enum:
  2308. - RUNNING
  2309. - FAILED
  2310. - PAUSED
  2311. - RESTARTING
  2312. - UNASSIGNED
  2313. ConnectorState:
  2314. type: string
  2315. enum:
  2316. - RUNNING
  2317. - FAILED
  2318. - PAUSED
  2319. - UNASSIGNED
  2320. - TASK_FAILED
  2321. ConnectorAction:
  2322. type: string
  2323. enum:
  2324. - RESTART
  2325. - PAUSE
  2326. - RESUME
  2327. TaskAction:
  2328. type: string
  2329. enum:
  2330. - restart
  2331. ConnectorPlugin:
  2332. type: object
  2333. properties:
  2334. class:
  2335. type: string
  2336. ConnectorPluginConfigDefinition:
  2337. type: object
  2338. properties:
  2339. name:
  2340. type: string
  2341. type:
  2342. type: string
  2343. enum:
  2344. - BOOLEAN
  2345. - CLASS
  2346. - DOUBLE
  2347. - INT
  2348. - LIST
  2349. - LONG
  2350. - PASSWORD
  2351. - SHORT
  2352. - STRING
  2353. required:
  2354. type: boolean
  2355. default_value:
  2356. type: string
  2357. importance:
  2358. type: string
  2359. enum:
  2360. - LOW
  2361. - MEDIUM
  2362. - HIGH
  2363. documentation:
  2364. type: string
  2365. group:
  2366. type: string
  2367. width:
  2368. type: string
  2369. enum:
  2370. - SHORT
  2371. - MEDIUM
  2372. - LONG
  2373. - NONE
  2374. display_name:
  2375. type: string
  2376. dependents:
  2377. type: array
  2378. items:
  2379. type: string
  2380. order:
  2381. type: integer
  2382. ConnectorPluginConfigValue:
  2383. type: object
  2384. properties:
  2385. name:
  2386. type: string
  2387. value:
  2388. type: string
  2389. recommended_values:
  2390. type: array
  2391. items:
  2392. type: string
  2393. errors:
  2394. type: array
  2395. items:
  2396. type: string
  2397. visible:
  2398. type: boolean
  2399. ConnectorPluginConfig:
  2400. type: object
  2401. properties:
  2402. definition:
  2403. $ref: '#/components/schemas/ConnectorPluginConfigDefinition'
  2404. value:
  2405. $ref: '#/components/schemas/ConnectorPluginConfigValue'
  2406. ConnectorPluginConfigValidationResponse:
  2407. type: object
  2408. properties:
  2409. name:
  2410. type: string
  2411. error_count:
  2412. type: integer
  2413. groups:
  2414. type: array
  2415. items:
  2416. type: string
  2417. configs:
  2418. type: array
  2419. items:
  2420. $ref: '#/components/schemas/ConnectorPluginConfig'
  2421. KsqlCommand:
  2422. type: object
  2423. properties:
  2424. ksql:
  2425. type: string
  2426. streamsProperties:
  2427. type: object
  2428. additionalProperties:
  2429. type: string
  2430. required:
  2431. - ksql
  2432. KsqlCommandResponse:
  2433. type: object
  2434. properties:
  2435. data:
  2436. $ref: '#/components/schemas/Table'
  2437. message:
  2438. type: string
  2439. Table:
  2440. type: object
  2441. properties:
  2442. headers:
  2443. type: array
  2444. items:
  2445. type: string
  2446. rows:
  2447. type: array
  2448. items:
  2449. type: array
  2450. items:
  2451. type: string
  2452. required:
  2453. - headers
  2454. - rows
  2455. KsqlResponse:
  2456. type: object
  2457. properties:
  2458. table:
  2459. $ref: '#/components/schemas/KsqlTableResponse'
  2460. KsqlTableResponse:
  2461. type: object
  2462. properties:
  2463. header:
  2464. type: string
  2465. columnNames:
  2466. type: array
  2467. items:
  2468. type: string
  2469. values:
  2470. type: array
  2471. items:
  2472. type: array
  2473. items:
  2474. type: object
  2475. FullConnectorInfo:
  2476. type: object
  2477. properties:
  2478. connect:
  2479. type: string
  2480. name:
  2481. type: string
  2482. connector_class:
  2483. type: string
  2484. type:
  2485. $ref: '#/components/schemas/ConnectorType'
  2486. topics:
  2487. type: array
  2488. items:
  2489. type: string
  2490. status:
  2491. $ref: '#/components/schemas/ConnectorStatus'
  2492. tasks_count:
  2493. type: integer
  2494. failed_tasks_count:
  2495. type: integer
  2496. required:
  2497. - name
  2498. - connect
  2499. - status
  2500. PartitionsIncrease:
  2501. type: object
  2502. properties:
  2503. totalPartitionsCount:
  2504. type: integer
  2505. minimum: 1
  2506. required:
  2507. - totalPartitionsCount
  2508. PartitionsIncreaseResponse:
  2509. type: object
  2510. properties:
  2511. totalPartitionsCount:
  2512. type: integer
  2513. topicName:
  2514. type: string
  2515. required:
  2516. - totalPartitionsCount
  2517. - topicName
  2518. ReplicationFactorChange:
  2519. type: object
  2520. properties:
  2521. totalReplicationFactor:
  2522. type: integer
  2523. minimum: 1
  2524. required:
  2525. - totalReplicationFactor
  2526. ReplicationFactorChangeResponse:
  2527. type: object
  2528. properties:
  2529. totalReplicationFactor:
  2530. type: integer
  2531. topicName:
  2532. type: string
  2533. required:
  2534. - totalReplicationFactor
  2535. - topicName
  2536. BrokerConfigItem:
  2537. type: object
  2538. properties:
  2539. value:
  2540. type: string
  2541. BrokerConfig:
  2542. type: object
  2543. properties:
  2544. name:
  2545. type: string
  2546. value:
  2547. type: string
  2548. source:
  2549. $ref: '#/components/schemas/ConfigSource'
  2550. isSensitive:
  2551. type: boolean
  2552. isReadOnly:
  2553. type: boolean
  2554. synonyms:
  2555. type: array
  2556. items:
  2557. $ref: '#/components/schemas/ConfigSynonym'
  2558. required:
  2559. - name
  2560. - value
  2561. - source
  2562. - isSensitive
  2563. - isReadOnly
  2564. ConfigSource:
  2565. type: string
  2566. enum:
  2567. - DYNAMIC_TOPIC_CONFIG
  2568. - DYNAMIC_BROKER_LOGGER_CONFIG
  2569. - DYNAMIC_BROKER_CONFIG
  2570. - DYNAMIC_DEFAULT_BROKER_CONFIG
  2571. - STATIC_BROKER_CONFIG
  2572. - DEFAULT_CONFIG
  2573. - UNKNOWN
  2574. ConfigSynonym:
  2575. type: object
  2576. properties:
  2577. name:
  2578. type: string
  2579. value:
  2580. type: string
  2581. source:
  2582. $ref: '#/components/schemas/ConfigSource'
  2583. CleanUpPolicy:
  2584. type: string
  2585. enum:
  2586. - DELETE
  2587. - COMPACT
  2588. - COMPACT_DELETE
  2589. - UNKNOWN