kafka-ui-api.yaml 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446
  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}/metrics:
  103. get:
  104. tags:
  105. - Clusters
  106. summary: getClusterMetrics
  107. operationId: getClusterMetrics
  108. parameters:
  109. - name: clusterName
  110. in: path
  111. required: true
  112. schema:
  113. type: string
  114. responses:
  115. 200:
  116. description: OK
  117. content:
  118. application/json:
  119. schema:
  120. $ref: '#/components/schemas/ClusterMetrics'
  121. /api/clusters/{clusterName}/stats:
  122. get:
  123. tags:
  124. - Clusters
  125. summary: getClusterStats
  126. operationId: getClusterStats
  127. parameters:
  128. - name: clusterName
  129. in: path
  130. required: true
  131. schema:
  132. type: string
  133. responses:
  134. 200:
  135. description: OK
  136. content:
  137. application/json:
  138. schema:
  139. $ref: '#/components/schemas/ClusterStats'
  140. /api/clusters/{clusterName}/brokers/{id}/metrics:
  141. get:
  142. tags:
  143. - Brokers
  144. summary: getBrokersMetrics
  145. operationId: getBrokersMetrics
  146. parameters:
  147. - name: clusterName
  148. in: path
  149. required: true
  150. schema:
  151. type: string
  152. - name: id
  153. in: path
  154. required: true
  155. schema:
  156. type: integer
  157. responses:
  158. 200:
  159. description: OK
  160. content:
  161. application/json:
  162. schema:
  163. $ref: '#/components/schemas/BrokerMetrics'
  164. /api/clusters/{clusterName}/brokers/logdirs:
  165. get:
  166. tags:
  167. - Brokers
  168. summary: getAllBrokersLogdirs
  169. operationId: getAllBrokersLogdirs
  170. parameters:
  171. - name: clusterName
  172. in: path
  173. required: true
  174. schema:
  175. type: string
  176. - name: broker
  177. in: query
  178. description: array of broker ids
  179. required: false
  180. schema:
  181. type: array
  182. items:
  183. type: integer
  184. responses:
  185. 200:
  186. description: OK
  187. content:
  188. application/json:
  189. schema:
  190. type: array
  191. items:
  192. $ref: '#/components/schemas/BrokersLogdirs'
  193. /api/clusters/{clusterName}/brokers/{id}/logdirs:
  194. patch:
  195. tags:
  196. - Brokers
  197. summary: updateBrokerTopicPartitionLogDir
  198. operationId: updateBrokerTopicPartitionLogDir
  199. parameters:
  200. - name: clusterName
  201. in: path
  202. required: true
  203. schema:
  204. type: string
  205. - name: id
  206. in: path
  207. required: true
  208. schema:
  209. type: integer
  210. requestBody:
  211. content:
  212. application/json:
  213. schema:
  214. $ref: '#/components/schemas/BrokerLogdirUpdate'
  215. responses:
  216. 200:
  217. description: OK
  218. /api/clusters/{clusterName}/topics:
  219. get:
  220. tags:
  221. - Topics
  222. summary: getTopics
  223. operationId: getTopics
  224. parameters:
  225. - name: clusterName
  226. in: path
  227. required: true
  228. schema:
  229. type: string
  230. - name: page
  231. in: query
  232. required: false
  233. schema:
  234. type: integer
  235. - name: perPage
  236. in: query
  237. required: false
  238. schema:
  239. type: integer
  240. - name: showInternal
  241. in: query
  242. required: false
  243. schema:
  244. type: boolean
  245. - name: search
  246. in: query
  247. required: false
  248. schema:
  249. type: string
  250. - name: orderBy
  251. in: query
  252. required: false
  253. schema:
  254. $ref: '#/components/schemas/TopicColumnsToSort'
  255. responses:
  256. 200:
  257. description: OK
  258. content:
  259. application/json:
  260. schema:
  261. $ref: '#/components/schemas/TopicsResponse'
  262. post:
  263. tags:
  264. - Topics
  265. summary: createTopic
  266. operationId: createTopic
  267. parameters:
  268. - name: clusterName
  269. in: path
  270. required: true
  271. schema:
  272. type: string
  273. requestBody:
  274. content:
  275. application/json:
  276. schema:
  277. $ref: '#/components/schemas/TopicCreation'
  278. responses:
  279. 201:
  280. description: Created
  281. content:
  282. application/json:
  283. schema:
  284. $ref: '#/components/schemas/Topic'
  285. /api/clusters/{clusterName}/topics/{topicName}:
  286. get:
  287. tags:
  288. - Topics
  289. summary: getTopicDetails
  290. operationId: getTopicDetails
  291. parameters:
  292. - name: clusterName
  293. in: path
  294. required: true
  295. schema:
  296. type: string
  297. - name: topicName
  298. in: path
  299. required: true
  300. schema:
  301. type: string
  302. responses:
  303. 200:
  304. description: OK
  305. content:
  306. application/json:
  307. schema:
  308. $ref: '#/components/schemas/TopicDetails'
  309. patch:
  310. tags:
  311. - Topics
  312. summary: updateTopic
  313. operationId: updateTopic
  314. parameters:
  315. - name: clusterName
  316. in: path
  317. required: true
  318. schema:
  319. type: string
  320. - name: topicName
  321. in: path
  322. required: true
  323. schema:
  324. type: string
  325. requestBody:
  326. content:
  327. application/json:
  328. schema:
  329. $ref: '#/components/schemas/TopicUpdate'
  330. responses:
  331. 200:
  332. description: Updated
  333. content:
  334. application/json:
  335. schema:
  336. $ref: '#/components/schemas/Topic'
  337. delete:
  338. tags:
  339. - Topics
  340. summary: deleteTopic
  341. operationId: deleteTopic
  342. parameters:
  343. - name: clusterName
  344. in: path
  345. required: true
  346. schema:
  347. type: string
  348. - name: topicName
  349. in: path
  350. required: true
  351. schema:
  352. type: string
  353. responses:
  354. 200:
  355. description: OK
  356. 404:
  357. description: Not found
  358. /api/clusters/{clusterName}/topics/{topicName}/config:
  359. get:
  360. tags:
  361. - Topics
  362. summary: getTopicConfigs
  363. operationId: getTopicConfigs
  364. parameters:
  365. - name: clusterName
  366. in: path
  367. required: true
  368. schema:
  369. type: string
  370. - name: topicName
  371. in: path
  372. required: true
  373. schema:
  374. type: string
  375. responses:
  376. 200:
  377. description: OK
  378. content:
  379. application/json:
  380. schema:
  381. type: array
  382. items:
  383. $ref: '#/components/schemas/TopicConfig'
  384. /api/clusters/{clusterName}/topics/{topicName}/replications:
  385. patch:
  386. tags:
  387. - Topics
  388. summary: changeReplicationFactor
  389. operationId: changeReplicationFactor
  390. parameters:
  391. - name: clusterName
  392. in: path
  393. required: true
  394. schema:
  395. type: string
  396. - name: topicName
  397. in: path
  398. required: true
  399. schema:
  400. type: string
  401. requestBody:
  402. content:
  403. application/json:
  404. schema:
  405. $ref: '#/components/schemas/ReplicationFactorChange'
  406. responses:
  407. 200:
  408. description: OK
  409. content:
  410. application/json:
  411. schema:
  412. $ref: '#/components/schemas/ReplicationFactorChangeResponse'
  413. 404:
  414. description: Not found
  415. /api/clusters/{clusterName}/topics/{topicName}/messages:
  416. get:
  417. tags:
  418. - Messages
  419. summary: getTopicMessages
  420. operationId: getTopicMessages
  421. parameters:
  422. - name: clusterName
  423. in: path
  424. required: true
  425. schema:
  426. type: string
  427. - name: topicName
  428. in: path
  429. required: true
  430. schema:
  431. type: string
  432. - name: seekType
  433. in: query
  434. schema:
  435. $ref: "#/components/schemas/SeekType"
  436. - name: seekTo
  437. in: query
  438. schema:
  439. type: array
  440. items:
  441. type: string
  442. description: The format is [partition]::[offset] for specifying offsets or [partition]::[timestamp in millis] for specifying timestamps
  443. - name: limit
  444. in: query
  445. schema:
  446. type: integer
  447. - name: q
  448. in: query
  449. schema:
  450. type: string
  451. - name: seekDirection
  452. in: query
  453. schema:
  454. $ref: "#/components/schemas/SeekDirection"
  455. responses:
  456. 200:
  457. description: OK
  458. content:
  459. application/json:
  460. schema:
  461. type: array
  462. items:
  463. $ref: '#/components/schemas/TopicMessage'
  464. delete:
  465. tags:
  466. - Messages
  467. summary: deleteTopicMessages
  468. operationId: deleteTopicMessages
  469. parameters:
  470. - name: clusterName
  471. in: path
  472. required: true
  473. schema:
  474. type: string
  475. - name: topicName
  476. in: path
  477. required: true
  478. schema:
  479. type: string
  480. - name: partitions
  481. in: query
  482. required: false
  483. schema:
  484. type: array
  485. items:
  486. type: integer
  487. responses:
  488. 200:
  489. description: OK
  490. 404:
  491. description: Not found
  492. post:
  493. tags:
  494. - Messages
  495. summary: sendTopicMessages
  496. operationId: sendTopicMessages
  497. parameters:
  498. - name: clusterName
  499. in: path
  500. required: true
  501. schema:
  502. type: string
  503. - name: topicName
  504. in: path
  505. required: true
  506. schema:
  507. type: string
  508. requestBody:
  509. content:
  510. application/json:
  511. schema:
  512. $ref: '#/components/schemas/CreateTopicMessage'
  513. responses:
  514. 200:
  515. description: OK
  516. 404:
  517. description: Not found
  518. /api/clusters/{clusterName}/topics/{topicName}/messages/schema:
  519. get:
  520. tags:
  521. - Messages
  522. summary: getTopicSchema
  523. operationId: getTopicSchema
  524. parameters:
  525. - name: clusterName
  526. in: path
  527. required: true
  528. schema:
  529. type: string
  530. - name: topicName
  531. in: path
  532. required: true
  533. schema:
  534. type: string
  535. responses:
  536. 200:
  537. description: OK
  538. content:
  539. application/json:
  540. schema:
  541. $ref: '#/components/schemas/TopicMessageSchema'
  542. /api/clusters/{clusterName}/topics/{topicName}/consumer-groups:
  543. get:
  544. tags:
  545. - Consumer Groups
  546. summary: get Consumer Groups By Topics
  547. operationId: getTopicConsumerGroups
  548. parameters:
  549. - name: clusterName
  550. in: path
  551. required: true
  552. schema:
  553. type: string
  554. - name: topicName
  555. in: path
  556. required: true
  557. schema:
  558. type: string
  559. responses:
  560. 200:
  561. description: OK
  562. content:
  563. application/json:
  564. schema:
  565. type: array
  566. items:
  567. $ref: '#/components/schemas/ConsumerGroup'
  568. /api/clusters/{clusterName}/consumer-groups/{id}:
  569. get:
  570. tags:
  571. - Consumer Groups
  572. summary: get Consumer Group By Id
  573. operationId: getConsumerGroup
  574. parameters:
  575. - name: clusterName
  576. in: path
  577. required: true
  578. schema:
  579. type: string
  580. - name: id
  581. in: path
  582. required: true
  583. schema:
  584. type: string
  585. responses:
  586. 200:
  587. description: OK
  588. content:
  589. application/json:
  590. schema:
  591. $ref: '#/components/schemas/ConsumerGroupDetails'
  592. delete:
  593. tags:
  594. - Consumer Groups
  595. summary: Delete Consumer Group by ID
  596. operationId: deleteConsumerGroup
  597. parameters:
  598. - name: clusterName
  599. in: path
  600. required: true
  601. schema:
  602. type: string
  603. - name: id
  604. in: path
  605. required: true
  606. schema:
  607. type: string
  608. responses:
  609. 200:
  610. description: OK
  611. /api/clusters/{clusterName}/consumer-groups:
  612. get:
  613. tags:
  614. - Consumer Groups
  615. summary: get all ConsumerGroups
  616. operationId: getConsumerGroups
  617. parameters:
  618. - name: clusterName
  619. in: path
  620. required: true
  621. schema:
  622. type: string
  623. responses:
  624. 200:
  625. description: OK
  626. content:
  627. application/json:
  628. schema:
  629. type: array
  630. items:
  631. $ref: '#/components/schemas/ConsumerGroup'
  632. /api/clusters/{clusterName}/consumer-groups/{id}/offsets:
  633. post:
  634. tags:
  635. - Consumer Groups
  636. summary: resets consumer group offsets
  637. operationId: resetConsumerGroupOffsets
  638. parameters:
  639. - name: clusterName
  640. in: path
  641. required: true
  642. schema:
  643. type: string
  644. - name: id
  645. in: path
  646. required: true
  647. schema:
  648. type: string
  649. requestBody:
  650. content:
  651. application/json:
  652. schema:
  653. $ref: '#/components/schemas/ConsumerGroupOffsetsReset'
  654. responses:
  655. 200:
  656. description: OK
  657. /api/clusters/{clusterName}/schemas:
  658. post:
  659. tags:
  660. - Schemas
  661. summary: create a new subject schema
  662. operationId: createNewSchema
  663. parameters:
  664. - name: clusterName
  665. in: path
  666. required: true
  667. schema:
  668. type: string
  669. requestBody:
  670. content:
  671. application/json:
  672. schema:
  673. $ref: '#/components/schemas/NewSchemaSubject'
  674. responses:
  675. 200:
  676. description: Ok
  677. content:
  678. application/json:
  679. schema:
  680. $ref: '#/components/schemas/SchemaSubject'
  681. 400:
  682. description: Bad request
  683. 409:
  684. description: Duplicate schema
  685. 422:
  686. description: Invalid parameters
  687. get:
  688. tags:
  689. - Schemas
  690. summary: get all schemas of latest version from Schema Registry service
  691. operationId: getSchemas
  692. parameters:
  693. - name: clusterName
  694. in: path
  695. required: true
  696. schema:
  697. type: string
  698. responses:
  699. 200:
  700. description: OK
  701. content:
  702. application/json:
  703. schema:
  704. type: array
  705. items:
  706. $ref: '#/components/schemas/SchemaSubject'
  707. /api/clusters/{clusterName}/schemas/{subject}:
  708. delete:
  709. tags:
  710. - Schemas
  711. summary: delete schema from Schema Registry service
  712. operationId: deleteSchema
  713. parameters:
  714. - name: clusterName
  715. in: path
  716. required: true
  717. schema:
  718. type: string
  719. - name: subject
  720. in: path
  721. required: true
  722. schema:
  723. type: string
  724. responses:
  725. 200:
  726. description: OK
  727. 404:
  728. description: Not found
  729. /api/clusters/{clusterName}/schemas/{subject}/versions:
  730. get:
  731. tags:
  732. - Schemas
  733. summary: get all version of subject from Schema Registry service
  734. operationId: getAllVersionsBySubject
  735. parameters:
  736. - name: clusterName
  737. in: path
  738. required: true
  739. schema:
  740. type: string
  741. - name: subject
  742. in: path
  743. required: true
  744. schema:
  745. type: string
  746. responses:
  747. 200:
  748. description: OK
  749. content:
  750. application/json:
  751. schema:
  752. type: array
  753. items:
  754. $ref: '#/components/schemas/SchemaSubject'
  755. /api/clusters/{clusterName}/schemas/{subject}/latest:
  756. get:
  757. tags:
  758. - Schemas
  759. summary: get the latest schema from Schema Registry service
  760. operationId: getLatestSchema
  761. parameters:
  762. - name: clusterName
  763. in: path
  764. required: true
  765. schema:
  766. type: string
  767. - name: subject
  768. in: path
  769. required: true
  770. schema:
  771. type: string
  772. responses:
  773. 200:
  774. description: OK
  775. content:
  776. application/json:
  777. schema:
  778. $ref: '#/components/schemas/SchemaSubject'
  779. delete:
  780. tags:
  781. - Schemas
  782. summary: delete the latest schema from schema registry
  783. operationId: deleteLatestSchema
  784. parameters:
  785. - name: clusterName
  786. in: path
  787. required: true
  788. schema:
  789. type: string
  790. - name: subject
  791. in: path
  792. required: true
  793. schema:
  794. type: string
  795. responses:
  796. 200:
  797. description: OK
  798. 404:
  799. description: Not found
  800. /api/clusters/{clusterName}/schemas/{subject}/versions/{version}:
  801. get:
  802. tags:
  803. - Schemas
  804. summary: get schema by version from Schema Registry service
  805. operationId: getSchemaByVersion
  806. parameters:
  807. - name: clusterName
  808. in: path
  809. required: true
  810. schema:
  811. type: string
  812. - name: subject
  813. in: path
  814. required: true
  815. schema:
  816. type: string
  817. - name: version
  818. in: path
  819. required: true
  820. schema:
  821. type: integer
  822. responses:
  823. 200:
  824. description: OK
  825. content:
  826. application/json:
  827. schema:
  828. $ref: '#/components/schemas/SchemaSubject'
  829. delete:
  830. tags:
  831. - Schemas
  832. summary: delete schema by version from schema registry
  833. operationId: deleteSchemaByVersion
  834. parameters:
  835. - name: clusterName
  836. in: path
  837. required: true
  838. schema:
  839. type: string
  840. - name: subject
  841. in: path
  842. required: true
  843. schema:
  844. type: string
  845. - name: version
  846. in: path
  847. required: true
  848. schema:
  849. type: integer
  850. responses:
  851. 200:
  852. description: OK
  853. 404:
  854. description: Not found
  855. /api/clusters/{clusterName}/schemas/compatibility:
  856. get:
  857. tags:
  858. - Schemas
  859. summary: Get global schema compatibility level
  860. operationId: getGlobalSchemaCompatibilityLevel
  861. parameters:
  862. - name: clusterName
  863. in: path
  864. required: true
  865. schema:
  866. type: string
  867. responses:
  868. 200:
  869. description: OK
  870. content:
  871. application/json:
  872. schema:
  873. $ref: '#/components/schemas/CompatibilityLevel'
  874. put:
  875. tags:
  876. - Schemas
  877. summary: Update compatibility level globally
  878. operationId: updateGlobalSchemaCompatibilityLevel
  879. parameters:
  880. - name: clusterName
  881. in: path
  882. required: true
  883. schema:
  884. type: string
  885. requestBody:
  886. content:
  887. application/json:
  888. schema:
  889. $ref: '#/components/schemas/CompatibilityLevel'
  890. responses:
  891. 200:
  892. description: OK
  893. 404:
  894. description: Not Found
  895. /api/clusters/{clusterName}/schemas/{subject}/compatibility:
  896. put:
  897. tags:
  898. - Schemas
  899. summary: Update compatibility level for specific schema.
  900. operationId: updateSchemaCompatibilityLevel
  901. parameters:
  902. - name: clusterName
  903. in: path
  904. required: true
  905. schema:
  906. type: string
  907. - name: subject
  908. in: path
  909. required: true
  910. schema:
  911. type: string
  912. requestBody:
  913. content:
  914. application/json:
  915. schema:
  916. $ref: '#/components/schemas/CompatibilityLevel'
  917. responses:
  918. 200:
  919. description: OK
  920. 404:
  921. description: Not Found
  922. /api/clusters/{clusterName}/schemas/{subject}/check:
  923. post:
  924. tags:
  925. - Schemas
  926. summary: Check compatibility of the schema.
  927. operationId: checkSchemaCompatibility
  928. parameters:
  929. - name: clusterName
  930. in: path
  931. required: true
  932. schema:
  933. type: string
  934. - name: subject
  935. in: path
  936. required: true
  937. schema:
  938. type: string
  939. requestBody:
  940. content:
  941. application/json:
  942. schema:
  943. $ref: '#/components/schemas/NewSchemaSubject'
  944. responses:
  945. 200:
  946. description: OK
  947. content:
  948. application/json:
  949. schema:
  950. $ref: '#/components/schemas/CompatibilityCheckResponse'
  951. 404:
  952. description: Not Found
  953. /api/clusters/{clusterName}/connects:
  954. get:
  955. tags:
  956. - Kafka Connect
  957. summary: get all kafka connect instances
  958. operationId: getConnects
  959. parameters:
  960. - name: clusterName
  961. in: path
  962. required: true
  963. schema:
  964. type: string
  965. responses:
  966. 200:
  967. description: OK
  968. content:
  969. application/json:
  970. schema:
  971. type: array
  972. items:
  973. $ref: '#/components/schemas/Connect'
  974. /api/clusters/{clusterName}/connectors:
  975. get:
  976. tags:
  977. - Kafka Connect
  978. summary: get all kafka connectors
  979. operationId: getAllConnectors
  980. parameters:
  981. - name: clusterName
  982. in: path
  983. required: true
  984. schema:
  985. type: string
  986. responses:
  987. 200:
  988. description: OK
  989. content:
  990. application/json:
  991. schema:
  992. type: array
  993. items:
  994. $ref: '#/components/schemas/FullConnectorInfo'
  995. /api/clusters/{clusterName}/connects/{connectName}/connectors:
  996. get:
  997. tags:
  998. - Kafka Connect
  999. summary: get connectors for provided kafka connect instance
  1000. operationId: getConnectors
  1001. parameters:
  1002. - name: clusterName
  1003. in: path
  1004. required: true
  1005. schema:
  1006. type: string
  1007. - name: connectName
  1008. in: path
  1009. required: true
  1010. schema:
  1011. type: string
  1012. responses:
  1013. 200:
  1014. description: OK
  1015. content:
  1016. application/json:
  1017. schema:
  1018. type: array
  1019. items:
  1020. type: string
  1021. post:
  1022. tags:
  1023. - Kafka Connect
  1024. summary: create new connector
  1025. operationId: createConnector
  1026. parameters:
  1027. - name: clusterName
  1028. in: path
  1029. required: true
  1030. schema:
  1031. type: string
  1032. - name: connectName
  1033. in: path
  1034. required: true
  1035. schema:
  1036. type: string
  1037. requestBody:
  1038. content:
  1039. application/json:
  1040. schema:
  1041. $ref: '#/components/schemas/NewConnector'
  1042. responses:
  1043. 200:
  1044. description: OK
  1045. content:
  1046. application/json:
  1047. schema:
  1048. $ref: '#/components/schemas/Connector'
  1049. 409:
  1050. description: rebalance is in progress
  1051. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}:
  1052. get:
  1053. tags:
  1054. - Kafka Connect
  1055. summary: get information about the connector
  1056. operationId: getConnector
  1057. parameters:
  1058. - name: clusterName
  1059. in: path
  1060. required: true
  1061. schema:
  1062. type: string
  1063. - name: connectName
  1064. in: path
  1065. required: true
  1066. schema:
  1067. type: string
  1068. - name: connectorName
  1069. in: path
  1070. required: true
  1071. schema:
  1072. type: string
  1073. responses:
  1074. 200:
  1075. description: OK
  1076. content:
  1077. application/json:
  1078. schema:
  1079. $ref: '#/components/schemas/Connector'
  1080. delete:
  1081. tags:
  1082. - Kafka Connect
  1083. summary: delete connector
  1084. operationId: deleteConnector
  1085. parameters:
  1086. - name: clusterName
  1087. in: path
  1088. required: true
  1089. schema:
  1090. type: string
  1091. - name: connectName
  1092. in: path
  1093. required: true
  1094. schema:
  1095. type: string
  1096. - name: connectorName
  1097. in: path
  1098. required: true
  1099. schema:
  1100. type: string
  1101. responses:
  1102. 200:
  1103. description: OK
  1104. 409:
  1105. description: rebalance is in progress
  1106. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/action/{action}:
  1107. post:
  1108. tags:
  1109. - Kafka Connect
  1110. summary: update connector state (restart, pause or resume)
  1111. operationId: updateConnectorState
  1112. parameters:
  1113. - name: clusterName
  1114. in: path
  1115. required: true
  1116. schema:
  1117. type: string
  1118. - name: connectName
  1119. in: path
  1120. required: true
  1121. schema:
  1122. type: string
  1123. - name: connectorName
  1124. in: path
  1125. required: true
  1126. schema:
  1127. type: string
  1128. - name: action
  1129. in: path
  1130. required: true
  1131. schema:
  1132. $ref: '#/components/schemas/ConnectorAction'
  1133. responses:
  1134. 200:
  1135. description: OK
  1136. 409:
  1137. description: rebalance is in progress
  1138. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/config:
  1139. get:
  1140. tags:
  1141. - Kafka Connect
  1142. summary: get connector configuration
  1143. operationId: getConnectorConfig
  1144. parameters:
  1145. - name: clusterName
  1146. in: path
  1147. required: true
  1148. schema:
  1149. type: string
  1150. - name: connectName
  1151. in: path
  1152. required: true
  1153. schema:
  1154. type: string
  1155. - name: connectorName
  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/ConnectorConfig'
  1167. put:
  1168. tags:
  1169. - Kafka Connect
  1170. summary: update or create connector with provided config
  1171. operationId: setConnectorConfig
  1172. parameters:
  1173. - name: clusterName
  1174. in: path
  1175. required: true
  1176. schema:
  1177. type: string
  1178. - name: connectName
  1179. in: path
  1180. required: true
  1181. schema:
  1182. type: string
  1183. - name: connectorName
  1184. in: path
  1185. required: true
  1186. schema:
  1187. type: string
  1188. requestBody:
  1189. content:
  1190. application/json:
  1191. schema:
  1192. $ref: '#/components/schemas/ConnectorConfig'
  1193. responses:
  1194. 200:
  1195. description: OK
  1196. content:
  1197. application/json:
  1198. schema:
  1199. $ref: '#/components/schemas/Connector'
  1200. 409:
  1201. description: rebalance is in progress
  1202. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/tasks:
  1203. get:
  1204. tags:
  1205. - Kafka Connect
  1206. summary: get connector tasks
  1207. operationId: getConnectorTasks
  1208. parameters:
  1209. - name: clusterName
  1210. in: path
  1211. required: true
  1212. schema:
  1213. type: string
  1214. - name: connectName
  1215. in: path
  1216. required: true
  1217. schema:
  1218. type: string
  1219. - name: connectorName
  1220. in: path
  1221. required: true
  1222. schema:
  1223. type: string
  1224. responses:
  1225. 200:
  1226. description: OK
  1227. content:
  1228. application/json:
  1229. schema:
  1230. type: array
  1231. items:
  1232. $ref: '#/components/schemas/Task'
  1233. /api/clusters/{clusterName}/connects/{connectName}/connectors/{connectorName}/tasks/{taskId}/action/restart:
  1234. post:
  1235. tags:
  1236. - Kafka Connect
  1237. summary: restart connector task
  1238. operationId: restartConnectorTask
  1239. parameters:
  1240. - name: clusterName
  1241. in: path
  1242. required: true
  1243. schema:
  1244. type: string
  1245. - name: connectName
  1246. in: path
  1247. required: true
  1248. schema:
  1249. type: string
  1250. - name: connectorName
  1251. in: path
  1252. required: true
  1253. schema:
  1254. type: string
  1255. - name: taskId
  1256. in: path
  1257. required: true
  1258. schema:
  1259. type: integer
  1260. responses:
  1261. 200:
  1262. description: OK
  1263. /api/clusters/{clusterName}/ksql:
  1264. post:
  1265. tags:
  1266. - Ksql
  1267. summary: executeKsqlCommand
  1268. operationId: executeKsqlCommand
  1269. parameters:
  1270. - name: clusterName
  1271. in: path
  1272. required: true
  1273. schema:
  1274. type: string
  1275. requestBody:
  1276. content:
  1277. application/json:
  1278. schema:
  1279. $ref: '#/components/schemas/KsqlCommand'
  1280. responses:
  1281. 200:
  1282. description: OK
  1283. content:
  1284. application/json:
  1285. schema:
  1286. $ref: '#/components/schemas/KsqlCommandResponse'
  1287. /api/clusters/{clusterName}/connects/{connectName}/plugins:
  1288. get:
  1289. tags:
  1290. - Kafka Connect
  1291. summary: get connector plugins
  1292. operationId: getConnectorPlugins
  1293. parameters:
  1294. - name: clusterName
  1295. in: path
  1296. required: true
  1297. schema:
  1298. type: string
  1299. - name: connectName
  1300. in: path
  1301. required: true
  1302. schema:
  1303. type: string
  1304. responses:
  1305. 200:
  1306. description: OK
  1307. content:
  1308. application/json:
  1309. schema:
  1310. type: array
  1311. items:
  1312. $ref: '#/components/schemas/ConnectorPlugin'
  1313. /api/clusters/{clusterName}/connects/{connectName}/plugins/{pluginName}/config/validate:
  1314. put:
  1315. tags:
  1316. - Kafka Connect
  1317. summary: validate connector plugin configuration
  1318. operationId: validateConnectorPluginConfig
  1319. parameters:
  1320. - name: clusterName
  1321. in: path
  1322. required: true
  1323. schema:
  1324. type: string
  1325. - name: connectName
  1326. in: path
  1327. required: true
  1328. schema:
  1329. type: string
  1330. - name: pluginName
  1331. in: path
  1332. required: true
  1333. schema:
  1334. type: string
  1335. requestBody:
  1336. content:
  1337. application/json:
  1338. schema:
  1339. $ref: '#/components/schemas/ConnectorConfig'
  1340. responses:
  1341. 200:
  1342. description: OK
  1343. content:
  1344. application/json:
  1345. schema:
  1346. $ref: '#/components/schemas/ConnectorPluginConfigValidationResponse'
  1347. /api/clusters/{clusterName}/topics/{topicName}/partitions:
  1348. patch:
  1349. tags:
  1350. - Topics
  1351. summary: increaseTopicPartitions
  1352. operationId: increaseTopicPartitions
  1353. parameters:
  1354. - name: clusterName
  1355. in: path
  1356. required: true
  1357. schema:
  1358. type: string
  1359. - name: topicName
  1360. in: path
  1361. required: true
  1362. schema:
  1363. type: string
  1364. requestBody:
  1365. content:
  1366. application/json:
  1367. schema:
  1368. $ref: '#/components/schemas/PartitionsIncrease'
  1369. responses:
  1370. 200:
  1371. description: OK
  1372. content:
  1373. application/json:
  1374. schema:
  1375. $ref: '#/components/schemas/PartitionsIncreaseResponse'
  1376. 404:
  1377. description: Not found
  1378. components:
  1379. schemas:
  1380. ErrorResponse:
  1381. description: Error object that will be returned with 4XX and 5XX HTTP statuses
  1382. type: object
  1383. properties:
  1384. code:
  1385. type: integer
  1386. description: Internal error code (can be used for message formatting & localization on UI)
  1387. message:
  1388. type: string
  1389. description: Error message
  1390. timestamp:
  1391. type: number
  1392. description: Response unix timestamp in ms
  1393. requestId:
  1394. type: string
  1395. description: Unique server-defined request id for convenient debugging
  1396. fieldsErrors:
  1397. type: array
  1398. items:
  1399. $ref: '#/components/schemas/FieldError'
  1400. FieldError:
  1401. type: object
  1402. properties:
  1403. fieldName:
  1404. type: string
  1405. description: Name of field that violated format
  1406. restrictions:
  1407. description: Field format violations description (ex. ["size must be between 0 and 20", "must be a well-formed email address"])
  1408. type: array
  1409. items:
  1410. type: string
  1411. Cluster:
  1412. type: object
  1413. properties:
  1414. name:
  1415. type: string
  1416. defaultCluster:
  1417. type: boolean
  1418. status:
  1419. $ref: '#/components/schemas/ServerStatus'
  1420. brokerCount:
  1421. type: integer
  1422. onlinePartitionCount:
  1423. type: integer
  1424. topicCount:
  1425. type: integer
  1426. bytesInPerSec:
  1427. type: number
  1428. bytesOutPerSec:
  1429. type: number
  1430. readOnly:
  1431. type: boolean
  1432. version:
  1433. type: string
  1434. features:
  1435. type: array
  1436. items:
  1437. type: string
  1438. enum:
  1439. - SCHEMA_REGISTRY
  1440. - KAFKA_CONNECT
  1441. - KSQL_DB
  1442. required:
  1443. - id
  1444. - name
  1445. - status
  1446. ServerStatus:
  1447. type: string
  1448. enum:
  1449. - online
  1450. - offline
  1451. ClusterMetrics:
  1452. type: object
  1453. properties:
  1454. items:
  1455. type: array
  1456. items:
  1457. $ref: '#/components/schemas/Metric'
  1458. ClusterStats:
  1459. type: object
  1460. properties:
  1461. brokerCount:
  1462. type: integer
  1463. zooKeeperStatus:
  1464. type: integer
  1465. activeControllers:
  1466. type: integer
  1467. onlinePartitionCount:
  1468. type: integer
  1469. offlinePartitionCount:
  1470. type: integer
  1471. inSyncReplicasCount:
  1472. type: integer
  1473. outOfSyncReplicasCount:
  1474. type: integer
  1475. underReplicatedPartitionCount:
  1476. type: integer
  1477. diskUsage:
  1478. type: array
  1479. items:
  1480. $ref: '#/components/schemas/BrokerDiskUsage'
  1481. version:
  1482. type: string
  1483. BrokerDiskUsage:
  1484. type: object
  1485. properties:
  1486. brokerId:
  1487. type: integer
  1488. segmentSize:
  1489. type: integer
  1490. format: int64
  1491. segmentCount:
  1492. type: integer
  1493. required:
  1494. - brokerId
  1495. BrokerMetrics:
  1496. type: object
  1497. properties:
  1498. segmentSize:
  1499. type: integer
  1500. format: int64
  1501. segmentCount:
  1502. type: integer
  1503. metrics:
  1504. type: array
  1505. items:
  1506. $ref: '#/components/schemas/Metric'
  1507. BrokerLogdirs:
  1508. type: object
  1509. properties:
  1510. name:
  1511. type: string
  1512. error:
  1513. type: string
  1514. topics:
  1515. type: array
  1516. items:
  1517. $ref: '#/components/schemas/TopicLogdirs'
  1518. BrokersLogdirs:
  1519. type: object
  1520. properties:
  1521. name:
  1522. type: string
  1523. error:
  1524. type: string
  1525. topics:
  1526. type: array
  1527. items:
  1528. $ref: '#/components/schemas/BrokerTopicLogdirs'
  1529. TopicsResponse:
  1530. type: object
  1531. properties:
  1532. pageCount:
  1533. type: integer
  1534. topics:
  1535. type: array
  1536. items:
  1537. $ref: '#/components/schemas/Topic'
  1538. TopicColumnsToSort:
  1539. type: string
  1540. enum:
  1541. - NAME
  1542. - OUT_OF_SYNC_REPLICAS
  1543. - TOTAL_PARTITIONS
  1544. - REPLICATION_FACTOR
  1545. Topic:
  1546. type: object
  1547. properties:
  1548. name:
  1549. type: string
  1550. internal:
  1551. type: boolean
  1552. partitionCount:
  1553. type: integer
  1554. replicationFactor:
  1555. type: integer
  1556. replicas:
  1557. type: integer
  1558. inSyncReplicas:
  1559. type: integer
  1560. segmentSize:
  1561. type: integer
  1562. format: int64
  1563. segmentCount:
  1564. type: integer
  1565. underReplicatedPartitions:
  1566. type: integer
  1567. cleanUpPolicy:
  1568. type: string
  1569. enum:
  1570. - DELETE
  1571. - COMPACT
  1572. - COMPACT_DELETE
  1573. - UNKNOWN
  1574. partitions:
  1575. type: array
  1576. items:
  1577. $ref: "#/components/schemas/Partition"
  1578. required:
  1579. - name
  1580. Replica:
  1581. type: object
  1582. properties:
  1583. broker:
  1584. type: integer
  1585. leader:
  1586. type: boolean
  1587. inSync:
  1588. type: boolean
  1589. TopicDetails:
  1590. type: object
  1591. properties:
  1592. name:
  1593. type: string
  1594. internal:
  1595. type: boolean
  1596. partitions:
  1597. type: array
  1598. items:
  1599. $ref: "#/components/schemas/Partition"
  1600. partitionCount:
  1601. type: integer
  1602. replicationFactor:
  1603. type: integer
  1604. replicas:
  1605. type: integer
  1606. inSyncReplicas:
  1607. type: integer
  1608. bytesInPerSec:
  1609. type: number
  1610. bytesOutPerSec:
  1611. type: number
  1612. segmentSize:
  1613. type: integer
  1614. segmentCount:
  1615. type: integer
  1616. underReplicatedPartitions:
  1617. type: integer
  1618. required:
  1619. - name
  1620. TopicConfig:
  1621. type: object
  1622. properties:
  1623. name:
  1624. type: string
  1625. value:
  1626. type: string
  1627. defaultValue:
  1628. type: string
  1629. required:
  1630. - name
  1631. TopicCreation:
  1632. type: object
  1633. properties:
  1634. name:
  1635. type: string
  1636. partitions:
  1637. type: integer
  1638. replicationFactor:
  1639. type: integer
  1640. configs:
  1641. type: object
  1642. additionalProperties:
  1643. type: string
  1644. required:
  1645. - name
  1646. - partitions
  1647. - replicationFactor
  1648. TopicUpdate:
  1649. type: object
  1650. properties:
  1651. configs:
  1652. type: object
  1653. additionalProperties:
  1654. type: string
  1655. required:
  1656. - configs
  1657. Broker:
  1658. type: object
  1659. properties:
  1660. id:
  1661. type: integer
  1662. host:
  1663. type: string
  1664. required:
  1665. - id
  1666. BrokerLogdirUpdate:
  1667. type: object
  1668. properties:
  1669. topic:
  1670. type: string
  1671. partition:
  1672. type: integer
  1673. logDir:
  1674. type: string
  1675. ConsumerGroupState:
  1676. type: string
  1677. enum:
  1678. - UNKNOWN
  1679. - PREPARING_REBALANCE
  1680. - COMPLETING_REBALANCE
  1681. - STABLE
  1682. - DEAD
  1683. - EMPTY
  1684. ConsumerGroup:
  1685. type: object
  1686. properties:
  1687. groupId:
  1688. type: string
  1689. members:
  1690. type: integer
  1691. topics:
  1692. type: integer
  1693. simple:
  1694. type: boolean
  1695. partitionAssignor:
  1696. type: string
  1697. state:
  1698. $ref: "#/components/schemas/ConsumerGroupState"
  1699. coordinator:
  1700. $ref: "#/components/schemas/Broker"
  1701. messagesBehind:
  1702. type: integer
  1703. format: int64
  1704. required:
  1705. - groupId
  1706. CreateTopicMessage:
  1707. type: object
  1708. properties:
  1709. partition:
  1710. type: integer
  1711. key:
  1712. type: string
  1713. headers:
  1714. type: object
  1715. additionalProperties:
  1716. type: string
  1717. content:
  1718. type: string
  1719. TopicMessageSchema:
  1720. type: object
  1721. properties:
  1722. key:
  1723. $ref: "#/components/schemas/MessageSchema"
  1724. value:
  1725. $ref: "#/components/schemas/MessageSchema"
  1726. required:
  1727. - key
  1728. - value
  1729. MessageSchema:
  1730. type: object
  1731. properties:
  1732. name:
  1733. type: string
  1734. source:
  1735. type: string
  1736. enum:
  1737. - SOURCE_SCHEMA_REGISTRY
  1738. - SOURCE_PROTO_FILE
  1739. - SOURCE_UNKNOWN
  1740. schema:
  1741. type: string
  1742. required:
  1743. - name
  1744. - source
  1745. - schema
  1746. TopicMessage:
  1747. type: object
  1748. properties:
  1749. partition:
  1750. type: integer
  1751. offset:
  1752. type: integer
  1753. format: int64
  1754. timestamp:
  1755. type: string
  1756. format: date-time
  1757. timestampType:
  1758. type: string
  1759. enum:
  1760. - NO_TIMESTAMP_TYPE
  1761. - CREATE_TIME
  1762. - LOG_APPEND_TIME
  1763. key:
  1764. type: string
  1765. headers:
  1766. type: object
  1767. additionalProperties:
  1768. type: string
  1769. content:
  1770. type: string
  1771. required:
  1772. - partition
  1773. - offset
  1774. - timestamp
  1775. SeekType:
  1776. type: string
  1777. enum:
  1778. - BEGINNING
  1779. - OFFSET
  1780. - TIMESTAMP
  1781. SeekDirection:
  1782. type: string
  1783. enum:
  1784. - FORWARD
  1785. - BACKWARD
  1786. default: FORWARD
  1787. Partition:
  1788. type: object
  1789. properties:
  1790. partition:
  1791. type: integer
  1792. leader:
  1793. type: integer
  1794. replicas:
  1795. type: array
  1796. items:
  1797. $ref: '#/components/schemas/Replica'
  1798. offsetMax:
  1799. type: integer
  1800. format: int64
  1801. offsetMin:
  1802. type: integer
  1803. format: int64
  1804. required:
  1805. - topic
  1806. - partition
  1807. - offsetMax
  1808. - offsetMin
  1809. ConsumerGroupTopicPartition:
  1810. type: object
  1811. properties:
  1812. topic:
  1813. type: string
  1814. partition:
  1815. type: integer
  1816. currentOffset:
  1817. type: integer
  1818. format: int64
  1819. endOffset:
  1820. type: integer
  1821. format: int64
  1822. messagesBehind:
  1823. type: integer
  1824. format: int64
  1825. consumerId:
  1826. type: string
  1827. host:
  1828. type: string
  1829. required:
  1830. - topic
  1831. - partition
  1832. ConsumerGroupDetails:
  1833. allOf:
  1834. - $ref: '#/components/schemas/ConsumerGroup'
  1835. - type: object
  1836. properties:
  1837. partitions:
  1838. type: array
  1839. items:
  1840. $ref: '#/components/schemas/ConsumerGroupTopicPartition'
  1841. Metric:
  1842. type: object
  1843. properties:
  1844. name:
  1845. type: string
  1846. canonicalName:
  1847. type: string
  1848. params:
  1849. type: string
  1850. additionalProperties:
  1851. type: string
  1852. value:
  1853. type: string
  1854. additionalProperties:
  1855. type: number
  1856. TopicLogdirs:
  1857. type: object
  1858. properties:
  1859. name:
  1860. type: string
  1861. partitions:
  1862. type: array
  1863. items:
  1864. $ref: '#/components/schemas/TopicPartitionLogdir'
  1865. BrokerTopicLogdirs:
  1866. type: object
  1867. properties:
  1868. name:
  1869. type: string
  1870. partitions:
  1871. type: array
  1872. items:
  1873. $ref: '#/components/schemas/BrokerTopicPartitionLogdir'
  1874. TopicPartitionLogdir:
  1875. type: object
  1876. properties:
  1877. partition:
  1878. type: integer
  1879. size:
  1880. type: integer
  1881. format: int64
  1882. offsetLag:
  1883. type: integer
  1884. format: int64
  1885. BrokerTopicPartitionLogdir:
  1886. allOf:
  1887. - $ref: '#/components/schemas/TopicPartitionLogdir'
  1888. - type: object
  1889. properties:
  1890. broker:
  1891. type: integer
  1892. SchemaSubject:
  1893. type: object
  1894. properties:
  1895. subject:
  1896. type: string
  1897. version:
  1898. type: string
  1899. id:
  1900. type: integer
  1901. schema:
  1902. type: string
  1903. compatibilityLevel:
  1904. type: string
  1905. schemaType:
  1906. $ref: '#/components/schemas/SchemaType'
  1907. required:
  1908. - id
  1909. - subject
  1910. - version
  1911. - schema
  1912. - compatibilityLevel
  1913. - schemaType
  1914. NewSchemaSubject:
  1915. type: object
  1916. properties:
  1917. subject:
  1918. type: string
  1919. schema:
  1920. type: string
  1921. schemaType:
  1922. $ref: '#/components/schemas/SchemaType'
  1923. required:
  1924. - subject
  1925. - schema
  1926. - schemaType
  1927. CompatibilityLevel:
  1928. type: object
  1929. properties:
  1930. compatibility:
  1931. type: string
  1932. enum:
  1933. - BACKWARD
  1934. - BACKWARD_TRANSITIVE
  1935. - FORWARD
  1936. - FORWARD_TRANSITIVE
  1937. - FULL
  1938. - FULL_TRANSITIVE
  1939. - NONE
  1940. required:
  1941. - compatibility
  1942. SchemaType:
  1943. type: string
  1944. enum:
  1945. - AVRO
  1946. - JSON
  1947. - PROTOBUF
  1948. CompatibilityCheckResponse:
  1949. type: object
  1950. properties:
  1951. isCompatible:
  1952. type: boolean
  1953. required:
  1954. - isCompatible
  1955. Connect:
  1956. type: object
  1957. properties:
  1958. name:
  1959. type: string
  1960. address:
  1961. type: string
  1962. required:
  1963. - name
  1964. ConnectorConfig:
  1965. type: object
  1966. additionalProperties:
  1967. type: object
  1968. TaskId:
  1969. type: object
  1970. properties:
  1971. connector:
  1972. type: string
  1973. task:
  1974. type: integer
  1975. Task:
  1976. type: object
  1977. properties:
  1978. id:
  1979. $ref: '#/components/schemas/TaskId'
  1980. status:
  1981. $ref: '#/components/schemas/TaskStatus'
  1982. config:
  1983. $ref: '#/components/schemas/ConnectorConfig'
  1984. required:
  1985. - status
  1986. NewConnector:
  1987. type: object
  1988. properties:
  1989. name:
  1990. type: string
  1991. config:
  1992. $ref: '#/components/schemas/ConnectorConfig'
  1993. required:
  1994. - name
  1995. - config
  1996. Connector:
  1997. allOf:
  1998. - $ref: '#/components/schemas/NewConnector'
  1999. - type: object
  2000. properties:
  2001. tasks:
  2002. type: array
  2003. items:
  2004. $ref: '#/components/schemas/TaskId'
  2005. type:
  2006. $ref: '#/components/schemas/ConnectorType'
  2007. status:
  2008. $ref: '#/components/schemas/ConnectorStatus'
  2009. connect:
  2010. type: string
  2011. required:
  2012. - type
  2013. - status
  2014. - connect
  2015. ConnectorType:
  2016. type: string
  2017. enum:
  2018. - SOURCE
  2019. - SINK
  2020. ConsumerGroupOffsetsReset:
  2021. type: object
  2022. properties:
  2023. topic:
  2024. type: string
  2025. resetType:
  2026. $ref: '#/components/schemas/ConsumerGroupOffsetsResetType'
  2027. partitions:
  2028. type: array
  2029. items:
  2030. type: integer
  2031. description: list of target partitions, all partitions will be used if it is not set or empty
  2032. resetToTimestamp:
  2033. type: integer
  2034. format: int64
  2035. description: should be set if resetType is TIMESTAMP
  2036. partitionsOffsets:
  2037. type: array
  2038. items:
  2039. $ref: '#/components/schemas/PartitionOffset'
  2040. description: List of partition offsets to reset to, should be set when resetType is OFFSET
  2041. required:
  2042. - topic
  2043. - resetType
  2044. PartitionOffset:
  2045. type: object
  2046. properties:
  2047. partition:
  2048. type: integer
  2049. offset:
  2050. type: integer
  2051. format: int64
  2052. required:
  2053. - partition
  2054. - offset
  2055. ConsumerGroupOffsetsResetType:
  2056. type: string
  2057. enum:
  2058. - EARLIEST
  2059. - LATEST
  2060. - TIMESTAMP
  2061. - OFFSET
  2062. TaskStatus:
  2063. type: object
  2064. properties:
  2065. id:
  2066. type: integer
  2067. state:
  2068. $ref: '#/components/schemas/ConnectorTaskStatus'
  2069. worker_id:
  2070. type: string
  2071. trace:
  2072. type: string
  2073. required:
  2074. - id
  2075. - state
  2076. - worker_id
  2077. ConnectorStatus:
  2078. type: object
  2079. properties:
  2080. state:
  2081. $ref: '#/components/schemas/ConnectorTaskStatus'
  2082. worker_id:
  2083. type: string
  2084. required:
  2085. - state
  2086. ConnectorTaskStatus:
  2087. type: string
  2088. enum:
  2089. - RUNNING
  2090. - FAILED
  2091. - PAUSED
  2092. - UNASSIGNED
  2093. ConnectorAction:
  2094. type: string
  2095. enum:
  2096. - RESTART
  2097. - PAUSE
  2098. - RESUME
  2099. TaskAction:
  2100. type: string
  2101. enum:
  2102. - restart
  2103. ConnectorPlugin:
  2104. type: object
  2105. properties:
  2106. class:
  2107. type: string
  2108. ConnectorPluginConfigDefinition:
  2109. type: object
  2110. properties:
  2111. name:
  2112. type: string
  2113. type:
  2114. type: string
  2115. enum:
  2116. - BOOLEAN
  2117. - CLASS
  2118. - DOUBLE
  2119. - INT
  2120. - LIST
  2121. - LONG
  2122. - PASSWORD
  2123. - SHORT
  2124. - STRING
  2125. required:
  2126. type: boolean
  2127. default_value:
  2128. type: string
  2129. importance:
  2130. type: string
  2131. enum:
  2132. - LOW
  2133. - MEDIUM
  2134. - HIGH
  2135. documentation:
  2136. type: string
  2137. group:
  2138. type: string
  2139. width:
  2140. type: string
  2141. enum:
  2142. - SHORT
  2143. - MEDIUM
  2144. - LONG
  2145. - NONE
  2146. display_name:
  2147. type: string
  2148. dependents:
  2149. type: array
  2150. items:
  2151. type: string
  2152. order:
  2153. type: integer
  2154. ConnectorPluginConfigValue:
  2155. type: object
  2156. properties:
  2157. name:
  2158. type: string
  2159. value:
  2160. type: string
  2161. recommended_values:
  2162. type: array
  2163. items:
  2164. type: string
  2165. errors:
  2166. type: array
  2167. items:
  2168. type: string
  2169. visible:
  2170. type: boolean
  2171. ConnectorPluginConfig:
  2172. type: object
  2173. properties:
  2174. definition:
  2175. $ref: '#/components/schemas/ConnectorPluginConfigDefinition'
  2176. value:
  2177. $ref: '#/components/schemas/ConnectorPluginConfigValue'
  2178. ConnectorPluginConfigValidationResponse:
  2179. type: object
  2180. properties:
  2181. name:
  2182. type: string
  2183. error_count:
  2184. type: integer
  2185. groups:
  2186. type: array
  2187. items:
  2188. type: string
  2189. configs:
  2190. type: array
  2191. items:
  2192. $ref: '#/components/schemas/ConnectorPluginConfig'
  2193. KsqlCommand:
  2194. type: object
  2195. properties:
  2196. ksql:
  2197. type: string
  2198. streamsProperties:
  2199. type: object
  2200. additionalProperties:
  2201. type: string
  2202. required:
  2203. - ksql
  2204. KsqlCommandResponse:
  2205. type: object
  2206. properties:
  2207. data:
  2208. $ref: '#/components/schemas/Table'
  2209. message:
  2210. type: string
  2211. Table:
  2212. type: object
  2213. properties:
  2214. headers:
  2215. type: array
  2216. items:
  2217. type: string
  2218. rows:
  2219. type: array
  2220. items:
  2221. type: array
  2222. items:
  2223. type: string
  2224. required:
  2225. - headers
  2226. - rows
  2227. FullConnectorInfo:
  2228. type: object
  2229. properties:
  2230. connect:
  2231. type: string
  2232. name:
  2233. type: string
  2234. connector_class:
  2235. type: string
  2236. type:
  2237. $ref: '#/components/schemas/ConnectorType'
  2238. topics:
  2239. type: array
  2240. items:
  2241. type: string
  2242. status:
  2243. $ref: '#/components/schemas/ConnectorStatus'
  2244. tasks_count:
  2245. type: integer
  2246. failed_tasks_count:
  2247. type: integer
  2248. required:
  2249. - name
  2250. - connect
  2251. - status
  2252. PartitionsIncrease:
  2253. type: object
  2254. properties:
  2255. totalPartitionsCount:
  2256. type: integer
  2257. minimum: 1
  2258. required:
  2259. - totalPartitionsCount
  2260. PartitionsIncreaseResponse:
  2261. type: object
  2262. properties:
  2263. totalPartitionsCount:
  2264. type: integer
  2265. topicName:
  2266. type: string
  2267. required:
  2268. - totalPartitionsCount
  2269. - topicName
  2270. ReplicationFactorChange:
  2271. type: object
  2272. properties:
  2273. totalReplicationFactor:
  2274. type: integer
  2275. minimum: 1
  2276. required:
  2277. - totalReplicationFactor
  2278. ReplicationFactorChangeResponse:
  2279. type: object
  2280. properties:
  2281. totalReplicationFactor:
  2282. type: integer
  2283. topicName:
  2284. type: string
  2285. required:
  2286. - totalReplicationFactor
  2287. - topicName
  2288. BrokerConfig:
  2289. type: object
  2290. properties:
  2291. name:
  2292. type: string
  2293. value:
  2294. type: string
  2295. source:
  2296. $ref: '#/components/schemas/ConfigSource'
  2297. isSensitive:
  2298. type: boolean
  2299. isReadOnly:
  2300. type: boolean
  2301. synonyms:
  2302. type: array
  2303. items:
  2304. $ref: '#/components/schemas/ConfigSynonym'
  2305. required:
  2306. - name
  2307. - value
  2308. - source
  2309. - isSensitive
  2310. - isReadOnly
  2311. ConfigSource:
  2312. type: string
  2313. enum:
  2314. - DYNAMIC_TOPIC_CONFIG
  2315. - DYNAMIC_BROKER_LOGGER_CONFIG
  2316. - DYNAMIC_BROKER_CONFIG
  2317. - DYNAMIC_DEFAULT_BROKER_CONFIG
  2318. - STATIC_BROKER_CONFIG
  2319. - DEFAULT_CONFIG
  2320. - UNKNOWN
  2321. ConfigSynonym:
  2322. type: object
  2323. properties:
  2324. name:
  2325. type: string
  2326. value:
  2327. type: string
  2328. source:
  2329. $ref: '#/components/schemas/ConfigSource'