kafka-ui-api.yaml 76 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362
  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: https://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. - name: sortOrder
  286. in: query
  287. required: false
  288. schema:
  289. $ref: '#/components/schemas/SortOrder'
  290. responses:
  291. 200:
  292. description: OK
  293. content:
  294. application/json:
  295. schema:
  296. $ref: '#/components/schemas/TopicsResponse'
  297. post:
  298. tags:
  299. - Topics
  300. summary: createTopic
  301. operationId: createTopic
  302. parameters:
  303. - name: clusterName
  304. in: path
  305. required: true
  306. schema:
  307. type: string
  308. requestBody:
  309. content:
  310. application/json:
  311. schema:
  312. $ref: '#/components/schemas/TopicCreation'
  313. responses:
  314. 201:
  315. description: Created
  316. content:
  317. application/json:
  318. schema:
  319. $ref: '#/components/schemas/Topic'
  320. /api/clusters/{clusterName}/topics/{topicName}/clone:
  321. post:
  322. tags:
  323. - Topics
  324. summary: cloneTopic
  325. operationId: cloneTopic
  326. parameters:
  327. - name: clusterName
  328. in: path
  329. required: true
  330. schema:
  331. type: string
  332. - name: topicName
  333. in: path
  334. required: true
  335. schema:
  336. type: string
  337. - name: newTopicName
  338. in: query
  339. required: true
  340. schema:
  341. type: string
  342. responses:
  343. 201:
  344. description: Created
  345. content:
  346. application/json:
  347. schema:
  348. $ref: '#/components/schemas/Topic'
  349. 404:
  350. description: Not found
  351. /api/clusters/{clusterName}/topics/{topicName}/analysis:
  352. get:
  353. tags:
  354. - Topics
  355. summary: getTopicAnalysis
  356. operationId: getTopicAnalysis
  357. parameters:
  358. - name: clusterName
  359. in: path
  360. required: true
  361. schema:
  362. type: string
  363. - name: topicName
  364. in: path
  365. required: true
  366. schema:
  367. type: string
  368. responses:
  369. 200:
  370. description: OK
  371. content:
  372. application/json:
  373. schema:
  374. $ref: '#/components/schemas/TopicAnalysis'
  375. 404:
  376. description: Not found
  377. post:
  378. tags:
  379. - Topics
  380. summary: analyzeTopic
  381. operationId: analyzeTopic
  382. parameters:
  383. - name: clusterName
  384. in: path
  385. required: true
  386. schema:
  387. type: string
  388. - name: topicName
  389. in: path
  390. required: true
  391. schema:
  392. type: string
  393. responses:
  394. 200:
  395. description: Analysis started
  396. 404:
  397. description: Not found
  398. delete:
  399. tags:
  400. - Topics
  401. summary: cancelTopicAnalysis
  402. operationId: cancelTopicAnalysis
  403. parameters:
  404. - name: clusterName
  405. in: path
  406. required: true
  407. schema:
  408. type: string
  409. - name: topicName
  410. in: path
  411. required: true
  412. schema:
  413. type: string
  414. responses:
  415. 200:
  416. description: Analysis cancelled
  417. 404:
  418. description: Not found
  419. /api/clusters/{clusterName}/topics/{topicName}:
  420. get:
  421. tags:
  422. - Topics
  423. summary: getTopicDetails
  424. operationId: getTopicDetails
  425. parameters:
  426. - name: clusterName
  427. in: path
  428. required: true
  429. schema:
  430. type: string
  431. - name: topicName
  432. in: path
  433. required: true
  434. schema:
  435. type: string
  436. responses:
  437. 200:
  438. description: OK
  439. content:
  440. application/json:
  441. schema:
  442. $ref: '#/components/schemas/TopicDetails'
  443. post:
  444. tags:
  445. - Topics
  446. summary: recreateTopic
  447. operationId: recreateTopic
  448. parameters:
  449. - name: clusterName
  450. in: path
  451. required: true
  452. schema:
  453. type: string
  454. - name: topicName
  455. in: path
  456. required: true
  457. schema:
  458. type: string
  459. responses:
  460. 201:
  461. description: Created
  462. content:
  463. application/json:
  464. schema:
  465. $ref: '#/components/schemas/Topic'
  466. 404:
  467. description: Not found
  468. 408:
  469. description: Topic recreation timeout
  470. patch:
  471. tags:
  472. - Topics
  473. summary: updateTopic
  474. operationId: updateTopic
  475. parameters:
  476. - name: clusterName
  477. in: path
  478. required: true
  479. schema:
  480. type: string
  481. - name: topicName
  482. in: path
  483. required: true
  484. schema:
  485. type: string
  486. requestBody:
  487. content:
  488. application/json:
  489. schema:
  490. $ref: '#/components/schemas/TopicUpdate'
  491. responses:
  492. 200:
  493. description: Updated
  494. content:
  495. application/json:
  496. schema:
  497. $ref: '#/components/schemas/Topic'
  498. delete:
  499. tags:
  500. - Topics
  501. summary: deleteTopic
  502. operationId: deleteTopic
  503. parameters:
  504. - name: clusterName
  505. in: path
  506. required: true
  507. schema:
  508. type: string
  509. - name: topicName
  510. in: path
  511. required: true
  512. schema:
  513. type: string
  514. responses:
  515. 200:
  516. description: OK
  517. 404:
  518. description: Not found
  519. /api/clusters/{clusterName}/topics/{topicName}/config:
  520. get:
  521. tags:
  522. - Topics
  523. summary: getTopicConfigs
  524. operationId: getTopicConfigs
  525. parameters:
  526. - name: clusterName
  527. in: path
  528. required: true
  529. schema:
  530. type: string
  531. - name: topicName
  532. in: path
  533. required: true
  534. schema:
  535. type: string
  536. responses:
  537. 200:
  538. description: OK
  539. content:
  540. application/json:
  541. schema:
  542. type: array
  543. items:
  544. $ref: '#/components/schemas/TopicConfig'
  545. /api/clusters/{clusterName}/topics/{topicName}/replications:
  546. patch:
  547. tags:
  548. - Topics
  549. summary: changeReplicationFactor
  550. operationId: changeReplicationFactor
  551. parameters:
  552. - name: clusterName
  553. in: path
  554. required: true
  555. schema:
  556. type: string
  557. - name: topicName
  558. in: path
  559. required: true
  560. schema:
  561. type: string
  562. requestBody:
  563. content:
  564. application/json:
  565. schema:
  566. $ref: '#/components/schemas/ReplicationFactorChange'
  567. responses:
  568. 200:
  569. description: OK
  570. content:
  571. application/json:
  572. schema:
  573. $ref: '#/components/schemas/ReplicationFactorChangeResponse'
  574. 404:
  575. description: Not found
  576. 400:
  577. description: Bad Request
  578. /api/clusters/{clusterName}/topic/{topicName}/serdes:
  579. get:
  580. tags:
  581. - Messages
  582. summary: getSerdes
  583. operationId: getSerdes
  584. parameters:
  585. - name: clusterName
  586. in: path
  587. required: true
  588. schema:
  589. type: string
  590. - name: topicName
  591. in: path
  592. required: true
  593. schema:
  594. type: string
  595. - name: use
  596. in: query
  597. required: true
  598. schema:
  599. $ref: '#/components/schemas/SerdeUsage'
  600. responses:
  601. 200:
  602. description: OK
  603. content:
  604. application/json:
  605. schema:
  606. $ref: '#/components/schemas/TopicSerdeSuggestion'
  607. /api/clusters/{clusterName}/topics/{topicName}/messages:
  608. get:
  609. tags:
  610. - Messages
  611. summary: getTopicMessages
  612. operationId: getTopicMessages
  613. parameters:
  614. - name: clusterName
  615. in: path
  616. required: true
  617. schema:
  618. type: string
  619. - name: topicName
  620. in: path
  621. required: true
  622. schema:
  623. type: string
  624. - name: seekType
  625. in: query
  626. schema:
  627. $ref: "#/components/schemas/SeekType"
  628. - name: seekTo
  629. in: query
  630. schema:
  631. type: array
  632. items:
  633. type: string
  634. description: The format is [partition]::[offset] for specifying offsets or [partition]::[timestamp in millis] for specifying timestamps
  635. - name: limit
  636. in: query
  637. schema:
  638. type: integer
  639. - name: q
  640. in: query
  641. schema:
  642. type: string
  643. - name: filterQueryType
  644. in: query
  645. schema:
  646. $ref: "#/components/schemas/MessageFilterType"
  647. - name: seekDirection
  648. in: query
  649. schema:
  650. $ref: "#/components/schemas/SeekDirection"
  651. - name: keySerde
  652. in: query
  653. description: "Serde that should be used for deserialization. Will be chosen automatically if not set."
  654. schema:
  655. type: string
  656. - name: valueSerde
  657. in: query
  658. description: "Serde that should be used for deserialization. Will be chosen automatically if not set."
  659. schema:
  660. type: string
  661. responses:
  662. 200:
  663. description: OK
  664. content:
  665. text/event-stream:
  666. schema:
  667. type: array
  668. items:
  669. $ref: '#/components/schemas/TopicMessageEvent'
  670. delete:
  671. tags:
  672. - Messages
  673. summary: deleteTopicMessages
  674. operationId: deleteTopicMessages
  675. parameters:
  676. - name: clusterName
  677. in: path
  678. required: true
  679. schema:
  680. type: string
  681. - name: topicName
  682. in: path
  683. required: true
  684. schema:
  685. type: string
  686. - name: partitions
  687. in: query
  688. required: false
  689. schema:
  690. type: array
  691. items:
  692. type: integer
  693. responses:
  694. 200:
  695. description: OK
  696. 404:
  697. description: Not found
  698. post:
  699. tags:
  700. - Messages
  701. summary: sendTopicMessages
  702. operationId: sendTopicMessages
  703. parameters:
  704. - name: clusterName
  705. in: path
  706. required: true
  707. schema:
  708. type: string
  709. - name: topicName
  710. in: path
  711. required: true
  712. schema:
  713. type: string
  714. requestBody:
  715. content:
  716. application/json:
  717. schema:
  718. $ref: '#/components/schemas/CreateTopicMessage'
  719. responses:
  720. 200:
  721. description: OK
  722. 404:
  723. description: Not found
  724. /api/clusters/{clusterName}/topics/{topicName}/consumer-groups:
  725. get:
  726. tags:
  727. - Consumer Groups
  728. summary: get Consumer Groups By Topics
  729. operationId: getTopicConsumerGroups
  730. parameters:
  731. - name: clusterName
  732. in: path
  733. required: true
  734. schema:
  735. type: string
  736. - name: topicName
  737. in: path
  738. required: true
  739. schema:
  740. type: string
  741. responses:
  742. 200:
  743. description: OK
  744. content:
  745. application/json:
  746. schema:
  747. type: array
  748. items:
  749. $ref: '#/components/schemas/ConsumerGroup'
  750. /api/clusters/{clusterName}/consumer-groups/paged:
  751. get:
  752. tags:
  753. - Consumer Groups
  754. summary: Get consumer croups with paging support
  755. operationId: getConsumerGroupsPage
  756. parameters:
  757. - name: clusterName
  758. in: path
  759. required: true
  760. schema:
  761. type: string
  762. - name: page
  763. in: query
  764. required: false
  765. schema:
  766. type: integer
  767. - name: perPage
  768. in: query
  769. required: false
  770. schema:
  771. type: integer
  772. - name: search
  773. in: query
  774. required: false
  775. schema:
  776. type: string
  777. - name: orderBy
  778. in: query
  779. required: false
  780. schema:
  781. $ref: '#/components/schemas/ConsumerGroupOrdering'
  782. - name: sortOrder
  783. in: query
  784. required: false
  785. schema:
  786. $ref: '#/components/schemas/SortOrder'
  787. responses:
  788. 200:
  789. description: OK
  790. content:
  791. application/json:
  792. schema:
  793. $ref: '#/components/schemas/ConsumerGroupsPageResponse'
  794. /api/clusters/{clusterName}/consumer-groups/{id}:
  795. get:
  796. tags:
  797. - Consumer Groups
  798. summary: get Consumer Group By Id
  799. operationId: getConsumerGroup
  800. parameters:
  801. - name: clusterName
  802. in: path
  803. required: true
  804. schema:
  805. type: string
  806. - name: id
  807. in: path
  808. required: true
  809. schema:
  810. type: string
  811. responses:
  812. 200:
  813. description: OK
  814. content:
  815. application/json:
  816. schema:
  817. $ref: '#/components/schemas/ConsumerGroupDetails'
  818. delete:
  819. tags:
  820. - Consumer Groups
  821. summary: Delete Consumer Group by ID
  822. operationId: deleteConsumerGroup
  823. parameters:
  824. - name: clusterName
  825. in: path
  826. required: true
  827. schema:
  828. type: string
  829. - name: id
  830. in: path
  831. required: true
  832. schema:
  833. type: string
  834. responses:
  835. 200:
  836. description: OK
  837. /api/clusters/{clusterName}/consumer-groups/{id}/offsets:
  838. post:
  839. tags:
  840. - Consumer Groups
  841. summary: resets consumer group offsets
  842. operationId: resetConsumerGroupOffsets
  843. parameters:
  844. - name: clusterName
  845. in: path
  846. required: true
  847. schema:
  848. type: string
  849. - name: id
  850. in: path
  851. required: true
  852. schema:
  853. type: string
  854. requestBody:
  855. content:
  856. application/json:
  857. schema:
  858. $ref: '#/components/schemas/ConsumerGroupOffsetsReset'
  859. responses:
  860. 200:
  861. description: OK
  862. /api/clusters/{clusterName}/schemas:
  863. post:
  864. tags:
  865. - Schemas
  866. summary: create a new subject schema or update existing subject schema
  867. operationId: createNewSchema
  868. parameters:
  869. - name: clusterName
  870. in: path
  871. required: true
  872. schema:
  873. type: string
  874. requestBody:
  875. content:
  876. application/json:
  877. schema:
  878. $ref: '#/components/schemas/NewSchemaSubject'
  879. responses:
  880. 200:
  881. description: Ok
  882. content:
  883. application/json:
  884. schema:
  885. $ref: '#/components/schemas/SchemaSubject'
  886. 400:
  887. description: Bad request
  888. 409:
  889. description: Duplicate schema
  890. 422:
  891. description: Invalid parameters
  892. get:
  893. tags:
  894. - Schemas
  895. summary: get all schemas of latest version from Schema Registry service
  896. operationId: getSchemas
  897. parameters:
  898. - name: clusterName
  899. in: path
  900. required: true
  901. schema:
  902. type: string
  903. - name: page
  904. in: query
  905. required: false
  906. schema:
  907. type: integer
  908. - name: perPage
  909. in: query
  910. required: false
  911. schema:
  912. type: integer
  913. - name: search
  914. in: query
  915. required: false
  916. schema:
  917. type: string
  918. responses:
  919. 200:
  920. description: OK
  921. content:
  922. application/json:
  923. schema:
  924. $ref: '#/components/schemas/SchemaSubjectsResponse'
  925. /api/clusters/{clusterName}/schemas/{subject}:
  926. delete:
  927. tags:
  928. - Schemas
  929. summary: delete schema from Schema Registry service
  930. operationId: deleteSchema
  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. responses:
  943. 200:
  944. description: OK
  945. 404:
  946. description: Not found
  947. /api/clusters/{clusterName}/schemas/{subject}/versions:
  948. get:
  949. tags:
  950. - Schemas
  951. summary: get all version of subject from Schema Registry service
  952. operationId: getAllVersionsBySubject
  953. parameters:
  954. - name: clusterName
  955. in: path
  956. required: true
  957. schema:
  958. type: string
  959. - name: subject
  960. in: path
  961. required: true
  962. schema:
  963. type: string
  964. responses:
  965. 200:
  966. description: OK
  967. content:
  968. application/json:
  969. schema:
  970. type: array
  971. items:
  972. $ref: '#/components/schemas/SchemaSubject'
  973. /api/clusters/{clusterName}/schemas/{subject}/latest:
  974. get:
  975. tags:
  976. - Schemas
  977. summary: get the latest schema from Schema Registry service
  978. operationId: getLatestSchema
  979. parameters:
  980. - name: clusterName
  981. in: path
  982. required: true
  983. schema:
  984. type: string
  985. - name: subject
  986. in: path
  987. required: true
  988. schema:
  989. type: string
  990. responses:
  991. 200:
  992. description: OK
  993. content:
  994. application/json:
  995. schema:
  996. $ref: '#/components/schemas/SchemaSubject'
  997. delete:
  998. tags:
  999. - Schemas
  1000. summary: delete the latest schema from schema registry
  1001. operationId: deleteLatestSchema
  1002. parameters:
  1003. - name: clusterName
  1004. in: path
  1005. required: true
  1006. schema:
  1007. type: string
  1008. - name: subject
  1009. in: path
  1010. required: true
  1011. schema:
  1012. type: string
  1013. responses:
  1014. 200:
  1015. description: OK
  1016. 404:
  1017. description: Not found
  1018. /api/clusters/{clusterName}/schemas/{subject}/versions/{version}:
  1019. get:
  1020. tags:
  1021. - Schemas
  1022. summary: get schema by version from Schema Registry service
  1023. operationId: getSchemaByVersion
  1024. parameters:
  1025. - name: clusterName
  1026. in: path
  1027. required: true
  1028. schema:
  1029. type: string
  1030. - name: subject
  1031. in: path
  1032. required: true
  1033. schema:
  1034. type: string
  1035. - name: version
  1036. in: path
  1037. required: true
  1038. schema:
  1039. type: integer
  1040. responses:
  1041. 200:
  1042. description: OK
  1043. content:
  1044. application/json:
  1045. schema:
  1046. $ref: '#/components/schemas/SchemaSubject'
  1047. delete:
  1048. tags:
  1049. - Schemas
  1050. summary: delete schema by version from schema registry
  1051. operationId: deleteSchemaByVersion
  1052. parameters:
  1053. - name: clusterName
  1054. in: path
  1055. required: true
  1056. schema:
  1057. type: string
  1058. - name: subject
  1059. in: path
  1060. required: true
  1061. schema:
  1062. type: string
  1063. - name: version
  1064. in: path
  1065. required: true
  1066. schema:
  1067. type: integer
  1068. responses:
  1069. 200:
  1070. description: OK
  1071. 404:
  1072. description: Not found
  1073. /api/clusters/{clusterName}/schemas/compatibility:
  1074. get:
  1075. tags:
  1076. - Schemas
  1077. summary: Get global schema compatibility level
  1078. operationId: getGlobalSchemaCompatibilityLevel
  1079. parameters:
  1080. - name: clusterName
  1081. in: path
  1082. required: true
  1083. schema:
  1084. type: string
  1085. responses:
  1086. 200:
  1087. description: OK
  1088. content:
  1089. application/json:
  1090. schema:
  1091. $ref: '#/components/schemas/CompatibilityLevel'
  1092. put:
  1093. tags:
  1094. - Schemas
  1095. summary: Update compatibility level globally
  1096. operationId: updateGlobalSchemaCompatibilityLevel
  1097. parameters:
  1098. - name: clusterName
  1099. in: path
  1100. required: true
  1101. schema:
  1102. type: string
  1103. requestBody:
  1104. content:
  1105. application/json:
  1106. schema:
  1107. $ref: '#/components/schemas/CompatibilityLevel'
  1108. responses:
  1109. 200:
  1110. description: OK
  1111. 404:
  1112. description: Not Found
  1113. /api/clusters/{clusterName}/schemas/{subject}/compatibility:
  1114. put:
  1115. tags:
  1116. - Schemas
  1117. summary: Update compatibility level for specific schema.
  1118. operationId: updateSchemaCompatibilityLevel
  1119. parameters:
  1120. - name: clusterName
  1121. in: path
  1122. required: true
  1123. schema:
  1124. type: string
  1125. - name: subject
  1126. in: path
  1127. required: true
  1128. schema:
  1129. type: string
  1130. requestBody:
  1131. content:
  1132. application/json:
  1133. schema:
  1134. $ref: '#/components/schemas/CompatibilityLevel'
  1135. responses:
  1136. 200:
  1137. description: OK
  1138. 404:
  1139. description: Not Found
  1140. /api/clusters/{clusterName}/schemas/{subject}/check:
  1141. post:
  1142. tags:
  1143. - Schemas
  1144. summary: Check compatibility of the schema.
  1145. operationId: checkSchemaCompatibility
  1146. parameters:
  1147. - name: clusterName
  1148. in: path
  1149. required: true
  1150. schema:
  1151. type: string
  1152. - name: subject
  1153. in: path
  1154. required: true
  1155. schema:
  1156. type: string
  1157. requestBody:
  1158. content:
  1159. application/json:
  1160. schema:
  1161. $ref: '#/components/schemas/NewSchemaSubject'
  1162. responses:
  1163. 200:
  1164. description: OK
  1165. content:
  1166. application/json:
  1167. schema:
  1168. $ref: '#/components/schemas/CompatibilityCheckResponse'
  1169. 404:
  1170. description: Not Found
  1171. /api/clusters/{clusterName}/connects:
  1172. get:
  1173. tags:
  1174. - Kafka Connect
  1175. summary: get all kafka connect instances
  1176. operationId: getConnects
  1177. parameters:
  1178. - name: clusterName
  1179. in: path
  1180. required: true
  1181. schema:
  1182. type: string
  1183. responses:
  1184. 200:
  1185. description: OK
  1186. content:
  1187. application/json:
  1188. schema:
  1189. type: array
  1190. items:
  1191. $ref: '#/components/schemas/Connect'
  1192. /api/clusters/{clusterName}/connectors:
  1193. get:
  1194. tags:
  1195. - Kafka Connect
  1196. summary: get filtered kafka connectors
  1197. operationId: getAllConnectors
  1198. parameters:
  1199. - name: clusterName
  1200. in: path
  1201. required: true
  1202. schema:
  1203. type: string
  1204. - name: search
  1205. in: query
  1206. required: false
  1207. schema:
  1208. type: string
  1209. - name: orderBy
  1210. in: query
  1211. required: false
  1212. schema:
  1213. $ref: '#/components/schemas/ConnectorColumnsToSort'
  1214. - name: sortOrder
  1215. in: query
  1216. required: false
  1217. schema:
  1218. $ref: '#/components/schemas/SortOrder'
  1219. responses:
  1220. 200:
  1221. description: OK
  1222. content:
  1223. application/json:
  1224. schema:
  1225. type: array
  1226. items:
  1227. $ref: '#/components/schemas/FullConnectorInfo'
  1228. /api/clusters/{clusterName}/connects/{connectName}/connectors:
  1229. get:
  1230. tags:
  1231. - Kafka Connect
  1232. summary: get connectors for provided kafka connect instance
  1233. operationId: getConnectors
  1234. parameters:
  1235. - name: clusterName
  1236. in: path
  1237. required: true
  1238. schema:
  1239. type: string
  1240. - name: connectName
  1241. in: path
  1242. required: true
  1243. schema:
  1244. type: string
  1245. responses:
  1246. 200:
  1247. description: OK
  1248. content:
  1249. application/json:
  1250. schema:
  1251. type: array
  1252. items:
  1253. type: string
  1254. post:
  1255. tags:
  1256. - Kafka Connect
  1257. summary: create new connector
  1258. operationId: createConnector
  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. requestBody:
  1271. content:
  1272. application/json:
  1273. schema:
  1274. $ref: '#/components/schemas/NewConnector'
  1275. responses:
  1276. 200:
  1277. description: OK
  1278. content:
  1279. application/json:
  1280. schema:
  1281. $ref: '#/components/schemas/Connector'
  1282. 409:
  1283. description: rebalance is in progress
  1284. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}:
  1285. get:
  1286. tags:
  1287. - Kafka Connect
  1288. summary: get information about the connector
  1289. operationId: getConnector
  1290. parameters:
  1291. - name: clusterName
  1292. in: path
  1293. required: true
  1294. schema:
  1295. type: string
  1296. - name: connectName
  1297. in: path
  1298. required: true
  1299. schema:
  1300. type: string
  1301. - name: connectorName
  1302. in: path
  1303. required: true
  1304. schema:
  1305. type: string
  1306. responses:
  1307. 200:
  1308. description: OK
  1309. content:
  1310. application/json:
  1311. schema:
  1312. $ref: '#/components/schemas/Connector'
  1313. delete:
  1314. tags:
  1315. - Kafka Connect
  1316. summary: delete connector
  1317. operationId: deleteConnector
  1318. parameters:
  1319. - name: clusterName
  1320. in: path
  1321. required: true
  1322. schema:
  1323. type: string
  1324. - name: connectName
  1325. in: path
  1326. required: true
  1327. schema:
  1328. type: string
  1329. - name: connectorName
  1330. in: path
  1331. required: true
  1332. schema:
  1333. type: string
  1334. responses:
  1335. 200:
  1336. description: OK
  1337. 409:
  1338. description: rebalance is in progress
  1339. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/action/{action}:
  1340. post:
  1341. tags:
  1342. - Kafka Connect
  1343. summary: update connector state (restart, pause or resume)
  1344. operationId: updateConnectorState
  1345. parameters:
  1346. - name: clusterName
  1347. in: path
  1348. required: true
  1349. schema:
  1350. type: string
  1351. - name: connectName
  1352. in: path
  1353. required: true
  1354. schema:
  1355. type: string
  1356. - name: connectorName
  1357. in: path
  1358. required: true
  1359. schema:
  1360. type: string
  1361. - name: action
  1362. in: path
  1363. required: true
  1364. schema:
  1365. $ref: '#/components/schemas/ConnectorAction'
  1366. responses:
  1367. 200:
  1368. description: OK
  1369. 409:
  1370. description: rebalance is in progress
  1371. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/config:
  1372. get:
  1373. tags:
  1374. - Kafka Connect
  1375. summary: get connector configuration
  1376. operationId: getConnectorConfig
  1377. parameters:
  1378. - name: clusterName
  1379. in: path
  1380. required: true
  1381. schema:
  1382. type: string
  1383. - name: connectName
  1384. in: path
  1385. required: true
  1386. schema:
  1387. type: string
  1388. - name: connectorName
  1389. in: path
  1390. required: true
  1391. schema:
  1392. type: string
  1393. responses:
  1394. 200:
  1395. description: OK
  1396. content:
  1397. application/json:
  1398. schema:
  1399. $ref: '#/components/schemas/ConnectorConfig'
  1400. put:
  1401. tags:
  1402. - Kafka Connect
  1403. summary: update or create connector with provided config
  1404. operationId: setConnectorConfig
  1405. parameters:
  1406. - name: clusterName
  1407. in: path
  1408. required: true
  1409. schema:
  1410. type: string
  1411. - name: connectName
  1412. in: path
  1413. required: true
  1414. schema:
  1415. type: string
  1416. - name: connectorName
  1417. in: path
  1418. required: true
  1419. schema:
  1420. type: string
  1421. requestBody:
  1422. content:
  1423. application/json:
  1424. schema:
  1425. $ref: '#/components/schemas/ConnectorConfig'
  1426. responses:
  1427. 200:
  1428. description: OK
  1429. content:
  1430. application/json:
  1431. schema:
  1432. $ref: '#/components/schemas/Connector'
  1433. 409:
  1434. description: rebalance is in progress
  1435. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/tasks:
  1436. get:
  1437. tags:
  1438. - Kafka Connect
  1439. summary: get connector tasks
  1440. operationId: getConnectorTasks
  1441. parameters:
  1442. - name: clusterName
  1443. in: path
  1444. required: true
  1445. schema:
  1446. type: string
  1447. - name: connectName
  1448. in: path
  1449. required: true
  1450. schema:
  1451. type: string
  1452. - name: connectorName
  1453. in: path
  1454. required: true
  1455. schema:
  1456. type: string
  1457. responses:
  1458. 200:
  1459. description: OK
  1460. content:
  1461. application/json:
  1462. schema:
  1463. type: array
  1464. items:
  1465. $ref: '#/components/schemas/Task'
  1466. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/tasks/{taskId}/action/restart:
  1467. post:
  1468. tags:
  1469. - Kafka Connect
  1470. summary: restart connector task
  1471. operationId: restartConnectorTask
  1472. parameters:
  1473. - name: clusterName
  1474. in: path
  1475. required: true
  1476. schema:
  1477. type: string
  1478. - name: connectName
  1479. in: path
  1480. required: true
  1481. schema:
  1482. type: string
  1483. - name: connectorName
  1484. in: path
  1485. required: true
  1486. schema:
  1487. type: string
  1488. - name: taskId
  1489. in: path
  1490. required: true
  1491. schema:
  1492. type: integer
  1493. responses:
  1494. 200:
  1495. description: OK
  1496. /api/clusters/{clusterName}/ksql/v2:
  1497. post:
  1498. tags:
  1499. - Ksql
  1500. summary: executeKsql
  1501. operationId: executeKsql
  1502. parameters:
  1503. - name: clusterName
  1504. in: path
  1505. required: true
  1506. schema:
  1507. type: string
  1508. requestBody:
  1509. content:
  1510. application/json:
  1511. schema:
  1512. $ref: '#/components/schemas/KsqlCommandV2'
  1513. responses:
  1514. 200:
  1515. description: OK
  1516. content:
  1517. application/json:
  1518. schema:
  1519. $ref: '#/components/schemas/KsqlCommandV2Response'
  1520. /api/clusters/{clusterName}/ksql/tables:
  1521. get:
  1522. tags:
  1523. - Ksql
  1524. summary: listTables
  1525. operationId: listTables
  1526. parameters:
  1527. - name: clusterName
  1528. in: path
  1529. required: true
  1530. schema:
  1531. type: string
  1532. responses:
  1533. 200:
  1534. description: OK
  1535. content:
  1536. application/json:
  1537. schema:
  1538. type: array
  1539. items:
  1540. $ref: '#/components/schemas/KsqlTableDescription'
  1541. /api/clusters/{clusterName}/ksql/streams:
  1542. get:
  1543. tags:
  1544. - Ksql
  1545. summary: listStreams
  1546. operationId: listStreams
  1547. parameters:
  1548. - name: clusterName
  1549. in: path
  1550. required: true
  1551. schema:
  1552. type: string
  1553. responses:
  1554. 200:
  1555. description: OK
  1556. content:
  1557. application/json:
  1558. schema:
  1559. type: array
  1560. items:
  1561. $ref: '#/components/schemas/KsqlStreamDescription'
  1562. /api/clusters/{clusterName}/ksql/response:
  1563. get:
  1564. tags:
  1565. - Ksql
  1566. summary: Open SSE pipe
  1567. operationId: openKsqlResponsePipe
  1568. parameters:
  1569. - name: clusterName
  1570. in: path
  1571. required: true
  1572. schema:
  1573. type: string
  1574. - name: pipeId
  1575. in: query
  1576. required: true
  1577. schema:
  1578. type: string
  1579. responses:
  1580. 200:
  1581. description: OK
  1582. content:
  1583. text/event-stream:
  1584. schema:
  1585. type: array
  1586. items:
  1587. $ref: '#/components/schemas/KsqlResponse'
  1588. /api/clusters/{clusterName}/connects/{connectName}/plugins:
  1589. get:
  1590. tags:
  1591. - Kafka Connect
  1592. summary: get connector plugins
  1593. operationId: getConnectorPlugins
  1594. parameters:
  1595. - name: clusterName
  1596. in: path
  1597. required: true
  1598. schema:
  1599. type: string
  1600. - name: connectName
  1601. in: path
  1602. required: true
  1603. schema:
  1604. type: string
  1605. responses:
  1606. 200:
  1607. description: OK
  1608. content:
  1609. application/json:
  1610. schema:
  1611. type: array
  1612. items:
  1613. $ref: '#/components/schemas/ConnectorPlugin'
  1614. /api/clusters/{clusterName}/connects/{connectName}/plugins/{pluginName}/config/validate:
  1615. put:
  1616. tags:
  1617. - Kafka Connect
  1618. summary: validate connector plugin configuration
  1619. operationId: validateConnectorPluginConfig
  1620. parameters:
  1621. - name: clusterName
  1622. in: path
  1623. required: true
  1624. schema:
  1625. type: string
  1626. - name: connectName
  1627. in: path
  1628. required: true
  1629. schema:
  1630. type: string
  1631. - name: pluginName
  1632. in: path
  1633. required: true
  1634. schema:
  1635. type: string
  1636. requestBody:
  1637. content:
  1638. application/json:
  1639. schema:
  1640. $ref: '#/components/schemas/ConnectorConfig'
  1641. responses:
  1642. 200:
  1643. description: OK
  1644. content:
  1645. application/json:
  1646. schema:
  1647. $ref: '#/components/schemas/ConnectorPluginConfigValidationResponse'
  1648. /api/clusters/{clusterName}/topics/{topicName}/partitions:
  1649. patch:
  1650. tags:
  1651. - Topics
  1652. summary: increaseTopicPartitions
  1653. operationId: increaseTopicPartitions
  1654. parameters:
  1655. - name: clusterName
  1656. in: path
  1657. required: true
  1658. schema:
  1659. type: string
  1660. - name: topicName
  1661. in: path
  1662. required: true
  1663. schema:
  1664. type: string
  1665. requestBody:
  1666. content:
  1667. application/json:
  1668. schema:
  1669. $ref: '#/components/schemas/PartitionsIncrease'
  1670. responses:
  1671. 200:
  1672. description: OK
  1673. content:
  1674. application/json:
  1675. schema:
  1676. $ref: '#/components/schemas/PartitionsIncreaseResponse'
  1677. 404:
  1678. description: Not found
  1679. /api/clusters/{clusterName}/acls:
  1680. get:
  1681. tags:
  1682. - Acls
  1683. summary: listKafkaAcls
  1684. operationId: listAcls
  1685. parameters:
  1686. - name: clusterName
  1687. in: path
  1688. required: true
  1689. schema:
  1690. type: string
  1691. responses:
  1692. 200:
  1693. description: OK
  1694. content:
  1695. application/json:
  1696. schema:
  1697. type: array
  1698. items:
  1699. $ref: '#/components/schemas/KafkaAcl'
  1700. /api/clusters/{clusterName}/acl/csv:
  1701. get:
  1702. tags:
  1703. - Acls
  1704. summary: getAclAsCsv
  1705. operationId: getAclAsCsv
  1706. parameters:
  1707. - name: clusterName
  1708. in: path
  1709. required: true
  1710. schema:
  1711. type: string
  1712. responses:
  1713. 200:
  1714. description: OK
  1715. content:
  1716. text/plain:
  1717. schema:
  1718. type: string
  1719. post:
  1720. tags:
  1721. - Acls
  1722. summary: syncAclsCsv
  1723. operationId: syncAclsCsv
  1724. parameters:
  1725. - name: clusterName
  1726. in: path
  1727. required: true
  1728. schema:
  1729. type: string
  1730. requestBody:
  1731. content:
  1732. text/plain:
  1733. schema:
  1734. type: string
  1735. responses:
  1736. 200:
  1737. description: OK
  1738. /api/clusters/{clusterName}/acl:
  1739. post:
  1740. tags:
  1741. - Acls
  1742. summary: createAcl
  1743. operationId: createAcl
  1744. parameters:
  1745. - name: clusterName
  1746. in: path
  1747. required: true
  1748. schema:
  1749. type: string
  1750. requestBody:
  1751. content:
  1752. application/json:
  1753. schema:
  1754. $ref: '#/components/schemas/KafkaAcl'
  1755. responses:
  1756. 200:
  1757. description: OK
  1758. delete:
  1759. tags:
  1760. - Acls
  1761. summary: deleteAcl
  1762. operationId: deleteAcl
  1763. parameters:
  1764. - name: clusterName
  1765. in: path
  1766. required: true
  1767. schema:
  1768. type: string
  1769. requestBody:
  1770. content:
  1771. application/json:
  1772. schema:
  1773. $ref: '#/components/schemas/KafkaAcl'
  1774. responses:
  1775. 200:
  1776. description: OK
  1777. 404:
  1778. description: Acl not found
  1779. /api/authorization:
  1780. get:
  1781. tags:
  1782. - Authorization
  1783. summary: Get user authentication related info
  1784. operationId: getUserAuthInfo
  1785. responses:
  1786. 200:
  1787. description: OK
  1788. content:
  1789. application/json:
  1790. schema:
  1791. $ref: '#/components/schemas/AuthenticationInfo'
  1792. components:
  1793. schemas:
  1794. TopicSerdeSuggestion:
  1795. type: object
  1796. properties:
  1797. key:
  1798. type: array
  1799. items:
  1800. $ref: '#/components/schemas/SerdeDescription'
  1801. value:
  1802. type: array
  1803. items:
  1804. $ref: '#/components/schemas/SerdeDescription'
  1805. SerdeDescription:
  1806. type: object
  1807. properties:
  1808. name:
  1809. type: string
  1810. description:
  1811. type: string
  1812. preferred:
  1813. description: "This serde was automatically chosen by cluster config. This should be enabled in UI by default. Also it will be used for deserialization if no serdes passed."
  1814. type: boolean
  1815. schema:
  1816. type: string
  1817. additionalProperties:
  1818. type: object
  1819. additionalProperties:
  1820. type: object
  1821. SerdeUsage:
  1822. type: string
  1823. enum:
  1824. - SERIALIZE
  1825. - DESERIALIZE
  1826. ErrorResponse:
  1827. description: Error object that will be returned with 4XX and 5XX HTTP statuses
  1828. type: object
  1829. properties:
  1830. code:
  1831. type: integer
  1832. description: Internal error code (can be used for message formatting & localization on UI)
  1833. message:
  1834. type: string
  1835. description: Error message
  1836. timestamp:
  1837. type: number
  1838. description: Response unix timestamp in ms
  1839. requestId:
  1840. type: string
  1841. description: Unique server-defined request id for convenient debugging
  1842. fieldsErrors:
  1843. type: array
  1844. items:
  1845. $ref: '#/components/schemas/FieldError'
  1846. stackTrace:
  1847. type: string
  1848. FieldError:
  1849. type: object
  1850. properties:
  1851. fieldName:
  1852. type: string
  1853. description: Name of field that violated format
  1854. restrictions:
  1855. description: Field format violations description (ex. ["size must be between 0 and 20", "must be a well-formed email address"])
  1856. type: array
  1857. items:
  1858. type: string
  1859. MetricsCollectionError:
  1860. type: object
  1861. properties:
  1862. message:
  1863. type: string
  1864. stackTrace:
  1865. type: string
  1866. Cluster:
  1867. type: object
  1868. properties:
  1869. name:
  1870. type: string
  1871. defaultCluster:
  1872. type: boolean
  1873. status:
  1874. $ref: '#/components/schemas/ServerStatus'
  1875. lastError:
  1876. $ref: '#/components/schemas/MetricsCollectionError'
  1877. brokerCount:
  1878. type: integer
  1879. onlinePartitionCount:
  1880. type: integer
  1881. topicCount:
  1882. type: integer
  1883. bytesInPerSec:
  1884. type: number
  1885. bytesOutPerSec:
  1886. type: number
  1887. readOnly:
  1888. type: boolean
  1889. version:
  1890. type: string
  1891. features:
  1892. type: array
  1893. items:
  1894. type: string
  1895. enum:
  1896. - SCHEMA_REGISTRY
  1897. - KAFKA_CONNECT
  1898. - KSQL_DB
  1899. - TOPIC_DELETION
  1900. - KAFKA_ACL
  1901. required:
  1902. - id
  1903. - name
  1904. - status
  1905. ServerStatus:
  1906. type: string
  1907. enum:
  1908. - online
  1909. - offline
  1910. - initializing
  1911. ClusterMetrics:
  1912. type: object
  1913. properties:
  1914. items:
  1915. type: array
  1916. items:
  1917. $ref: '#/components/schemas/Metric'
  1918. ClusterStats:
  1919. type: object
  1920. properties:
  1921. brokerCount:
  1922. type: integer
  1923. zooKeeperStatus:
  1924. type: integer
  1925. deprecated: true
  1926. activeControllers:
  1927. type: integer
  1928. description: Id of broker which is cluster's controller. null, if controller not known yet.
  1929. onlinePartitionCount:
  1930. type: integer
  1931. offlinePartitionCount:
  1932. type: integer
  1933. inSyncReplicasCount:
  1934. type: integer
  1935. outOfSyncReplicasCount:
  1936. type: integer
  1937. underReplicatedPartitionCount:
  1938. type: integer
  1939. diskUsage:
  1940. type: array
  1941. items:
  1942. $ref: '#/components/schemas/BrokerDiskUsage'
  1943. version:
  1944. type: string
  1945. BrokerDiskUsage:
  1946. type: object
  1947. properties:
  1948. brokerId:
  1949. type: integer
  1950. segmentSize:
  1951. type: integer
  1952. format: int64
  1953. segmentCount:
  1954. type: integer
  1955. required:
  1956. - brokerId
  1957. BrokerMetrics:
  1958. type: object
  1959. properties:
  1960. segmentSize:
  1961. type: integer
  1962. format: int64
  1963. segmentCount:
  1964. type: integer
  1965. metrics:
  1966. type: array
  1967. items:
  1968. $ref: '#/components/schemas/Metric'
  1969. BrokerLogdirs:
  1970. type: object
  1971. properties:
  1972. name:
  1973. type: string
  1974. error:
  1975. type: string
  1976. topics:
  1977. type: array
  1978. items:
  1979. $ref: '#/components/schemas/TopicLogdirs'
  1980. BrokersLogdirs:
  1981. type: object
  1982. properties:
  1983. name:
  1984. type: string
  1985. error:
  1986. type: string
  1987. topics:
  1988. type: array
  1989. items:
  1990. $ref: '#/components/schemas/BrokerTopicLogdirs'
  1991. TopicsResponse:
  1992. type: object
  1993. properties:
  1994. pageCount:
  1995. type: integer
  1996. topics:
  1997. type: array
  1998. items:
  1999. $ref: '#/components/schemas/Topic'
  2000. TopicColumnsToSort:
  2001. type: string
  2002. enum:
  2003. - NAME
  2004. - OUT_OF_SYNC_REPLICAS
  2005. - TOTAL_PARTITIONS
  2006. - REPLICATION_FACTOR
  2007. - SIZE
  2008. ConnectorColumnsToSort:
  2009. type: string
  2010. enum:
  2011. - NAME
  2012. - CONNECT
  2013. - TYPE
  2014. - STATUS
  2015. SortOrder:
  2016. type: string
  2017. enum:
  2018. - ASC
  2019. - DESC
  2020. Topic:
  2021. type: object
  2022. properties:
  2023. name:
  2024. type: string
  2025. internal:
  2026. type: boolean
  2027. partitionCount:
  2028. type: integer
  2029. replicationFactor:
  2030. type: integer
  2031. replicas:
  2032. type: integer
  2033. inSyncReplicas:
  2034. type: integer
  2035. segmentSize:
  2036. type: integer
  2037. format: int64
  2038. segmentCount:
  2039. type: integer
  2040. bytesInPerSec:
  2041. type: number
  2042. bytesOutPerSec:
  2043. type: number
  2044. underReplicatedPartitions:
  2045. type: integer
  2046. cleanUpPolicy:
  2047. $ref: '#/components/schemas/CleanUpPolicy'
  2048. partitions:
  2049. type: array
  2050. items:
  2051. $ref: "#/components/schemas/Partition"
  2052. required:
  2053. - name
  2054. TopicAnalysis:
  2055. type: object
  2056. description: "Represents analysis state. Note: 'progress' and 'result' fields are set exclusively depending on analysis state."
  2057. properties:
  2058. progress:
  2059. $ref: '#/components/schemas/TopicAnalysisProgress'
  2060. result:
  2061. $ref: '#/components/schemas/TopicAnalysisResult'
  2062. TopicAnalysisProgress:
  2063. type: object
  2064. properties:
  2065. startedAt:
  2066. type: integer
  2067. format: int64
  2068. completenessPercent:
  2069. type: number
  2070. msgsScanned:
  2071. type: integer
  2072. format: int64
  2073. bytesScanned:
  2074. type: integer
  2075. format: int64
  2076. TopicAnalysisResult:
  2077. type: object
  2078. properties:
  2079. startedAt:
  2080. type: integer
  2081. format: int64
  2082. finishedAt:
  2083. type: integer
  2084. format: int64
  2085. error:
  2086. type: string
  2087. totalStats:
  2088. $ref: '#/components/schemas/TopicAnalysisStats'
  2089. partitionStats:
  2090. type: array
  2091. items:
  2092. $ref: "#/components/schemas/TopicAnalysisStats"
  2093. TopicAnalysisStats:
  2094. type: object
  2095. properties:
  2096. partition:
  2097. type: integer
  2098. format: int32
  2099. description: "null if this is total stats"
  2100. totalMsgs:
  2101. type: integer
  2102. format: int64
  2103. minOffset:
  2104. type: integer
  2105. format: int64
  2106. maxOffset:
  2107. type: integer
  2108. format: int64
  2109. minTimestamp:
  2110. type: integer
  2111. format: int64
  2112. maxTimestamp:
  2113. type: integer
  2114. format: int64
  2115. nullKeys:
  2116. type: integer
  2117. format: int64
  2118. nullValues:
  2119. type: integer
  2120. format: int64
  2121. approxUniqKeys:
  2122. type: integer
  2123. format: int64
  2124. approxUniqValues:
  2125. type: integer
  2126. format: int64
  2127. keySize:
  2128. $ref: "#/components/schemas/TopicAnalysisSizeStats"
  2129. valueSize:
  2130. $ref: "#/components/schemas/TopicAnalysisSizeStats"
  2131. hourlyMsgCounts:
  2132. type: array
  2133. items:
  2134. type: object
  2135. properties:
  2136. hourStart:
  2137. type: integer
  2138. format: int64
  2139. count:
  2140. type: integer
  2141. format: int64
  2142. TopicAnalysisSizeStats:
  2143. type: object
  2144. description: "All sizes in bytes"
  2145. properties:
  2146. sum:
  2147. type: integer
  2148. format: int64
  2149. min:
  2150. type: integer
  2151. format: int64
  2152. max:
  2153. type: integer
  2154. format: int64
  2155. avg:
  2156. type: integer
  2157. format: int64
  2158. prctl50:
  2159. type: integer
  2160. format: int64
  2161. prctl75:
  2162. type: integer
  2163. format: int64
  2164. prctl95:
  2165. type: integer
  2166. format: int64
  2167. prctl99:
  2168. type: integer
  2169. format: int64
  2170. prctl999:
  2171. type: integer
  2172. format: int64
  2173. Replica:
  2174. type: object
  2175. properties:
  2176. broker:
  2177. type: integer
  2178. leader:
  2179. type: boolean
  2180. inSync:
  2181. type: boolean
  2182. TopicDetails:
  2183. type: object
  2184. properties:
  2185. name:
  2186. type: string
  2187. internal:
  2188. type: boolean
  2189. partitions:
  2190. type: array
  2191. items:
  2192. $ref: "#/components/schemas/Partition"
  2193. partitionCount:
  2194. type: integer
  2195. replicationFactor:
  2196. type: integer
  2197. replicas:
  2198. type: integer
  2199. inSyncReplicas:
  2200. type: integer
  2201. bytesInPerSec:
  2202. type: number
  2203. bytesOutPerSec:
  2204. type: number
  2205. segmentSize:
  2206. type: integer
  2207. format: int64
  2208. segmentCount:
  2209. type: integer
  2210. underReplicatedPartitions:
  2211. type: integer
  2212. cleanUpPolicy:
  2213. $ref: '#/components/schemas/CleanUpPolicy'
  2214. keySerde:
  2215. type: string
  2216. valueSerde:
  2217. type: string
  2218. required:
  2219. - name
  2220. TopicConfig:
  2221. type: object
  2222. properties:
  2223. name:
  2224. type: string
  2225. value:
  2226. type: string
  2227. defaultValue:
  2228. type: string
  2229. source:
  2230. $ref: "#/components/schemas/ConfigSource"
  2231. isSensitive:
  2232. type: boolean
  2233. isReadOnly:
  2234. type: boolean
  2235. synonyms:
  2236. type: array
  2237. items:
  2238. $ref: "#/components/schemas/ConfigSynonym"
  2239. doc:
  2240. type: string
  2241. required:
  2242. - name
  2243. TopicCreation:
  2244. type: object
  2245. properties:
  2246. name:
  2247. type: string
  2248. partitions:
  2249. type: integer
  2250. replicationFactor:
  2251. type: integer
  2252. configs:
  2253. type: object
  2254. additionalProperties:
  2255. type: string
  2256. required:
  2257. - name
  2258. - partitions
  2259. TopicUpdate:
  2260. type: object
  2261. properties:
  2262. configs:
  2263. type: object
  2264. additionalProperties:
  2265. type: string
  2266. required:
  2267. - configs
  2268. Broker:
  2269. type: object
  2270. properties:
  2271. id:
  2272. type: integer
  2273. host:
  2274. type: string
  2275. port:
  2276. type: integer
  2277. bytesInPerSec:
  2278. type: number
  2279. bytesOutPerSec:
  2280. type: number
  2281. required:
  2282. - id
  2283. BrokerLogdirUpdate:
  2284. type: object
  2285. properties:
  2286. topic:
  2287. type: string
  2288. partition:
  2289. type: integer
  2290. logDir:
  2291. type: string
  2292. ConsumerGroupState:
  2293. type: string
  2294. enum:
  2295. - UNKNOWN
  2296. - PREPARING_REBALANCE
  2297. - COMPLETING_REBALANCE
  2298. - STABLE
  2299. - DEAD
  2300. - EMPTY
  2301. MessageFormat:
  2302. type: string
  2303. enum:
  2304. - AVRO
  2305. - JSON
  2306. - PROTOBUF
  2307. - UNKNOWN
  2308. ConsumerGroup:
  2309. type: object
  2310. properties:
  2311. groupId:
  2312. type: string
  2313. members:
  2314. type: integer
  2315. topics:
  2316. type: integer
  2317. simple:
  2318. type: boolean
  2319. partitionAssignor:
  2320. type: string
  2321. state:
  2322. $ref: "#/components/schemas/ConsumerGroupState"
  2323. coordinator:
  2324. $ref: "#/components/schemas/Broker"
  2325. messagesBehind:
  2326. type: integer
  2327. format: int64
  2328. description: null if consumer group has no offsets committed
  2329. required:
  2330. - groupId
  2331. ConsumerGroupOrdering:
  2332. type: string
  2333. enum:
  2334. - NAME
  2335. - MEMBERS
  2336. - STATE
  2337. ConsumerGroupsPageResponse:
  2338. type: object
  2339. properties:
  2340. pageCount:
  2341. type: integer
  2342. consumerGroups:
  2343. type: array
  2344. items:
  2345. $ref: '#/components/schemas/ConsumerGroup'
  2346. CreateTopicMessage:
  2347. type: object
  2348. properties:
  2349. partition:
  2350. type: integer
  2351. key:
  2352. type: string
  2353. nullable: true
  2354. headers:
  2355. type: object
  2356. additionalProperties:
  2357. type: string
  2358. content:
  2359. type: string
  2360. nullable: true
  2361. keySerde:
  2362. type: string
  2363. nullable: true
  2364. valueSerde:
  2365. type: string
  2366. nullable: true
  2367. required:
  2368. - partition
  2369. TopicMessageEvent:
  2370. type: object
  2371. properties:
  2372. type:
  2373. type: string
  2374. enum:
  2375. - PHASE
  2376. - MESSAGE
  2377. - CONSUMING
  2378. - DONE
  2379. - EMIT_THROTTLING
  2380. message:
  2381. $ref: "#/components/schemas/TopicMessage"
  2382. phase:
  2383. $ref: "#/components/schemas/TopicMessagePhase"
  2384. consuming:
  2385. $ref: "#/components/schemas/TopicMessageConsuming"
  2386. TopicMessagePhase:
  2387. type: object
  2388. properties:
  2389. name:
  2390. type: string
  2391. TimeStampFormat:
  2392. type: object
  2393. properties:
  2394. timeStampFormat:
  2395. type: string
  2396. TopicMessageConsuming:
  2397. type: object
  2398. properties:
  2399. bytesConsumed:
  2400. type: integer
  2401. format: int64
  2402. elapsedMs:
  2403. type: integer
  2404. format: int64
  2405. isCancelled:
  2406. type: boolean
  2407. messagesConsumed:
  2408. type: integer
  2409. filterApplyErrors:
  2410. type: integer
  2411. TopicMessage:
  2412. type: object
  2413. properties:
  2414. partition:
  2415. type: integer
  2416. offset:
  2417. type: integer
  2418. format: int64
  2419. timestamp:
  2420. type: string
  2421. format: date-time
  2422. timestampType:
  2423. type: string
  2424. enum:
  2425. - NO_TIMESTAMP_TYPE
  2426. - CREATE_TIME
  2427. - LOG_APPEND_TIME
  2428. key:
  2429. type: string
  2430. headers:
  2431. type: object
  2432. additionalProperties:
  2433. type: string
  2434. content:
  2435. type: string
  2436. keyFormat:
  2437. #deprecated - wont be filled - use 'keySerde' field instead
  2438. $ref: "#/components/schemas/MessageFormat"
  2439. valueFormat:
  2440. #deprecated - wont be filled - use 'valueSerde' field instead
  2441. $ref: "#/components/schemas/MessageFormat"
  2442. keySize:
  2443. type: integer
  2444. format: int64
  2445. valueSize:
  2446. type: integer
  2447. format: int64
  2448. keySchemaId:
  2449. deprecated: true
  2450. description: deprecated - wont be filled - use 'keyDeserializeProperties' field instead
  2451. type: string
  2452. valueSchemaId:
  2453. deprecated: true
  2454. description: deprecated - wont be filled - use 'valueDeserializeProperties' field instead
  2455. type: string
  2456. headersSize:
  2457. type: integer
  2458. format: int64
  2459. keySerde:
  2460. type: string
  2461. valueSerde:
  2462. type: string
  2463. keyDeserializeProperties:
  2464. additionalProperties:
  2465. type: object
  2466. valueDeserializeProperties:
  2467. additionalProperties:
  2468. type: object
  2469. required:
  2470. - partition
  2471. - offset
  2472. - timestamp
  2473. SeekType:
  2474. type: string
  2475. enum:
  2476. - BEGINNING
  2477. - OFFSET
  2478. - TIMESTAMP
  2479. - LATEST
  2480. MessageFilterType:
  2481. type: string
  2482. enum:
  2483. - STRING_CONTAINS
  2484. - GROOVY_SCRIPT
  2485. SeekDirection:
  2486. type: string
  2487. enum:
  2488. - FORWARD
  2489. - BACKWARD
  2490. - TAILING
  2491. default: FORWARD
  2492. Partition:
  2493. type: object
  2494. properties:
  2495. partition:
  2496. type: integer
  2497. leader:
  2498. type: integer
  2499. replicas:
  2500. type: array
  2501. items:
  2502. $ref: '#/components/schemas/Replica'
  2503. offsetMax:
  2504. type: integer
  2505. format: int64
  2506. offsetMin:
  2507. type: integer
  2508. format: int64
  2509. required:
  2510. - topic
  2511. - partition
  2512. - offsetMax
  2513. - offsetMin
  2514. ConsumerGroupTopicPartition:
  2515. type: object
  2516. properties:
  2517. topic:
  2518. type: string
  2519. partition:
  2520. type: integer
  2521. currentOffset:
  2522. type: integer
  2523. format: int64
  2524. endOffset:
  2525. type: integer
  2526. format: int64
  2527. messagesBehind:
  2528. type: integer
  2529. format: int64
  2530. description: null if consumer group has no offsets committed
  2531. consumerId:
  2532. type: string
  2533. host:
  2534. type: string
  2535. required:
  2536. - topic
  2537. - partition
  2538. ConsumerGroupDetails:
  2539. allOf:
  2540. - $ref: '#/components/schemas/ConsumerGroup'
  2541. - type: object
  2542. properties:
  2543. partitions:
  2544. type: array
  2545. items:
  2546. $ref: '#/components/schemas/ConsumerGroupTopicPartition'
  2547. Metric:
  2548. type: object
  2549. properties:
  2550. name:
  2551. type: string
  2552. labels:
  2553. type: string
  2554. additionalProperties:
  2555. type: string
  2556. value:
  2557. type: number
  2558. TopicLogdirs:
  2559. type: object
  2560. properties:
  2561. name:
  2562. type: string
  2563. partitions:
  2564. type: array
  2565. items:
  2566. $ref: '#/components/schemas/TopicPartitionLogdir'
  2567. BrokerTopicLogdirs:
  2568. type: object
  2569. properties:
  2570. name:
  2571. type: string
  2572. partitions:
  2573. type: array
  2574. items:
  2575. $ref: '#/components/schemas/BrokerTopicPartitionLogdir'
  2576. TopicPartitionLogdir:
  2577. type: object
  2578. properties:
  2579. partition:
  2580. type: integer
  2581. size:
  2582. type: integer
  2583. format: int64
  2584. offsetLag:
  2585. type: integer
  2586. format: int64
  2587. BrokerTopicPartitionLogdir:
  2588. allOf:
  2589. - $ref: '#/components/schemas/TopicPartitionLogdir'
  2590. - type: object
  2591. properties:
  2592. broker:
  2593. type: integer
  2594. SchemaSubject:
  2595. type: object
  2596. properties:
  2597. subject:
  2598. type: string
  2599. version:
  2600. type: string
  2601. id:
  2602. type: integer
  2603. schema:
  2604. type: string
  2605. compatibilityLevel:
  2606. type: string
  2607. schemaType:
  2608. $ref: '#/components/schemas/SchemaType'
  2609. required:
  2610. - id
  2611. - subject
  2612. - version
  2613. - schema
  2614. - compatibilityLevel
  2615. - schemaType
  2616. NewSchemaSubject:
  2617. type: object
  2618. description: should be set for creating/updating schema subject
  2619. properties:
  2620. subject:
  2621. type: string
  2622. schema:
  2623. type: string
  2624. schemaType:
  2625. $ref: '#/components/schemas/SchemaType'
  2626. # upon updating a schema, the type of existing schema can't be changed
  2627. required:
  2628. - subject
  2629. - schema
  2630. - schemaType
  2631. CompatibilityLevel:
  2632. type: object
  2633. properties:
  2634. compatibility:
  2635. type: string
  2636. enum:
  2637. - BACKWARD
  2638. - BACKWARD_TRANSITIVE
  2639. - FORWARD
  2640. - FORWARD_TRANSITIVE
  2641. - FULL
  2642. - FULL_TRANSITIVE
  2643. - NONE
  2644. required:
  2645. - compatibility
  2646. SchemaType:
  2647. type: string
  2648. description: upon updating a schema, the type of an existing schema can't be changed
  2649. enum:
  2650. - AVRO
  2651. - JSON
  2652. - PROTOBUF
  2653. CompatibilityCheckResponse:
  2654. type: object
  2655. properties:
  2656. isCompatible:
  2657. type: boolean
  2658. required:
  2659. - isCompatible
  2660. SchemaSubjectsResponse:
  2661. type: object
  2662. properties:
  2663. pageCount:
  2664. type: integer
  2665. schemas:
  2666. type: array
  2667. items:
  2668. $ref: '#/components/schemas/SchemaSubject'
  2669. Connect:
  2670. type: object
  2671. properties:
  2672. name:
  2673. type: string
  2674. address:
  2675. type: string
  2676. required:
  2677. - name
  2678. ConnectorConfig:
  2679. type: object
  2680. additionalProperties:
  2681. type: object
  2682. TaskId:
  2683. type: object
  2684. properties:
  2685. connector:
  2686. type: string
  2687. task:
  2688. type: integer
  2689. Task:
  2690. type: object
  2691. properties:
  2692. id:
  2693. $ref: '#/components/schemas/TaskId'
  2694. status:
  2695. $ref: '#/components/schemas/TaskStatus'
  2696. config:
  2697. $ref: '#/components/schemas/ConnectorConfig'
  2698. required:
  2699. - status
  2700. NewConnector:
  2701. type: object
  2702. properties:
  2703. name:
  2704. type: string
  2705. config:
  2706. $ref: '#/components/schemas/ConnectorConfig'
  2707. required:
  2708. - name
  2709. - config
  2710. Connector:
  2711. allOf:
  2712. - $ref: '#/components/schemas/NewConnector'
  2713. - type: object
  2714. properties:
  2715. tasks:
  2716. type: array
  2717. items:
  2718. $ref: '#/components/schemas/TaskId'
  2719. type:
  2720. $ref: '#/components/schemas/ConnectorType'
  2721. status:
  2722. $ref: '#/components/schemas/ConnectorStatus'
  2723. connect:
  2724. type: string
  2725. required:
  2726. - type
  2727. - status
  2728. - connect
  2729. ConnectorType:
  2730. type: string
  2731. enum:
  2732. - SOURCE
  2733. - SINK
  2734. ConsumerGroupOffsetsReset:
  2735. type: object
  2736. properties:
  2737. topic:
  2738. type: string
  2739. resetType:
  2740. $ref: '#/components/schemas/ConsumerGroupOffsetsResetType'
  2741. partitions:
  2742. type: array
  2743. items:
  2744. type: integer
  2745. description: list of target partitions, all partitions will be used if it is not set or empty
  2746. resetToTimestamp:
  2747. type: integer
  2748. format: int64
  2749. description: should be set if resetType is TIMESTAMP
  2750. partitionsOffsets:
  2751. type: array
  2752. items:
  2753. $ref: '#/components/schemas/PartitionOffset'
  2754. description: List of partition offsets to reset to, should be set when resetType is OFFSET
  2755. required:
  2756. - topic
  2757. - resetType
  2758. PartitionOffset:
  2759. type: object
  2760. properties:
  2761. partition:
  2762. type: integer
  2763. offset:
  2764. type: integer
  2765. format: int64
  2766. required:
  2767. - partition
  2768. ConsumerGroupOffsetsResetType:
  2769. type: string
  2770. enum:
  2771. - EARLIEST
  2772. - LATEST
  2773. - TIMESTAMP
  2774. - OFFSET
  2775. TaskStatus:
  2776. type: object
  2777. properties:
  2778. id:
  2779. type: integer
  2780. state:
  2781. $ref: '#/components/schemas/ConnectorTaskStatus'
  2782. worker_id:
  2783. type: string
  2784. trace:
  2785. type: string
  2786. required:
  2787. - id
  2788. - state
  2789. - worker_id
  2790. ConnectorStatus:
  2791. type: object
  2792. properties:
  2793. state:
  2794. $ref: '#/components/schemas/ConnectorState'
  2795. worker_id:
  2796. type: string
  2797. required:
  2798. - state
  2799. ConnectorTaskStatus:
  2800. type: string
  2801. enum:
  2802. - RUNNING
  2803. - FAILED
  2804. - PAUSED
  2805. - RESTARTING
  2806. - UNASSIGNED
  2807. ConnectorState:
  2808. type: string
  2809. enum:
  2810. - RUNNING
  2811. - FAILED
  2812. - PAUSED
  2813. - UNASSIGNED
  2814. - TASK_FAILED
  2815. ConnectorAction:
  2816. type: string
  2817. enum:
  2818. - RESTART
  2819. - RESTART_ALL_TASKS
  2820. - RESTART_FAILED_TASKS
  2821. - PAUSE
  2822. - RESUME
  2823. TaskAction:
  2824. type: string
  2825. enum:
  2826. - restart
  2827. ConnectorPlugin:
  2828. type: object
  2829. properties:
  2830. class:
  2831. type: string
  2832. ConnectorPluginConfigDefinition:
  2833. type: object
  2834. properties:
  2835. name:
  2836. type: string
  2837. type:
  2838. type: string
  2839. enum:
  2840. - BOOLEAN
  2841. - CLASS
  2842. - DOUBLE
  2843. - INT
  2844. - LIST
  2845. - LONG
  2846. - PASSWORD
  2847. - SHORT
  2848. - STRING
  2849. required:
  2850. type: boolean
  2851. default_value:
  2852. type: string
  2853. importance:
  2854. type: string
  2855. enum:
  2856. - LOW
  2857. - MEDIUM
  2858. - HIGH
  2859. documentation:
  2860. type: string
  2861. group:
  2862. type: string
  2863. width:
  2864. type: string
  2865. enum:
  2866. - SHORT
  2867. - MEDIUM
  2868. - LONG
  2869. - NONE
  2870. display_name:
  2871. type: string
  2872. dependents:
  2873. type: array
  2874. items:
  2875. type: string
  2876. order:
  2877. type: integer
  2878. ConnectorPluginConfigValue:
  2879. type: object
  2880. properties:
  2881. name:
  2882. type: string
  2883. value:
  2884. type: string
  2885. recommended_values:
  2886. type: array
  2887. items:
  2888. type: string
  2889. errors:
  2890. type: array
  2891. items:
  2892. type: string
  2893. visible:
  2894. type: boolean
  2895. ConnectorPluginConfig:
  2896. type: object
  2897. properties:
  2898. definition:
  2899. $ref: '#/components/schemas/ConnectorPluginConfigDefinition'
  2900. value:
  2901. $ref: '#/components/schemas/ConnectorPluginConfigValue'
  2902. ConnectorPluginConfigValidationResponse:
  2903. type: object
  2904. properties:
  2905. name:
  2906. type: string
  2907. error_count:
  2908. type: integer
  2909. groups:
  2910. type: array
  2911. items:
  2912. type: string
  2913. configs:
  2914. type: array
  2915. items:
  2916. $ref: '#/components/schemas/ConnectorPluginConfig'
  2917. KsqlCommandV2:
  2918. type: object
  2919. properties:
  2920. ksql:
  2921. type: string
  2922. streamsProperties:
  2923. type: object
  2924. additionalProperties:
  2925. type: string
  2926. required:
  2927. - ksql
  2928. KsqlCommandV2Response:
  2929. type: object
  2930. properties:
  2931. pipeId:
  2932. type: string
  2933. required:
  2934. - pipeId
  2935. KsqlTableDescription:
  2936. type: object
  2937. properties:
  2938. name:
  2939. type: string
  2940. topic:
  2941. type: string
  2942. keyFormat:
  2943. type: string
  2944. valueFormat:
  2945. type: string
  2946. isWindowed:
  2947. type: boolean
  2948. KsqlStreamDescription:
  2949. type: object
  2950. properties:
  2951. name:
  2952. type: string
  2953. topic:
  2954. type: string
  2955. keyFormat:
  2956. type: string
  2957. valueFormat:
  2958. type: string
  2959. KsqlResponse:
  2960. type: object
  2961. properties:
  2962. table:
  2963. $ref: '#/components/schemas/KsqlTableResponse'
  2964. KsqlTableResponse:
  2965. type: object
  2966. properties:
  2967. header:
  2968. type: string
  2969. columnNames:
  2970. type: array
  2971. items:
  2972. type: string
  2973. values:
  2974. type: array
  2975. items:
  2976. type: array
  2977. items:
  2978. type: object
  2979. FullConnectorInfo:
  2980. type: object
  2981. properties:
  2982. connect:
  2983. type: string
  2984. name:
  2985. type: string
  2986. connector_class:
  2987. type: string
  2988. type:
  2989. $ref: '#/components/schemas/ConnectorType'
  2990. topics:
  2991. type: array
  2992. items:
  2993. type: string
  2994. status:
  2995. $ref: '#/components/schemas/ConnectorStatus'
  2996. tasks_count:
  2997. type: integer
  2998. failed_tasks_count:
  2999. type: integer
  3000. required:
  3001. - name
  3002. - connect
  3003. - status
  3004. PartitionsIncrease:
  3005. type: object
  3006. properties:
  3007. totalPartitionsCount:
  3008. type: integer
  3009. minimum: 1
  3010. required:
  3011. - totalPartitionsCount
  3012. PartitionsIncreaseResponse:
  3013. type: object
  3014. properties:
  3015. totalPartitionsCount:
  3016. type: integer
  3017. topicName:
  3018. type: string
  3019. required:
  3020. - totalPartitionsCount
  3021. - topicName
  3022. ReplicationFactorChange:
  3023. type: object
  3024. properties:
  3025. totalReplicationFactor:
  3026. type: integer
  3027. required:
  3028. - totalReplicationFactor
  3029. ReplicationFactorChangeResponse:
  3030. type: object
  3031. properties:
  3032. totalReplicationFactor:
  3033. type: integer
  3034. topicName:
  3035. type: string
  3036. required:
  3037. - totalReplicationFactor
  3038. - topicName
  3039. BrokerConfigItem:
  3040. type: object
  3041. properties:
  3042. value:
  3043. type: string
  3044. BrokerConfig:
  3045. type: object
  3046. properties:
  3047. name:
  3048. type: string
  3049. value:
  3050. type: string
  3051. source:
  3052. $ref: '#/components/schemas/ConfigSource'
  3053. isSensitive:
  3054. type: boolean
  3055. isReadOnly:
  3056. type: boolean
  3057. synonyms:
  3058. type: array
  3059. items:
  3060. $ref: '#/components/schemas/ConfigSynonym'
  3061. required:
  3062. - name
  3063. - value
  3064. - source
  3065. - isSensitive
  3066. - isReadOnly
  3067. ConfigSource:
  3068. type: string
  3069. enum:
  3070. - DYNAMIC_TOPIC_CONFIG
  3071. - DYNAMIC_BROKER_LOGGER_CONFIG
  3072. - DYNAMIC_BROKER_CONFIG
  3073. - DYNAMIC_DEFAULT_BROKER_CONFIG
  3074. - STATIC_BROKER_CONFIG
  3075. - DEFAULT_CONFIG
  3076. - UNKNOWN
  3077. ConfigSynonym:
  3078. type: object
  3079. properties:
  3080. name:
  3081. type: string
  3082. value:
  3083. type: string
  3084. source:
  3085. $ref: '#/components/schemas/ConfigSource'
  3086. CleanUpPolicy:
  3087. type: string
  3088. enum:
  3089. - DELETE
  3090. - COMPACT
  3091. - COMPACT_DELETE
  3092. - UNKNOWN
  3093. AuthenticationInfo:
  3094. type: object
  3095. properties:
  3096. rbacEnabled:
  3097. type: boolean
  3098. description: true if role based access control is enabled and granular permission access is required
  3099. userInfo:
  3100. $ref: '#/components/schemas/UserInfo'
  3101. required:
  3102. - rbacEnabled
  3103. UserInfo:
  3104. type: object
  3105. properties:
  3106. username:
  3107. type: string
  3108. permissions:
  3109. type: array
  3110. items:
  3111. $ref: '#/components/schemas/UserPermission'
  3112. required:
  3113. - username
  3114. - permissions
  3115. UserPermission:
  3116. type: object
  3117. properties:
  3118. clusters:
  3119. type: array
  3120. items:
  3121. type: string
  3122. resource:
  3123. $ref: '#/components/schemas/ResourceType'
  3124. value:
  3125. type: string
  3126. actions:
  3127. type: array
  3128. items:
  3129. $ref: '#/components/schemas/Action'
  3130. required:
  3131. - clusters
  3132. - resource
  3133. - actions
  3134. Action:
  3135. type: string
  3136. enum:
  3137. - VIEW
  3138. - EDIT
  3139. - CREATE
  3140. - DELETE
  3141. - RESET_OFFSETS
  3142. - EXECUTE
  3143. - MODIFY_GLOBAL_COMPATIBILITY
  3144. - ANALYSIS_VIEW
  3145. - ANALYSIS_RUN
  3146. - MESSAGES_READ
  3147. - MESSAGES_PRODUCE
  3148. - MESSAGES_DELETE
  3149. ResourceType:
  3150. type: string
  3151. enum:
  3152. - CLUSTERCONFIG
  3153. - TOPIC
  3154. - CONSUMER
  3155. - SCHEMA
  3156. - CONNECT
  3157. - KSQL
  3158. - ACL
  3159. KafkaAcl:
  3160. type: object
  3161. required: [resourceType, resourceName, namePatternType, principal, host, operation, permission]
  3162. properties:
  3163. resourceType:
  3164. type: string
  3165. enum:
  3166. - TOPIC
  3167. - GROUP
  3168. - CLUSTER
  3169. - TRANSACTIONAL_ID
  3170. - DELEGATION_TOPIC
  3171. resourceName:
  3172. type: string # "*" if acl can be applied to any resource of given type
  3173. namePatternType:
  3174. type: string
  3175. enum:
  3176. - LITERAL
  3177. - PREFIXED
  3178. principal:
  3179. type: string
  3180. host:
  3181. type: string # "*" if acl can be applied to any resource of given type
  3182. operation:
  3183. type: string
  3184. enum:
  3185. - ALL # Cluster, Topic, Group
  3186. - READ # Topic, Group
  3187. - WRITE # Topic, TransactionalId
  3188. - CREATE # Cluster, Topic
  3189. - DELETE # Topic, Group
  3190. - ALTER # Cluster, Topic,
  3191. - DESCRIBE # Cluster, Topic, Group, TransactionalId, DelegationToken
  3192. - CLUSTER_ACTION # Cluster
  3193. - DESCRIBE_CONFIGS # Cluster, Topic
  3194. - ALTER_CONFIGS # Cluster, Topic
  3195. - IDEMPOTENT_WRITE # -
  3196. permission:
  3197. type: string
  3198. enum:
  3199. - ALLOW
  3200. - DENY