kafka-ui-api.yaml 100 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181
  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/smartfilters/testexecutions:
  608. put:
  609. tags:
  610. - Messages
  611. summary: executeSmartFilterTest
  612. operationId: executeSmartFilterTest
  613. requestBody:
  614. content:
  615. application/json:
  616. schema:
  617. $ref: '#/components/schemas/SmartFilterTestExecution'
  618. responses:
  619. 200:
  620. description: OK
  621. content:
  622. application/json:
  623. schema:
  624. $ref: '#/components/schemas/SmartFilterTestExecutionResult'
  625. /api/clusters/{clusterName}/topics/{topicName}/messages:
  626. get:
  627. tags:
  628. - Messages
  629. summary: getTopicMessages
  630. operationId: getTopicMessages
  631. parameters:
  632. - name: clusterName
  633. in: path
  634. required: true
  635. schema:
  636. type: string
  637. - name: topicName
  638. in: path
  639. required: true
  640. schema:
  641. type: string
  642. - name: seekType
  643. in: query
  644. schema:
  645. $ref: "#/components/schemas/SeekType"
  646. - name: seekTo
  647. in: query
  648. schema:
  649. type: array
  650. items:
  651. type: string
  652. description: The format is [partition]::[offset] for specifying offsets or [partition]::[timestamp in millis] for specifying timestamps
  653. - name: limit
  654. in: query
  655. schema:
  656. type: integer
  657. - name: q
  658. in: query
  659. schema:
  660. type: string
  661. - name: filterQueryType
  662. in: query
  663. schema:
  664. $ref: "#/components/schemas/MessageFilterType"
  665. - name: seekDirection
  666. in: query
  667. schema:
  668. $ref: "#/components/schemas/SeekDirection"
  669. - name: keySerde
  670. in: query
  671. description: "Serde that should be used for deserialization. Will be chosen automatically if not set."
  672. schema:
  673. type: string
  674. - name: valueSerde
  675. in: query
  676. description: "Serde that should be used for deserialization. Will be chosen automatically if not set."
  677. schema:
  678. type: string
  679. responses:
  680. 200:
  681. description: OK
  682. content:
  683. text/event-stream:
  684. schema:
  685. type: array
  686. items:
  687. $ref: '#/components/schemas/TopicMessageEvent'
  688. delete:
  689. tags:
  690. - Messages
  691. summary: deleteTopicMessages
  692. operationId: deleteTopicMessages
  693. parameters:
  694. - name: clusterName
  695. in: path
  696. required: true
  697. schema:
  698. type: string
  699. - name: topicName
  700. in: path
  701. required: true
  702. schema:
  703. type: string
  704. - name: partitions
  705. in: query
  706. required: false
  707. schema:
  708. type: array
  709. items:
  710. type: integer
  711. responses:
  712. 200:
  713. description: OK
  714. 404:
  715. description: Not found
  716. post:
  717. tags:
  718. - Messages
  719. summary: sendTopicMessages
  720. operationId: sendTopicMessages
  721. parameters:
  722. - name: clusterName
  723. in: path
  724. required: true
  725. schema:
  726. type: string
  727. - name: topicName
  728. in: path
  729. required: true
  730. schema:
  731. type: string
  732. requestBody:
  733. content:
  734. application/json:
  735. schema:
  736. $ref: '#/components/schemas/CreateTopicMessage'
  737. responses:
  738. 200:
  739. description: OK
  740. 404:
  741. description: Not found
  742. /api/clusters/{clusterName}/topics/{topicName}/smartfilters:
  743. post:
  744. tags:
  745. - Messages
  746. summary: registerFilter
  747. operationId: registerFilter
  748. parameters:
  749. - name: clusterName
  750. in: path
  751. required: true
  752. schema:
  753. type: string
  754. - name: topicName
  755. in: path
  756. required: true
  757. schema:
  758. type: string
  759. requestBody:
  760. content:
  761. application/json:
  762. schema:
  763. $ref: '#/components/schemas/MessageFilterRegistration'
  764. responses:
  765. 200:
  766. description: OK
  767. content:
  768. application/json:
  769. schema:
  770. $ref: '#/components/schemas/MessageFilterId'
  771. /api/clusters/{clusterName}/topics/{topicName}/messages/v2:
  772. get:
  773. tags:
  774. - Messages
  775. summary: getTopicMessagesV2
  776. operationId: getTopicMessagesV2
  777. parameters:
  778. - name: clusterName
  779. in: path
  780. required: true
  781. schema:
  782. type: string
  783. - name: topicName
  784. in: path
  785. required: true
  786. schema:
  787. type: string
  788. - name: mode
  789. in: query
  790. description: Messages polling mode
  791. required: true
  792. schema:
  793. $ref: "#/components/schemas/PollingMode"
  794. - name: partitions
  795. in: query
  796. schema:
  797. type: array
  798. description: List of target partitions (all partitions if not provided)
  799. items:
  800. type: integer
  801. - name: limit
  802. in: query
  803. description: Max number of messages can be returned
  804. schema:
  805. type: integer
  806. - name: stringFilter
  807. in: query
  808. description: query string to contains string filtration
  809. schema:
  810. type: string
  811. - name: smartFilterId
  812. in: query
  813. description: filter id, that was registered beforehand
  814. schema:
  815. type: string
  816. - name: offset
  817. in: query
  818. description: message offset to read from / to
  819. schema:
  820. type: integer
  821. format: int64
  822. - name: timestamp
  823. in: query
  824. description: timestamp (in ms) to read from / to
  825. schema:
  826. type: integer
  827. format: int64
  828. - name: keySerde
  829. in: query
  830. description: "Serde that should be used for deserialization. Will be chosen automatically if not set."
  831. schema:
  832. type: string
  833. - name: valueSerde
  834. in: query
  835. description: "Serde that should be used for deserialization. Will be chosen automatically if not set."
  836. schema:
  837. type: string
  838. - name: cursor
  839. in: query
  840. description: "id of the cursor for pagination"
  841. schema:
  842. type: string
  843. responses:
  844. 200:
  845. description: OK
  846. content:
  847. text/event-stream:
  848. schema:
  849. type: array
  850. items:
  851. $ref: '#/components/schemas/TopicMessageEvent'
  852. /api/clusters/{clusterName}/topics/{topicName}/consumer-groups:
  853. get:
  854. tags:
  855. - Consumer Groups
  856. summary: get Consumer Groups By Topics
  857. operationId: getTopicConsumerGroups
  858. parameters:
  859. - name: clusterName
  860. in: path
  861. required: true
  862. schema:
  863. type: string
  864. - name: topicName
  865. in: path
  866. required: true
  867. schema:
  868. type: string
  869. responses:
  870. 200:
  871. description: OK
  872. content:
  873. application/json:
  874. schema:
  875. type: array
  876. items:
  877. $ref: '#/components/schemas/ConsumerGroup'
  878. /api/clusters/{clusterName}/consumer-groups/paged:
  879. get:
  880. tags:
  881. - Consumer Groups
  882. summary: Get consumer groups with paging support
  883. operationId: getConsumerGroupsPage
  884. parameters:
  885. - name: clusterName
  886. in: path
  887. required: true
  888. schema:
  889. type: string
  890. - name: page
  891. in: query
  892. required: false
  893. schema:
  894. type: integer
  895. - name: perPage
  896. in: query
  897. required: false
  898. schema:
  899. type: integer
  900. - name: search
  901. in: query
  902. required: false
  903. schema:
  904. type: string
  905. - name: orderBy
  906. in: query
  907. required: false
  908. schema:
  909. $ref: '#/components/schemas/ConsumerGroupOrdering'
  910. - name: sortOrder
  911. in: query
  912. required: false
  913. schema:
  914. $ref: '#/components/schemas/SortOrder'
  915. responses:
  916. 200:
  917. description: OK
  918. content:
  919. application/json:
  920. schema:
  921. $ref: '#/components/schemas/ConsumerGroupsPageResponse'
  922. /api/clusters/{clusterName}/consumer-groups/{id}:
  923. get:
  924. tags:
  925. - Consumer Groups
  926. summary: get Consumer Group By Id
  927. operationId: getConsumerGroup
  928. parameters:
  929. - name: clusterName
  930. in: path
  931. required: true
  932. schema:
  933. type: string
  934. - name: id
  935. in: path
  936. required: true
  937. schema:
  938. type: string
  939. responses:
  940. 200:
  941. description: OK
  942. content:
  943. application/json:
  944. schema:
  945. $ref: '#/components/schemas/ConsumerGroupDetails'
  946. delete:
  947. tags:
  948. - Consumer Groups
  949. summary: Delete Consumer Group by ID
  950. operationId: deleteConsumerGroup
  951. parameters:
  952. - name: clusterName
  953. in: path
  954. required: true
  955. schema:
  956. type: string
  957. - name: id
  958. in: path
  959. required: true
  960. schema:
  961. type: string
  962. responses:
  963. 200:
  964. description: OK
  965. /api/clusters/{clusterName}/consumer-groups/{id}/offsets:
  966. post:
  967. tags:
  968. - Consumer Groups
  969. summary: resets consumer group offsets
  970. operationId: resetConsumerGroupOffsets
  971. parameters:
  972. - name: clusterName
  973. in: path
  974. required: true
  975. schema:
  976. type: string
  977. - name: id
  978. in: path
  979. required: true
  980. schema:
  981. type: string
  982. requestBody:
  983. content:
  984. application/json:
  985. schema:
  986. $ref: '#/components/schemas/ConsumerGroupOffsetsReset'
  987. responses:
  988. 200:
  989. description: OK
  990. /api/clusters/{clusterName}/schemas:
  991. post:
  992. tags:
  993. - Schemas
  994. summary: create a new subject schema or update existing subject schema
  995. operationId: createNewSchema
  996. parameters:
  997. - name: clusterName
  998. in: path
  999. required: true
  1000. schema:
  1001. type: string
  1002. requestBody:
  1003. content:
  1004. application/json:
  1005. schema:
  1006. $ref: '#/components/schemas/NewSchemaSubject'
  1007. responses:
  1008. 200:
  1009. description: Ok
  1010. content:
  1011. application/json:
  1012. schema:
  1013. $ref: '#/components/schemas/SchemaSubject'
  1014. 400:
  1015. description: Bad request
  1016. 409:
  1017. description: Duplicate schema
  1018. 422:
  1019. description: Invalid parameters
  1020. get:
  1021. tags:
  1022. - Schemas
  1023. summary: get all schemas of latest version from Schema Registry service
  1024. operationId: getSchemas
  1025. parameters:
  1026. - name: clusterName
  1027. in: path
  1028. required: true
  1029. schema:
  1030. type: string
  1031. - name: page
  1032. in: query
  1033. required: false
  1034. schema:
  1035. type: integer
  1036. - name: perPage
  1037. in: query
  1038. required: false
  1039. schema:
  1040. type: integer
  1041. - name: search
  1042. in: query
  1043. required: false
  1044. schema:
  1045. type: string
  1046. responses:
  1047. 200:
  1048. description: OK
  1049. content:
  1050. application/json:
  1051. schema:
  1052. $ref: '#/components/schemas/SchemaSubjectsResponse'
  1053. /api/clusters/{clusterName}/schemas/{subject}:
  1054. delete:
  1055. tags:
  1056. - Schemas
  1057. summary: delete schema from Schema Registry service
  1058. operationId: deleteSchema
  1059. parameters:
  1060. - name: clusterName
  1061. in: path
  1062. required: true
  1063. schema:
  1064. type: string
  1065. - name: subject
  1066. in: path
  1067. required: true
  1068. schema:
  1069. type: string
  1070. responses:
  1071. 200:
  1072. description: OK
  1073. 404:
  1074. description: Not found
  1075. /api/clusters/{clusterName}/schemas/{subject}/versions:
  1076. get:
  1077. tags:
  1078. - Schemas
  1079. summary: get all version of subject from Schema Registry service
  1080. operationId: getAllVersionsBySubject
  1081. parameters:
  1082. - name: clusterName
  1083. in: path
  1084. required: true
  1085. schema:
  1086. type: string
  1087. - name: subject
  1088. in: path
  1089. required: true
  1090. schema:
  1091. type: string
  1092. responses:
  1093. 200:
  1094. description: OK
  1095. content:
  1096. application/json:
  1097. schema:
  1098. type: array
  1099. items:
  1100. $ref: '#/components/schemas/SchemaSubject'
  1101. /api/clusters/{clusterName}/schemas/{subject}/latest:
  1102. get:
  1103. tags:
  1104. - Schemas
  1105. summary: get the latest schema from Schema Registry service
  1106. operationId: getLatestSchema
  1107. parameters:
  1108. - name: clusterName
  1109. in: path
  1110. required: true
  1111. schema:
  1112. type: string
  1113. - name: subject
  1114. in: path
  1115. required: true
  1116. schema:
  1117. type: string
  1118. responses:
  1119. 200:
  1120. description: OK
  1121. content:
  1122. application/json:
  1123. schema:
  1124. $ref: '#/components/schemas/SchemaSubject'
  1125. delete:
  1126. tags:
  1127. - Schemas
  1128. summary: delete the latest schema from schema registry
  1129. operationId: deleteLatestSchema
  1130. parameters:
  1131. - name: clusterName
  1132. in: path
  1133. required: true
  1134. schema:
  1135. type: string
  1136. - name: subject
  1137. in: path
  1138. required: true
  1139. schema:
  1140. type: string
  1141. responses:
  1142. 200:
  1143. description: OK
  1144. 404:
  1145. description: Not found
  1146. /api/clusters/{clusterName}/schemas/{subject}/versions/{version}:
  1147. get:
  1148. tags:
  1149. - Schemas
  1150. summary: get schema by version from Schema Registry service
  1151. operationId: getSchemaByVersion
  1152. parameters:
  1153. - name: clusterName
  1154. in: path
  1155. required: true
  1156. schema:
  1157. type: string
  1158. - name: subject
  1159. in: path
  1160. required: true
  1161. schema:
  1162. type: string
  1163. - name: version
  1164. in: path
  1165. required: true
  1166. schema:
  1167. type: integer
  1168. responses:
  1169. 200:
  1170. description: OK
  1171. content:
  1172. application/json:
  1173. schema:
  1174. $ref: '#/components/schemas/SchemaSubject'
  1175. delete:
  1176. tags:
  1177. - Schemas
  1178. summary: delete schema by version from schema registry
  1179. operationId: deleteSchemaByVersion
  1180. parameters:
  1181. - name: clusterName
  1182. in: path
  1183. required: true
  1184. schema:
  1185. type: string
  1186. - name: subject
  1187. in: path
  1188. required: true
  1189. schema:
  1190. type: string
  1191. - name: version
  1192. in: path
  1193. required: true
  1194. schema:
  1195. type: integer
  1196. responses:
  1197. 200:
  1198. description: OK
  1199. 404:
  1200. description: Not found
  1201. /api/clusters/{clusterName}/schemas/compatibility:
  1202. get:
  1203. tags:
  1204. - Schemas
  1205. summary: Get global schema compatibility level
  1206. operationId: getGlobalSchemaCompatibilityLevel
  1207. parameters:
  1208. - name: clusterName
  1209. in: path
  1210. required: true
  1211. schema:
  1212. type: string
  1213. responses:
  1214. 200:
  1215. description: OK
  1216. content:
  1217. application/json:
  1218. schema:
  1219. $ref: '#/components/schemas/CompatibilityLevel'
  1220. put:
  1221. tags:
  1222. - Schemas
  1223. summary: Update compatibility level globally
  1224. operationId: updateGlobalSchemaCompatibilityLevel
  1225. parameters:
  1226. - name: clusterName
  1227. in: path
  1228. required: true
  1229. schema:
  1230. type: string
  1231. requestBody:
  1232. content:
  1233. application/json:
  1234. schema:
  1235. $ref: '#/components/schemas/CompatibilityLevel'
  1236. responses:
  1237. 200:
  1238. description: OK
  1239. 404:
  1240. description: Not Found
  1241. /api/clusters/{clusterName}/schemas/{subject}/compatibility:
  1242. put:
  1243. tags:
  1244. - Schemas
  1245. summary: Update compatibility level for specific schema.
  1246. operationId: updateSchemaCompatibilityLevel
  1247. parameters:
  1248. - name: clusterName
  1249. in: path
  1250. required: true
  1251. schema:
  1252. type: string
  1253. - name: subject
  1254. in: path
  1255. required: true
  1256. schema:
  1257. type: string
  1258. requestBody:
  1259. content:
  1260. application/json:
  1261. schema:
  1262. $ref: '#/components/schemas/CompatibilityLevel'
  1263. responses:
  1264. 200:
  1265. description: OK
  1266. 404:
  1267. description: Not Found
  1268. /api/clusters/{clusterName}/schemas/{subject}/check:
  1269. post:
  1270. tags:
  1271. - Schemas
  1272. summary: Check compatibility of the schema.
  1273. operationId: checkSchemaCompatibility
  1274. parameters:
  1275. - name: clusterName
  1276. in: path
  1277. required: true
  1278. schema:
  1279. type: string
  1280. - name: subject
  1281. in: path
  1282. required: true
  1283. schema:
  1284. type: string
  1285. requestBody:
  1286. content:
  1287. application/json:
  1288. schema:
  1289. $ref: '#/components/schemas/NewSchemaSubject'
  1290. responses:
  1291. 200:
  1292. description: OK
  1293. content:
  1294. application/json:
  1295. schema:
  1296. $ref: '#/components/schemas/CompatibilityCheckResponse'
  1297. 404:
  1298. description: Not Found
  1299. /api/clusters/{clusterName}/connects:
  1300. get:
  1301. tags:
  1302. - Kafka Connect
  1303. summary: get all kafka connect instances
  1304. operationId: getConnects
  1305. parameters:
  1306. - name: clusterName
  1307. in: path
  1308. required: true
  1309. schema:
  1310. type: string
  1311. responses:
  1312. 200:
  1313. description: OK
  1314. content:
  1315. application/json:
  1316. schema:
  1317. type: array
  1318. items:
  1319. $ref: '#/components/schemas/Connect'
  1320. /api/clusters/{clusterName}/connectors:
  1321. get:
  1322. tags:
  1323. - Kafka Connect
  1324. summary: get filtered kafka connectors
  1325. operationId: getAllConnectors
  1326. parameters:
  1327. - name: clusterName
  1328. in: path
  1329. required: true
  1330. schema:
  1331. type: string
  1332. - name: search
  1333. in: query
  1334. required: false
  1335. schema:
  1336. type: string
  1337. - name: orderBy
  1338. in: query
  1339. required: false
  1340. schema:
  1341. $ref: '#/components/schemas/ConnectorColumnsToSort'
  1342. - name: sortOrder
  1343. in: query
  1344. required: false
  1345. schema:
  1346. $ref: '#/components/schemas/SortOrder'
  1347. responses:
  1348. 200:
  1349. description: OK
  1350. content:
  1351. application/json:
  1352. schema:
  1353. type: array
  1354. items:
  1355. $ref: '#/components/schemas/FullConnectorInfo'
  1356. /api/clusters/{clusterName}/connects/{connectName}/connectors:
  1357. get:
  1358. tags:
  1359. - Kafka Connect
  1360. summary: get connectors for provided kafka connect instance
  1361. operationId: getConnectors
  1362. parameters:
  1363. - name: clusterName
  1364. in: path
  1365. required: true
  1366. schema:
  1367. type: string
  1368. - name: connectName
  1369. in: path
  1370. required: true
  1371. schema:
  1372. type: string
  1373. responses:
  1374. 200:
  1375. description: OK
  1376. content:
  1377. application/json:
  1378. schema:
  1379. type: array
  1380. items:
  1381. type: string
  1382. post:
  1383. tags:
  1384. - Kafka Connect
  1385. summary: create new connector
  1386. operationId: createConnector
  1387. parameters:
  1388. - name: clusterName
  1389. in: path
  1390. required: true
  1391. schema:
  1392. type: string
  1393. - name: connectName
  1394. in: path
  1395. required: true
  1396. schema:
  1397. type: string
  1398. requestBody:
  1399. content:
  1400. application/json:
  1401. schema:
  1402. $ref: '#/components/schemas/NewConnector'
  1403. responses:
  1404. 200:
  1405. description: OK
  1406. content:
  1407. application/json:
  1408. schema:
  1409. $ref: '#/components/schemas/Connector'
  1410. 409:
  1411. description: rebalance is in progress
  1412. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}:
  1413. get:
  1414. tags:
  1415. - Kafka Connect
  1416. summary: get information about the connector
  1417. operationId: getConnector
  1418. parameters:
  1419. - name: clusterName
  1420. in: path
  1421. required: true
  1422. schema:
  1423. type: string
  1424. - name: connectName
  1425. in: path
  1426. required: true
  1427. schema:
  1428. type: string
  1429. - name: connectorName
  1430. in: path
  1431. required: true
  1432. schema:
  1433. type: string
  1434. responses:
  1435. 200:
  1436. description: OK
  1437. content:
  1438. application/json:
  1439. schema:
  1440. $ref: '#/components/schemas/Connector'
  1441. delete:
  1442. tags:
  1443. - Kafka Connect
  1444. summary: delete connector
  1445. operationId: deleteConnector
  1446. parameters:
  1447. - name: clusterName
  1448. in: path
  1449. required: true
  1450. schema:
  1451. type: string
  1452. - name: connectName
  1453. in: path
  1454. required: true
  1455. schema:
  1456. type: string
  1457. - name: connectorName
  1458. in: path
  1459. required: true
  1460. schema:
  1461. type: string
  1462. responses:
  1463. 200:
  1464. description: OK
  1465. 409:
  1466. description: rebalance is in progress
  1467. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/action/{action}:
  1468. post:
  1469. tags:
  1470. - Kafka Connect
  1471. summary: update connector state (restart, pause or resume)
  1472. operationId: updateConnectorState
  1473. parameters:
  1474. - name: clusterName
  1475. in: path
  1476. required: true
  1477. schema:
  1478. type: string
  1479. - name: connectName
  1480. in: path
  1481. required: true
  1482. schema:
  1483. type: string
  1484. - name: connectorName
  1485. in: path
  1486. required: true
  1487. schema:
  1488. type: string
  1489. - name: action
  1490. in: path
  1491. required: true
  1492. schema:
  1493. $ref: '#/components/schemas/ConnectorAction'
  1494. responses:
  1495. 200:
  1496. description: OK
  1497. 409:
  1498. description: rebalance is in progress
  1499. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/config:
  1500. get:
  1501. tags:
  1502. - Kafka Connect
  1503. summary: get connector configuration
  1504. operationId: getConnectorConfig
  1505. parameters:
  1506. - name: clusterName
  1507. in: path
  1508. required: true
  1509. schema:
  1510. type: string
  1511. - name: connectName
  1512. in: path
  1513. required: true
  1514. schema:
  1515. type: string
  1516. - name: connectorName
  1517. in: path
  1518. required: true
  1519. schema:
  1520. type: string
  1521. responses:
  1522. 200:
  1523. description: OK
  1524. content:
  1525. application/json:
  1526. schema:
  1527. $ref: '#/components/schemas/ConnectorConfig'
  1528. put:
  1529. tags:
  1530. - Kafka Connect
  1531. summary: update or create connector with provided config
  1532. operationId: setConnectorConfig
  1533. parameters:
  1534. - name: clusterName
  1535. in: path
  1536. required: true
  1537. schema:
  1538. type: string
  1539. - name: connectName
  1540. in: path
  1541. required: true
  1542. schema:
  1543. type: string
  1544. - name: connectorName
  1545. in: path
  1546. required: true
  1547. schema:
  1548. type: string
  1549. requestBody:
  1550. content:
  1551. application/json:
  1552. schema:
  1553. $ref: '#/components/schemas/ConnectorConfig'
  1554. responses:
  1555. 200:
  1556. description: OK
  1557. content:
  1558. application/json:
  1559. schema:
  1560. $ref: '#/components/schemas/Connector'
  1561. 409:
  1562. description: rebalance is in progress
  1563. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/tasks:
  1564. get:
  1565. tags:
  1566. - Kafka Connect
  1567. summary: get connector tasks
  1568. operationId: getConnectorTasks
  1569. parameters:
  1570. - name: clusterName
  1571. in: path
  1572. required: true
  1573. schema:
  1574. type: string
  1575. - name: connectName
  1576. in: path
  1577. required: true
  1578. schema:
  1579. type: string
  1580. - name: connectorName
  1581. in: path
  1582. required: true
  1583. schema:
  1584. type: string
  1585. responses:
  1586. 200:
  1587. description: OK
  1588. content:
  1589. application/json:
  1590. schema:
  1591. type: array
  1592. items:
  1593. $ref: '#/components/schemas/Task'
  1594. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/tasks/{taskId}/action/restart:
  1595. post:
  1596. tags:
  1597. - Kafka Connect
  1598. summary: restart connector task
  1599. operationId: restartConnectorTask
  1600. parameters:
  1601. - name: clusterName
  1602. in: path
  1603. required: true
  1604. schema:
  1605. type: string
  1606. - name: connectName
  1607. in: path
  1608. required: true
  1609. schema:
  1610. type: string
  1611. - name: connectorName
  1612. in: path
  1613. required: true
  1614. schema:
  1615. type: string
  1616. - name: taskId
  1617. in: path
  1618. required: true
  1619. schema:
  1620. type: integer
  1621. responses:
  1622. 200:
  1623. description: OK
  1624. /api/clusters/{clusterName}/ksql/v2:
  1625. post:
  1626. tags:
  1627. - Ksql
  1628. summary: executeKsql
  1629. operationId: executeKsql
  1630. parameters:
  1631. - name: clusterName
  1632. in: path
  1633. required: true
  1634. schema:
  1635. type: string
  1636. requestBody:
  1637. content:
  1638. application/json:
  1639. schema:
  1640. $ref: '#/components/schemas/KsqlCommandV2'
  1641. responses:
  1642. 200:
  1643. description: OK
  1644. content:
  1645. application/json:
  1646. schema:
  1647. $ref: '#/components/schemas/KsqlCommandV2Response'
  1648. /api/clusters/{clusterName}/ksql/tables:
  1649. get:
  1650. tags:
  1651. - Ksql
  1652. summary: listTables
  1653. operationId: listTables
  1654. parameters:
  1655. - name: clusterName
  1656. in: path
  1657. required: true
  1658. schema:
  1659. type: string
  1660. responses:
  1661. 200:
  1662. description: OK
  1663. content:
  1664. application/json:
  1665. schema:
  1666. type: array
  1667. items:
  1668. $ref: '#/components/schemas/KsqlTableDescription'
  1669. /api/clusters/{clusterName}/ksql/streams:
  1670. get:
  1671. tags:
  1672. - Ksql
  1673. summary: listStreams
  1674. operationId: listStreams
  1675. parameters:
  1676. - name: clusterName
  1677. in: path
  1678. required: true
  1679. schema:
  1680. type: string
  1681. responses:
  1682. 200:
  1683. description: OK
  1684. content:
  1685. application/json:
  1686. schema:
  1687. type: array
  1688. items:
  1689. $ref: '#/components/schemas/KsqlStreamDescription'
  1690. /api/clusters/{clusterName}/ksql/response:
  1691. get:
  1692. tags:
  1693. - Ksql
  1694. summary: Open SSE pipe
  1695. operationId: openKsqlResponsePipe
  1696. parameters:
  1697. - name: clusterName
  1698. in: path
  1699. required: true
  1700. schema:
  1701. type: string
  1702. - name: pipeId
  1703. in: query
  1704. required: true
  1705. schema:
  1706. type: string
  1707. responses:
  1708. 200:
  1709. description: OK
  1710. content:
  1711. text/event-stream:
  1712. schema:
  1713. type: array
  1714. items:
  1715. $ref: '#/components/schemas/KsqlResponse'
  1716. /api/clusters/{clusterName}/connects/{connectName}/plugins:
  1717. get:
  1718. tags:
  1719. - Kafka Connect
  1720. summary: get connector plugins
  1721. operationId: getConnectorPlugins
  1722. parameters:
  1723. - name: clusterName
  1724. in: path
  1725. required: true
  1726. schema:
  1727. type: string
  1728. - name: connectName
  1729. in: path
  1730. required: true
  1731. schema:
  1732. type: string
  1733. responses:
  1734. 200:
  1735. description: OK
  1736. content:
  1737. application/json:
  1738. schema:
  1739. type: array
  1740. items:
  1741. $ref: '#/components/schemas/ConnectorPlugin'
  1742. /api/clusters/{clusterName}/connects/{connectName}/plugins/{pluginName}/config/validate:
  1743. put:
  1744. tags:
  1745. - Kafka Connect
  1746. summary: validate connector plugin configuration
  1747. operationId: validateConnectorPluginConfig
  1748. parameters:
  1749. - name: clusterName
  1750. in: path
  1751. required: true
  1752. schema:
  1753. type: string
  1754. - name: connectName
  1755. in: path
  1756. required: true
  1757. schema:
  1758. type: string
  1759. - name: pluginName
  1760. in: path
  1761. required: true
  1762. schema:
  1763. type: string
  1764. requestBody:
  1765. content:
  1766. application/json:
  1767. schema:
  1768. $ref: '#/components/schemas/ConnectorConfig'
  1769. responses:
  1770. 200:
  1771. description: OK
  1772. content:
  1773. application/json:
  1774. schema:
  1775. $ref: '#/components/schemas/ConnectorPluginConfigValidationResponse'
  1776. /api/clusters/{clusterName}/topics/{topicName}/partitions:
  1777. patch:
  1778. tags:
  1779. - Topics
  1780. summary: increaseTopicPartitions
  1781. operationId: increaseTopicPartitions
  1782. parameters:
  1783. - name: clusterName
  1784. in: path
  1785. required: true
  1786. schema:
  1787. type: string
  1788. - name: topicName
  1789. in: path
  1790. required: true
  1791. schema:
  1792. type: string
  1793. requestBody:
  1794. content:
  1795. application/json:
  1796. schema:
  1797. $ref: '#/components/schemas/PartitionsIncrease'
  1798. responses:
  1799. 200:
  1800. description: OK
  1801. content:
  1802. application/json:
  1803. schema:
  1804. $ref: '#/components/schemas/PartitionsIncreaseResponse'
  1805. 404:
  1806. description: Not found
  1807. /api/clusters/{clusterName}/acls:
  1808. get:
  1809. tags:
  1810. - Acls
  1811. summary: listKafkaAcls
  1812. operationId: listAcls
  1813. parameters:
  1814. - name: clusterName
  1815. in: path
  1816. required: true
  1817. schema:
  1818. type: string
  1819. - name: resourceType
  1820. in: query
  1821. required: false
  1822. schema:
  1823. $ref: '#/components/schemas/KafkaAclResourceType'
  1824. - name: resourceName
  1825. in: query
  1826. required: false
  1827. schema:
  1828. type: string
  1829. - name: namePatternType
  1830. in: query
  1831. required: false
  1832. schema:
  1833. $ref: '#/components/schemas/KafkaAclNamePatternType'
  1834. responses:
  1835. 200:
  1836. description: OK
  1837. content:
  1838. application/json:
  1839. schema:
  1840. type: array
  1841. items:
  1842. $ref: '#/components/schemas/KafkaAcl'
  1843. /api/clusters/{clusterName}/acl/csv:
  1844. get:
  1845. tags:
  1846. - Acls
  1847. summary: getAclAsCsv
  1848. operationId: getAclAsCsv
  1849. parameters:
  1850. - name: clusterName
  1851. in: path
  1852. required: true
  1853. schema:
  1854. type: string
  1855. responses:
  1856. 200:
  1857. description: OK
  1858. content:
  1859. text/plain:
  1860. schema:
  1861. type: string
  1862. post:
  1863. tags:
  1864. - Acls
  1865. summary: syncAclsCsv
  1866. operationId: syncAclsCsv
  1867. parameters:
  1868. - name: clusterName
  1869. in: path
  1870. required: true
  1871. schema:
  1872. type: string
  1873. requestBody:
  1874. content:
  1875. text/plain:
  1876. schema:
  1877. type: string
  1878. responses:
  1879. 200:
  1880. description: OK
  1881. /api/clusters/{clusterName}/acl:
  1882. post:
  1883. tags:
  1884. - Acls
  1885. summary: createAcl
  1886. operationId: createAcl
  1887. parameters:
  1888. - name: clusterName
  1889. in: path
  1890. required: true
  1891. schema:
  1892. type: string
  1893. requestBody:
  1894. content:
  1895. application/json:
  1896. schema:
  1897. $ref: '#/components/schemas/KafkaAcl'
  1898. responses:
  1899. 200:
  1900. description: OK
  1901. delete:
  1902. tags:
  1903. - Acls
  1904. summary: deleteAcl
  1905. operationId: deleteAcl
  1906. parameters:
  1907. - name: clusterName
  1908. in: path
  1909. required: true
  1910. schema:
  1911. type: string
  1912. requestBody:
  1913. content:
  1914. application/json:
  1915. schema:
  1916. $ref: '#/components/schemas/KafkaAcl'
  1917. responses:
  1918. 200:
  1919. description: OK
  1920. 404:
  1921. description: Acl not found
  1922. /api/clusters/{clusterName}/acl/consumer:
  1923. post:
  1924. tags:
  1925. - Acls
  1926. summary: createConsumerAcl
  1927. operationId: createConsumerAcl
  1928. parameters:
  1929. - name: clusterName
  1930. in: path
  1931. required: true
  1932. schema:
  1933. type: string
  1934. requestBody:
  1935. content:
  1936. application/json:
  1937. schema:
  1938. $ref: '#/components/schemas/CreateConsumerAcl'
  1939. responses:
  1940. 200:
  1941. description: OK
  1942. /api/clusters/{clusterName}/acl/producer:
  1943. post:
  1944. tags:
  1945. - Acls
  1946. summary: createProducerAcl
  1947. operationId: createProducerAcl
  1948. parameters:
  1949. - name: clusterName
  1950. in: path
  1951. required: true
  1952. schema:
  1953. type: string
  1954. requestBody:
  1955. content:
  1956. application/json:
  1957. schema:
  1958. $ref: '#/components/schemas/CreateProducerAcl'
  1959. responses:
  1960. 200:
  1961. description: OK
  1962. /api/clusters/{clusterName}/acl/streamApp:
  1963. post:
  1964. tags:
  1965. - Acls
  1966. summary: createStreamAppAcl
  1967. operationId: createStreamAppAcl
  1968. parameters:
  1969. - name: clusterName
  1970. in: path
  1971. required: true
  1972. schema:
  1973. type: string
  1974. requestBody:
  1975. content:
  1976. application/json:
  1977. schema:
  1978. $ref: '#/components/schemas/CreateStreamAppAcl'
  1979. responses:
  1980. 200:
  1981. description: OK
  1982. /api/authorization:
  1983. get:
  1984. tags:
  1985. - Authorization
  1986. summary: Get user authentication related info
  1987. operationId: getUserAuthInfo
  1988. responses:
  1989. 200:
  1990. description: OK
  1991. content:
  1992. application/json:
  1993. schema:
  1994. $ref: '#/components/schemas/AuthenticationInfo'
  1995. /api/info:
  1996. get:
  1997. tags:
  1998. - ApplicationConfig
  1999. summary: Gets application info
  2000. operationId: getApplicationInfo
  2001. responses:
  2002. 200:
  2003. description: OK
  2004. content:
  2005. application/json:
  2006. schema:
  2007. $ref: '#/components/schemas/ApplicationInfo'
  2008. /api/config:
  2009. get:
  2010. tags:
  2011. - ApplicationConfig
  2012. summary: Gets current application configuration
  2013. operationId: getCurrentConfig
  2014. responses:
  2015. 200:
  2016. description: OK
  2017. content:
  2018. application/json:
  2019. schema:
  2020. $ref: '#/components/schemas/ApplicationConfig'
  2021. put:
  2022. tags:
  2023. - ApplicationConfig
  2024. summary: Restarts application with specified configuration
  2025. operationId: restartWithConfig
  2026. requestBody:
  2027. content:
  2028. application/json:
  2029. schema:
  2030. $ref: '#/components/schemas/RestartRequest'
  2031. responses:
  2032. 200:
  2033. description: OK
  2034. /api/config/validated:
  2035. put:
  2036. tags:
  2037. - ApplicationConfig
  2038. summary: Restarts application with specified configuration
  2039. operationId: validateConfig
  2040. requestBody:
  2041. content:
  2042. application/json:
  2043. schema:
  2044. $ref: '#/components/schemas/ApplicationConfig'
  2045. responses:
  2046. 200:
  2047. description: OK
  2048. content:
  2049. application/json:
  2050. schema:
  2051. $ref: '#/components/schemas/ApplicationConfigValidation'
  2052. /api/config/relatedfiles:
  2053. post:
  2054. tags:
  2055. - ApplicationConfig
  2056. summary: Restarts application with specified configuration
  2057. operationId: uploadConfigRelatedFile
  2058. requestBody:
  2059. content:
  2060. multipart/form-data:
  2061. schema:
  2062. type: object
  2063. properties:
  2064. file:
  2065. type: string
  2066. format: binary
  2067. responses:
  2068. 200:
  2069. description: OK
  2070. content:
  2071. application/json:
  2072. schema:
  2073. $ref: '#/components/schemas/UploadedFileInfo'
  2074. components:
  2075. schemas:
  2076. TopicSerdeSuggestion:
  2077. type: object
  2078. properties:
  2079. key:
  2080. type: array
  2081. items:
  2082. $ref: '#/components/schemas/SerdeDescription'
  2083. value:
  2084. type: array
  2085. items:
  2086. $ref: '#/components/schemas/SerdeDescription'
  2087. SerdeDescription:
  2088. type: object
  2089. properties:
  2090. name:
  2091. type: string
  2092. description:
  2093. type: string
  2094. preferred:
  2095. 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."
  2096. type: boolean
  2097. schema:
  2098. type: string
  2099. additionalProperties:
  2100. type: object
  2101. additionalProperties:
  2102. type: object
  2103. SerdeUsage:
  2104. type: string
  2105. enum:
  2106. - SERIALIZE
  2107. - DESERIALIZE
  2108. ErrorResponse:
  2109. description: Error object that will be returned with 4XX and 5XX HTTP statuses
  2110. type: object
  2111. properties:
  2112. code:
  2113. type: integer
  2114. description: Internal error code (can be used for message formatting & localization on UI)
  2115. message:
  2116. type: string
  2117. description: Error message
  2118. timestamp:
  2119. type: number
  2120. description: Response unix timestamp in ms
  2121. requestId:
  2122. type: string
  2123. description: Unique server-defined request id for convenient debugging
  2124. fieldsErrors:
  2125. type: array
  2126. items:
  2127. $ref: '#/components/schemas/FieldError'
  2128. stackTrace:
  2129. type: string
  2130. FieldError:
  2131. type: object
  2132. properties:
  2133. fieldName:
  2134. type: string
  2135. description: Name of field that violated format
  2136. restrictions:
  2137. description: Field format violations description (ex. ["size must be between 0 and 20", "must be a well-formed email address"])
  2138. type: array
  2139. items:
  2140. type: string
  2141. MetricsCollectionError:
  2142. type: object
  2143. properties:
  2144. message:
  2145. type: string
  2146. stackTrace:
  2147. type: string
  2148. ApplicationInfo:
  2149. type: object
  2150. properties:
  2151. enabledFeatures:
  2152. type: array
  2153. items:
  2154. type: string
  2155. enum:
  2156. - DYNAMIC_CONFIG
  2157. build:
  2158. type: object
  2159. properties:
  2160. commitId:
  2161. type: string
  2162. version:
  2163. type: string
  2164. buildTime:
  2165. type: string
  2166. isLatestRelease:
  2167. type: boolean
  2168. latestRelease:
  2169. type: object
  2170. properties:
  2171. versionTag:
  2172. type: string
  2173. publishedAt:
  2174. type: string
  2175. htmlUrl:
  2176. type: string
  2177. Cluster:
  2178. type: object
  2179. properties:
  2180. name:
  2181. type: string
  2182. defaultCluster:
  2183. type: boolean
  2184. status:
  2185. $ref: '#/components/schemas/ServerStatus'
  2186. lastError:
  2187. $ref: '#/components/schemas/MetricsCollectionError'
  2188. brokerCount:
  2189. type: integer
  2190. onlinePartitionCount:
  2191. type: integer
  2192. topicCount:
  2193. type: integer
  2194. bytesInPerSec:
  2195. type: number
  2196. bytesOutPerSec:
  2197. type: number
  2198. readOnly:
  2199. type: boolean
  2200. version:
  2201. type: string
  2202. features:
  2203. type: array
  2204. items:
  2205. type: string
  2206. enum:
  2207. - SCHEMA_REGISTRY
  2208. - KAFKA_CONNECT
  2209. - KSQL_DB
  2210. - TOPIC_DELETION
  2211. - KAFKA_ACL_VIEW # get ACLs listing
  2212. - KAFKA_ACL_EDIT # create & delete ACLs
  2213. required:
  2214. - id
  2215. - name
  2216. - status
  2217. ServerStatus:
  2218. type: string
  2219. enum:
  2220. - online
  2221. - offline
  2222. - initializing
  2223. ClusterMetrics:
  2224. type: object
  2225. properties:
  2226. items:
  2227. type: array
  2228. items:
  2229. $ref: '#/components/schemas/Metric'
  2230. ClusterStats:
  2231. type: object
  2232. properties:
  2233. brokerCount:
  2234. type: integer
  2235. zooKeeperStatus:
  2236. type: integer
  2237. deprecated: true
  2238. activeControllers:
  2239. type: integer
  2240. description: Id of broker which is cluster's controller. null, if controller not known yet.
  2241. onlinePartitionCount:
  2242. type: integer
  2243. offlinePartitionCount:
  2244. type: integer
  2245. inSyncReplicasCount:
  2246. type: integer
  2247. outOfSyncReplicasCount:
  2248. type: integer
  2249. underReplicatedPartitionCount:
  2250. type: integer
  2251. diskUsage:
  2252. type: array
  2253. items:
  2254. $ref: '#/components/schemas/BrokerDiskUsage'
  2255. version:
  2256. type: string
  2257. BrokerDiskUsage:
  2258. type: object
  2259. properties:
  2260. brokerId:
  2261. type: integer
  2262. segmentSize:
  2263. type: integer
  2264. format: int64
  2265. segmentCount:
  2266. type: integer
  2267. required:
  2268. - brokerId
  2269. BrokerMetrics:
  2270. type: object
  2271. properties:
  2272. segmentSize:
  2273. type: integer
  2274. format: int64
  2275. segmentCount:
  2276. type: integer
  2277. metrics:
  2278. type: array
  2279. items:
  2280. $ref: '#/components/schemas/Metric'
  2281. BrokerLogdirs:
  2282. type: object
  2283. properties:
  2284. name:
  2285. type: string
  2286. error:
  2287. type: string
  2288. topics:
  2289. type: array
  2290. items:
  2291. $ref: '#/components/schemas/TopicLogdirs'
  2292. BrokersLogdirs:
  2293. type: object
  2294. properties:
  2295. name:
  2296. type: string
  2297. error:
  2298. type: string
  2299. topics:
  2300. type: array
  2301. items:
  2302. $ref: '#/components/schemas/BrokerTopicLogdirs'
  2303. TopicsResponse:
  2304. type: object
  2305. properties:
  2306. pageCount:
  2307. type: integer
  2308. topics:
  2309. type: array
  2310. items:
  2311. $ref: '#/components/schemas/Topic'
  2312. TopicColumnsToSort:
  2313. type: string
  2314. enum:
  2315. - NAME
  2316. - OUT_OF_SYNC_REPLICAS
  2317. - TOTAL_PARTITIONS
  2318. - REPLICATION_FACTOR
  2319. - SIZE
  2320. ConnectorColumnsToSort:
  2321. type: string
  2322. enum:
  2323. - NAME
  2324. - CONNECT
  2325. - TYPE
  2326. - STATUS
  2327. SortOrder:
  2328. type: string
  2329. enum:
  2330. - ASC
  2331. - DESC
  2332. Topic:
  2333. type: object
  2334. properties:
  2335. name:
  2336. type: string
  2337. internal:
  2338. type: boolean
  2339. partitionCount:
  2340. type: integer
  2341. replicationFactor:
  2342. type: integer
  2343. replicas:
  2344. type: integer
  2345. inSyncReplicas:
  2346. type: integer
  2347. segmentSize:
  2348. type: integer
  2349. format: int64
  2350. segmentCount:
  2351. type: integer
  2352. bytesInPerSec:
  2353. type: number
  2354. bytesOutPerSec:
  2355. type: number
  2356. underReplicatedPartitions:
  2357. type: integer
  2358. cleanUpPolicy:
  2359. $ref: '#/components/schemas/CleanUpPolicy'
  2360. partitions:
  2361. type: array
  2362. items:
  2363. $ref: "#/components/schemas/Partition"
  2364. required:
  2365. - name
  2366. TopicAnalysis:
  2367. type: object
  2368. description: "Represents analysis state. Note: 'progress' and 'result' fields are set exclusively depending on analysis state."
  2369. properties:
  2370. progress:
  2371. $ref: '#/components/schemas/TopicAnalysisProgress'
  2372. result:
  2373. $ref: '#/components/schemas/TopicAnalysisResult'
  2374. TopicAnalysisProgress:
  2375. type: object
  2376. properties:
  2377. startedAt:
  2378. type: integer
  2379. format: int64
  2380. completenessPercent:
  2381. type: number
  2382. msgsScanned:
  2383. type: integer
  2384. format: int64
  2385. bytesScanned:
  2386. type: integer
  2387. format: int64
  2388. TopicAnalysisResult:
  2389. type: object
  2390. properties:
  2391. startedAt:
  2392. type: integer
  2393. format: int64
  2394. finishedAt:
  2395. type: integer
  2396. format: int64
  2397. error:
  2398. type: string
  2399. totalStats:
  2400. $ref: '#/components/schemas/TopicAnalysisStats'
  2401. partitionStats:
  2402. type: array
  2403. items:
  2404. $ref: "#/components/schemas/TopicAnalysisStats"
  2405. TopicAnalysisStats:
  2406. type: object
  2407. properties:
  2408. partition:
  2409. type: integer
  2410. format: int32
  2411. description: "null if this is total stats"
  2412. totalMsgs:
  2413. type: integer
  2414. format: int64
  2415. minOffset:
  2416. type: integer
  2417. format: int64
  2418. maxOffset:
  2419. type: integer
  2420. format: int64
  2421. minTimestamp:
  2422. type: integer
  2423. format: int64
  2424. maxTimestamp:
  2425. type: integer
  2426. format: int64
  2427. nullKeys:
  2428. type: integer
  2429. format: int64
  2430. nullValues:
  2431. type: integer
  2432. format: int64
  2433. approxUniqKeys:
  2434. type: integer
  2435. format: int64
  2436. approxUniqValues:
  2437. type: integer
  2438. format: int64
  2439. keySize:
  2440. $ref: "#/components/schemas/TopicAnalysisSizeStats"
  2441. valueSize:
  2442. $ref: "#/components/schemas/TopicAnalysisSizeStats"
  2443. hourlyMsgCounts:
  2444. type: array
  2445. items:
  2446. type: object
  2447. properties:
  2448. hourStart:
  2449. type: integer
  2450. format: int64
  2451. count:
  2452. type: integer
  2453. format: int64
  2454. TopicAnalysisSizeStats:
  2455. type: object
  2456. description: "All sizes in bytes"
  2457. properties:
  2458. sum:
  2459. type: integer
  2460. format: int64
  2461. min:
  2462. type: integer
  2463. format: int64
  2464. max:
  2465. type: integer
  2466. format: int64
  2467. avg:
  2468. type: integer
  2469. format: int64
  2470. prctl50:
  2471. type: integer
  2472. format: int64
  2473. prctl75:
  2474. type: integer
  2475. format: int64
  2476. prctl95:
  2477. type: integer
  2478. format: int64
  2479. prctl99:
  2480. type: integer
  2481. format: int64
  2482. prctl999:
  2483. type: integer
  2484. format: int64
  2485. Replica:
  2486. type: object
  2487. properties:
  2488. broker:
  2489. type: integer
  2490. leader:
  2491. type: boolean
  2492. inSync:
  2493. type: boolean
  2494. TopicDetails:
  2495. type: object
  2496. properties:
  2497. name:
  2498. type: string
  2499. internal:
  2500. type: boolean
  2501. partitions:
  2502. type: array
  2503. items:
  2504. $ref: "#/components/schemas/Partition"
  2505. partitionCount:
  2506. type: integer
  2507. replicationFactor:
  2508. type: integer
  2509. replicas:
  2510. type: integer
  2511. inSyncReplicas:
  2512. type: integer
  2513. bytesInPerSec:
  2514. type: number
  2515. bytesOutPerSec:
  2516. type: number
  2517. segmentSize:
  2518. type: integer
  2519. format: int64
  2520. segmentCount:
  2521. type: integer
  2522. underReplicatedPartitions:
  2523. type: integer
  2524. cleanUpPolicy:
  2525. $ref: '#/components/schemas/CleanUpPolicy'
  2526. keySerde:
  2527. type: string
  2528. valueSerde:
  2529. type: string
  2530. required:
  2531. - name
  2532. TopicConfig:
  2533. type: object
  2534. properties:
  2535. name:
  2536. type: string
  2537. value:
  2538. type: string
  2539. defaultValue:
  2540. type: string
  2541. source:
  2542. $ref: "#/components/schemas/ConfigSource"
  2543. isSensitive:
  2544. type: boolean
  2545. isReadOnly:
  2546. type: boolean
  2547. synonyms:
  2548. type: array
  2549. items:
  2550. $ref: "#/components/schemas/ConfigSynonym"
  2551. doc:
  2552. type: string
  2553. required:
  2554. - name
  2555. TopicCreation:
  2556. type: object
  2557. properties:
  2558. name:
  2559. type: string
  2560. partitions:
  2561. type: integer
  2562. replicationFactor:
  2563. type: integer
  2564. configs:
  2565. type: object
  2566. additionalProperties:
  2567. type: string
  2568. required:
  2569. - name
  2570. - partitions
  2571. TopicUpdate:
  2572. type: object
  2573. properties:
  2574. configs:
  2575. type: object
  2576. additionalProperties:
  2577. type: string
  2578. required:
  2579. - configs
  2580. Broker:
  2581. type: object
  2582. properties:
  2583. id:
  2584. type: integer
  2585. host:
  2586. type: string
  2587. port:
  2588. type: integer
  2589. bytesInPerSec:
  2590. type: number
  2591. bytesOutPerSec:
  2592. type: number
  2593. partitionsLeader:
  2594. type: integer
  2595. partitions:
  2596. type: integer
  2597. inSyncPartitions:
  2598. type: integer
  2599. partitionsSkew:
  2600. type: number
  2601. leadersSkew:
  2602. type: number
  2603. required:
  2604. - id
  2605. BrokerLogdirUpdate:
  2606. type: object
  2607. properties:
  2608. topic:
  2609. type: string
  2610. partition:
  2611. type: integer
  2612. logDir:
  2613. type: string
  2614. ConsumerGroupState:
  2615. type: string
  2616. enum:
  2617. - UNKNOWN
  2618. - PREPARING_REBALANCE
  2619. - COMPLETING_REBALANCE
  2620. - STABLE
  2621. - DEAD
  2622. - EMPTY
  2623. MessageFormat:
  2624. type: string
  2625. enum:
  2626. - AVRO
  2627. - JSON
  2628. - PROTOBUF
  2629. - UNKNOWN
  2630. ConsumerGroup:
  2631. discriminator:
  2632. propertyName: inherit
  2633. mapping:
  2634. details: "#/components/schemas/ConsumerGroupDetails"
  2635. type: object
  2636. properties:
  2637. groupId:
  2638. type: string
  2639. members:
  2640. type: integer
  2641. topics:
  2642. type: integer
  2643. simple:
  2644. type: boolean
  2645. partitionAssignor:
  2646. type: string
  2647. state:
  2648. $ref: "#/components/schemas/ConsumerGroupState"
  2649. coordinator:
  2650. $ref: "#/components/schemas/Broker"
  2651. consumerLag:
  2652. type: integer
  2653. format: int64
  2654. description: null if consumer group has no offsets committed
  2655. required:
  2656. - groupId
  2657. ConsumerGroupOrdering:
  2658. type: string
  2659. enum:
  2660. - NAME
  2661. - MEMBERS
  2662. - STATE
  2663. - MESSAGES_BEHIND
  2664. - TOPIC_NUM
  2665. ConsumerGroupsPageResponse:
  2666. type: object
  2667. properties:
  2668. pageCount:
  2669. type: integer
  2670. consumerGroups:
  2671. type: array
  2672. items:
  2673. $ref: '#/components/schemas/ConsumerGroup'
  2674. SmartFilterTestExecution:
  2675. type: object
  2676. required: [filterCode]
  2677. properties:
  2678. filterCode:
  2679. type: string
  2680. key:
  2681. type: string
  2682. value:
  2683. type: string
  2684. headers:
  2685. type: object
  2686. additionalProperties:
  2687. type: string
  2688. partition:
  2689. type: integer
  2690. offset:
  2691. type: integer
  2692. format: int64
  2693. timestampMs:
  2694. type: integer
  2695. format: int64
  2696. SmartFilterTestExecutionResult:
  2697. type: object
  2698. properties:
  2699. result:
  2700. type: boolean
  2701. error:
  2702. type: string
  2703. CreateTopicMessage:
  2704. type: object
  2705. properties:
  2706. partition:
  2707. type: integer
  2708. key:
  2709. type: string
  2710. nullable: true
  2711. headers:
  2712. type: object
  2713. additionalProperties:
  2714. type: string
  2715. content:
  2716. type: string
  2717. nullable: true
  2718. keySerde:
  2719. type: string
  2720. nullable: true
  2721. valueSerde:
  2722. type: string
  2723. nullable: true
  2724. required:
  2725. - partition
  2726. TopicMessageEvent:
  2727. type: object
  2728. properties:
  2729. type:
  2730. type: string
  2731. enum:
  2732. - PHASE
  2733. - MESSAGE
  2734. - CONSUMING
  2735. - DONE
  2736. message:
  2737. $ref: "#/components/schemas/TopicMessage"
  2738. phase:
  2739. $ref: "#/components/schemas/TopicMessagePhase"
  2740. consuming:
  2741. $ref: "#/components/schemas/TopicMessageConsuming"
  2742. cursor:
  2743. $ref: "#/components/schemas/TopicMessageNextPageCursor"
  2744. TopicMessagePhase:
  2745. type: object
  2746. properties:
  2747. name:
  2748. type: string
  2749. TimeStampFormat:
  2750. type: object
  2751. properties:
  2752. timeStampFormat:
  2753. type: string
  2754. TopicMessageConsuming:
  2755. type: object
  2756. properties:
  2757. bytesConsumed:
  2758. type: integer
  2759. format: int64
  2760. elapsedMs:
  2761. type: integer
  2762. format: int64
  2763. isCancelled:
  2764. type: boolean
  2765. messagesConsumed:
  2766. type: integer
  2767. filterApplyErrors:
  2768. type: integer
  2769. TopicMessageNextPageCursor:
  2770. type: object
  2771. properties:
  2772. id:
  2773. type: string
  2774. TopicMessage:
  2775. type: object
  2776. properties:
  2777. partition:
  2778. type: integer
  2779. offset:
  2780. type: integer
  2781. format: int64
  2782. timestamp:
  2783. type: string
  2784. format: date-time
  2785. timestampType:
  2786. type: string
  2787. enum:
  2788. - NO_TIMESTAMP_TYPE
  2789. - CREATE_TIME
  2790. - LOG_APPEND_TIME
  2791. key:
  2792. type: string
  2793. headers:
  2794. type: object
  2795. additionalProperties:
  2796. type: string
  2797. content:
  2798. type: string
  2799. keyFormat:
  2800. #deprecated - wont be filled - use 'keySerde' field instead
  2801. $ref: "#/components/schemas/MessageFormat"
  2802. valueFormat:
  2803. #deprecated - wont be filled - use 'valueSerde' field instead
  2804. $ref: "#/components/schemas/MessageFormat"
  2805. keySize:
  2806. type: integer
  2807. format: int64
  2808. valueSize:
  2809. type: integer
  2810. format: int64
  2811. keySchemaId:
  2812. deprecated: true
  2813. description: deprecated - wont be filled - use 'keyDeserializeProperties' field instead
  2814. type: string
  2815. valueSchemaId:
  2816. deprecated: true
  2817. description: deprecated - wont be filled - use 'valueDeserializeProperties' field instead
  2818. type: string
  2819. headersSize:
  2820. type: integer
  2821. format: int64
  2822. keySerde:
  2823. type: string
  2824. valueSerde:
  2825. type: string
  2826. keyDeserializeProperties:
  2827. additionalProperties:
  2828. type: object
  2829. valueDeserializeProperties:
  2830. additionalProperties:
  2831. type: object
  2832. required:
  2833. - partition
  2834. - offset
  2835. - timestamp
  2836. SeekType:
  2837. type: string
  2838. enum:
  2839. - BEGINNING
  2840. - OFFSET
  2841. - TIMESTAMP
  2842. - LATEST
  2843. MessageFilterRegistration:
  2844. type: object
  2845. properties:
  2846. filterCode:
  2847. type: string
  2848. MessageFilterId:
  2849. type: object
  2850. properties:
  2851. id:
  2852. type: string
  2853. PollingMode:
  2854. type: string
  2855. enum:
  2856. - FROM_OFFSET
  2857. - TO_OFFSET
  2858. - FROM_TIMESTAMP
  2859. - TO_TIMESTAMP
  2860. - LATEST
  2861. - EARLIEST
  2862. - TAILING
  2863. MessageFilterType:
  2864. type: string
  2865. enum:
  2866. - STRING_CONTAINS
  2867. - GROOVY_SCRIPT
  2868. SeekDirection:
  2869. type: string
  2870. enum:
  2871. - FORWARD
  2872. - BACKWARD
  2873. - TAILING
  2874. default: FORWARD
  2875. Partition:
  2876. type: object
  2877. properties:
  2878. partition:
  2879. type: integer
  2880. leader:
  2881. type: integer
  2882. replicas:
  2883. type: array
  2884. items:
  2885. $ref: '#/components/schemas/Replica'
  2886. offsetMax:
  2887. type: integer
  2888. format: int64
  2889. offsetMin:
  2890. type: integer
  2891. format: int64
  2892. required:
  2893. - topic
  2894. - partition
  2895. - offsetMax
  2896. - offsetMin
  2897. ConsumerGroupTopicPartition:
  2898. type: object
  2899. properties:
  2900. topic:
  2901. type: string
  2902. partition:
  2903. type: integer
  2904. currentOffset:
  2905. type: integer
  2906. format: int64
  2907. endOffset:
  2908. type: integer
  2909. format: int64
  2910. consumerLag:
  2911. type: integer
  2912. format: int64
  2913. description: null if consumer group has no offsets committed
  2914. consumerId:
  2915. type: string
  2916. host:
  2917. type: string
  2918. required:
  2919. - topic
  2920. - partition
  2921. ConsumerGroupDetails:
  2922. allOf:
  2923. - $ref: '#/components/schemas/ConsumerGroup'
  2924. - type: object
  2925. properties:
  2926. partitions:
  2927. type: array
  2928. items:
  2929. $ref: '#/components/schemas/ConsumerGroupTopicPartition'
  2930. Metric:
  2931. type: object
  2932. properties:
  2933. name:
  2934. type: string
  2935. labels:
  2936. type: string
  2937. additionalProperties:
  2938. type: string
  2939. value:
  2940. type: number
  2941. TopicLogdirs:
  2942. type: object
  2943. properties:
  2944. name:
  2945. type: string
  2946. partitions:
  2947. type: array
  2948. items:
  2949. $ref: '#/components/schemas/TopicPartitionLogdir'
  2950. BrokerTopicLogdirs:
  2951. type: object
  2952. properties:
  2953. name:
  2954. type: string
  2955. partitions:
  2956. type: array
  2957. items:
  2958. $ref: '#/components/schemas/BrokerTopicPartitionLogdir'
  2959. TopicPartitionLogdir:
  2960. type: object
  2961. properties:
  2962. partition:
  2963. type: integer
  2964. size:
  2965. type: integer
  2966. format: int64
  2967. offsetLag:
  2968. type: integer
  2969. format: int64
  2970. BrokerTopicPartitionLogdir:
  2971. allOf:
  2972. - $ref: '#/components/schemas/TopicPartitionLogdir'
  2973. - type: object
  2974. properties:
  2975. broker:
  2976. type: integer
  2977. SchemaSubject:
  2978. type: object
  2979. properties:
  2980. subject:
  2981. type: string
  2982. version:
  2983. type: string
  2984. id:
  2985. type: integer
  2986. schema:
  2987. type: string
  2988. compatibilityLevel:
  2989. type: string
  2990. schemaType:
  2991. $ref: '#/components/schemas/SchemaType'
  2992. references:
  2993. type: array
  2994. items:
  2995. $ref: '#/components/schemas/SchemaReference'
  2996. required:
  2997. - id
  2998. - subject
  2999. - version
  3000. - schema
  3001. - compatibilityLevel
  3002. - schemaType
  3003. NewSchemaSubject:
  3004. type: object
  3005. description: should be set for creating/updating schema subject
  3006. properties:
  3007. subject:
  3008. type: string
  3009. schema:
  3010. type: string
  3011. schemaType:
  3012. $ref: '#/components/schemas/SchemaType' # upon updating a schema, the type of existing schema can't be changed
  3013. references:
  3014. type: array
  3015. items:
  3016. $ref: '#/components/schemas/SchemaReference'
  3017. required:
  3018. - subject
  3019. - schema
  3020. - schemaType
  3021. SchemaReference:
  3022. type: object
  3023. properties:
  3024. name:
  3025. type: string
  3026. subject:
  3027. type: string
  3028. version:
  3029. type: integer
  3030. required:
  3031. - name
  3032. - subject
  3033. - version
  3034. CompatibilityLevel:
  3035. type: object
  3036. properties:
  3037. compatibility:
  3038. type: string
  3039. enum:
  3040. - BACKWARD
  3041. - BACKWARD_TRANSITIVE
  3042. - FORWARD
  3043. - FORWARD_TRANSITIVE
  3044. - FULL
  3045. - FULL_TRANSITIVE
  3046. - NONE
  3047. required:
  3048. - compatibility
  3049. SchemaType:
  3050. type: string
  3051. description: upon updating a schema, the type of an existing schema can't be changed
  3052. enum:
  3053. - AVRO
  3054. - JSON
  3055. - PROTOBUF
  3056. CompatibilityCheckResponse:
  3057. type: object
  3058. properties:
  3059. isCompatible:
  3060. type: boolean
  3061. required:
  3062. - isCompatible
  3063. SchemaSubjectsResponse:
  3064. type: object
  3065. properties:
  3066. pageCount:
  3067. type: integer
  3068. schemas:
  3069. type: array
  3070. items:
  3071. $ref: '#/components/schemas/SchemaSubject'
  3072. Connect:
  3073. type: object
  3074. properties:
  3075. name:
  3076. type: string
  3077. address:
  3078. type: string
  3079. required:
  3080. - name
  3081. ConnectorConfig:
  3082. type: object
  3083. additionalProperties:
  3084. type: object
  3085. TaskId:
  3086. type: object
  3087. properties:
  3088. connector:
  3089. type: string
  3090. task:
  3091. type: integer
  3092. Task:
  3093. type: object
  3094. properties:
  3095. id:
  3096. $ref: '#/components/schemas/TaskId'
  3097. status:
  3098. $ref: '#/components/schemas/TaskStatus'
  3099. config:
  3100. $ref: '#/components/schemas/ConnectorConfig'
  3101. required:
  3102. - status
  3103. NewConnector:
  3104. type: object
  3105. properties:
  3106. name:
  3107. type: string
  3108. config:
  3109. $ref: '#/components/schemas/ConnectorConfig'
  3110. required:
  3111. - name
  3112. - config
  3113. Connector:
  3114. allOf:
  3115. - $ref: '#/components/schemas/NewConnector'
  3116. - type: object
  3117. properties:
  3118. tasks:
  3119. type: array
  3120. items:
  3121. $ref: '#/components/schemas/TaskId'
  3122. type:
  3123. $ref: '#/components/schemas/ConnectorType'
  3124. status:
  3125. $ref: '#/components/schemas/ConnectorStatus'
  3126. connect:
  3127. type: string
  3128. required:
  3129. - type
  3130. - status
  3131. - connect
  3132. ConnectorType:
  3133. type: string
  3134. enum:
  3135. - SOURCE
  3136. - SINK
  3137. ConsumerGroupOffsetsReset:
  3138. type: object
  3139. properties:
  3140. topic:
  3141. type: string
  3142. resetType:
  3143. $ref: '#/components/schemas/ConsumerGroupOffsetsResetType'
  3144. partitions:
  3145. type: array
  3146. items:
  3147. type: integer
  3148. description: list of target partitions, all partitions will be used if it is not set or empty
  3149. resetToTimestamp:
  3150. type: integer
  3151. format: int64
  3152. description: should be set if resetType is TIMESTAMP
  3153. partitionsOffsets:
  3154. type: array
  3155. items:
  3156. $ref: '#/components/schemas/PartitionOffset'
  3157. description: List of partition offsets to reset to, should be set when resetType is OFFSET
  3158. required:
  3159. - topic
  3160. - resetType
  3161. PartitionOffset:
  3162. type: object
  3163. properties:
  3164. partition:
  3165. type: integer
  3166. offset:
  3167. type: integer
  3168. format: int64
  3169. required:
  3170. - partition
  3171. ConsumerGroupOffsetsResetType:
  3172. type: string
  3173. enum:
  3174. - EARLIEST
  3175. - LATEST
  3176. - TIMESTAMP
  3177. - OFFSET
  3178. TaskStatus:
  3179. type: object
  3180. properties:
  3181. id:
  3182. type: integer
  3183. state:
  3184. $ref: '#/components/schemas/ConnectorTaskStatus'
  3185. worker_id:
  3186. type: string
  3187. trace:
  3188. type: string
  3189. required:
  3190. - id
  3191. - state
  3192. - worker_id
  3193. ConnectorStatus:
  3194. type: object
  3195. properties:
  3196. state:
  3197. $ref: '#/components/schemas/ConnectorState'
  3198. worker_id:
  3199. type: string
  3200. required:
  3201. - state
  3202. ConnectorTaskStatus:
  3203. type: string
  3204. enum:
  3205. - RUNNING
  3206. - FAILED
  3207. - PAUSED
  3208. - RESTARTING
  3209. - UNASSIGNED
  3210. ConnectorState:
  3211. type: string
  3212. enum:
  3213. - RUNNING
  3214. - FAILED
  3215. - PAUSED
  3216. - UNASSIGNED
  3217. - TASK_FAILED
  3218. ConnectorAction:
  3219. type: string
  3220. enum:
  3221. - RESTART
  3222. - RESTART_ALL_TASKS
  3223. - RESTART_FAILED_TASKS
  3224. - PAUSE
  3225. - RESUME
  3226. TaskAction:
  3227. type: string
  3228. enum:
  3229. - restart
  3230. ConnectorPlugin:
  3231. type: object
  3232. properties:
  3233. class:
  3234. type: string
  3235. ConnectorPluginConfigDefinition:
  3236. type: object
  3237. properties:
  3238. name:
  3239. type: string
  3240. type:
  3241. type: string
  3242. enum:
  3243. - BOOLEAN
  3244. - CLASS
  3245. - DOUBLE
  3246. - INT
  3247. - LIST
  3248. - LONG
  3249. - PASSWORD
  3250. - SHORT
  3251. - STRING
  3252. required:
  3253. type: boolean
  3254. default_value:
  3255. type: string
  3256. importance:
  3257. type: string
  3258. enum:
  3259. - LOW
  3260. - MEDIUM
  3261. - HIGH
  3262. documentation:
  3263. type: string
  3264. group:
  3265. type: string
  3266. width:
  3267. type: string
  3268. enum:
  3269. - SHORT
  3270. - MEDIUM
  3271. - LONG
  3272. - NONE
  3273. display_name:
  3274. type: string
  3275. dependents:
  3276. type: array
  3277. items:
  3278. type: string
  3279. order:
  3280. type: integer
  3281. ConnectorPluginConfigValue:
  3282. type: object
  3283. properties:
  3284. name:
  3285. type: string
  3286. value:
  3287. type: string
  3288. recommended_values:
  3289. type: array
  3290. items:
  3291. type: string
  3292. errors:
  3293. type: array
  3294. items:
  3295. type: string
  3296. visible:
  3297. type: boolean
  3298. ConnectorPluginConfig:
  3299. type: object
  3300. properties:
  3301. definition:
  3302. $ref: '#/components/schemas/ConnectorPluginConfigDefinition'
  3303. value:
  3304. $ref: '#/components/schemas/ConnectorPluginConfigValue'
  3305. ConnectorPluginConfigValidationResponse:
  3306. type: object
  3307. properties:
  3308. name:
  3309. type: string
  3310. error_count:
  3311. type: integer
  3312. groups:
  3313. type: array
  3314. items:
  3315. type: string
  3316. configs:
  3317. type: array
  3318. items:
  3319. $ref: '#/components/schemas/ConnectorPluginConfig'
  3320. KsqlCommandV2:
  3321. type: object
  3322. properties:
  3323. ksql:
  3324. type: string
  3325. streamsProperties:
  3326. type: object
  3327. additionalProperties:
  3328. type: string
  3329. required:
  3330. - ksql
  3331. KsqlCommandV2Response:
  3332. type: object
  3333. properties:
  3334. pipeId:
  3335. type: string
  3336. required:
  3337. - pipeId
  3338. KsqlTableDescription:
  3339. type: object
  3340. properties:
  3341. name:
  3342. type: string
  3343. topic:
  3344. type: string
  3345. keyFormat:
  3346. type: string
  3347. valueFormat:
  3348. type: string
  3349. isWindowed:
  3350. type: boolean
  3351. KsqlStreamDescription:
  3352. type: object
  3353. properties:
  3354. name:
  3355. type: string
  3356. topic:
  3357. type: string
  3358. keyFormat:
  3359. type: string
  3360. valueFormat:
  3361. type: string
  3362. KsqlResponse:
  3363. type: object
  3364. properties:
  3365. table:
  3366. $ref: '#/components/schemas/KsqlTableResponse'
  3367. KsqlTableResponse:
  3368. type: object
  3369. properties:
  3370. header:
  3371. type: string
  3372. columnNames:
  3373. type: array
  3374. items:
  3375. type: string
  3376. values:
  3377. type: array
  3378. items:
  3379. type: array
  3380. items:
  3381. type: object
  3382. FullConnectorInfo:
  3383. type: object
  3384. properties:
  3385. connect:
  3386. type: string
  3387. name:
  3388. type: string
  3389. connector_class:
  3390. type: string
  3391. type:
  3392. $ref: '#/components/schemas/ConnectorType'
  3393. topics:
  3394. type: array
  3395. items:
  3396. type: string
  3397. status:
  3398. $ref: '#/components/schemas/ConnectorStatus'
  3399. tasks_count:
  3400. type: integer
  3401. failed_tasks_count:
  3402. type: integer
  3403. required:
  3404. - name
  3405. - connect
  3406. - status
  3407. PartitionsIncrease:
  3408. type: object
  3409. properties:
  3410. totalPartitionsCount:
  3411. type: integer
  3412. minimum: 1
  3413. required:
  3414. - totalPartitionsCount
  3415. PartitionsIncreaseResponse:
  3416. type: object
  3417. properties:
  3418. totalPartitionsCount:
  3419. type: integer
  3420. topicName:
  3421. type: string
  3422. required:
  3423. - totalPartitionsCount
  3424. - topicName
  3425. ReplicationFactorChange:
  3426. type: object
  3427. properties:
  3428. totalReplicationFactor:
  3429. type: integer
  3430. required:
  3431. - totalReplicationFactor
  3432. ReplicationFactorChangeResponse:
  3433. type: object
  3434. properties:
  3435. totalReplicationFactor:
  3436. type: integer
  3437. topicName:
  3438. type: string
  3439. required:
  3440. - totalReplicationFactor
  3441. - topicName
  3442. BrokerConfigItem:
  3443. type: object
  3444. properties:
  3445. value:
  3446. type: string
  3447. BrokerConfig:
  3448. type: object
  3449. properties:
  3450. name:
  3451. type: string
  3452. value:
  3453. type: string
  3454. source:
  3455. $ref: '#/components/schemas/ConfigSource'
  3456. isSensitive:
  3457. type: boolean
  3458. isReadOnly:
  3459. type: boolean
  3460. synonyms:
  3461. type: array
  3462. items:
  3463. $ref: '#/components/schemas/ConfigSynonym'
  3464. required:
  3465. - name
  3466. - value
  3467. - source
  3468. - isSensitive
  3469. - isReadOnly
  3470. ConfigSource:
  3471. type: string
  3472. enum:
  3473. - DYNAMIC_TOPIC_CONFIG
  3474. - DYNAMIC_BROKER_LOGGER_CONFIG
  3475. - DYNAMIC_BROKER_CONFIG
  3476. - DYNAMIC_DEFAULT_BROKER_CONFIG
  3477. - STATIC_BROKER_CONFIG
  3478. - DEFAULT_CONFIG
  3479. - UNKNOWN
  3480. ConfigSynonym:
  3481. type: object
  3482. properties:
  3483. name:
  3484. type: string
  3485. value:
  3486. type: string
  3487. source:
  3488. $ref: '#/components/schemas/ConfigSource'
  3489. CleanUpPolicy:
  3490. type: string
  3491. enum:
  3492. - DELETE
  3493. - COMPACT
  3494. - COMPACT_DELETE
  3495. - UNKNOWN
  3496. AuthenticationInfo:
  3497. type: object
  3498. properties:
  3499. rbacEnabled:
  3500. type: boolean
  3501. description: true if role based access control is enabled and granular permission access is required
  3502. userInfo:
  3503. $ref: '#/components/schemas/UserInfo'
  3504. required:
  3505. - rbacEnabled
  3506. UserInfo:
  3507. type: object
  3508. properties:
  3509. username:
  3510. type: string
  3511. permissions:
  3512. type: array
  3513. items:
  3514. $ref: '#/components/schemas/UserPermission'
  3515. required:
  3516. - username
  3517. - permissions
  3518. UserPermission:
  3519. type: object
  3520. properties:
  3521. clusters:
  3522. type: array
  3523. items:
  3524. type: string
  3525. resource:
  3526. $ref: '#/components/schemas/ResourceType'
  3527. value:
  3528. type: string
  3529. actions:
  3530. type: array
  3531. items:
  3532. $ref: '#/components/schemas/Action'
  3533. required:
  3534. - clusters
  3535. - resource
  3536. - actions
  3537. Action:
  3538. type: string
  3539. enum:
  3540. - VIEW
  3541. - EDIT
  3542. - CREATE
  3543. - DELETE
  3544. - RESET_OFFSETS
  3545. - EXECUTE
  3546. - MODIFY_GLOBAL_COMPATIBILITY
  3547. - ANALYSIS_VIEW
  3548. - ANALYSIS_RUN
  3549. - MESSAGES_READ
  3550. - MESSAGES_PRODUCE
  3551. - MESSAGES_DELETE
  3552. - RESTART
  3553. ResourceType:
  3554. type: string
  3555. enum:
  3556. - APPLICATIONCONFIG
  3557. - CLUSTERCONFIG
  3558. - TOPIC
  3559. - CONSUMER
  3560. - SCHEMA
  3561. - CONNECT
  3562. - KSQL
  3563. - ACL
  3564. - AUDIT
  3565. KafkaAcl:
  3566. type: object
  3567. required: [resourceType, resourceName, namePatternType, principal, host, operation, permission]
  3568. properties:
  3569. resourceType:
  3570. $ref: '#/components/schemas/KafkaAclResourceType'
  3571. resourceName:
  3572. type: string # "*" if acl can be applied to any resource of given type
  3573. namePatternType:
  3574. $ref: '#/components/schemas/KafkaAclNamePatternType'
  3575. principal:
  3576. type: string
  3577. host:
  3578. type: string
  3579. operation:
  3580. type: string
  3581. enum:
  3582. - UNKNOWN # Unknown operation, need to update mapping code on BE
  3583. - ALL # Cluster, Topic, Group
  3584. - READ # Topic, Group
  3585. - WRITE # Topic, TransactionalId
  3586. - CREATE # Cluster, Topic
  3587. - DELETE # Topic, Group
  3588. - ALTER # Cluster, Topic,
  3589. - DESCRIBE # Cluster, Topic, Group, TransactionalId, DelegationToken
  3590. - CLUSTER_ACTION # Cluster
  3591. - DESCRIBE_CONFIGS # Cluster, Topic
  3592. - ALTER_CONFIGS # Cluster, Topic
  3593. - IDEMPOTENT_WRITE # Cluster
  3594. - CREATE_TOKENS
  3595. - DESCRIBE_TOKENS
  3596. permission:
  3597. type: string
  3598. enum:
  3599. - ALLOW
  3600. - DENY
  3601. CreateConsumerAcl:
  3602. type: object
  3603. required: [principal, host]
  3604. properties:
  3605. principal:
  3606. type: string
  3607. host:
  3608. type: string
  3609. topics:
  3610. type: array
  3611. items:
  3612. type: string
  3613. topicsPrefix:
  3614. type: string
  3615. consumerGroups:
  3616. type: array
  3617. items:
  3618. type: string
  3619. consumerGroupsPrefix:
  3620. type: string
  3621. CreateProducerAcl:
  3622. type: object
  3623. required: [principal, host]
  3624. properties:
  3625. principal:
  3626. type: string
  3627. host:
  3628. type: string
  3629. topics:
  3630. type: array
  3631. items:
  3632. type: string
  3633. topicsPrefix:
  3634. type: string
  3635. transactionalId:
  3636. type: string
  3637. transactionsIdPrefix:
  3638. type: string
  3639. idempotent:
  3640. type: boolean
  3641. default: false
  3642. CreateStreamAppAcl:
  3643. type: object
  3644. required: [principal, host, applicationId, inputTopics, outputTopics]
  3645. properties:
  3646. principal:
  3647. type: string
  3648. host:
  3649. type: string
  3650. inputTopics:
  3651. type: array
  3652. items:
  3653. type: string
  3654. outputTopics:
  3655. type: array
  3656. items:
  3657. type: string
  3658. applicationId:
  3659. nullable: false
  3660. type: string
  3661. KafkaAclResourceType:
  3662. type: string
  3663. enum:
  3664. - UNKNOWN # Unknown operation, need to update mapping code on BE
  3665. - TOPIC
  3666. - GROUP
  3667. - CLUSTER
  3668. - TRANSACTIONAL_ID
  3669. - DELEGATION_TOKEN
  3670. - USER
  3671. KafkaAclNamePatternType:
  3672. type: string
  3673. enum:
  3674. - MATCH
  3675. - LITERAL
  3676. - PREFIXED
  3677. RestartRequest:
  3678. type: object
  3679. properties:
  3680. config:
  3681. $ref: '#/components/schemas/ApplicationConfig'
  3682. UploadedFileInfo:
  3683. type: object
  3684. required: [location]
  3685. properties:
  3686. location:
  3687. type: string
  3688. ApplicationConfigValidation:
  3689. type: object
  3690. properties:
  3691. clusters:
  3692. type: object
  3693. additionalProperties:
  3694. $ref: '#/components/schemas/ClusterConfigValidation'
  3695. ApplicationPropertyValidation:
  3696. type: object
  3697. required: [error]
  3698. properties:
  3699. error:
  3700. type: boolean
  3701. errorMessage:
  3702. type: string
  3703. description: Contains error message if error = true
  3704. ClusterConfigValidation:
  3705. type: object
  3706. required: [kafka]
  3707. properties:
  3708. kafka:
  3709. $ref: '#/components/schemas/ApplicationPropertyValidation'
  3710. schemaRegistry:
  3711. $ref: '#/components/schemas/ApplicationPropertyValidation'
  3712. kafkaConnects:
  3713. type: object
  3714. additionalProperties:
  3715. $ref: '#/components/schemas/ApplicationPropertyValidation'
  3716. ksqldb:
  3717. $ref: '#/components/schemas/ApplicationPropertyValidation'
  3718. ApplicationConfig:
  3719. type: object
  3720. properties:
  3721. properties:
  3722. type: object
  3723. properties:
  3724. auth:
  3725. type: object
  3726. properties:
  3727. type:
  3728. type: string
  3729. oauth2:
  3730. type: object
  3731. properties:
  3732. client:
  3733. type: object
  3734. additionalProperties:
  3735. type: object
  3736. properties:
  3737. provider:
  3738. type: string
  3739. clientId:
  3740. type: string
  3741. clientSecret:
  3742. type: string
  3743. clientName:
  3744. type: string
  3745. redirectUri:
  3746. type: string
  3747. authorizationGrantType:
  3748. type: string
  3749. issuerUri:
  3750. type: string
  3751. authorizationUri:
  3752. type: string
  3753. tokenUri:
  3754. type: string
  3755. userInfoUri:
  3756. type: string
  3757. jwkSetUri:
  3758. type: string
  3759. userNameAttribute:
  3760. type: string
  3761. scope:
  3762. type: array
  3763. items:
  3764. type: string
  3765. customParams:
  3766. type: object
  3767. additionalProperties:
  3768. type: string
  3769. rbac:
  3770. type: object
  3771. properties:
  3772. roles:
  3773. type: array
  3774. items:
  3775. type: object
  3776. properties:
  3777. name:
  3778. type: string
  3779. clusters:
  3780. type: array
  3781. items:
  3782. type: string
  3783. subjects:
  3784. type: array
  3785. items:
  3786. type: object
  3787. properties:
  3788. provider:
  3789. type: string
  3790. type:
  3791. type: string
  3792. value:
  3793. type: string
  3794. permissions:
  3795. type: array
  3796. items:
  3797. type: object
  3798. properties:
  3799. resource:
  3800. $ref: '#/components/schemas/ResourceType'
  3801. value:
  3802. type: string
  3803. actions:
  3804. type: array
  3805. items:
  3806. $ref: '#/components/schemas/Action'
  3807. webclient:
  3808. type: object
  3809. properties:
  3810. maxInMemoryBufferSize:
  3811. type: string
  3812. description: "examples: 20, 12KB, 5MB"
  3813. kafka:
  3814. type: object
  3815. properties:
  3816. polling:
  3817. type: object
  3818. properties:
  3819. pollTimeoutMs:
  3820. type: integer
  3821. maxPageSize:
  3822. type: integer
  3823. defaultPageSize:
  3824. type: integer
  3825. adminClientTimeout:
  3826. type: integer
  3827. internalTopicPrefix:
  3828. type: string
  3829. clusters:
  3830. type: array
  3831. items:
  3832. type: object
  3833. properties:
  3834. name:
  3835. type: string
  3836. bootstrapServers:
  3837. type: string
  3838. ssl:
  3839. type: object
  3840. properties:
  3841. truststoreLocation:
  3842. type: string
  3843. truststorePassword:
  3844. type: string
  3845. schemaRegistry:
  3846. type: string
  3847. schemaRegistryAuth:
  3848. type: object
  3849. properties:
  3850. username:
  3851. type: string
  3852. password:
  3853. type: string
  3854. schemaRegistrySsl:
  3855. type: object
  3856. properties:
  3857. keystoreLocation:
  3858. type: string
  3859. keystorePassword:
  3860. type: string
  3861. ksqldbServer:
  3862. type: string
  3863. ksqldbServerSsl:
  3864. type: object
  3865. properties:
  3866. keystoreLocation:
  3867. type: string
  3868. keystorePassword:
  3869. type: string
  3870. ksqldbServerAuth:
  3871. type: object
  3872. properties:
  3873. username:
  3874. type: string
  3875. password:
  3876. type: string
  3877. kafkaConnect:
  3878. type: array
  3879. items:
  3880. type: object
  3881. properties:
  3882. name:
  3883. type: string
  3884. address:
  3885. type: string
  3886. username:
  3887. type: string
  3888. password:
  3889. type: string
  3890. keystoreLocation:
  3891. type: string
  3892. keystorePassword:
  3893. type: string
  3894. metrics:
  3895. type: object
  3896. properties:
  3897. type:
  3898. type: string
  3899. port:
  3900. type: integer
  3901. format: int32
  3902. ssl:
  3903. type: boolean
  3904. username:
  3905. type: string
  3906. password:
  3907. type: string
  3908. keystoreLocation:
  3909. type: string
  3910. keystorePassword:
  3911. type: string
  3912. properties:
  3913. type: object
  3914. additionalProperties: true
  3915. readOnly:
  3916. type: boolean
  3917. disableLogDirsCollection:
  3918. type: boolean
  3919. serde:
  3920. type: array
  3921. items:
  3922. type: object
  3923. properties:
  3924. name:
  3925. type: string
  3926. className:
  3927. type: string
  3928. filePath:
  3929. type: string
  3930. properties:
  3931. type: object
  3932. additionalProperties: true
  3933. topicKeysPattern:
  3934. type: string
  3935. topicValuesPattern:
  3936. type: string
  3937. defaultKeySerde:
  3938. type: string
  3939. defaultValueSerde:
  3940. type: string
  3941. masking:
  3942. type: array
  3943. items:
  3944. type: object
  3945. properties:
  3946. type:
  3947. type: string
  3948. enum:
  3949. - REMOVE
  3950. - MASK
  3951. - REPLACE
  3952. fields:
  3953. type: array
  3954. items:
  3955. type: string
  3956. fieldsNamePattern:
  3957. type: string
  3958. maskingCharsReplacement:
  3959. type: array
  3960. items:
  3961. type: string
  3962. replacement:
  3963. type: string
  3964. topicKeysPattern:
  3965. type: string
  3966. topicValuesPattern:
  3967. type: string
  3968. pollingThrottleRate:
  3969. type: integer
  3970. format: int64
  3971. audit:
  3972. type: object
  3973. properties:
  3974. level:
  3975. type: string
  3976. enum: [ "ALL", "ALTER_ONLY" ]
  3977. topic:
  3978. type: string
  3979. auditTopicsPartitions:
  3980. type: integer
  3981. topicAuditEnabled:
  3982. type: boolean
  3983. consoleAuditEnabled:
  3984. type: boolean
  3985. auditTopicProperties:
  3986. type: object
  3987. additionalProperties:
  3988. type: string