kafka-ui-api.yaml 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561
  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/{id}:
  599. get:
  600. tags:
  601. - Consumer Groups
  602. summary: get Consumer Group By Id
  603. operationId: getConsumerGroup
  604. parameters:
  605. - name: clusterName
  606. in: path
  607. required: true
  608. schema:
  609. type: string
  610. - name: id
  611. in: path
  612. required: true
  613. schema:
  614. type: string
  615. responses:
  616. 200:
  617. description: OK
  618. content:
  619. application/json:
  620. schema:
  621. $ref: '#/components/schemas/ConsumerGroupDetails'
  622. delete:
  623. tags:
  624. - Consumer Groups
  625. summary: Delete Consumer Group by ID
  626. operationId: deleteConsumerGroup
  627. parameters:
  628. - name: clusterName
  629. in: path
  630. required: true
  631. schema:
  632. type: string
  633. - name: id
  634. in: path
  635. required: true
  636. schema:
  637. type: string
  638. responses:
  639. 200:
  640. description: OK
  641. /api/clusters/{clusterName}/consumer-groups:
  642. get:
  643. tags:
  644. - Consumer Groups
  645. summary: get all ConsumerGroups
  646. operationId: getConsumerGroups
  647. parameters:
  648. - name: clusterName
  649. in: path
  650. required: true
  651. schema:
  652. type: string
  653. responses:
  654. 200:
  655. description: OK
  656. content:
  657. application/json:
  658. schema:
  659. type: array
  660. items:
  661. $ref: '#/components/schemas/ConsumerGroup'
  662. /api/clusters/{clusterName}/consumer-groups/{id}/offsets:
  663. post:
  664. tags:
  665. - Consumer Groups
  666. summary: resets consumer group offsets
  667. operationId: resetConsumerGroupOffsets
  668. parameters:
  669. - name: clusterName
  670. in: path
  671. required: true
  672. schema:
  673. type: string
  674. - name: id
  675. in: path
  676. required: true
  677. schema:
  678. type: string
  679. requestBody:
  680. content:
  681. application/json:
  682. schema:
  683. $ref: '#/components/schemas/ConsumerGroupOffsetsReset'
  684. responses:
  685. 200:
  686. description: OK
  687. /api/clusters/{clusterName}/schemas:
  688. post:
  689. tags:
  690. - Schemas
  691. summary: create a new subject schema
  692. operationId: createNewSchema
  693. parameters:
  694. - name: clusterName
  695. in: path
  696. required: true
  697. schema:
  698. type: string
  699. requestBody:
  700. content:
  701. application/json:
  702. schema:
  703. $ref: '#/components/schemas/NewSchemaSubject'
  704. responses:
  705. 200:
  706. description: Ok
  707. content:
  708. application/json:
  709. schema:
  710. $ref: '#/components/schemas/SchemaSubject'
  711. 400:
  712. description: Bad request
  713. 409:
  714. description: Duplicate schema
  715. 422:
  716. description: Invalid parameters
  717. get:
  718. tags:
  719. - Schemas
  720. summary: get all schemas of latest version from Schema Registry service
  721. operationId: getSchemas
  722. parameters:
  723. - name: clusterName
  724. in: path
  725. required: true
  726. schema:
  727. type: string
  728. responses:
  729. 200:
  730. description: OK
  731. content:
  732. application/json:
  733. schema:
  734. type: array
  735. items:
  736. $ref: '#/components/schemas/SchemaSubject'
  737. /api/clusters/{clusterName}/schemas/{subject}:
  738. delete:
  739. tags:
  740. - Schemas
  741. summary: delete schema from Schema Registry service
  742. operationId: deleteSchema
  743. parameters:
  744. - name: clusterName
  745. in: path
  746. required: true
  747. schema:
  748. type: string
  749. - name: subject
  750. in: path
  751. required: true
  752. schema:
  753. type: string
  754. responses:
  755. 200:
  756. description: OK
  757. 404:
  758. description: Not found
  759. /api/clusters/{clusterName}/schemas/{subject}/versions:
  760. get:
  761. tags:
  762. - Schemas
  763. summary: get all version of subject from Schema Registry service
  764. operationId: getAllVersionsBySubject
  765. parameters:
  766. - name: clusterName
  767. in: path
  768. required: true
  769. schema:
  770. type: string
  771. - name: subject
  772. in: path
  773. required: true
  774. schema:
  775. type: string
  776. responses:
  777. 200:
  778. description: OK
  779. content:
  780. application/json:
  781. schema:
  782. type: array
  783. items:
  784. $ref: '#/components/schemas/SchemaSubject'
  785. /api/clusters/{clusterName}/schemas/{subject}/latest:
  786. get:
  787. tags:
  788. - Schemas
  789. summary: get the latest schema from Schema Registry service
  790. operationId: getLatestSchema
  791. parameters:
  792. - name: clusterName
  793. in: path
  794. required: true
  795. schema:
  796. type: string
  797. - name: subject
  798. in: path
  799. required: true
  800. schema:
  801. type: string
  802. responses:
  803. 200:
  804. description: OK
  805. content:
  806. application/json:
  807. schema:
  808. $ref: '#/components/schemas/SchemaSubject'
  809. delete:
  810. tags:
  811. - Schemas
  812. summary: delete the latest schema from schema registry
  813. operationId: deleteLatestSchema
  814. parameters:
  815. - name: clusterName
  816. in: path
  817. required: true
  818. schema:
  819. type: string
  820. - name: subject
  821. in: path
  822. required: true
  823. schema:
  824. type: string
  825. responses:
  826. 200:
  827. description: OK
  828. 404:
  829. description: Not found
  830. /api/clusters/{clusterName}/schemas/{subject}/versions/{version}:
  831. get:
  832. tags:
  833. - Schemas
  834. summary: get schema by version from Schema Registry service
  835. operationId: getSchemaByVersion
  836. parameters:
  837. - name: clusterName
  838. in: path
  839. required: true
  840. schema:
  841. type: string
  842. - name: subject
  843. in: path
  844. required: true
  845. schema:
  846. type: string
  847. - name: version
  848. in: path
  849. required: true
  850. schema:
  851. type: integer
  852. responses:
  853. 200:
  854. description: OK
  855. content:
  856. application/json:
  857. schema:
  858. $ref: '#/components/schemas/SchemaSubject'
  859. delete:
  860. tags:
  861. - Schemas
  862. summary: delete schema by version from schema registry
  863. operationId: deleteSchemaByVersion
  864. parameters:
  865. - name: clusterName
  866. in: path
  867. required: true
  868. schema:
  869. type: string
  870. - name: subject
  871. in: path
  872. required: true
  873. schema:
  874. type: string
  875. - name: version
  876. in: path
  877. required: true
  878. schema:
  879. type: integer
  880. responses:
  881. 200:
  882. description: OK
  883. 404:
  884. description: Not found
  885. /api/clusters/{clusterName}/schemas/compatibility:
  886. get:
  887. tags:
  888. - Schemas
  889. summary: Get global schema compatibility level
  890. operationId: getGlobalSchemaCompatibilityLevel
  891. parameters:
  892. - name: clusterName
  893. in: path
  894. required: true
  895. schema:
  896. type: string
  897. responses:
  898. 200:
  899. description: OK
  900. content:
  901. application/json:
  902. schema:
  903. $ref: '#/components/schemas/CompatibilityLevel'
  904. put:
  905. tags:
  906. - Schemas
  907. summary: Update compatibility level globally
  908. operationId: updateGlobalSchemaCompatibilityLevel
  909. parameters:
  910. - name: clusterName
  911. in: path
  912. required: true
  913. schema:
  914. type: string
  915. requestBody:
  916. content:
  917. application/json:
  918. schema:
  919. $ref: '#/components/schemas/CompatibilityLevel'
  920. responses:
  921. 200:
  922. description: OK
  923. 404:
  924. description: Not Found
  925. /api/clusters/{clusterName}/schemas/{subject}/compatibility:
  926. put:
  927. tags:
  928. - Schemas
  929. summary: Update compatibility level for specific schema.
  930. operationId: updateSchemaCompatibilityLevel
  931. parameters:
  932. - name: clusterName
  933. in: path
  934. required: true
  935. schema:
  936. type: string
  937. - name: subject
  938. in: path
  939. required: true
  940. schema:
  941. type: string
  942. requestBody:
  943. content:
  944. application/json:
  945. schema:
  946. $ref: '#/components/schemas/CompatibilityLevel'
  947. responses:
  948. 200:
  949. description: OK
  950. 404:
  951. description: Not Found
  952. /api/clusters/{clusterName}/schemas/{subject}/check:
  953. post:
  954. tags:
  955. - Schemas
  956. summary: Check compatibility of the schema.
  957. operationId: checkSchemaCompatibility
  958. parameters:
  959. - name: clusterName
  960. in: path
  961. required: true
  962. schema:
  963. type: string
  964. - name: subject
  965. in: path
  966. required: true
  967. schema:
  968. type: string
  969. requestBody:
  970. content:
  971. application/json:
  972. schema:
  973. $ref: '#/components/schemas/NewSchemaSubject'
  974. responses:
  975. 200:
  976. description: OK
  977. content:
  978. application/json:
  979. schema:
  980. $ref: '#/components/schemas/CompatibilityCheckResponse'
  981. 404:
  982. description: Not Found
  983. /api/clusters/{clusterName}/connects:
  984. get:
  985. tags:
  986. - Kafka Connect
  987. summary: get all kafka connect instances
  988. operationId: getConnects
  989. parameters:
  990. - name: clusterName
  991. in: path
  992. required: true
  993. schema:
  994. type: string
  995. responses:
  996. 200:
  997. description: OK
  998. content:
  999. application/json:
  1000. schema:
  1001. type: array
  1002. items:
  1003. $ref: '#/components/schemas/Connect'
  1004. /api/clusters/{clusterName}/connectors:
  1005. get:
  1006. tags:
  1007. - Kafka Connect
  1008. summary: get filtered kafka connectors
  1009. operationId: getAllConnectors
  1010. parameters:
  1011. - name: clusterName
  1012. in: path
  1013. required: true
  1014. schema:
  1015. type: string
  1016. - name: search
  1017. in: query
  1018. required: false
  1019. schema:
  1020. type: string
  1021. responses:
  1022. 200:
  1023. description: OK
  1024. content:
  1025. application/json:
  1026. schema:
  1027. type: array
  1028. items:
  1029. $ref: '#/components/schemas/FullConnectorInfo'
  1030. /api/clusters/{clusterName}/connects/{connectName}/connectors:
  1031. get:
  1032. tags:
  1033. - Kafka Connect
  1034. summary: get connectors for provided kafka connect instance
  1035. operationId: getConnectors
  1036. parameters:
  1037. - name: clusterName
  1038. in: path
  1039. required: true
  1040. schema:
  1041. type: string
  1042. - name: connectName
  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. type: string
  1056. post:
  1057. tags:
  1058. - Kafka Connect
  1059. summary: create new connector
  1060. operationId: createConnector
  1061. parameters:
  1062. - name: clusterName
  1063. in: path
  1064. required: true
  1065. schema:
  1066. type: string
  1067. - name: connectName
  1068. in: path
  1069. required: true
  1070. schema:
  1071. type: string
  1072. requestBody:
  1073. content:
  1074. application/json:
  1075. schema:
  1076. $ref: '#/components/schemas/NewConnector'
  1077. responses:
  1078. 200:
  1079. description: OK
  1080. content:
  1081. application/json:
  1082. schema:
  1083. $ref: '#/components/schemas/Connector'
  1084. 409:
  1085. description: rebalance is in progress
  1086. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}:
  1087. get:
  1088. tags:
  1089. - Kafka Connect
  1090. summary: get information about the connector
  1091. operationId: getConnector
  1092. parameters:
  1093. - name: clusterName
  1094. in: path
  1095. required: true
  1096. schema:
  1097. type: string
  1098. - name: connectName
  1099. in: path
  1100. required: true
  1101. schema:
  1102. type: string
  1103. - name: connectorName
  1104. in: path
  1105. required: true
  1106. schema:
  1107. type: string
  1108. responses:
  1109. 200:
  1110. description: OK
  1111. content:
  1112. application/json:
  1113. schema:
  1114. $ref: '#/components/schemas/Connector'
  1115. delete:
  1116. tags:
  1117. - Kafka Connect
  1118. summary: delete connector
  1119. operationId: deleteConnector
  1120. parameters:
  1121. - name: clusterName
  1122. in: path
  1123. required: true
  1124. schema:
  1125. type: string
  1126. - name: connectName
  1127. in: path
  1128. required: true
  1129. schema:
  1130. type: string
  1131. - name: connectorName
  1132. in: path
  1133. required: true
  1134. schema:
  1135. type: string
  1136. responses:
  1137. 200:
  1138. description: OK
  1139. 409:
  1140. description: rebalance is in progress
  1141. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/action/{action}:
  1142. post:
  1143. tags:
  1144. - Kafka Connect
  1145. summary: update connector state (restart, pause or resume)
  1146. operationId: updateConnectorState
  1147. parameters:
  1148. - name: clusterName
  1149. in: path
  1150. required: true
  1151. schema:
  1152. type: string
  1153. - name: connectName
  1154. in: path
  1155. required: true
  1156. schema:
  1157. type: string
  1158. - name: connectorName
  1159. in: path
  1160. required: true
  1161. schema:
  1162. type: string
  1163. - name: action
  1164. in: path
  1165. required: true
  1166. schema:
  1167. $ref: '#/components/schemas/ConnectorAction'
  1168. responses:
  1169. 200:
  1170. description: OK
  1171. 409:
  1172. description: rebalance is in progress
  1173. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/config:
  1174. get:
  1175. tags:
  1176. - Kafka Connect
  1177. summary: get connector configuration
  1178. operationId: getConnectorConfig
  1179. parameters:
  1180. - name: clusterName
  1181. in: path
  1182. required: true
  1183. schema:
  1184. type: string
  1185. - name: connectName
  1186. in: path
  1187. required: true
  1188. schema:
  1189. type: string
  1190. - name: connectorName
  1191. in: path
  1192. required: true
  1193. schema:
  1194. type: string
  1195. responses:
  1196. 200:
  1197. description: OK
  1198. content:
  1199. application/json:
  1200. schema:
  1201. $ref: '#/components/schemas/ConnectorConfig'
  1202. put:
  1203. tags:
  1204. - Kafka Connect
  1205. summary: update or create connector with provided config
  1206. operationId: setConnectorConfig
  1207. parameters:
  1208. - name: clusterName
  1209. in: path
  1210. required: true
  1211. schema:
  1212. type: string
  1213. - name: connectName
  1214. in: path
  1215. required: true
  1216. schema:
  1217. type: string
  1218. - name: connectorName
  1219. in: path
  1220. required: true
  1221. schema:
  1222. type: string
  1223. requestBody:
  1224. content:
  1225. application/json:
  1226. schema:
  1227. $ref: '#/components/schemas/ConnectorConfig'
  1228. responses:
  1229. 200:
  1230. description: OK
  1231. content:
  1232. application/json:
  1233. schema:
  1234. $ref: '#/components/schemas/Connector'
  1235. 409:
  1236. description: rebalance is in progress
  1237. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/tasks:
  1238. get:
  1239. tags:
  1240. - Kafka Connect
  1241. summary: get connector tasks
  1242. operationId: getConnectorTasks
  1243. parameters:
  1244. - name: clusterName
  1245. in: path
  1246. required: true
  1247. schema:
  1248. type: string
  1249. - name: connectName
  1250. in: path
  1251. required: true
  1252. schema:
  1253. type: string
  1254. - name: connectorName
  1255. in: path
  1256. required: true
  1257. schema:
  1258. type: string
  1259. responses:
  1260. 200:
  1261. description: OK
  1262. content:
  1263. application/json:
  1264. schema:
  1265. type: array
  1266. items:
  1267. $ref: '#/components/schemas/Task'
  1268. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/tasks/{taskId}/action/restart:
  1269. post:
  1270. tags:
  1271. - Kafka Connect
  1272. summary: restart connector task
  1273. operationId: restartConnectorTask
  1274. parameters:
  1275. - name: clusterName
  1276. in: path
  1277. required: true
  1278. schema:
  1279. type: string
  1280. - name: connectName
  1281. in: path
  1282. required: true
  1283. schema:
  1284. type: string
  1285. - name: connectorName
  1286. in: path
  1287. required: true
  1288. schema:
  1289. type: string
  1290. - name: taskId
  1291. in: path
  1292. required: true
  1293. schema:
  1294. type: integer
  1295. responses:
  1296. 200:
  1297. description: OK
  1298. /api/clusters/{clusterName}/ksql:
  1299. post:
  1300. tags:
  1301. - Ksql
  1302. summary: executeKsqlCommand
  1303. operationId: executeKsqlCommand
  1304. parameters:
  1305. - name: clusterName
  1306. in: path
  1307. required: true
  1308. schema:
  1309. type: string
  1310. requestBody:
  1311. content:
  1312. application/json:
  1313. schema:
  1314. $ref: '#/components/schemas/KsqlCommand'
  1315. responses:
  1316. 200:
  1317. description: OK
  1318. content:
  1319. application/json:
  1320. schema:
  1321. $ref: '#/components/schemas/KsqlCommandResponse'
  1322. /api/clusters/{clusterName}/connects/{connectName}/plugins:
  1323. get:
  1324. tags:
  1325. - Kafka Connect
  1326. summary: get connector plugins
  1327. operationId: getConnectorPlugins
  1328. parameters:
  1329. - name: clusterName
  1330. in: path
  1331. required: true
  1332. schema:
  1333. type: string
  1334. - name: connectName
  1335. in: path
  1336. required: true
  1337. schema:
  1338. type: string
  1339. responses:
  1340. 200:
  1341. description: OK
  1342. content:
  1343. application/json:
  1344. schema:
  1345. type: array
  1346. items:
  1347. $ref: '#/components/schemas/ConnectorPlugin'
  1348. /api/clusters/{clusterName}/connects/{connectName}/plugins/{pluginName}/config/validate:
  1349. put:
  1350. tags:
  1351. - Kafka Connect
  1352. summary: validate connector plugin configuration
  1353. operationId: validateConnectorPluginConfig
  1354. parameters:
  1355. - name: clusterName
  1356. in: path
  1357. required: true
  1358. schema:
  1359. type: string
  1360. - name: connectName
  1361. in: path
  1362. required: true
  1363. schema:
  1364. type: string
  1365. - name: pluginName
  1366. in: path
  1367. required: true
  1368. schema:
  1369. type: string
  1370. requestBody:
  1371. content:
  1372. application/json:
  1373. schema:
  1374. $ref: '#/components/schemas/ConnectorConfig'
  1375. responses:
  1376. 200:
  1377. description: OK
  1378. content:
  1379. application/json:
  1380. schema:
  1381. $ref: '#/components/schemas/ConnectorPluginConfigValidationResponse'
  1382. /api/clusters/{clusterName}/topics/{topicName}/partitions:
  1383. patch:
  1384. tags:
  1385. - Topics
  1386. summary: increaseTopicPartitions
  1387. operationId: increaseTopicPartitions
  1388. parameters:
  1389. - name: clusterName
  1390. in: path
  1391. required: true
  1392. schema:
  1393. type: string
  1394. - name: topicName
  1395. in: path
  1396. required: true
  1397. schema:
  1398. type: string
  1399. requestBody:
  1400. content:
  1401. application/json:
  1402. schema:
  1403. $ref: '#/components/schemas/PartitionsIncrease'
  1404. responses:
  1405. 200:
  1406. description: OK
  1407. content:
  1408. application/json:
  1409. schema:
  1410. $ref: '#/components/schemas/PartitionsIncreaseResponse'
  1411. 404:
  1412. description: Not found
  1413. components:
  1414. schemas:
  1415. ErrorResponse:
  1416. description: Error object that will be returned with 4XX and 5XX HTTP statuses
  1417. type: object
  1418. properties:
  1419. code:
  1420. type: integer
  1421. description: Internal error code (can be used for message formatting & localization on UI)
  1422. message:
  1423. type: string
  1424. description: Error message
  1425. timestamp:
  1426. type: number
  1427. description: Response unix timestamp in ms
  1428. requestId:
  1429. type: string
  1430. description: Unique server-defined request id for convenient debugging
  1431. fieldsErrors:
  1432. type: array
  1433. items:
  1434. $ref: '#/components/schemas/FieldError'
  1435. FieldError:
  1436. type: object
  1437. properties:
  1438. fieldName:
  1439. type: string
  1440. description: Name of field that violated format
  1441. restrictions:
  1442. description: Field format violations description (ex. ["size must be between 0 and 20", "must be a well-formed email address"])
  1443. type: array
  1444. items:
  1445. type: string
  1446. Cluster:
  1447. type: object
  1448. properties:
  1449. name:
  1450. type: string
  1451. defaultCluster:
  1452. type: boolean
  1453. status:
  1454. $ref: '#/components/schemas/ServerStatus'
  1455. brokerCount:
  1456. type: integer
  1457. onlinePartitionCount:
  1458. type: integer
  1459. topicCount:
  1460. type: integer
  1461. bytesInPerSec:
  1462. type: number
  1463. bytesOutPerSec:
  1464. type: number
  1465. readOnly:
  1466. type: boolean
  1467. version:
  1468. type: string
  1469. features:
  1470. type: array
  1471. items:
  1472. type: string
  1473. enum:
  1474. - SCHEMA_REGISTRY
  1475. - KAFKA_CONNECT
  1476. - KSQL_DB
  1477. required:
  1478. - id
  1479. - name
  1480. - status
  1481. ServerStatus:
  1482. type: string
  1483. enum:
  1484. - online
  1485. - offline
  1486. ClusterMetrics:
  1487. type: object
  1488. properties:
  1489. items:
  1490. type: array
  1491. items:
  1492. $ref: '#/components/schemas/Metric'
  1493. ClusterStats:
  1494. type: object
  1495. properties:
  1496. brokerCount:
  1497. type: integer
  1498. zooKeeperStatus:
  1499. type: integer
  1500. activeControllers:
  1501. type: integer
  1502. onlinePartitionCount:
  1503. type: integer
  1504. offlinePartitionCount:
  1505. type: integer
  1506. inSyncReplicasCount:
  1507. type: integer
  1508. outOfSyncReplicasCount:
  1509. type: integer
  1510. underReplicatedPartitionCount:
  1511. type: integer
  1512. diskUsage:
  1513. type: array
  1514. items:
  1515. $ref: '#/components/schemas/BrokerDiskUsage'
  1516. version:
  1517. type: string
  1518. BrokerDiskUsage:
  1519. type: object
  1520. properties:
  1521. brokerId:
  1522. type: integer
  1523. segmentSize:
  1524. type: integer
  1525. format: int64
  1526. segmentCount:
  1527. type: integer
  1528. required:
  1529. - brokerId
  1530. BrokerMetrics:
  1531. type: object
  1532. properties:
  1533. segmentSize:
  1534. type: integer
  1535. format: int64
  1536. segmentCount:
  1537. type: integer
  1538. metrics:
  1539. type: array
  1540. items:
  1541. $ref: '#/components/schemas/Metric'
  1542. BrokerLogdirs:
  1543. type: object
  1544. properties:
  1545. name:
  1546. type: string
  1547. error:
  1548. type: string
  1549. topics:
  1550. type: array
  1551. items:
  1552. $ref: '#/components/schemas/TopicLogdirs'
  1553. BrokersLogdirs:
  1554. type: object
  1555. properties:
  1556. name:
  1557. type: string
  1558. error:
  1559. type: string
  1560. topics:
  1561. type: array
  1562. items:
  1563. $ref: '#/components/schemas/BrokerTopicLogdirs'
  1564. TopicsResponse:
  1565. type: object
  1566. properties:
  1567. pageCount:
  1568. type: integer
  1569. topics:
  1570. type: array
  1571. items:
  1572. $ref: '#/components/schemas/Topic'
  1573. TopicColumnsToSort:
  1574. type: string
  1575. enum:
  1576. - NAME
  1577. - OUT_OF_SYNC_REPLICAS
  1578. - TOTAL_PARTITIONS
  1579. - REPLICATION_FACTOR
  1580. Topic:
  1581. type: object
  1582. properties:
  1583. name:
  1584. type: string
  1585. internal:
  1586. type: boolean
  1587. partitionCount:
  1588. type: integer
  1589. replicationFactor:
  1590. type: integer
  1591. replicas:
  1592. type: integer
  1593. inSyncReplicas:
  1594. type: integer
  1595. segmentSize:
  1596. type: integer
  1597. format: int64
  1598. segmentCount:
  1599. type: integer
  1600. underReplicatedPartitions:
  1601. type: integer
  1602. cleanUpPolicy:
  1603. type: string
  1604. enum:
  1605. - DELETE
  1606. - COMPACT
  1607. - COMPACT_DELETE
  1608. - UNKNOWN
  1609. partitions:
  1610. type: array
  1611. items:
  1612. $ref: "#/components/schemas/Partition"
  1613. required:
  1614. - name
  1615. Replica:
  1616. type: object
  1617. properties:
  1618. broker:
  1619. type: integer
  1620. leader:
  1621. type: boolean
  1622. inSync:
  1623. type: boolean
  1624. TopicDetails:
  1625. type: object
  1626. properties:
  1627. name:
  1628. type: string
  1629. internal:
  1630. type: boolean
  1631. partitions:
  1632. type: array
  1633. items:
  1634. $ref: "#/components/schemas/Partition"
  1635. partitionCount:
  1636. type: integer
  1637. replicationFactor:
  1638. type: integer
  1639. replicas:
  1640. type: integer
  1641. inSyncReplicas:
  1642. type: integer
  1643. bytesInPerSec:
  1644. type: number
  1645. bytesOutPerSec:
  1646. type: number
  1647. segmentSize:
  1648. type: integer
  1649. segmentCount:
  1650. type: integer
  1651. underReplicatedPartitions:
  1652. type: integer
  1653. required:
  1654. - name
  1655. TopicConfig:
  1656. type: object
  1657. properties:
  1658. name:
  1659. type: string
  1660. value:
  1661. type: string
  1662. defaultValue:
  1663. type: string
  1664. source:
  1665. $ref: "#/components/schemas/ConfigSource"
  1666. isSensitive:
  1667. type: boolean
  1668. isReadOnly:
  1669. type: boolean
  1670. synonyms:
  1671. type: array
  1672. items:
  1673. $ref: "#/components/schemas/ConfigSynonym"
  1674. required:
  1675. - name
  1676. TopicCreation:
  1677. type: object
  1678. properties:
  1679. name:
  1680. type: string
  1681. partitions:
  1682. type: integer
  1683. replicationFactor:
  1684. type: integer
  1685. configs:
  1686. type: object
  1687. additionalProperties:
  1688. type: string
  1689. required:
  1690. - name
  1691. - partitions
  1692. - replicationFactor
  1693. TopicUpdate:
  1694. type: object
  1695. properties:
  1696. configs:
  1697. type: object
  1698. additionalProperties:
  1699. type: string
  1700. required:
  1701. - configs
  1702. Broker:
  1703. type: object
  1704. properties:
  1705. id:
  1706. type: integer
  1707. host:
  1708. type: string
  1709. required:
  1710. - id
  1711. BrokerLogdirUpdate:
  1712. type: object
  1713. properties:
  1714. topic:
  1715. type: string
  1716. partition:
  1717. type: integer
  1718. logDir:
  1719. type: string
  1720. ConsumerGroupState:
  1721. type: string
  1722. enum:
  1723. - UNKNOWN
  1724. - PREPARING_REBALANCE
  1725. - COMPLETING_REBALANCE
  1726. - STABLE
  1727. - DEAD
  1728. - EMPTY
  1729. MessageFormat:
  1730. type: string
  1731. enum:
  1732. - AVRO
  1733. - JSON
  1734. - PROTOBUF
  1735. - UNKNOWN
  1736. ConsumerGroup:
  1737. type: object
  1738. properties:
  1739. groupId:
  1740. type: string
  1741. members:
  1742. type: integer
  1743. topics:
  1744. type: integer
  1745. simple:
  1746. type: boolean
  1747. partitionAssignor:
  1748. type: string
  1749. state:
  1750. $ref: "#/components/schemas/ConsumerGroupState"
  1751. coordinator:
  1752. $ref: "#/components/schemas/Broker"
  1753. messagesBehind:
  1754. type: integer
  1755. format: int64
  1756. required:
  1757. - groupId
  1758. CreateTopicMessage:
  1759. type: object
  1760. properties:
  1761. partition:
  1762. type: integer
  1763. key:
  1764. type: string
  1765. headers:
  1766. type: object
  1767. additionalProperties:
  1768. type: string
  1769. content:
  1770. type: string
  1771. TopicMessageSchema:
  1772. type: object
  1773. properties:
  1774. key:
  1775. $ref: "#/components/schemas/MessageSchema"
  1776. value:
  1777. $ref: "#/components/schemas/MessageSchema"
  1778. required:
  1779. - key
  1780. - value
  1781. MessageSchema:
  1782. type: object
  1783. properties:
  1784. name:
  1785. type: string
  1786. source:
  1787. type: string
  1788. enum:
  1789. - SOURCE_SCHEMA_REGISTRY
  1790. - SOURCE_PROTO_FILE
  1791. - SOURCE_UNKNOWN
  1792. schema:
  1793. type: string
  1794. required:
  1795. - name
  1796. - source
  1797. - schema
  1798. TopicMessageEvent:
  1799. type: object
  1800. properties:
  1801. type:
  1802. type: string
  1803. enum:
  1804. - PHASE
  1805. - MESSAGE
  1806. - CONSUMING
  1807. - DONE
  1808. message:
  1809. $ref: "#/components/schemas/TopicMessage"
  1810. phase:
  1811. $ref: "#/components/schemas/TopicMessagePhase"
  1812. consuming:
  1813. $ref: "#/components/schemas/TopicMessageConsuming"
  1814. TopicMessagePhase:
  1815. type: object
  1816. properties:
  1817. name:
  1818. type: string
  1819. TopicMessageConsuming:
  1820. type: object
  1821. properties:
  1822. bytesConsumed:
  1823. type: integer
  1824. format: int64
  1825. elapsedMs:
  1826. type: integer
  1827. format: int64
  1828. isCancelled:
  1829. type: boolean
  1830. messagesConsumed:
  1831. type: integer
  1832. TopicMessage:
  1833. type: object
  1834. properties:
  1835. partition:
  1836. type: integer
  1837. offset:
  1838. type: integer
  1839. format: int64
  1840. timestamp:
  1841. type: string
  1842. format: date-time
  1843. timestampType:
  1844. type: string
  1845. enum:
  1846. - NO_TIMESTAMP_TYPE
  1847. - CREATE_TIME
  1848. - LOG_APPEND_TIME
  1849. key:
  1850. type: string
  1851. headers:
  1852. type: object
  1853. additionalProperties:
  1854. type: string
  1855. content:
  1856. type: string
  1857. keyFormat:
  1858. $ref: "#/components/schemas/MessageFormat"
  1859. valueFormat:
  1860. $ref: "#/components/schemas/MessageFormat"
  1861. keySize:
  1862. type: integer
  1863. format: int64
  1864. valueSize:
  1865. type: integer
  1866. format: int64
  1867. keySchemaId:
  1868. type: string
  1869. valueSchemaId:
  1870. type: string
  1871. headersSize:
  1872. type: integer
  1873. format: int64
  1874. required:
  1875. - partition
  1876. - offset
  1877. - timestamp
  1878. SeekType:
  1879. type: string
  1880. enum:
  1881. - BEGINNING
  1882. - OFFSET
  1883. - TIMESTAMP
  1884. SeekDirection:
  1885. type: string
  1886. enum:
  1887. - FORWARD
  1888. - BACKWARD
  1889. default: FORWARD
  1890. Partition:
  1891. type: object
  1892. properties:
  1893. partition:
  1894. type: integer
  1895. leader:
  1896. type: integer
  1897. replicas:
  1898. type: array
  1899. items:
  1900. $ref: '#/components/schemas/Replica'
  1901. offsetMax:
  1902. type: integer
  1903. format: int64
  1904. offsetMin:
  1905. type: integer
  1906. format: int64
  1907. required:
  1908. - topic
  1909. - partition
  1910. - offsetMax
  1911. - offsetMin
  1912. ConsumerGroupTopicPartition:
  1913. type: object
  1914. properties:
  1915. topic:
  1916. type: string
  1917. partition:
  1918. type: integer
  1919. currentOffset:
  1920. type: integer
  1921. format: int64
  1922. endOffset:
  1923. type: integer
  1924. format: int64
  1925. messagesBehind:
  1926. type: integer
  1927. format: int64
  1928. consumerId:
  1929. type: string
  1930. host:
  1931. type: string
  1932. required:
  1933. - topic
  1934. - partition
  1935. ConsumerGroupDetails:
  1936. allOf:
  1937. - $ref: '#/components/schemas/ConsumerGroup'
  1938. - type: object
  1939. properties:
  1940. partitions:
  1941. type: array
  1942. items:
  1943. $ref: '#/components/schemas/ConsumerGroupTopicPartition'
  1944. Metric:
  1945. type: object
  1946. properties:
  1947. name:
  1948. type: string
  1949. canonicalName:
  1950. type: string
  1951. params:
  1952. type: string
  1953. additionalProperties:
  1954. type: string
  1955. value:
  1956. type: string
  1957. additionalProperties:
  1958. type: number
  1959. TopicLogdirs:
  1960. type: object
  1961. properties:
  1962. name:
  1963. type: string
  1964. partitions:
  1965. type: array
  1966. items:
  1967. $ref: '#/components/schemas/TopicPartitionLogdir'
  1968. BrokerTopicLogdirs:
  1969. type: object
  1970. properties:
  1971. name:
  1972. type: string
  1973. partitions:
  1974. type: array
  1975. items:
  1976. $ref: '#/components/schemas/BrokerTopicPartitionLogdir'
  1977. TopicPartitionLogdir:
  1978. type: object
  1979. properties:
  1980. partition:
  1981. type: integer
  1982. size:
  1983. type: integer
  1984. format: int64
  1985. offsetLag:
  1986. type: integer
  1987. format: int64
  1988. BrokerTopicPartitionLogdir:
  1989. allOf:
  1990. - $ref: '#/components/schemas/TopicPartitionLogdir'
  1991. - type: object
  1992. properties:
  1993. broker:
  1994. type: integer
  1995. SchemaSubject:
  1996. type: object
  1997. properties:
  1998. subject:
  1999. type: string
  2000. version:
  2001. type: string
  2002. id:
  2003. type: integer
  2004. schema:
  2005. type: string
  2006. compatibilityLevel:
  2007. type: string
  2008. schemaType:
  2009. $ref: '#/components/schemas/SchemaType'
  2010. required:
  2011. - id
  2012. - subject
  2013. - version
  2014. - schema
  2015. - compatibilityLevel
  2016. - schemaType
  2017. NewSchemaSubject:
  2018. type: object
  2019. properties:
  2020. subject:
  2021. type: string
  2022. schema:
  2023. type: string
  2024. schemaType:
  2025. $ref: '#/components/schemas/SchemaType'
  2026. required:
  2027. - subject
  2028. - schema
  2029. - schemaType
  2030. CompatibilityLevel:
  2031. type: object
  2032. properties:
  2033. compatibility:
  2034. type: string
  2035. enum:
  2036. - BACKWARD
  2037. - BACKWARD_TRANSITIVE
  2038. - FORWARD
  2039. - FORWARD_TRANSITIVE
  2040. - FULL
  2041. - FULL_TRANSITIVE
  2042. - NONE
  2043. required:
  2044. - compatibility
  2045. SchemaType:
  2046. type: string
  2047. enum:
  2048. - AVRO
  2049. - JSON
  2050. - PROTOBUF
  2051. CompatibilityCheckResponse:
  2052. type: object
  2053. properties:
  2054. isCompatible:
  2055. type: boolean
  2056. required:
  2057. - isCompatible
  2058. Connect:
  2059. type: object
  2060. properties:
  2061. name:
  2062. type: string
  2063. address:
  2064. type: string
  2065. required:
  2066. - name
  2067. ConnectorConfig:
  2068. type: object
  2069. additionalProperties:
  2070. type: object
  2071. TaskId:
  2072. type: object
  2073. properties:
  2074. connector:
  2075. type: string
  2076. task:
  2077. type: integer
  2078. Task:
  2079. type: object
  2080. properties:
  2081. id:
  2082. $ref: '#/components/schemas/TaskId'
  2083. status:
  2084. $ref: '#/components/schemas/TaskStatus'
  2085. config:
  2086. $ref: '#/components/schemas/ConnectorConfig'
  2087. required:
  2088. - status
  2089. NewConnector:
  2090. type: object
  2091. properties:
  2092. name:
  2093. type: string
  2094. config:
  2095. $ref: '#/components/schemas/ConnectorConfig'
  2096. required:
  2097. - name
  2098. - config
  2099. Connector:
  2100. allOf:
  2101. - $ref: '#/components/schemas/NewConnector'
  2102. - type: object
  2103. properties:
  2104. tasks:
  2105. type: array
  2106. items:
  2107. $ref: '#/components/schemas/TaskId'
  2108. type:
  2109. $ref: '#/components/schemas/ConnectorType'
  2110. status:
  2111. $ref: '#/components/schemas/ConnectorStatus'
  2112. connect:
  2113. type: string
  2114. required:
  2115. - type
  2116. - status
  2117. - connect
  2118. ConnectorType:
  2119. type: string
  2120. enum:
  2121. - SOURCE
  2122. - SINK
  2123. ConsumerGroupOffsetsReset:
  2124. type: object
  2125. properties:
  2126. topic:
  2127. type: string
  2128. resetType:
  2129. $ref: '#/components/schemas/ConsumerGroupOffsetsResetType'
  2130. partitions:
  2131. type: array
  2132. items:
  2133. type: integer
  2134. description: list of target partitions, all partitions will be used if it is not set or empty
  2135. resetToTimestamp:
  2136. type: integer
  2137. format: int64
  2138. description: should be set if resetType is TIMESTAMP
  2139. partitionsOffsets:
  2140. type: array
  2141. items:
  2142. $ref: '#/components/schemas/PartitionOffset'
  2143. description: List of partition offsets to reset to, should be set when resetType is OFFSET
  2144. required:
  2145. - topic
  2146. - resetType
  2147. PartitionOffset:
  2148. type: object
  2149. properties:
  2150. partition:
  2151. type: integer
  2152. offset:
  2153. type: integer
  2154. format: int64
  2155. required:
  2156. - partition
  2157. - offset
  2158. ConsumerGroupOffsetsResetType:
  2159. type: string
  2160. enum:
  2161. - EARLIEST
  2162. - LATEST
  2163. - TIMESTAMP
  2164. - OFFSET
  2165. TaskStatus:
  2166. type: object
  2167. properties:
  2168. id:
  2169. type: integer
  2170. state:
  2171. $ref: '#/components/schemas/ConnectorTaskStatus'
  2172. worker_id:
  2173. type: string
  2174. trace:
  2175. type: string
  2176. required:
  2177. - id
  2178. - state
  2179. - worker_id
  2180. ConnectorStatus:
  2181. type: object
  2182. properties:
  2183. state:
  2184. $ref: '#/components/schemas/ConnectorTaskStatus'
  2185. worker_id:
  2186. type: string
  2187. required:
  2188. - state
  2189. ConnectorTaskStatus:
  2190. type: string
  2191. enum:
  2192. - RUNNING
  2193. - FAILED
  2194. - PAUSED
  2195. - UNASSIGNED
  2196. ConnectorAction:
  2197. type: string
  2198. enum:
  2199. - RESTART
  2200. - PAUSE
  2201. - RESUME
  2202. TaskAction:
  2203. type: string
  2204. enum:
  2205. - restart
  2206. ConnectorPlugin:
  2207. type: object
  2208. properties:
  2209. class:
  2210. type: string
  2211. ConnectorPluginConfigDefinition:
  2212. type: object
  2213. properties:
  2214. name:
  2215. type: string
  2216. type:
  2217. type: string
  2218. enum:
  2219. - BOOLEAN
  2220. - CLASS
  2221. - DOUBLE
  2222. - INT
  2223. - LIST
  2224. - LONG
  2225. - PASSWORD
  2226. - SHORT
  2227. - STRING
  2228. required:
  2229. type: boolean
  2230. default_value:
  2231. type: string
  2232. importance:
  2233. type: string
  2234. enum:
  2235. - LOW
  2236. - MEDIUM
  2237. - HIGH
  2238. documentation:
  2239. type: string
  2240. group:
  2241. type: string
  2242. width:
  2243. type: string
  2244. enum:
  2245. - SHORT
  2246. - MEDIUM
  2247. - LONG
  2248. - NONE
  2249. display_name:
  2250. type: string
  2251. dependents:
  2252. type: array
  2253. items:
  2254. type: string
  2255. order:
  2256. type: integer
  2257. ConnectorPluginConfigValue:
  2258. type: object
  2259. properties:
  2260. name:
  2261. type: string
  2262. value:
  2263. type: string
  2264. recommended_values:
  2265. type: array
  2266. items:
  2267. type: string
  2268. errors:
  2269. type: array
  2270. items:
  2271. type: string
  2272. visible:
  2273. type: boolean
  2274. ConnectorPluginConfig:
  2275. type: object
  2276. properties:
  2277. definition:
  2278. $ref: '#/components/schemas/ConnectorPluginConfigDefinition'
  2279. value:
  2280. $ref: '#/components/schemas/ConnectorPluginConfigValue'
  2281. ConnectorPluginConfigValidationResponse:
  2282. type: object
  2283. properties:
  2284. name:
  2285. type: string
  2286. error_count:
  2287. type: integer
  2288. groups:
  2289. type: array
  2290. items:
  2291. type: string
  2292. configs:
  2293. type: array
  2294. items:
  2295. $ref: '#/components/schemas/ConnectorPluginConfig'
  2296. KsqlCommand:
  2297. type: object
  2298. properties:
  2299. ksql:
  2300. type: string
  2301. streamsProperties:
  2302. type: object
  2303. additionalProperties:
  2304. type: string
  2305. required:
  2306. - ksql
  2307. KsqlCommandResponse:
  2308. type: object
  2309. properties:
  2310. data:
  2311. $ref: '#/components/schemas/Table'
  2312. message:
  2313. type: string
  2314. Table:
  2315. type: object
  2316. properties:
  2317. headers:
  2318. type: array
  2319. items:
  2320. type: string
  2321. rows:
  2322. type: array
  2323. items:
  2324. type: array
  2325. items:
  2326. type: string
  2327. required:
  2328. - headers
  2329. - rows
  2330. FullConnectorInfo:
  2331. type: object
  2332. properties:
  2333. connect:
  2334. type: string
  2335. name:
  2336. type: string
  2337. connector_class:
  2338. type: string
  2339. type:
  2340. $ref: '#/components/schemas/ConnectorType'
  2341. topics:
  2342. type: array
  2343. items:
  2344. type: string
  2345. status:
  2346. $ref: '#/components/schemas/ConnectorStatus'
  2347. tasks_count:
  2348. type: integer
  2349. failed_tasks_count:
  2350. type: integer
  2351. required:
  2352. - name
  2353. - connect
  2354. - status
  2355. PartitionsIncrease:
  2356. type: object
  2357. properties:
  2358. totalPartitionsCount:
  2359. type: integer
  2360. minimum: 1
  2361. required:
  2362. - totalPartitionsCount
  2363. PartitionsIncreaseResponse:
  2364. type: object
  2365. properties:
  2366. totalPartitionsCount:
  2367. type: integer
  2368. topicName:
  2369. type: string
  2370. required:
  2371. - totalPartitionsCount
  2372. - topicName
  2373. ReplicationFactorChange:
  2374. type: object
  2375. properties:
  2376. totalReplicationFactor:
  2377. type: integer
  2378. minimum: 1
  2379. required:
  2380. - totalReplicationFactor
  2381. ReplicationFactorChangeResponse:
  2382. type: object
  2383. properties:
  2384. totalReplicationFactor:
  2385. type: integer
  2386. topicName:
  2387. type: string
  2388. required:
  2389. - totalReplicationFactor
  2390. - topicName
  2391. BrokerConfigItem:
  2392. type: object
  2393. properties:
  2394. value:
  2395. type: string
  2396. BrokerConfig:
  2397. type: object
  2398. properties:
  2399. name:
  2400. type: string
  2401. value:
  2402. type: string
  2403. source:
  2404. $ref: '#/components/schemas/ConfigSource'
  2405. isSensitive:
  2406. type: boolean
  2407. isReadOnly:
  2408. type: boolean
  2409. synonyms:
  2410. type: array
  2411. items:
  2412. $ref: '#/components/schemas/ConfigSynonym'
  2413. required:
  2414. - name
  2415. - value
  2416. - source
  2417. - isSensitive
  2418. - isReadOnly
  2419. ConfigSource:
  2420. type: string
  2421. enum:
  2422. - DYNAMIC_TOPIC_CONFIG
  2423. - DYNAMIC_BROKER_LOGGER_CONFIG
  2424. - DYNAMIC_BROKER_CONFIG
  2425. - DYNAMIC_DEFAULT_BROKER_CONFIG
  2426. - STATIC_BROKER_CONFIG
  2427. - DEFAULT_CONFIG
  2428. - UNKNOWN
  2429. ConfigSynonym:
  2430. type: object
  2431. properties:
  2432. name:
  2433. type: string
  2434. value:
  2435. type: string
  2436. source:
  2437. $ref: '#/components/schemas/ConfigSource'