kafka-ui-api.yaml 77 KB

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