kafka-ui-api.yaml 101 KB

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