openapi.json 164 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667
  1. {
  2. "openapi": "3.0.0",
  3. "info": {
  4. "description": "Use this REST API to perform lifecycle actions for DataStax Astra databases.</br> </br> To get started, create an authorization token to authenticate with your database using the /v2/clientIdSecrets endpoint using a service account for your organization. You can then create, terminate, resize, park, and unpark databases using the DevOps API.",
  5. "version": "2.3.0",
  6. "title": "Astra DevOps API",
  7. "contact": {
  8. "email": "ad-astra@datastax.com"
  9. }
  10. },
  11. "security": [
  12. {
  13. "BearerAuth": [
  14. "org-db-create",
  15. "org-db-terminate",
  16. "org-db-view",
  17. "org-db-expand",
  18. "org-db-suspend",
  19. "org-db-addpeering",
  20. "org-db-readpeering",
  21. "db-keyspace-create",
  22. "db-cql",
  23. "accesslist-write",
  24. "accesslist-read",
  25. "db-manage-privateendpoint",
  26. "db-manage-telemetry"
  27. ]
  28. }
  29. ],
  30. "tags": [
  31. {
  32. "name": "Authentication",
  33. "description": "Auth endpoint for account authentication to get token used for all other database operations via the API"
  34. },
  35. {
  36. "name": "Database Operations",
  37. "description": "The DevOps APIs are for interacting with Astra databases and all aspects of their lifecycle"
  38. },
  39. {
  40. "name": "Organization Operations",
  41. "description": "The DevOps APIs for your Astra organization"
  42. },
  43. {
  44. "name": "Authentication",
  45. "description": "auth endpoint for service account authentication to get token used for all other database operations via the api"
  46. },
  47. {
  48. "name": "Roles",
  49. "description": "The DevOps Roles APIs are for interacting with roles within your Astra organization"
  50. },
  51. {
  52. "name": "Users",
  53. "description": "The DevOps Users APIs are for interacting with users within your Astra organization"
  54. },
  55. {
  56. "name": "Token",
  57. "description": "The DevOps Token APIs allow creation and deletion of client secrets"
  58. },
  59. {
  60. "name": "Access List",
  61. "description": "The DevOps Access List APIs allow creation and deletion of access lists"
  62. },
  63. {
  64. "name": "Private Link",
  65. "description": "The DevOps Private Link APIs allow managing of private link endpoints"
  66. },
  67. {
  68. "name": "VPC Peering",
  69. "description": "The DevOps VPC Peering APIs allow managing of VPC peering for Astra classic databases"
  70. },
  71. {
  72. "name": "Customer Keys",
  73. "description": "Create and view Customer Keys for your Astra DB organization"
  74. },
  75. {
  76. "name": "Regions",
  77. "description": "Regions and availability per user and organization"
  78. }
  79. ],
  80. "paths": {
  81. "/v2/clientIdSecrets": {
  82. "get": {
  83. "tags": [
  84. "Authentication",
  85. "Token"
  86. ],
  87. "summary": "Get a list of clients for an org",
  88. "operationId": "getClientsForOrg",
  89. "responses": {
  90. "200": {
  91. "description": "successful operation",
  92. "content": {
  93. "application/json": {
  94. "schema": {
  95. "items": {
  96. "$ref": "#/components/schemas/ClientRoleList"
  97. }
  98. }
  99. }
  100. }
  101. },
  102. "400": {
  103. "$ref": "#/components/responses/BadRequest"
  104. },
  105. "403": {
  106. "$ref": "#/components/responses/Forbidden"
  107. },
  108. "500": {
  109. "$ref": "#/components/responses/ServerError"
  110. }
  111. }
  112. },
  113. "post": {
  114. "tags": [
  115. "Authentication",
  116. "Token"
  117. ],
  118. "summary": "generateTokenForClient",
  119. "operationId": "generateTokenForClient",
  120. "requestBody": {
  121. "description": "The model for generating token for client",
  122. "content": {
  123. "application/json": {
  124. "schema": {
  125. "$ref": "#/components/schemas/GenerateTokenBody"
  126. }
  127. }
  128. }
  129. },
  130. "responses": {
  131. "200": {
  132. "description": "successful operation",
  133. "content": {
  134. "application/json": {
  135. "schema": {
  136. "items": {
  137. "$ref": "#/components/schemas/GenerateTokenResponse"
  138. }
  139. }
  140. }
  141. }
  142. },
  143. "400": {
  144. "$ref": "#/components/responses/BadRequest"
  145. },
  146. "403": {
  147. "$ref": "#/components/responses/Forbidden"
  148. },
  149. "500": {
  150. "$ref": "#/components/responses/ServerError"
  151. }
  152. }
  153. }
  154. },
  155. "/v2/clientIdSecrets/{clientId}": {
  156. "delete": {
  157. "tags": [
  158. "Authentication",
  159. "Token"
  160. ],
  161. "summary": "Revokes a token",
  162. "operationId": "deleteTokenForClient",
  163. "parameters": [
  164. {
  165. "$ref": "#/components/parameters/ClientIdParam"
  166. }
  167. ],
  168. "responses": {
  169. "200": {
  170. "$ref": "#/components/responses/Ok"
  171. },
  172. "400": {
  173. "$ref": "#/components/responses/BadRequest"
  174. },
  175. "403": {
  176. "$ref": "#/components/responses/Forbidden"
  177. },
  178. "500": {
  179. "$ref": "#/components/responses/ServerError"
  180. }
  181. }
  182. }
  183. },
  184. "/v2/databases": {
  185. "get": {
  186. "tags": [
  187. "Database Operations"
  188. ],
  189. "summary": "Returns a list of databases",
  190. "description": "Get a list of databases visible to the user",
  191. "security": [
  192. {
  193. "BearerAuth": [
  194. "org-db-view"
  195. ]
  196. }
  197. ],
  198. "operationId": "listDatabases",
  199. "parameters": [
  200. {
  201. "in": "query",
  202. "name": "include",
  203. "description": "Allows filtering so that databases in listed states are returned",
  204. "required": false,
  205. "schema": {
  206. "type": "string",
  207. "enum": [
  208. "nonterminated",
  209. "all",
  210. "active",
  211. "pending",
  212. "preparing",
  213. "prepared",
  214. "initializing",
  215. "parked",
  216. "parking",
  217. "unparking",
  218. "terminating",
  219. "terminated",
  220. "resizing",
  221. "error",
  222. "maintenance",
  223. "suspended",
  224. "suspending"
  225. ],
  226. "default": "nonterminated"
  227. }
  228. },
  229. {
  230. "in": "query",
  231. "name": "provider",
  232. "description": "Allows filtering so that databases from a given provider are returned",
  233. "required": false,
  234. "schema": {
  235. "type": "string",
  236. "enum": [
  237. "ALL",
  238. "GCP",
  239. "AWS",
  240. "AZURE"
  241. ],
  242. "default": "ALL"
  243. }
  244. },
  245. {
  246. "in": "query",
  247. "name": "starting_after",
  248. "schema": {
  249. "type": "string"
  250. },
  251. "required": false,
  252. "description": "Optional parameter for pagination purposes. Used as this value for starting retrieving a specific page of results"
  253. },
  254. {
  255. "in": "query",
  256. "name": "limit",
  257. "schema": {
  258. "type": "integer",
  259. "default": 25,
  260. "minimum": 1,
  261. "maximum": 100
  262. },
  263. "required": false,
  264. "description": "Optional parameter for pagination purposes. Specify the number of items for one page of data"
  265. }
  266. ],
  267. "responses": {
  268. "200": {
  269. "description": "successful operation",
  270. "content": {
  271. "application/json": {
  272. "schema": {
  273. "type": "array",
  274. "items": {
  275. "$ref": "#/components/schemas/Database"
  276. }
  277. }
  278. }
  279. }
  280. },
  281. "400": {
  282. "$ref": "#/components/responses/BadRequest"
  283. },
  284. "401": {
  285. "$ref": "#/components/responses/Unauthorized"
  286. },
  287. "5XX": {
  288. "$ref": "#/components/responses/ServerError"
  289. }
  290. }
  291. },
  292. "post": {
  293. "tags": [
  294. "Database Operations"
  295. ],
  296. "summary": "Create a new database",
  297. "description": "Takes a user provided databaseInfo and returns the uuid for a new database",
  298. "security": [
  299. {
  300. "BearerAuth": [
  301. "org-db-create"
  302. ]
  303. }
  304. ],
  305. "operationId": "createDatabase",
  306. "requestBody": {
  307. "description": "Definition of new database",
  308. "required": true,
  309. "content": {
  310. "application/json": {
  311. "schema": {
  312. "$ref": "#/components/schemas/DatabaseInfoCreate"
  313. }
  314. }
  315. }
  316. },
  317. "responses": {
  318. "201": {
  319. "description": "created",
  320. "headers": {
  321. "Location": {
  322. "schema": {
  323. "type": "string",
  324. "description": "Database UUID"
  325. }
  326. }
  327. }
  328. },
  329. "400": {
  330. "$ref": "#/components/responses/BadRequest"
  331. },
  332. "401": {
  333. "$ref": "#/components/responses/Unauthorized"
  334. },
  335. "422": {
  336. "$ref": "#/components/responses/UnprocessableEntity"
  337. },
  338. "500": {
  339. "$ref": "#/components/responses/ServerError"
  340. }
  341. }
  342. }
  343. },
  344. "/v2/databases/{databaseID}": {
  345. "get": {
  346. "tags": [
  347. "Database Operations"
  348. ],
  349. "summary": "Finds database by ID",
  350. "description": "Returns specified database",
  351. "security": [
  352. {
  353. "BearerAuth": [
  354. "org-db-view"
  355. ]
  356. }
  357. ],
  358. "operationId": "getDatabase",
  359. "parameters": [
  360. {
  361. "$ref": "#/components/parameters/DatabaseIdParam"
  362. }
  363. ],
  364. "responses": {
  365. "200": {
  366. "description": "successful operation",
  367. "content": {
  368. "application/json": {
  369. "schema": {
  370. "$ref": "#/components/schemas/Database"
  371. }
  372. }
  373. }
  374. },
  375. "400": {
  376. "$ref": "#/components/responses/BadRequest"
  377. },
  378. "401": {
  379. "$ref": "#/components/responses/Unauthorized"
  380. },
  381. "404": {
  382. "$ref": "#/components/responses/NotFound"
  383. },
  384. "5XX": {
  385. "$ref": "#/components/responses/ServerError"
  386. }
  387. }
  388. }
  389. },
  390. "/v2/databases/{databaseID}/keyspaces/{keyspaceName}": {
  391. "post": {
  392. "tags": [
  393. "Database Operations"
  394. ],
  395. "summary": "Adds keyspace into database",
  396. "description": "Adds the specified keyspace to the database",
  397. "security": [
  398. {
  399. "BearerAuth": [
  400. "db-keyspace-create"
  401. ]
  402. }
  403. ],
  404. "operationId": "addKeyspace",
  405. "parameters": [
  406. {
  407. "$ref": "#/components/parameters/DatabaseIdParam"
  408. },
  409. {
  410. "$ref": "#/components/parameters/KeyspaceNameParam"
  411. }
  412. ],
  413. "responses": {
  414. "201": {
  415. "description": "created"
  416. },
  417. "401": {
  418. "$ref": "#/components/responses/Unauthorized"
  419. },
  420. "404": {
  421. "$ref": "#/components/responses/NotFound"
  422. },
  423. "409": {
  424. "$ref": "#/components/responses/Conflict"
  425. },
  426. "422": {
  427. "$ref": "#/components/responses/UnprocessableEntity"
  428. },
  429. "5XX": {
  430. "$ref": "#/components/responses/ServerError"
  431. }
  432. }
  433. },
  434. "delete": {
  435. "tags": [
  436. "Database Operations"
  437. ],
  438. "description": "Removes the specified keyspace from the database",
  439. "operationId": "removeKeyspace",
  440. "parameters": [
  441. {
  442. "description": "String representation of the database ID",
  443. "explode": false,
  444. "in": "path",
  445. "name": "databaseID",
  446. "required": true,
  447. "schema": {
  448. "type": "string"
  449. },
  450. "style": "simple"
  451. },
  452. {
  453. "description": "Name of database keyspace",
  454. "explode": false,
  455. "in": "path",
  456. "name": "keyspaceName",
  457. "required": true,
  458. "schema": {
  459. "type": "string"
  460. },
  461. "style": "simple"
  462. }
  463. ],
  464. "responses": {
  465. "204": {
  466. "description": "successful operation"
  467. },
  468. "400": {
  469. "content": {
  470. "application/json": {
  471. "schema": {
  472. "$ref": "#/components/schemas/Errors"
  473. }
  474. }
  475. },
  476. "description": "Bad request"
  477. },
  478. "401": {
  479. "content": {
  480. "application/json": {
  481. "schema": {
  482. "$ref": "#/components/schemas/Errors"
  483. }
  484. }
  485. },
  486. "description": "The user is unauthorized to perform the operation"
  487. },
  488. "404": {
  489. "content": {
  490. "application/json": {
  491. "schema": {
  492. "$ref": "#/components/schemas/Errors"
  493. }
  494. }
  495. },
  496. "description": "The specified database was not found"
  497. },
  498. "5XX": {
  499. "content": {
  500. "application/json": {
  501. "schema": {
  502. "$ref": "#/components/schemas/Errors"
  503. }
  504. }
  505. },
  506. "description": "A server error occurred"
  507. }
  508. },
  509. "summary": "Removes keyspace"
  510. }
  511. },
  512. "/v2/databases/{databaseID}/secureBundleURL": {
  513. "post": {
  514. "summary": "Obtain zip for connecting to the database",
  515. "description": "Returns a temporary URL to download a zip file with certificates for connecting to the database. The URL expires after five minutes.<p>There are two types of the secure bundle URL: <ul><li><b>Internal</b> - Use with VPC peering connections to use private networking and avoid public internet for communication.</li> <li><b>External</b> - Use with any connection where the public internet is sufficient for communication between the application and the Astra database with MTLS.</li></ul> Both types support MTLS for communication via the driver.</p>",
  516. "security": [
  517. {
  518. "BearerAuth": [
  519. "db-cql"
  520. ]
  521. }
  522. ],
  523. "operationId": "generateSecureBundleURL",
  524. "tags": [
  525. "Database Operations"
  526. ],
  527. "parameters": [
  528. {
  529. "$ref": "#/components/parameters/DatabaseIdParam"
  530. },
  531. {
  532. "$ref": "#/components/parameters/AllDatacentersParam"
  533. }
  534. ],
  535. "responses": {
  536. "200": {
  537. "description": "Credentials provides a link to download cluster secure-connect-*.zip file",
  538. "content": {
  539. "application/json": {
  540. "schema": {
  541. "oneOf": [
  542. {
  543. "$ref": "#/components/schemas/CredsURL"
  544. },
  545. {
  546. "$ref": "#/components/schemas/CredsURLList"
  547. }
  548. ]
  549. }
  550. }
  551. }
  552. },
  553. "400": {
  554. "$ref": "#/components/responses/BadRequest"
  555. },
  556. "401": {
  557. "$ref": "#/components/responses/Unauthorized"
  558. },
  559. "404": {
  560. "$ref": "#/components/responses/NotFound"
  561. },
  562. "409": {
  563. "$ref": "#/components/responses/Conflict"
  564. },
  565. "5XX": {
  566. "$ref": "#/components/responses/ServerError"
  567. }
  568. }
  569. }
  570. },
  571. "/v2/databases/{databaseID}/telemetry/metrics": {
  572. "post": {
  573. "summary": "Configure Astra Remote Telemetry",
  574. "description": "Enables metrics exporting to an external system. Note: updates replace any existing config.",
  575. "security": [
  576. {
  577. "BearerAuth": [
  578. "telemetry"
  579. ]
  580. }
  581. ],
  582. "operationId": "configureTelemetry",
  583. "parameters": [
  584. {
  585. "$ref": "#/components/parameters/DatabaseIdParam"
  586. }
  587. ],
  588. "tags": [
  589. "Database Operations"
  590. ],
  591. "requestBody": {
  592. "content": {
  593. "application/json": {
  594. "schema": {
  595. "anyOf": [
  596. {
  597. "$ref": "#/components/schemas/KafkaTelemetryRequest"
  598. },
  599. {
  600. "$ref": "#/components/schemas/RemotePrometheusTelemetryRequest"
  601. },
  602. {
  603. "$ref": "#/components/schemas/CloudWatchTelemetryRequest"
  604. },
  605. {
  606. "$ref": "#/components/schemas/SplunkTelemetryRequest"
  607. },
  608. {
  609. "$ref": "#/components/schemas/PulsarTelemetryRequest"
  610. },
  611. {
  612. "$ref": "#/components/schemas/DatadogTelemetryRequest"
  613. }
  614. ]
  615. }
  616. }
  617. }
  618. },
  619. "responses": {
  620. "202": {
  621. "$ref": "#/components/responses/Accepted"
  622. },
  623. "400": {
  624. "$ref": "#/components/responses/BadRequest"
  625. },
  626. "401": {
  627. "$ref": "#/components/responses/Unauthorized"
  628. },
  629. "403": {
  630. "$ref": "#/components/responses/Forbidden"
  631. },
  632. "404": {
  633. "$ref": "#/components/responses/NotFound"
  634. },
  635. "409": {
  636. "$ref": "#/components/responses/Conflict"
  637. },
  638. "5XX": {
  639. "$ref": "#/components/responses/ServerError"
  640. }
  641. }
  642. },
  643. "get": {
  644. "summary": "Retrieve Remote Telemetry configuration",
  645. "description": "Get the current Telemetry configuration for the database",
  646. "operationId": "getTelemetryConfig",
  647. "tags": [
  648. "Database Operations"
  649. ],
  650. "parameters": [
  651. {
  652. "$ref": "#/components/parameters/DatabaseIdParam"
  653. }
  654. ],
  655. "responses": {
  656. "200": {
  657. "description": "The current stored Remote Telemetry configuration for this database",
  658. "content": {
  659. "application/json": {
  660. "schema": {
  661. "anyOf": [
  662. {
  663. "$ref": "#/components/schemas/KafkaTelemetryRequest"
  664. },
  665. {
  666. "$ref": "#/components/schemas/RemotePrometheusTelemetryRequest"
  667. },
  668. {
  669. "$ref": "#/components/schemas/CloudWatchTelemetryRequest"
  670. },
  671. {
  672. "$ref": "#/components/schemas/SplunkTelemetryRequest"
  673. },
  674. {
  675. "$ref": "#/components/schemas/PulsarTelemetryRequest"
  676. },
  677. {
  678. "$ref": "#/components/schemas/DatadogTelemetryRequest"
  679. }
  680. ]
  681. }
  682. }
  683. }
  684. },
  685. "400": {
  686. "$ref": "#/components/responses/BadRequest"
  687. },
  688. "401": {
  689. "$ref": "#/components/responses/Unauthorized"
  690. },
  691. "403": {
  692. "$ref": "#/components/responses/Forbidden"
  693. },
  694. "404": {
  695. "$ref": "#/components/responses/NotFound"
  696. },
  697. "409": {
  698. "$ref": "#/components/responses/Conflict"
  699. },
  700. "5XX": {
  701. "$ref": "#/components/responses/ServerError"
  702. }
  703. }
  704. }
  705. },
  706. "/v2/databases/{databaseID}/terminate": {
  707. "post": {
  708. "summary": "Terminates a database",
  709. "description": "Terminates a database",
  710. "security": [
  711. {
  712. "BearerAuth": [
  713. "org-db-terminate"
  714. ]
  715. }
  716. ],
  717. "operationId": "terminateDatabase",
  718. "tags": [
  719. "Database Operations"
  720. ],
  721. "parameters": [
  722. {
  723. "$ref": "#/components/parameters/DatabaseIdParam"
  724. },
  725. {
  726. "in": "query",
  727. "name": "preparedStateOnly",
  728. "description": "For internal use only. Used to safely terminate prepared databases.",
  729. "required": false,
  730. "schema": {
  731. "type": "boolean",
  732. "default": false
  733. }
  734. }
  735. ],
  736. "responses": {
  737. "202": {
  738. "$ref": "#/components/responses/Accepted"
  739. },
  740. "400": {
  741. "$ref": "#/components/responses/BadRequest"
  742. },
  743. "401": {
  744. "$ref": "#/components/responses/Unauthorized"
  745. },
  746. "404": {
  747. "$ref": "#/components/responses/NotFound"
  748. },
  749. "409": {
  750. "$ref": "#/components/responses/Conflict"
  751. },
  752. "5XX": {
  753. "$ref": "#/components/responses/ServerError"
  754. }
  755. }
  756. }
  757. },
  758. "/v2/databases/{databaseID}/park": {
  759. "post": {
  760. "summary": "Parks a database",
  761. "description": "Parks a database",
  762. "security": [
  763. {
  764. "BearerAuth": [
  765. "org-db-suspend"
  766. ]
  767. }
  768. ],
  769. "operationId": "parkDatabase",
  770. "tags": [
  771. "Database Operations"
  772. ],
  773. "parameters": [
  774. {
  775. "$ref": "#/components/parameters/DatabaseIdParam"
  776. }
  777. ],
  778. "responses": {
  779. "202": {
  780. "$ref": "#/components/responses/Accepted"
  781. },
  782. "400": {
  783. "$ref": "#/components/responses/BadRequest"
  784. },
  785. "401": {
  786. "$ref": "#/components/responses/Unauthorized"
  787. },
  788. "404": {
  789. "$ref": "#/components/responses/NotFound"
  790. },
  791. "409": {
  792. "$ref": "#/components/responses/Conflict"
  793. },
  794. "5XX": {
  795. "$ref": "#/components/responses/ServerError"
  796. }
  797. }
  798. }
  799. },
  800. "/v2/databases/{databaseID}/suspend": {
  801. "post": {
  802. "summary": "Suspends a database",
  803. "description": "Suspends a database",
  804. "security": [
  805. {
  806. "BearerAuth": [
  807. "org-db-suspend"
  808. ]
  809. }
  810. ],
  811. "operationId": "suspendDatabase",
  812. "tags": [
  813. "Database Operations"
  814. ],
  815. "parameters": [
  816. {
  817. "$ref": "#/components/parameters/DatabaseIdParam"
  818. },
  819. {
  820. "in": "query",
  821. "name": "freeConsumed",
  822. "description": "Represents, from 0 to 100, the free credits percentage consumed.",
  823. "required": false,
  824. "schema": {
  825. "type": "integer",
  826. "default": -1
  827. }
  828. }
  829. ],
  830. "responses": {
  831. "202": {
  832. "$ref": "#/components/responses/Accepted"
  833. },
  834. "400": {
  835. "$ref": "#/components/responses/BadRequest"
  836. },
  837. "401": {
  838. "$ref": "#/components/responses/Unauthorized"
  839. },
  840. "404": {
  841. "$ref": "#/components/responses/NotFound"
  842. },
  843. "409": {
  844. "$ref": "#/components/responses/Conflict"
  845. },
  846. "5XX": {
  847. "$ref": "#/components/responses/ServerError"
  848. }
  849. }
  850. }
  851. },
  852. "/v2/databases/{databaseID}/unpark": {
  853. "post": {
  854. "summary": "Unparks a database",
  855. "description": "Unparks a database",
  856. "security": [
  857. {
  858. "BearerAuth": [
  859. "org-db-suspend"
  860. ]
  861. }
  862. ],
  863. "operationId": "unparkDatabase",
  864. "tags": [
  865. "Database Operations"
  866. ],
  867. "parameters": [
  868. {
  869. "$ref": "#/components/parameters/DatabaseIdParam"
  870. }
  871. ],
  872. "responses": {
  873. "202": {
  874. "$ref": "#/components/responses/Accepted"
  875. },
  876. "400": {
  877. "$ref": "#/components/responses/BadRequest"
  878. },
  879. "401": {
  880. "$ref": "#/components/responses/Unauthorized"
  881. },
  882. "404": {
  883. "$ref": "#/components/responses/NotFound"
  884. },
  885. "409": {
  886. "$ref": "#/components/responses/Conflict"
  887. },
  888. "5XX": {
  889. "$ref": "#/components/responses/ServerError"
  890. }
  891. }
  892. }
  893. },
  894. "/v2/databases/{databaseID}/resize": {
  895. "post": {
  896. "summary": "Resizes a database",
  897. "description": "Resizes a database. Total number of capacity units desired should be specified. Reducing a size of a database is not supported at this time.",
  898. "security": [
  899. {
  900. "BearerAuth": [
  901. "org-db-expand"
  902. ]
  903. }
  904. ],
  905. "operationId": "resizeDatabase",
  906. "tags": [
  907. "Database Operations"
  908. ],
  909. "parameters": [
  910. {
  911. "$ref": "#/components/parameters/DatabaseIdParam"
  912. }
  913. ],
  914. "requestBody": {
  915. "description": "Map containing capacityUnits key with a value greater than the current number of capacity units (max increment of 3 additional capacity units)",
  916. "required": true,
  917. "content": {
  918. "application/json": {
  919. "schema": {
  920. "$ref": "#/components/schemas/CapacityUnits"
  921. }
  922. }
  923. }
  924. },
  925. "responses": {
  926. "202": {
  927. "$ref": "#/components/responses/Accepted"
  928. },
  929. "400": {
  930. "$ref": "#/components/responses/BadRequest"
  931. },
  932. "401": {
  933. "$ref": "#/components/responses/Unauthorized"
  934. },
  935. "404": {
  936. "$ref": "#/components/responses/NotFound"
  937. },
  938. "409": {
  939. "$ref": "#/components/responses/Conflict"
  940. },
  941. "5XX": {
  942. "$ref": "#/components/responses/ServerError"
  943. }
  944. }
  945. }
  946. },
  947. "/v2/databases/{databaseID}/datacenters": {
  948. "get": {
  949. "summary": "List all database datacenters",
  950. "description": "Returns the list of configured ACTIVE datacenters for the given database, if you want to get the TERMINATED along with ACTIVE send query param all=true",
  951. "operationId": "listDatacenters",
  952. "tags": [
  953. "Database Operations"
  954. ],
  955. "parameters": [
  956. {
  957. "$ref": "#/components/parameters/DatabaseIdParam"
  958. },
  959. {
  960. "in": "query",
  961. "name": "all",
  962. "description": "Allows retrieving datacenters in TERMINATED state along with ACTIVE ones",
  963. "required": false,
  964. "schema": {
  965. "type": "boolean",
  966. "default": false
  967. }
  968. }
  969. ],
  970. "responses": {
  971. "200": {
  972. "description": "successful operation",
  973. "content": {
  974. "application/json": {
  975. "schema": {
  976. "type": "array",
  977. "items": {
  978. "$ref": "#/components/schemas/Datacenter"
  979. }
  980. }
  981. }
  982. }
  983. },
  984. "401": {
  985. "$ref": "#/components/responses/Unauthorized"
  986. },
  987. "5XX": {
  988. "$ref": "#/components/responses/ServerError"
  989. }
  990. }
  991. },
  992. "post": {
  993. "summary": "Adds datacenters",
  994. "description": "Adds the list of datacenters. Supported in AWS, Azure, and Google Cloud.",
  995. "operationId": "addDatacenters",
  996. "tags": [
  997. "Database Operations"
  998. ],
  999. "parameters": [
  1000. {
  1001. "$ref": "#/components/parameters/DatabaseIdParam"
  1002. }
  1003. ],
  1004. "requestBody": {
  1005. "description": "Map containing capacityUnits key with a value greater than the current number of capacity units (max increment of 3 additional capacity units)",
  1006. "required": true,
  1007. "content": {
  1008. "application/json": {
  1009. "schema": {
  1010. "type": "array",
  1011. "items": {
  1012. "$ref": "#/components/schemas/Datacenter"
  1013. }
  1014. }
  1015. }
  1016. }
  1017. },
  1018. "responses": {
  1019. "201": {
  1020. "$ref": "#/components/responses/Accepted"
  1021. },
  1022. "400": {
  1023. "$ref": "#/components/responses/BadRequest"
  1024. },
  1025. "401": {
  1026. "$ref": "#/components/responses/Unauthorized"
  1027. },
  1028. "404": {
  1029. "$ref": "#/components/responses/NotFound"
  1030. },
  1031. "5XX": {
  1032. "$ref": "#/components/responses/ServerError"
  1033. }
  1034. }
  1035. }
  1036. },
  1037. "/v2/databases/{databaseID}/datacenters/{datacenterID}/terminate": {
  1038. "post": {
  1039. "summary": "Terminates a datacenter",
  1040. "description": "Terminates a datacenter",
  1041. "operationId": "terminateDatacenter",
  1042. "tags": [
  1043. "Database Operations"
  1044. ],
  1045. "parameters": [
  1046. {
  1047. "$ref": "#/components/parameters/DatabaseIdParam"
  1048. },
  1049. {
  1050. "$ref": "#/components/parameters/DatacenterIdParam"
  1051. }
  1052. ],
  1053. "responses": {
  1054. "202": {
  1055. "$ref": "#/components/responses/Accepted"
  1056. },
  1057. "400": {
  1058. "$ref": "#/components/responses/BadRequest"
  1059. },
  1060. "401": {
  1061. "$ref": "#/components/responses/Unauthorized"
  1062. },
  1063. "404": {
  1064. "$ref": "#/components/responses/NotFound"
  1065. },
  1066. "409": {
  1067. "$ref": "#/components/responses/Conflict"
  1068. },
  1069. "5XX": {
  1070. "$ref": "#/components/responses/ServerError"
  1071. }
  1072. }
  1073. }
  1074. },
  1075. "/v2/databases/{databaseID}/resetPassword": {
  1076. "post": {
  1077. "summary": "Resets Password",
  1078. "description": "Sets a database password to the one specified in POST body",
  1079. "security": [
  1080. {
  1081. "BearerAuth": [
  1082. "org-db-create"
  1083. ]
  1084. }
  1085. ],
  1086. "operationId": "resetPassword",
  1087. "tags": [
  1088. "Database Operations"
  1089. ],
  1090. "parameters": [
  1091. {
  1092. "$ref": "#/components/parameters/DatabaseIdParam"
  1093. }
  1094. ],
  1095. "requestBody": {
  1096. "description": "Map containing username and password. The specified password will be updated for the specified database user",
  1097. "required": true,
  1098. "content": {
  1099. "application/json": {
  1100. "schema": {
  1101. "$ref": "#/components/schemas/UserPassword"
  1102. }
  1103. }
  1104. }
  1105. },
  1106. "responses": {
  1107. "202": {
  1108. "$ref": "#/components/responses/Accepted"
  1109. },
  1110. "400": {
  1111. "$ref": "#/components/responses/BadRequest"
  1112. },
  1113. "401": {
  1114. "$ref": "#/components/responses/Unauthorized"
  1115. },
  1116. "404": {
  1117. "$ref": "#/components/responses/NotFound"
  1118. },
  1119. "409": {
  1120. "$ref": "#/components/responses/Conflict"
  1121. },
  1122. "5XX": {
  1123. "$ref": "#/components/responses/ServerError"
  1124. }
  1125. }
  1126. }
  1127. },
  1128. "/v2/availableRegions": {
  1129. "get": {
  1130. "tags": [
  1131. "Regions"
  1132. ],
  1133. "summary": "Returns supported regions and availability for a given user / org",
  1134. "description": "Returns all supported tier, cloud, region, count, and capacitity combinations",
  1135. "security": [
  1136. {
  1137. "BearerAuth": [
  1138. "org-db-create"
  1139. ]
  1140. }
  1141. ],
  1142. "operationId": "listAvailableRegions",
  1143. "responses": {
  1144. "200": {
  1145. "description": "successful operation",
  1146. "content": {
  1147. "application/json": {
  1148. "schema": {
  1149. "type": "array",
  1150. "items": {
  1151. "$ref": "#/components/schemas/AvailableRegionCombination"
  1152. }
  1153. }
  1154. }
  1155. }
  1156. },
  1157. "401": {
  1158. "$ref": "#/components/responses/Unauthorized"
  1159. },
  1160. "5XX": {
  1161. "$ref": "#/components/responses/ServerError"
  1162. }
  1163. }
  1164. }
  1165. },
  1166. "/v2/regions/serverless": {
  1167. "get": {
  1168. "tags": [
  1169. "Regions"
  1170. ],
  1171. "summary": "Returns the list of available regions for serverless",
  1172. "description": "Returns all region, cloud, name, zone and classification info available in serverless",
  1173. "security": [
  1174. {
  1175. "BearerAuth": [
  1176. "org-db-create"
  1177. ]
  1178. }
  1179. ],
  1180. "operationId": "listServerlessRegions",
  1181. "parameters": [
  1182. {
  1183. "$ref": "#/components/parameters/RegionTypeQueryParam"
  1184. }
  1185. ],
  1186. "responses": {
  1187. "200": {
  1188. "description": "successful operation",
  1189. "content": {
  1190. "application/json": {
  1191. "schema": {
  1192. "type": "array",
  1193. "items": {
  1194. "$ref": "#/components/schemas/ServerlessRegion"
  1195. }
  1196. }
  1197. }
  1198. }
  1199. },
  1200. "401": {
  1201. "$ref": "#/components/responses/Unauthorized"
  1202. },
  1203. "5XX": {
  1204. "$ref": "#/components/responses/ServerError"
  1205. }
  1206. }
  1207. }
  1208. },
  1209. "/v2/organizations/roles": {
  1210. "get": {
  1211. "tags": [
  1212. "Roles"
  1213. ],
  1214. "summary": "Get all roles for an organization",
  1215. "operationId": "getOrganizationRoles",
  1216. "responses": {
  1217. "200": {
  1218. "description": "successful operation",
  1219. "content": {
  1220. "application/json": {
  1221. "schema": {
  1222. "items": {
  1223. "$ref": "#/components/schemas/Roles"
  1224. }
  1225. }
  1226. }
  1227. }
  1228. },
  1229. "403": {
  1230. "$ref": "#/components/responses/Forbidden"
  1231. },
  1232. "404": {
  1233. "$ref": "#/components/responses/NotFound"
  1234. },
  1235. "500": {
  1236. "$ref": "#/components/responses/ServerError"
  1237. }
  1238. }
  1239. },
  1240. "post": {
  1241. "tags": [
  1242. "Roles"
  1243. ],
  1244. "summary": "Create a role in an organization",
  1245. "operationId": "addOrganizationRole",
  1246. "requestBody": {
  1247. "description": "The model for create role body",
  1248. "content": {
  1249. "application/json": {
  1250. "schema": {
  1251. "$ref": "#/components/schemas/CreateRoleRequest"
  1252. }
  1253. }
  1254. }
  1255. },
  1256. "responses": {
  1257. "201": {
  1258. "description": "Created",
  1259. "content": {
  1260. "application/json": {
  1261. "schema": {
  1262. "$ref": "#/components/schemas/Role"
  1263. }
  1264. }
  1265. }
  1266. },
  1267. "400": {
  1268. "$ref": "#/components/responses/BadRequest"
  1269. },
  1270. "403": {
  1271. "$ref": "#/components/responses/Forbidden"
  1272. },
  1273. "404": {
  1274. "$ref": "#/components/responses/NotFound"
  1275. },
  1276. "409": {
  1277. "$ref": "#/components/responses/Conflict"
  1278. },
  1279. "500": {
  1280. "$ref": "#/components/responses/ServerError"
  1281. }
  1282. }
  1283. }
  1284. },
  1285. "/v2/organizations/roles/{roleID}": {
  1286. "get": {
  1287. "tags": [
  1288. "Roles"
  1289. ],
  1290. "summary": "Get a role for an organization",
  1291. "description": "Retrieve the details for a role for a given organization",
  1292. "operationId": "getOrganizationRole",
  1293. "parameters": [
  1294. {
  1295. "$ref": "#/components/parameters/RoleIdParam"
  1296. }
  1297. ],
  1298. "responses": {
  1299. "200": {
  1300. "description": "successful operation",
  1301. "content": {
  1302. "application/json": {
  1303. "schema": {
  1304. "items": {
  1305. "$ref": "#/components/schemas/Role"
  1306. }
  1307. }
  1308. }
  1309. }
  1310. },
  1311. "400": {
  1312. "$ref": "#/components/responses/BadRequest"
  1313. },
  1314. "403": {
  1315. "$ref": "#/components/responses/Forbidden"
  1316. },
  1317. "404": {
  1318. "$ref": "#/components/responses/NotFound"
  1319. },
  1320. "500": {
  1321. "$ref": "#/components/responses/ServerError"
  1322. }
  1323. }
  1324. },
  1325. "put": {
  1326. "tags": [
  1327. "Roles"
  1328. ],
  1329. "summary": "Update a role within an organization",
  1330. "description": "Update a role within an organization",
  1331. "operationId": "updateRole",
  1332. "parameters": [
  1333. {
  1334. "$ref": "#/components/parameters/RoleIdParam"
  1335. }
  1336. ],
  1337. "requestBody": {
  1338. "description": "The model for update role body",
  1339. "content": {
  1340. "application/json": {
  1341. "schema": {
  1342. "$ref": "#/components/schemas/UpdateRoleRequest"
  1343. }
  1344. }
  1345. }
  1346. },
  1347. "responses": {
  1348. "200": {
  1349. "description": "successful operation"
  1350. },
  1351. "400": {
  1352. "$ref": "#/components/responses/BadRequest"
  1353. },
  1354. "403": {
  1355. "$ref": "#/components/responses/Forbidden"
  1356. },
  1357. "404": {
  1358. "$ref": "#/components/responses/NotFound"
  1359. },
  1360. "500": {
  1361. "$ref": "#/components/responses/ServerError"
  1362. }
  1363. }
  1364. },
  1365. "delete": {
  1366. "tags": [
  1367. "Roles"
  1368. ],
  1369. "summary": "Delete a role by ID",
  1370. "operationId": "deleteOrganizationRole",
  1371. "parameters": [
  1372. {
  1373. "$ref": "#/components/parameters/RoleIdParam"
  1374. }
  1375. ],
  1376. "responses": {
  1377. "204": {
  1378. "$ref": "#/components/responses/NoContent"
  1379. },
  1380. "400": {
  1381. "$ref": "#/components/responses/BadRequest"
  1382. },
  1383. "404": {
  1384. "$ref": "#/components/responses/NotFound"
  1385. },
  1386. "500": {
  1387. "$ref": "#/components/responses/ServerError"
  1388. }
  1389. }
  1390. }
  1391. },
  1392. "/v2/organizations/users": {
  1393. "put": {
  1394. "tags": [
  1395. "Users"
  1396. ],
  1397. "summary": "Invite a user to an organization",
  1398. "description": "Invite a user to an organization or resend an invitation with new invitation details, such as an updated expiration",
  1399. "operationId": "inviteUserToOrganization",
  1400. "requestBody": {
  1401. "content": {
  1402. "application/json": {
  1403. "schema": {
  1404. "$ref": "#/components/schemas/UserInvite"
  1405. }
  1406. }
  1407. }
  1408. },
  1409. "responses": {
  1410. "200": {
  1411. "description": "successful operation"
  1412. },
  1413. "400": {
  1414. "$ref": "#/components/responses/BadRequest"
  1415. },
  1416. "403": {
  1417. "$ref": "#/components/responses/Forbidden"
  1418. },
  1419. "404": {
  1420. "$ref": "#/components/responses/NotFound"
  1421. },
  1422. "500": {
  1423. "$ref": "#/components/responses/ServerError"
  1424. }
  1425. }
  1426. },
  1427. "get": {
  1428. "tags": [
  1429. "Users"
  1430. ],
  1431. "summary": "Get an organization's users",
  1432. "operationId": "getOrganizationUsers",
  1433. "responses": {
  1434. "200": {
  1435. "description": "List of users for the current org",
  1436. "content": {
  1437. "application/json": {
  1438. "schema": {
  1439. "$ref": "#/components/schemas/OrganizationUsers"
  1440. }
  1441. }
  1442. }
  1443. },
  1444. "404": {
  1445. "$ref": "#/components/responses/NotFound"
  1446. },
  1447. "500": {
  1448. "$ref": "#/components/responses/ServerError"
  1449. }
  1450. }
  1451. }
  1452. },
  1453. "/v2/organizations/users/{userID}": {
  1454. "get": {
  1455. "tags": [
  1456. "Users"
  1457. ],
  1458. "summary": "Get an organization's user",
  1459. "operationId": "getOrganizationUser",
  1460. "parameters": [
  1461. {
  1462. "$ref": "#/components/parameters/UserIdParam"
  1463. }
  1464. ],
  1465. "responses": {
  1466. "200": {
  1467. "description": "OK",
  1468. "content": {
  1469. "application/json": {
  1470. "schema": {
  1471. "$ref": "#/components/schemas/UserResponse"
  1472. }
  1473. }
  1474. }
  1475. },
  1476. "403": {
  1477. "$ref": "#/components/responses/Forbidden"
  1478. },
  1479. "404": {
  1480. "$ref": "#/components/responses/NotFound"
  1481. },
  1482. "500": {
  1483. "$ref": "#/components/responses/ServerError"
  1484. }
  1485. }
  1486. },
  1487. "delete": {
  1488. "tags": [
  1489. "Users"
  1490. ],
  1491. "summary": "Remove or uninvite a user from an organization",
  1492. "operationId": "removeUserFromOrganization",
  1493. "parameters": [
  1494. {
  1495. "$ref": "#/components/parameters/UserIdParam"
  1496. }
  1497. ],
  1498. "responses": {
  1499. "204": {
  1500. "$ref": "#/components/responses/NoContent"
  1501. },
  1502. "400": {
  1503. "$ref": "#/components/responses/BadRequest"
  1504. },
  1505. "403": {
  1506. "$ref": "#/components/responses/Forbidden"
  1507. },
  1508. "404": {
  1509. "$ref": "#/components/responses/NotFound"
  1510. },
  1511. "500": {
  1512. "$ref": "#/components/responses/ServerError"
  1513. }
  1514. }
  1515. }
  1516. },
  1517. "/v2/organizations/users/{userID}/roles": {
  1518. "put": {
  1519. "tags": [
  1520. "Users"
  1521. ],
  1522. "summary": "Update organization roles for a user",
  1523. "operationId": "UpdateRolesForUserInOrganization",
  1524. "parameters": [
  1525. {
  1526. "$ref": "#/components/parameters/UserIdParam"
  1527. }
  1528. ],
  1529. "requestBody": {
  1530. "content": {
  1531. "application/json": {
  1532. "schema": {
  1533. "$ref": "#/components/schemas/RoleInviteRequest"
  1534. }
  1535. }
  1536. }
  1537. },
  1538. "responses": {
  1539. "204": {
  1540. "$ref": "#/components/responses/NoContent"
  1541. },
  1542. "400": {
  1543. "$ref": "#/components/responses/BadRequest"
  1544. },
  1545. "403": {
  1546. "$ref": "#/components/responses/Forbidden"
  1547. },
  1548. "404": {
  1549. "$ref": "#/components/responses/NotFound"
  1550. },
  1551. "500": {
  1552. "$ref": "#/components/responses/ServerError"
  1553. }
  1554. }
  1555. }
  1556. },
  1557. "/v2/organizations/private-link": {
  1558. "get": {
  1559. "tags": [
  1560. "Private Link"
  1561. ],
  1562. "summary": "Gets info about all private link connections for a specific org",
  1563. "description": "Gets info about all private link connections for a specific org",
  1564. "operationId": "ListPrivateLinksForOrg",
  1565. "responses": {
  1566. "200": {
  1567. "description": "OK",
  1568. "content": {
  1569. "application/json": {
  1570. "schema": {
  1571. "$ref": "#/components/schemas/PrivateLinkOrgOutput"
  1572. }
  1573. }
  1574. }
  1575. },
  1576. "400": {
  1577. "$ref": "#/components/responses/BadRequest"
  1578. },
  1579. "404": {
  1580. "$ref": "#/components/responses/NotFound"
  1581. },
  1582. "409": {
  1583. "$ref": "#/components/responses/Conflict"
  1584. },
  1585. "500": {
  1586. "$ref": "#/components/responses/ServerError"
  1587. }
  1588. }
  1589. }
  1590. },
  1591. "/v2/organizations/clusters/{clusterID}/private-link": {
  1592. "get": {
  1593. "tags": [
  1594. "Private Link"
  1595. ],
  1596. "summary": "Gets info about all private link connections for a specific cluster",
  1597. "description": "Gets info about all private link connections for a cluster",
  1598. "operationId": "ListPrivateLinksForCluster",
  1599. "parameters": [
  1600. {
  1601. "name": "clusterID",
  1602. "in": "path",
  1603. "description": "Database ID",
  1604. "required": true,
  1605. "schema": {
  1606. "type": "string",
  1607. "format": "uuid"
  1608. }
  1609. }
  1610. ],
  1611. "responses": {
  1612. "200": {
  1613. "description": "OK",
  1614. "content": {
  1615. "application/json": {
  1616. "schema": {
  1617. "$ref": "#/components/schemas/PrivateLinkClusterOutput"
  1618. }
  1619. }
  1620. }
  1621. },
  1622. "400": {
  1623. "$ref": "#/components/responses/BadRequest"
  1624. },
  1625. "404": {
  1626. "$ref": "#/components/responses/NotFound"
  1627. },
  1628. "409": {
  1629. "$ref": "#/components/responses/Conflict"
  1630. },
  1631. "500": {
  1632. "$ref": "#/components/responses/ServerError"
  1633. }
  1634. }
  1635. }
  1636. },
  1637. "/v2/organizations/clusters/{clusterID}/datacenters/{datacenterID}/private-link": {
  1638. "get": {
  1639. "tags": [
  1640. "Private Link"
  1641. ],
  1642. "summary": "Gets info about private link in a datacenter",
  1643. "description": "Gets info about a private link connection in a specific datacenter",
  1644. "operationId": "GetPrivateLinksForDatacenter",
  1645. "parameters": [
  1646. {
  1647. "name": "clusterID",
  1648. "in": "path",
  1649. "description": "Database ID",
  1650. "required": true,
  1651. "schema": {
  1652. "type": "string",
  1653. "format": "uuid"
  1654. }
  1655. },
  1656. {
  1657. "name": "datacenterID",
  1658. "in": "path",
  1659. "description": "Datacenter ID from the Astra Portal. There is a unique Datacenter ID for each database region.",
  1660. "required": true,
  1661. "schema": {
  1662. "type": "string",
  1663. "format": "uuid"
  1664. }
  1665. }
  1666. ],
  1667. "responses": {
  1668. "200": {
  1669. "description": "OK",
  1670. "content": {
  1671. "application/json": {
  1672. "schema": {
  1673. "$ref": "#/components/schemas/PrivateLinkDatacenterOutput"
  1674. }
  1675. }
  1676. }
  1677. },
  1678. "400": {
  1679. "$ref": "#/components/responses/BadRequest"
  1680. },
  1681. "404": {
  1682. "$ref": "#/components/responses/NotFound"
  1683. },
  1684. "409": {
  1685. "$ref": "#/components/responses/Conflict"
  1686. },
  1687. "500": {
  1688. "$ref": "#/components/responses/ServerError"
  1689. }
  1690. }
  1691. },
  1692. "post": {
  1693. "tags": [
  1694. "Private Link"
  1695. ],
  1696. "summary": "Add an allowed principal to the private link service",
  1697. "description": "Configure private link by providing the allowed principal to connect with",
  1698. "operationId": "AddAllowedPrincipalToService",
  1699. "parameters": [
  1700. {
  1701. "name": "clusterID",
  1702. "in": "path",
  1703. "description": "Database ID",
  1704. "required": true,
  1705. "schema": {
  1706. "type": "string",
  1707. "format": "uuid"
  1708. }
  1709. },
  1710. {
  1711. "name": "datacenterID",
  1712. "in": "path",
  1713. "description": "Datacenter ID from the Astra Portal. There is a unique Datacenter ID for each database region.",
  1714. "required": true,
  1715. "schema": {
  1716. "type": "string",
  1717. "format": "uuid"
  1718. }
  1719. }
  1720. ],
  1721. "requestBody": {
  1722. "description": "The model for adding a private link allowed principal",
  1723. "content": {
  1724. "application/json": {
  1725. "schema": {
  1726. "$ref": "#/components/schemas/PrivateLinkCreateConfigInput"
  1727. }
  1728. }
  1729. }
  1730. },
  1731. "responses": {
  1732. "200": {
  1733. "description": "OK",
  1734. "content": {
  1735. "application/json": {
  1736. "schema": {
  1737. "$ref": "#/components/schemas/PrivateLinkCreateConfigOutput"
  1738. }
  1739. }
  1740. }
  1741. },
  1742. "400": {
  1743. "$ref": "#/components/responses/BadRequest"
  1744. },
  1745. "404": {
  1746. "$ref": "#/components/responses/NotFound"
  1747. },
  1748. "409": {
  1749. "$ref": "#/components/responses/Conflict"
  1750. },
  1751. "500": {
  1752. "$ref": "#/components/responses/ServerError"
  1753. }
  1754. }
  1755. }
  1756. },
  1757. "/v2/organizations/clusters/{clusterID}/datacenters/{datacenterID}/allowed-principals": {
  1758. "post": {
  1759. "tags": [
  1760. "Private Link"
  1761. ],
  1762. "summary": "Add an allowed principal to the private link service",
  1763. "description": "Configure private link by providing the allowed principal to connect with",
  1764. "operationId": "AddAllowedPrincipal",
  1765. "parameters": [
  1766. {
  1767. "name": "clusterID",
  1768. "in": "path",
  1769. "description": "Database ID",
  1770. "required": true,
  1771. "schema": {
  1772. "type": "string",
  1773. "format": "uuid"
  1774. }
  1775. },
  1776. {
  1777. "name": "datacenterID",
  1778. "in": "path",
  1779. "description": "Datacenter ID from the Astra Portal. There is a unique Datacenter ID for each database region.",
  1780. "required": true,
  1781. "schema": {
  1782. "type": "string",
  1783. "format": "uuid"
  1784. }
  1785. }
  1786. ],
  1787. "requestBody": {
  1788. "description": "The model for adding a private link allowed principal",
  1789. "content": {
  1790. "application/json": {
  1791. "schema": {
  1792. "$ref": "#/components/schemas/PrivateLinkCreateConfigInput"
  1793. }
  1794. }
  1795. }
  1796. },
  1797. "responses": {
  1798. "200": {
  1799. "description": "OK",
  1800. "content": {
  1801. "application/json": {
  1802. "schema": {
  1803. "$ref": "#/components/schemas/PrivateLinkCreateConfigOutput"
  1804. }
  1805. }
  1806. }
  1807. },
  1808. "400": {
  1809. "$ref": "#/components/responses/BadRequest"
  1810. },
  1811. "404": {
  1812. "$ref": "#/components/responses/NotFound"
  1813. },
  1814. "409": {
  1815. "$ref": "#/components/responses/Conflict"
  1816. },
  1817. "500": {
  1818. "$ref": "#/components/responses/ServerError"
  1819. }
  1820. }
  1821. },
  1822. "delete": {
  1823. "tags": [
  1824. "Private Link"
  1825. ],
  1826. "summary": "Remove an allowed principal from the private link service",
  1827. "description": "Remove an allowed principal from the private link service",
  1828. "operationId": "RemoveAllowedPrincipalFromService",
  1829. "parameters": [
  1830. {
  1831. "name": "clusterID",
  1832. "in": "path",
  1833. "description": "Database ID",
  1834. "required": true,
  1835. "schema": {
  1836. "type": "string",
  1837. "format": "uuid"
  1838. }
  1839. },
  1840. {
  1841. "name": "datacenterID",
  1842. "in": "path",
  1843. "description": "Datacenter ID from the Astra Portal. There is a unique Datacenter ID for each database region.",
  1844. "required": true,
  1845. "schema": {
  1846. "type": "string",
  1847. "format": "uuid"
  1848. }
  1849. }
  1850. ],
  1851. "requestBody": {
  1852. "description": "The model for removing a private link allowed principal",
  1853. "content": {
  1854. "application/json": {
  1855. "schema": {
  1856. "$ref": "#/components/schemas/PrivateLinkDeleteConfigInput"
  1857. }
  1858. }
  1859. }
  1860. },
  1861. "responses": {
  1862. "204": {
  1863. "description": "No Content"
  1864. },
  1865. "400": {
  1866. "$ref": "#/components/responses/BadRequest"
  1867. },
  1868. "404": {
  1869. "$ref": "#/components/responses/NotFound"
  1870. },
  1871. "500": {
  1872. "$ref": "#/components/responses/ServerError"
  1873. }
  1874. }
  1875. }
  1876. },
  1877. "/v2/organizations/clusters/{clusterID}/datacenters/{datacenterID}/endpoints": {
  1878. "post": {
  1879. "tags": [
  1880. "Private Link"
  1881. ],
  1882. "summary": "Accept an endpoint to the private link service",
  1883. "description": "Complete Private Link connection by providing your endpoint",
  1884. "operationId": "AcceptEndpointToService",
  1885. "parameters": [
  1886. {
  1887. "name": "clusterID",
  1888. "in": "path",
  1889. "description": "Database ID",
  1890. "required": true,
  1891. "schema": {
  1892. "type": "string",
  1893. "format": "uuid"
  1894. }
  1895. },
  1896. {
  1897. "name": "datacenterID",
  1898. "in": "path",
  1899. "description": "Datacenter ID from the Astra Portal. There is a unique Datacenter ID for each database region.",
  1900. "required": true,
  1901. "schema": {
  1902. "type": "string",
  1903. "format": "uuid"
  1904. }
  1905. }
  1906. ],
  1907. "requestBody": {
  1908. "description": "The model for an AWS Private Link connection creation request",
  1909. "content": {
  1910. "application/json": {
  1911. "schema": {
  1912. "$ref": "#/components/schemas/PrivateLinkCreateEndpointInput"
  1913. }
  1914. }
  1915. }
  1916. },
  1917. "responses": {
  1918. "200": {
  1919. "description": "OK",
  1920. "content": {
  1921. "application/json": {
  1922. "schema": {
  1923. "$ref": "#/components/schemas/PrivateLinkEndpoint"
  1924. }
  1925. }
  1926. }
  1927. },
  1928. "400": {
  1929. "$ref": "#/components/responses/BadRequest"
  1930. },
  1931. "404": {
  1932. "$ref": "#/components/responses/NotFound"
  1933. },
  1934. "409": {
  1935. "$ref": "#/components/responses/Conflict"
  1936. },
  1937. "500": {
  1938. "$ref": "#/components/responses/ServerError"
  1939. }
  1940. }
  1941. }
  1942. },
  1943. "/v2/organizations/clusters/{clusterID}/datacenters/{datacenterID}/endpoints/{endpointID}": {
  1944. "get": {
  1945. "tags": [
  1946. "Private Link"
  1947. ],
  1948. "summary": "Gets info about a private link endpoint",
  1949. "description": "Gets info about a private link endpoint",
  1950. "operationId": "GetPrivateLinkEndpoint",
  1951. "parameters": [
  1952. {
  1953. "name": "clusterID",
  1954. "in": "path",
  1955. "description": "Database ID",
  1956. "required": true,
  1957. "schema": {
  1958. "type": "string",
  1959. "format": "uuid"
  1960. }
  1961. },
  1962. {
  1963. "name": "datacenterID",
  1964. "in": "path",
  1965. "description": "Datacenter ID from the Astra Portal. There is a unique Datacenter ID for each database region.",
  1966. "required": true,
  1967. "schema": {
  1968. "type": "string",
  1969. "format": "uuid"
  1970. }
  1971. },
  1972. {
  1973. "name": "endpointID",
  1974. "in": "path",
  1975. "description": "Endpoint ID",
  1976. "required": true,
  1977. "schema": {
  1978. "type": "string"
  1979. }
  1980. }
  1981. ],
  1982. "responses": {
  1983. "200": {
  1984. "description": "OK",
  1985. "content": {
  1986. "application/json": {
  1987. "schema": {
  1988. "$ref": "#/components/schemas/PrivateLinkEndpoint"
  1989. }
  1990. }
  1991. }
  1992. },
  1993. "400": {
  1994. "$ref": "#/components/responses/BadRequest"
  1995. },
  1996. "404": {
  1997. "$ref": "#/components/responses/NotFound"
  1998. },
  1999. "409": {
  2000. "$ref": "#/components/responses/Conflict"
  2001. },
  2002. "500": {
  2003. "$ref": "#/components/responses/ServerError"
  2004. }
  2005. }
  2006. },
  2007. "put": {
  2008. "tags": [
  2009. "Private Link"
  2010. ],
  2011. "summary": "Update the description for a private link endpoint",
  2012. "description": "Update the description for a private link endpoint",
  2013. "operationId": "UpdateEndpointDescription",
  2014. "parameters": [
  2015. {
  2016. "name": "clusterID",
  2017. "in": "path",
  2018. "description": "Database ID",
  2019. "required": true,
  2020. "schema": {
  2021. "type": "string",
  2022. "format": "uuid"
  2023. }
  2024. },
  2025. {
  2026. "name": "datacenterID",
  2027. "in": "path",
  2028. "description": "Datacenter ID from the Astra Portal. There is a unique Datacenter ID for each database region.",
  2029. "required": true,
  2030. "schema": {
  2031. "type": "string",
  2032. "format": "uuid"
  2033. }
  2034. },
  2035. {
  2036. "name": "endpointID",
  2037. "in": "path",
  2038. "description": "Endpoint ID",
  2039. "required": true,
  2040. "schema": {
  2041. "type": "string"
  2042. }
  2043. }
  2044. ],
  2045. "requestBody": {
  2046. "description": "The model for updating the description for an endpoint",
  2047. "content": {
  2048. "application/json": {
  2049. "schema": {
  2050. "$ref": "#/components/schemas/PrivateLinkUpdateEndpointInput"
  2051. }
  2052. }
  2053. }
  2054. },
  2055. "responses": {
  2056. "200": {
  2057. "description": "OK",
  2058. "content": {
  2059. "application/json": {
  2060. "schema": {
  2061. "$ref": "#/components/schemas/PrivateLinkEndpoint"
  2062. }
  2063. }
  2064. }
  2065. },
  2066. "400": {
  2067. "$ref": "#/components/responses/BadRequest"
  2068. },
  2069. "404": {
  2070. "$ref": "#/components/responses/NotFound"
  2071. },
  2072. "409": {
  2073. "$ref": "#/components/responses/Conflict"
  2074. },
  2075. "500": {
  2076. "$ref": "#/components/responses/ServerError"
  2077. }
  2078. }
  2079. },
  2080. "delete": {
  2081. "tags": [
  2082. "Private Link"
  2083. ],
  2084. "summary": "Reject an endpoint from the private link service",
  2085. "description": "Reject an endpoint from the private link service",
  2086. "operationId": "RejectEndpoint",
  2087. "parameters": [
  2088. {
  2089. "name": "clusterID",
  2090. "in": "path",
  2091. "description": "Database ID",
  2092. "required": true,
  2093. "schema": {
  2094. "type": "string",
  2095. "format": "uuid"
  2096. }
  2097. },
  2098. {
  2099. "name": "datacenterID",
  2100. "in": "path",
  2101. "description": "Datacenter ID from the Astra Portal. There is a unique Datacenter ID for each database region.",
  2102. "required": true,
  2103. "schema": {
  2104. "type": "string",
  2105. "format": "uuid"
  2106. }
  2107. },
  2108. {
  2109. "name": "endpointID",
  2110. "in": "path",
  2111. "description": "Endpoint ID",
  2112. "required": true,
  2113. "schema": {
  2114. "type": "string"
  2115. }
  2116. }
  2117. ],
  2118. "responses": {
  2119. "204": {
  2120. "description": "No Content"
  2121. },
  2122. "400": {
  2123. "$ref": "#/components/responses/BadRequest"
  2124. },
  2125. "404": {
  2126. "$ref": "#/components/responses/NotFound"
  2127. },
  2128. "500": {
  2129. "$ref": "#/components/responses/ServerError"
  2130. }
  2131. }
  2132. }
  2133. },
  2134. "/v2/organizations/customDomains": {
  2135. "get": {
  2136. "tags": [
  2137. "Private Link"
  2138. ],
  2139. "summary": "Return the list of custom domains used by an organization for access via one or more private links.",
  2140. "description": "Returns a list of custom domains used by an organization. The list contains those user defined domain names or domain name prefixes that are used as suffixes when accessing the databases in the various datacenters via private links.",
  2141. "operationId": "getCustomDomains",
  2142. "responses": {
  2143. "200": {
  2144. "description": "success fetching the current list of custom domains.",
  2145. "content": {
  2146. "application/json": {
  2147. "schema": {
  2148. "type": "array",
  2149. "items": {
  2150. "type": "string"
  2151. }
  2152. }
  2153. }
  2154. }
  2155. },
  2156. "400": {
  2157. "$ref": "#/components/responses/BadRequest"
  2158. },
  2159. "401": {
  2160. "$ref": "#/components/responses/Unauthorized"
  2161. },
  2162. "404": {
  2163. "$ref": "#/components/responses/NotFound"
  2164. },
  2165. "5XX": {
  2166. "$ref": "#/components/responses/ServerError"
  2167. }
  2168. }
  2169. },
  2170. "post": {
  2171. "tags": [
  2172. "Private Link"
  2173. ],
  2174. "summary": "Define a new set of custom domains for usage with private links.",
  2175. "description": "Sets a set of custom domains used by an organization. The input list should contain those user defined domain names or domain name prefixes that will be used as suffixes when accessing the databases in the various datacenters via private links.",
  2176. "operationId": "setCustomDomains",
  2177. "requestBody": {
  2178. "required": true,
  2179. "content": {
  2180. "application/json": {
  2181. "schema": {
  2182. "type": "array",
  2183. "items": {
  2184. "type": "string"
  2185. }
  2186. }
  2187. }
  2188. }
  2189. },
  2190. "responses": {
  2191. "202": {
  2192. "description": "successful operation"
  2193. },
  2194. "400": {
  2195. "$ref": "#/components/responses/BadRequest"
  2196. },
  2197. "401": {
  2198. "$ref": "#/components/responses/Unauthorized"
  2199. },
  2200. "404": {
  2201. "$ref": "#/components/responses/NotFound"
  2202. },
  2203. "5XX": {
  2204. "$ref": "#/components/responses/ServerError"
  2205. }
  2206. }
  2207. }
  2208. },
  2209. "/v2/access-lists": {
  2210. "get": {
  2211. "tags": [
  2212. "Access List"
  2213. ],
  2214. "summary": "Get all access lists for an organization",
  2215. "security": [
  2216. {
  2217. "BearerAuth": [
  2218. "accesslist-read"
  2219. ]
  2220. }
  2221. ],
  2222. "operationId": "GetAllAccessListsForOrganization",
  2223. "responses": {
  2224. "200": {
  2225. "description": "Access lists for an organization",
  2226. "content": {
  2227. "application/json": {
  2228. "schema": {
  2229. "type": "array",
  2230. "items": {
  2231. "$ref": "#/components/schemas/AccessListResponse"
  2232. }
  2233. }
  2234. }
  2235. }
  2236. },
  2237. "403": {
  2238. "$ref": "#/components/responses/Forbidden"
  2239. },
  2240. "404": {
  2241. "$ref": "#/components/responses/NotFound"
  2242. },
  2243. "500": {
  2244. "$ref": "#/components/responses/ServerError"
  2245. }
  2246. }
  2247. }
  2248. },
  2249. "/v2/databases/{databaseID}/access-list": {
  2250. "get": {
  2251. "tags": [
  2252. "Access List"
  2253. ],
  2254. "summary": "Get the access list for a database",
  2255. "security": [
  2256. {
  2257. "BearerAuth": [
  2258. "accesslist-read"
  2259. ]
  2260. }
  2261. ],
  2262. "operationId": "GetAccessListForDatabase",
  2263. "parameters": [
  2264. {
  2265. "$ref": "#/components/parameters/DatabaseIdParam"
  2266. }
  2267. ],
  2268. "responses": {
  2269. "200": {
  2270. "description": "Access list for a database",
  2271. "content": {
  2272. "application/json": {
  2273. "schema": {
  2274. "$ref": "#/components/schemas/AccessListResponse"
  2275. }
  2276. }
  2277. }
  2278. },
  2279. "400": {
  2280. "$ref": "#/components/responses/BadRequest"
  2281. },
  2282. "403": {
  2283. "$ref": "#/components/responses/Forbidden"
  2284. },
  2285. "404": {
  2286. "$ref": "#/components/responses/NotFound"
  2287. },
  2288. "500": {
  2289. "$ref": "#/components/responses/ServerError"
  2290. }
  2291. }
  2292. },
  2293. "put": {
  2294. "tags": [
  2295. "Access List"
  2296. ],
  2297. "summary": "Upsert the access list for a database. This endpoint replaces the entire access list with what is present in the request body.",
  2298. "security": [
  2299. {
  2300. "BearerAuth": [
  2301. "accesslist-write"
  2302. ]
  2303. }
  2304. ],
  2305. "operationId": "UpsertAccessListForDatabase",
  2306. "parameters": [
  2307. {
  2308. "$ref": "#/components/parameters/DatabaseIdParam"
  2309. }
  2310. ],
  2311. "requestBody": {
  2312. "content": {
  2313. "application/json": {
  2314. "schema": {
  2315. "$ref": "#/components/schemas/AccessListRequest"
  2316. }
  2317. }
  2318. }
  2319. },
  2320. "responses": {
  2321. "204": {
  2322. "$ref": "#/components/responses/NoContent"
  2323. },
  2324. "400": {
  2325. "$ref": "#/components/responses/BadRequest"
  2326. },
  2327. "403": {
  2328. "$ref": "#/components/responses/Forbidden"
  2329. },
  2330. "404": {
  2331. "$ref": "#/components/responses/NotFound"
  2332. },
  2333. "500": {
  2334. "$ref": "#/components/responses/ServerError"
  2335. }
  2336. }
  2337. },
  2338. "post": {
  2339. "tags": [
  2340. "Access List"
  2341. ],
  2342. "summary": "Add addresses to the access list for a database",
  2343. "security": [
  2344. {
  2345. "BearerAuth": [
  2346. "accesslist-write"
  2347. ]
  2348. }
  2349. ],
  2350. "operationId": "AddAddressesToAccessListForDatabase",
  2351. "parameters": [
  2352. {
  2353. "$ref": "#/components/parameters/DatabaseIdParam"
  2354. }
  2355. ],
  2356. "requestBody": {
  2357. "content": {
  2358. "application/json": {
  2359. "schema": {
  2360. "type": "array",
  2361. "items": {
  2362. "$ref": "#/components/schemas/AddressRequest"
  2363. }
  2364. }
  2365. }
  2366. }
  2367. },
  2368. "responses": {
  2369. "204": {
  2370. "$ref": "#/components/responses/NoContent"
  2371. },
  2372. "400": {
  2373. "$ref": "#/components/responses/BadRequest"
  2374. },
  2375. "403": {
  2376. "$ref": "#/components/responses/Forbidden"
  2377. },
  2378. "404": {
  2379. "$ref": "#/components/responses/NotFound"
  2380. },
  2381. "500": {
  2382. "$ref": "#/components/responses/ServerError"
  2383. }
  2384. }
  2385. },
  2386. "patch": {
  2387. "tags": [
  2388. "Access List"
  2389. ],
  2390. "summary": "Update the access list for a database. This endpoint updates existing fields in the access list if they exist",
  2391. "security": [
  2392. {
  2393. "BearerAuth": [
  2394. "accesslist-write"
  2395. ]
  2396. }
  2397. ],
  2398. "operationId": "UpdateAccessListForDatabase",
  2399. "parameters": [
  2400. {
  2401. "$ref": "#/components/parameters/DatabaseIdParam"
  2402. }
  2403. ],
  2404. "requestBody": {
  2405. "content": {
  2406. "application/json": {
  2407. "schema": {
  2408. "$ref": "#/components/schemas/AccessListRequest"
  2409. }
  2410. }
  2411. }
  2412. },
  2413. "responses": {
  2414. "204": {
  2415. "$ref": "#/components/responses/NoContent"
  2416. },
  2417. "400": {
  2418. "$ref": "#/components/responses/BadRequest"
  2419. },
  2420. "403": {
  2421. "$ref": "#/components/responses/Forbidden"
  2422. },
  2423. "404": {
  2424. "$ref": "#/components/responses/NotFound"
  2425. },
  2426. "500": {
  2427. "$ref": "#/components/responses/ServerError"
  2428. }
  2429. }
  2430. },
  2431. "delete": {
  2432. "tags": [
  2433. "Access List"
  2434. ],
  2435. "summary": "Delete a list of addresses or the access list for a database. If the addresses query parameter is not present it will delete the entire access list. If the addresses query parameter is present it will delete only the given addresses from the access list",
  2436. "security": [
  2437. {
  2438. "BearerAuth": [
  2439. "accesslist-write"
  2440. ]
  2441. }
  2442. ],
  2443. "operationId": "DeleteAddressesOrAccessListForDatabase",
  2444. "parameters": [
  2445. {
  2446. "$ref": "#/components/parameters/DatabaseIdParam"
  2447. },
  2448. {
  2449. "$ref": "#/components/parameters/AddressesQueryParam"
  2450. }
  2451. ],
  2452. "responses": {
  2453. "204": {
  2454. "$ref": "#/components/responses/NoContent"
  2455. },
  2456. "403": {
  2457. "$ref": "#/components/responses/Forbidden"
  2458. },
  2459. "404": {
  2460. "$ref": "#/components/responses/NotFound"
  2461. },
  2462. "500": {
  2463. "$ref": "#/components/responses/ServerError"
  2464. }
  2465. }
  2466. }
  2467. },
  2468. "/v2/access-list/validate": {
  2469. "post": {
  2470. "tags": [
  2471. "Access List"
  2472. ],
  2473. "summary": "Validate the structure of an access list",
  2474. "operationId": "ValidateAccessList",
  2475. "responses": {
  2476. "200": {
  2477. "description": "Access lists for an organization",
  2478. "content": {
  2479. "application/json": {
  2480. "schema": {
  2481. "$ref": "#/components/schemas/ValidationResponse"
  2482. }
  2483. }
  2484. }
  2485. },
  2486. "500": {
  2487. "$ref": "#/components/responses/ServerError"
  2488. }
  2489. }
  2490. }
  2491. },
  2492. "/v2/access-list/template": {
  2493. "post": {
  2494. "tags": [
  2495. "Access List"
  2496. ],
  2497. "summary": "Get a template of an access list",
  2498. "operationId": "GetAccessListTemplate",
  2499. "responses": {
  2500. "200": {
  2501. "description": "Access lists for an organization",
  2502. "content": {
  2503. "application/json": {
  2504. "schema": {
  2505. "$ref": "#/components/schemas/AccessListRequest"
  2506. }
  2507. }
  2508. }
  2509. },
  2510. "500": {
  2511. "$ref": "#/components/responses/ServerError"
  2512. }
  2513. }
  2514. }
  2515. },
  2516. "/v2/currentOrg": {
  2517. "get": {
  2518. "tags": [
  2519. "Organization Operations"
  2520. ],
  2521. "summary": "Get the current organization from the passed token",
  2522. "description": "Retrieve the details for the organization in the provided token",
  2523. "operationId": "getCurrentOrganization",
  2524. "responses": {
  2525. "200": {
  2526. "description": "successful operation",
  2527. "content": {
  2528. "application/json": {
  2529. "schema": {
  2530. "items": {
  2531. "$ref": "#/components/schemas/Organization"
  2532. }
  2533. }
  2534. }
  2535. }
  2536. },
  2537. "400": {
  2538. "$ref": "#/components/responses/BadRequest"
  2539. },
  2540. "403": {
  2541. "$ref": "#/components/responses/Forbidden"
  2542. },
  2543. "404": {
  2544. "$ref": "#/components/responses/NotFound"
  2545. },
  2546. "500": {
  2547. "$ref": "#/components/responses/ServerError"
  2548. }
  2549. }
  2550. }
  2551. },
  2552. "/v2/organizations/{orgID}/telemetry/auditLogs": {
  2553. "post": {
  2554. "tags": [
  2555. "Organization Operations"
  2556. ],
  2557. "summary": "Configure Audit Logging",
  2558. "description": "Enables audit log exporting to an external system.",
  2559. "security": [
  2560. {
  2561. "BearerAuth": [
  2562. "telemetry"
  2563. ]
  2564. }
  2565. ],
  2566. "operationId": "configureTelemetry",
  2567. "parameters": [
  2568. {
  2569. "$ref": "#/components/parameters/OrgIdParam"
  2570. }
  2571. ],
  2572. "requestBody": {
  2573. "content": {
  2574. "application/json": {
  2575. "schema": {
  2576. "anyOf": [
  2577. {
  2578. "$ref": "#/components/schemas/PulsarTelemetryRequest"
  2579. }
  2580. ]
  2581. }
  2582. }
  2583. }
  2584. },
  2585. "responses": {
  2586. "202": {
  2587. "$ref": "#/components/responses/Accepted"
  2588. },
  2589. "400": {
  2590. "$ref": "#/components/responses/BadRequest"
  2591. },
  2592. "401": {
  2593. "$ref": "#/components/responses/Unauthorized"
  2594. },
  2595. "403": {
  2596. "$ref": "#/components/responses/Forbidden"
  2597. },
  2598. "404": {
  2599. "$ref": "#/components/responses/NotFound"
  2600. },
  2601. "409": {
  2602. "$ref": "#/components/responses/Conflict"
  2603. },
  2604. "5XX": {
  2605. "$ref": "#/components/responses/ServerError"
  2606. }
  2607. }
  2608. },
  2609. "get": {
  2610. "tags": [
  2611. "Organization Operations"
  2612. ],
  2613. "summary": "Retrieve Remote Audit Log configuration",
  2614. "description": "Get the current Audit Log configuration for the organization",
  2615. "operationId": "getTelemetryConfig",
  2616. "parameters": [
  2617. {
  2618. "$ref": "#/components/parameters/OrgIdParam"
  2619. }
  2620. ],
  2621. "responses": {
  2622. "200": {
  2623. "description": "The current stored Remote Audit Log configuration for this organization",
  2624. "content": {
  2625. "application/json": {
  2626. "schema": {
  2627. "anyOf": [
  2628. {
  2629. "$ref": "#/components/schemas/PulsarTelemetryRequest"
  2630. }
  2631. ]
  2632. }
  2633. }
  2634. }
  2635. },
  2636. "400": {
  2637. "$ref": "#/components/responses/BadRequest"
  2638. },
  2639. "401": {
  2640. "$ref": "#/components/responses/Unauthorized"
  2641. },
  2642. "403": {
  2643. "$ref": "#/components/responses/Forbidden"
  2644. },
  2645. "404": {
  2646. "$ref": "#/components/responses/NotFound"
  2647. },
  2648. "409": {
  2649. "$ref": "#/components/responses/Conflict"
  2650. },
  2651. "5XX": {
  2652. "$ref": "#/components/responses/ServerError"
  2653. }
  2654. }
  2655. }
  2656. },
  2657. "/v2/kms": {
  2658. "post": {
  2659. "tags": [
  2660. "Customer Keys"
  2661. ],
  2662. "summary": "Creates a new Customer Key used for serverless database encryption for an organization",
  2663. "description": "A service to create a new Customer Key registration used for serverless database encryption in an organization.",
  2664. "operationId": "CreateServerlessKey",
  2665. "requestBody": {
  2666. "description": "KMS details that need to be created.",
  2667. "content": {
  2668. "application/json": {
  2669. "schema": {
  2670. "$ref": "#/components/schemas/ExternalKMS"
  2671. }
  2672. }
  2673. }
  2674. },
  2675. "responses": {
  2676. "200": {
  2677. "description": "OK"
  2678. },
  2679. "400": {
  2680. "$ref": "#/components/responses/BadRequest"
  2681. },
  2682. "403": {
  2683. "$ref": "#/components/responses/Forbidden"
  2684. },
  2685. "404": {
  2686. "$ref": "#/components/responses/NotFound"
  2687. },
  2688. "500": {
  2689. "$ref": "#/components/responses/ServerError"
  2690. }
  2691. }
  2692. },
  2693. "get": {
  2694. "tags": [
  2695. "Customer Keys"
  2696. ],
  2697. "summary": "Retrieves all Serverless keys in an organization",
  2698. "description": "A service to retrieve the existing Customer Keys of an organization.",
  2699. "operationId": "ListServerlessKeys",
  2700. "responses": {
  2701. "200": {
  2702. "description": "OK",
  2703. "content": {
  2704. "application/json": {
  2705. "schema": {
  2706. "$ref": "#/components/schemas/GetAllCustomerKeys"
  2707. }
  2708. }
  2709. }
  2710. },
  2711. "400": {
  2712. "$ref": "#/components/responses/BadRequest"
  2713. },
  2714. "403": {
  2715. "$ref": "#/components/responses/Forbidden"
  2716. },
  2717. "404": {
  2718. "$ref": "#/components/responses/NotFound"
  2719. },
  2720. "500": {
  2721. "$ref": "#/components/responses/ServerError"
  2722. }
  2723. }
  2724. }
  2725. },
  2726. "/v2/kms/serverless": {
  2727. "$ref": "#/paths/~1v2~1kms"
  2728. },
  2729. "/v2/kms/classic": {
  2730. "post": {
  2731. "tags": [
  2732. "Customer Keys"
  2733. ],
  2734. "summary": "Creates a new Customer Key used for classic database encryption for an organization",
  2735. "description": "A service to create a new Customer Key registration used for classic database encryption in an organization.",
  2736. "operationId": "CreateClassicKey",
  2737. "requestBody": {
  2738. "description": "KMS details that need to be created.",
  2739. "content": {
  2740. "application/json": {
  2741. "schema": {
  2742. "$ref": "#/components/schemas/ExternalKMS"
  2743. }
  2744. }
  2745. }
  2746. },
  2747. "responses": {
  2748. "200": {
  2749. "description": "OK"
  2750. },
  2751. "400": {
  2752. "$ref": "#/components/responses/BadRequest"
  2753. },
  2754. "403": {
  2755. "$ref": "#/components/responses/Forbidden"
  2756. },
  2757. "404": {
  2758. "$ref": "#/components/responses/NotFound"
  2759. },
  2760. "500": {
  2761. "$ref": "#/components/responses/ServerError"
  2762. }
  2763. }
  2764. },
  2765. "get": {
  2766. "tags": [
  2767. "Customer Keys"
  2768. ],
  2769. "summary": "Retrieves all Classic keys in an organization",
  2770. "description": "A service to retrieve the existing Customer Keys of an organization.",
  2771. "operationId": "ListClassicKeys",
  2772. "responses": {
  2773. "200": {
  2774. "description": "OK",
  2775. "content": {
  2776. "application/json": {
  2777. "schema": {
  2778. "$ref": "#/components/schemas/GetAllCustomerKeys"
  2779. }
  2780. }
  2781. }
  2782. },
  2783. "400": {
  2784. "$ref": "#/components/responses/BadRequest"
  2785. },
  2786. "403": {
  2787. "$ref": "#/components/responses/Forbidden"
  2788. },
  2789. "404": {
  2790. "$ref": "#/components/responses/NotFound"
  2791. },
  2792. "500": {
  2793. "$ref": "#/components/responses/ServerError"
  2794. }
  2795. }
  2796. }
  2797. },
  2798. "/v2/kms/provider/{provider}/region/{region}": {
  2799. "get": {
  2800. "tags": [
  2801. "Customer Keys"
  2802. ],
  2803. "summary": "Retrieves a Serverless Customer Key in an organization",
  2804. "description": "Retrieves a Serverless Customer Key in an organization for a given cloud-provider & region combination.",
  2805. "operationId": "GetServerlessKey",
  2806. "parameters": [
  2807. {
  2808. "in": "path",
  2809. "name": "provider",
  2810. "description": "The name of the provider, such as: aws.",
  2811. "required": true,
  2812. "schema": {
  2813. "type": "string"
  2814. }
  2815. },
  2816. {
  2817. "in": "path",
  2818. "name": "region",
  2819. "description": "The region in which the key exists.",
  2820. "required": true,
  2821. "schema": {
  2822. "type": "string"
  2823. }
  2824. }
  2825. ],
  2826. "responses": {
  2827. "200": {
  2828. "description": "OK",
  2829. "content": {
  2830. "application/json": {
  2831. "schema": {
  2832. "$ref": "#/components/schemas/GetParticularCustomerKey"
  2833. }
  2834. }
  2835. }
  2836. },
  2837. "400": {
  2838. "$ref": "#/components/responses/BadRequest"
  2839. },
  2840. "403": {
  2841. "$ref": "#/components/responses/Forbidden"
  2842. },
  2843. "404": {
  2844. "$ref": "#/components/responses/NotFound"
  2845. },
  2846. "500": {
  2847. "$ref": "#/components/responses/ServerError"
  2848. }
  2849. }
  2850. }
  2851. },
  2852. "/v2/kms/serverless/provider/{provider}/region/{region}": {
  2853. "$ref": "#/paths/~1v2~1kms~1provider~1%7Bprovider%7D~1region~1%7Bregion%7D"
  2854. },
  2855. "/v2/kms/classic/provider/{provider}/region/{region}": {
  2856. "get": {
  2857. "tags": [
  2858. "Customer Keys"
  2859. ],
  2860. "summary": "Retrieves a Classic Customer Key in an organization",
  2861. "description": "Retrieves a Classic Customer Key in an organization for a given cloud-provider & region combination.",
  2862. "operationId": "GetClassicKey",
  2863. "parameters": [
  2864. {
  2865. "in": "path",
  2866. "name": "provider",
  2867. "description": "The name of the provider, such as: aws.",
  2868. "required": true,
  2869. "schema": {
  2870. "type": "string"
  2871. }
  2872. },
  2873. {
  2874. "in": "path",
  2875. "name": "region",
  2876. "description": "The region in which the key exists.",
  2877. "required": true,
  2878. "schema": {
  2879. "type": "string"
  2880. }
  2881. }
  2882. ],
  2883. "responses": {
  2884. "200": {
  2885. "description": "OK",
  2886. "content": {
  2887. "application/json": {
  2888. "schema": {
  2889. "$ref": "#/components/schemas/GetParticularCustomerKey"
  2890. }
  2891. }
  2892. }
  2893. },
  2894. "400": {
  2895. "$ref": "#/components/responses/BadRequest"
  2896. },
  2897. "403": {
  2898. "$ref": "#/components/responses/Forbidden"
  2899. },
  2900. "404": {
  2901. "$ref": "#/components/responses/NotFound"
  2902. },
  2903. "500": {
  2904. "$ref": "#/components/responses/ServerError"
  2905. }
  2906. }
  2907. }
  2908. },
  2909. "/v2/kms/provider/{provider}/region/{region}/accounts": {
  2910. "get": {
  2911. "tags": [
  2912. "Customer Keys"
  2913. ],
  2914. "summary": "Retrieves an array of Serverless Storage Cloud provider accounts",
  2915. "description": "Retrieves an array of Cloud provider accounts for a given cloud-provider & region combination to which customers need to grant their KMS keys access to for serverless keys.",
  2916. "operationId": "GetServerlessCloudAccounts",
  2917. "parameters": [
  2918. {
  2919. "in": "path",
  2920. "name": "provider",
  2921. "description": "The name of the provider, such as: aws.",
  2922. "required": true,
  2923. "schema": {
  2924. "type": "string"
  2925. }
  2926. },
  2927. {
  2928. "in": "path",
  2929. "name": "region",
  2930. "description": "The region in which the key exists.",
  2931. "required": true,
  2932. "schema": {
  2933. "type": "string"
  2934. }
  2935. }
  2936. ],
  2937. "responses": {
  2938. "200": {
  2939. "description": "OK",
  2940. "content": {
  2941. "application/json": {
  2942. "schema": {
  2943. "$ref": "#/components/schemas/GetCloudProviderAccounts"
  2944. }
  2945. }
  2946. }
  2947. },
  2948. "400": {
  2949. "$ref": "#/components/responses/BadRequest"
  2950. },
  2951. "403": {
  2952. "$ref": "#/components/responses/Forbidden"
  2953. },
  2954. "404": {
  2955. "$ref": "#/components/responses/NotFound"
  2956. },
  2957. "500": {
  2958. "$ref": "#/components/responses/ServerError"
  2959. }
  2960. }
  2961. }
  2962. },
  2963. "/v2/kms/serverless/provider/{provider}/region/{region}/accounts": {
  2964. "$ref": "#/paths/~1v2~1kms~1provider~1%7Bprovider%7D~1region~1%7Bregion%7D~1accounts"
  2965. },
  2966. "/v2/kms/classic/provider/{provider}/region/{region}/accounts": {
  2967. "get": {
  2968. "tags": [
  2969. "Customer Keys"
  2970. ],
  2971. "summary": "Retrieves an array of Classic Cloud provider accounts",
  2972. "description": "Retrieves an array of Cloud provider accounts for a given cloud-provider & region combination to which customers need to grant their KMS keys access to for Classic keys.",
  2973. "operationId": "GetClassicCloudAccounts",
  2974. "parameters": [
  2975. {
  2976. "in": "path",
  2977. "name": "provider",
  2978. "description": "The name of the provider, such as: aws.",
  2979. "required": true,
  2980. "schema": {
  2981. "type": "string"
  2982. }
  2983. },
  2984. {
  2985. "in": "path",
  2986. "name": "region",
  2987. "description": "The region in which the key exists.",
  2988. "required": true,
  2989. "schema": {
  2990. "type": "string"
  2991. }
  2992. }
  2993. ],
  2994. "responses": {
  2995. "200": {
  2996. "description": "OK",
  2997. "content": {
  2998. "application/json": {
  2999. "schema": {
  3000. "$ref": "#/components/schemas/GetCloudProviderAccounts"
  3001. }
  3002. }
  3003. }
  3004. },
  3005. "400": {
  3006. "$ref": "#/components/responses/BadRequest"
  3007. },
  3008. "403": {
  3009. "$ref": "#/components/responses/Forbidden"
  3010. },
  3011. "404": {
  3012. "$ref": "#/components/responses/NotFound"
  3013. },
  3014. "500": {
  3015. "$ref": "#/components/responses/ServerError"
  3016. }
  3017. }
  3018. }
  3019. },
  3020. "/v2/peering/provider/{provider}/database/{databaseID}": {
  3021. "get": {
  3022. "tags": [
  3023. "VPC Peering"
  3024. ],
  3025. "summary": "Retrieves VPC peering connection information for an Astra database in a given cloud provider",
  3026. "description": "Retrieves VPC peering connection details (if any exist) for Astra database",
  3027. "operationId": "GetVPCPeeringConnectionDetails",
  3028. "security": [
  3029. {
  3030. "BearerAuth": [
  3031. "org-db-readpeering",
  3032. "org-db-addpeering"
  3033. ]
  3034. }
  3035. ],
  3036. "parameters": [
  3037. {
  3038. "in": "path",
  3039. "name": "provider",
  3040. "description": "The name of the provider, such as 'aws', 'azure' or 'gcp'",
  3041. "required": true,
  3042. "schema": {
  3043. "type": "string",
  3044. "enum": [
  3045. "aws",
  3046. "azure",
  3047. "gcp"
  3048. ]
  3049. }
  3050. },
  3051. {
  3052. "in": "path",
  3053. "name": "databaseID",
  3054. "description": "The ID for the database",
  3055. "required": true,
  3056. "schema": {
  3057. "type": "string"
  3058. }
  3059. }
  3060. ],
  3061. "responses": {
  3062. "200": {
  3063. "description": "OK",
  3064. "content": {
  3065. "application/json": {
  3066. "schema": {
  3067. "$ref": "#/components/schemas/VPCConnection"
  3068. }
  3069. }
  3070. }
  3071. },
  3072. "403": {
  3073. "$ref": "#/components/responses/Forbidden"
  3074. },
  3075. "404": {
  3076. "$ref": "#/components/responses/NotFound"
  3077. },
  3078. "500": {
  3079. "$ref": "#/components/responses/ServerError"
  3080. }
  3081. }
  3082. },
  3083. "post": {
  3084. "tags": [
  3085. "VPC Peering"
  3086. ],
  3087. "summary": "Creates a VPC peering connection",
  3088. "description": "Creates a VPC peering connection between an Astra database's VPC and the VPC provided",
  3089. "operationId": "CreateVPCPeeringConnection",
  3090. "security": [
  3091. {
  3092. "BearerAuth": [
  3093. "org-db-addpeering"
  3094. ]
  3095. }
  3096. ],
  3097. "parameters": [
  3098. {
  3099. "in": "path",
  3100. "name": "provider",
  3101. "description": "The name of the provider, such as 'aws', 'azure' or 'gcp'",
  3102. "required": true,
  3103. "schema": {
  3104. "type": "string",
  3105. "enum": [
  3106. "aws",
  3107. "azure",
  3108. "gcp"
  3109. ]
  3110. }
  3111. },
  3112. {
  3113. "in": "path",
  3114. "name": "databaseID",
  3115. "description": "The ID for the database",
  3116. "required": true,
  3117. "schema": {
  3118. "type": "string"
  3119. }
  3120. }
  3121. ],
  3122. "requestBody": {
  3123. "content": {
  3124. "application/json": {
  3125. "schema": {
  3126. "oneOf": [
  3127. {
  3128. "$ref": "#/components/schemas/AzureVPC"
  3129. },
  3130. {
  3131. "$ref": "#/components/schemas/AmazonVPC"
  3132. },
  3133. {
  3134. "$ref": "#/components/schemas/GoogleVPC"
  3135. }
  3136. ]
  3137. }
  3138. }
  3139. }
  3140. },
  3141. "responses": {
  3142. "201": {
  3143. "description": "Created",
  3144. "content": {
  3145. "application/json": {
  3146. "schema": {
  3147. "$ref": "#/components/schemas/VPCConnection"
  3148. }
  3149. }
  3150. }
  3151. },
  3152. "403": {
  3153. "$ref": "#/components/responses/Forbidden"
  3154. },
  3155. "404": {
  3156. "$ref": "#/components/responses/NotFound"
  3157. },
  3158. "500": {
  3159. "$ref": "#/components/responses/ServerError"
  3160. }
  3161. }
  3162. },
  3163. "delete": {
  3164. "tags": [
  3165. "VPC Peering"
  3166. ],
  3167. "summary": "Deletes an existing VPC peering connection",
  3168. "description": "Deletes a VPC peering connection for an Astra database on the given cloud provider",
  3169. "operationId": "DeleteVPCPeeringConnection",
  3170. "security": [
  3171. {
  3172. "BearerAuth": [
  3173. "org-db-addpeering"
  3174. ]
  3175. }
  3176. ],
  3177. "parameters": [
  3178. {
  3179. "in": "path",
  3180. "name": "provider",
  3181. "description": "The name of the provider, such as 'aws', 'azure' or 'gcp'",
  3182. "required": true,
  3183. "schema": {
  3184. "type": "string",
  3185. "enum": [
  3186. "aws",
  3187. "azure",
  3188. "gcp"
  3189. ]
  3190. }
  3191. },
  3192. {
  3193. "in": "path",
  3194. "name": "databaseID",
  3195. "description": "The ID for the database",
  3196. "required": true,
  3197. "schema": {
  3198. "type": "string"
  3199. }
  3200. }
  3201. ],
  3202. "responses": {
  3203. "204": {
  3204. "$ref": "#/components/responses/NoContent"
  3205. },
  3206. "403": {
  3207. "$ref": "#/components/responses/Forbidden"
  3208. },
  3209. "404": {
  3210. "$ref": "#/components/responses/NotFound"
  3211. },
  3212. "500": {
  3213. "$ref": "#/components/responses/ServerError"
  3214. }
  3215. }
  3216. }
  3217. },
  3218. "/v2/databases/{databaseID}/migrations/initialize": {
  3219. "post": {
  3220. "summary": "initialize a new migration",
  3221. "description": "Initialize a new SSTables based migration.",
  3222. "operationId": "initializeMigration",
  3223. "parameters": [
  3224. {
  3225. "$ref": "#/components/parameters/DatabaseIdParam"
  3226. },
  3227. {
  3228. "in": "query",
  3229. "name": "concurrency",
  3230. "description": "Sets the desired concurrency for the import.",
  3231. "required": false,
  3232. "schema": {
  3233. "type": "string"
  3234. }
  3235. },
  3236. {
  3237. "in": "query",
  3238. "name": "targetSubsetSizeGB",
  3239. "description": "Sets the target subset size for the import.",
  3240. "required": false,
  3241. "schema": {
  3242. "type": "string"
  3243. }
  3244. }
  3245. ],
  3246. "responses": {
  3247. "200": {
  3248. "description": "SSTables based migration initialization started.",
  3249. "content": {
  3250. "application/json": {
  3251. "schema": {
  3252. "$ref": "#/components/schemas/MigrationStatus"
  3253. }
  3254. }
  3255. }
  3256. },
  3257. "401": {
  3258. "$ref": "#/components/responses/Unauthorized"
  3259. },
  3260. "403": {
  3261. "$ref": "#/components/responses/Forbidden"
  3262. },
  3263. "500": {
  3264. "$ref": "#/components/responses/ServerError"
  3265. }
  3266. }
  3267. }
  3268. },
  3269. "/v2/databases/{databaseID}/migrations/{migrationID}/launch": {
  3270. "post": {
  3271. "summary": "launch a migration",
  3272. "description": "Launch an SSTables based migration.",
  3273. "operationId": "launchMigration",
  3274. "parameters": [
  3275. {
  3276. "$ref": "#/components/parameters/DatabaseIdParam"
  3277. },
  3278. {
  3279. "in": "path",
  3280. "name": "migrationID",
  3281. "required": true,
  3282. "description": "String representation of the active migration ID",
  3283. "schema": {
  3284. "type": "string"
  3285. }
  3286. }
  3287. ],
  3288. "responses": {
  3289. "200": {
  3290. "description": "SSTables based migration launched.",
  3291. "content": {
  3292. "application/json": {
  3293. "schema": {
  3294. "$ref": "#/components/schemas/MigrationStatus"
  3295. }
  3296. }
  3297. }
  3298. },
  3299. "400": {
  3300. "$ref": "#/components/responses/BadRequest"
  3301. },
  3302. "401": {
  3303. "$ref": "#/components/responses/Unauthorized"
  3304. },
  3305. "403": {
  3306. "$ref": "#/components/responses/Forbidden"
  3307. },
  3308. "404": {
  3309. "$ref": "#/components/responses/NotFound"
  3310. },
  3311. "409": {
  3312. "$ref": "#/components/responses/Conflict"
  3313. },
  3314. "500": {
  3315. "$ref": "#/components/responses/ServerError"
  3316. }
  3317. }
  3318. }
  3319. },
  3320. "/v2/databases/{databaseID}/migrations/{migrationID}": {
  3321. "get": {
  3322. "summary": "get migration status",
  3323. "description": "Get status information about an SSTables based migration.",
  3324. "operationId": "getMigrationStatus",
  3325. "parameters": [
  3326. {
  3327. "$ref": "#/components/parameters/DatabaseIdParam"
  3328. },
  3329. {
  3330. "in": "path",
  3331. "name": "migrationID",
  3332. "required": true,
  3333. "description": "String representation of the active migration ID",
  3334. "schema": {
  3335. "type": "string"
  3336. }
  3337. }
  3338. ],
  3339. "responses": {
  3340. "200": {
  3341. "description": "Successfully received status of an SSTables based migration.",
  3342. "content": {
  3343. "application/json": {
  3344. "schema": {
  3345. "$ref": "#/components/schemas/MigrationStatus"
  3346. }
  3347. }
  3348. }
  3349. },
  3350. "400": {
  3351. "$ref": "#/components/responses/BadRequest"
  3352. },
  3353. "401": {
  3354. "$ref": "#/components/responses/Unauthorized"
  3355. },
  3356. "403": {
  3357. "$ref": "#/components/responses/Forbidden"
  3358. },
  3359. "404": {
  3360. "$ref": "#/components/responses/NotFound"
  3361. },
  3362. "500": {
  3363. "$ref": "#/components/responses/ServerError"
  3364. }
  3365. }
  3366. }
  3367. }
  3368. },
  3369. "servers": [
  3370. {
  3371. "url": "https://api.astra.datastax.com/"
  3372. }
  3373. ],
  3374. "components": {
  3375. "parameters": {
  3376. "DatabaseIdParam": {
  3377. "in": "path",
  3378. "name": "databaseID",
  3379. "required": true,
  3380. "description": "String representation of the database ID",
  3381. "schema": {
  3382. "type": "string"
  3383. }
  3384. },
  3385. "OrgIdParam": {
  3386. "in": "path",
  3387. "name": "orgID",
  3388. "required": true,
  3389. "description": "String representation of the organization ID",
  3390. "schema": {
  3391. "type": "string"
  3392. }
  3393. },
  3394. "DatacenterIdParam": {
  3395. "in": "path",
  3396. "name": "datacenterID",
  3397. "required": true,
  3398. "description": "String representation of the datacenter ID",
  3399. "schema": {
  3400. "type": "string"
  3401. }
  3402. },
  3403. "TagNameParam": {
  3404. "in": "path",
  3405. "name": "tagName",
  3406. "required": true,
  3407. "description": "Name of database tag",
  3408. "schema": {
  3409. "type": "string"
  3410. }
  3411. },
  3412. "KeyspaceNameParam": {
  3413. "in": "path",
  3414. "name": "keyspaceName",
  3415. "required": true,
  3416. "description": "Name of database keyspace",
  3417. "schema": {
  3418. "type": "string"
  3419. }
  3420. },
  3421. "ClientIdParam": {
  3422. "in": "path",
  3423. "name": "clientId",
  3424. "required": true,
  3425. "schema": {
  3426. "type": "string"
  3427. },
  3428. "description": "clientID to revoke token for"
  3429. },
  3430. "RoleIdParam": {
  3431. "in": "path",
  3432. "name": "roleID",
  3433. "required": true,
  3434. "schema": {
  3435. "type": "string"
  3436. },
  3437. "description": "id for the role"
  3438. },
  3439. "UserIdParam": {
  3440. "in": "path",
  3441. "name": "userID",
  3442. "required": true,
  3443. "schema": {
  3444. "type": "string"
  3445. },
  3446. "description": "id for the user"
  3447. },
  3448. "AddressesQueryParam": {
  3449. "in": "query",
  3450. "name": "addresses",
  3451. "required": false,
  3452. "schema": {
  3453. "type": "array",
  3454. "items": {
  3455. "type": "string"
  3456. }
  3457. },
  3458. "description": "Array of addresses"
  3459. },
  3460. "AllDatacentersParam": {
  3461. "in": "query",
  3462. "name": "all",
  3463. "required": false,
  3464. "schema": {
  3465. "type": "boolean",
  3466. "default": false
  3467. },
  3468. "description": "Optional parameter to obtain secure-connect-*.zip for multiple Datacenters"
  3469. },
  3470. "RegionTypeQueryParam": {
  3471. "in": "query",
  3472. "name": "region-type",
  3473. "required": false,
  3474. "schema": {
  3475. "type": "string",
  3476. "default": ""
  3477. },
  3478. "description": "Region type query parameter to retrieve regions supporting serverless and/or vector dbs. By default this API only returns serverless db regions for backward compatibility. To retrieve vector supported regions please pass query parameter region-type=vector. Valid values for this parameter are empty region-type query parameter (default behavior to retrieve serverless regions), all (to retrieve both vector and serverless regions) and vector (to retrieve vector regions). Any invalid value will be ignored and API will show the default behavior i.e. return serverless regions only."
  3479. }
  3480. },
  3481. "schemas": {
  3482. "UserInvite": {
  3483. "type": "object",
  3484. "description": "The userInvite model",
  3485. "required": [
  3486. "email",
  3487. "orgID",
  3488. "roles"
  3489. ],
  3490. "properties": {
  3491. "email": {
  3492. "type": "string",
  3493. "description": "The email of the user being invited"
  3494. },
  3495. "orgID": {
  3496. "type": "string",
  3497. "description": "The unique system generated identifier of the organization"
  3498. },
  3499. "roles": {
  3500. "type": "array",
  3501. "items": {
  3502. "type": "string"
  3503. }
  3504. }
  3505. }
  3506. },
  3507. "OrganizationUsers": {
  3508. "type": "object",
  3509. "required": [
  3510. "orgID",
  3511. "orgName",
  3512. "users"
  3513. ],
  3514. "properties": {
  3515. "orgID": {
  3516. "type": "string"
  3517. },
  3518. "orgName": {
  3519. "type": "string"
  3520. },
  3521. "users": {
  3522. "type": "array",
  3523. "description": "an array of users in the organization",
  3524. "items": {
  3525. "$ref": "#/components/schemas/UserResponse"
  3526. }
  3527. }
  3528. }
  3529. },
  3530. "UserResponse": {
  3531. "type": "object",
  3532. "required": [
  3533. "userID"
  3534. ],
  3535. "properties": {
  3536. "userID": {
  3537. "type": "string",
  3538. "example": "3476f3bb-10df-4d2f-ac2b-f05c65676724"
  3539. },
  3540. "email": {
  3541. "type": "string",
  3542. "example": "joe@datastax.com"
  3543. },
  3544. "status": {
  3545. "type": "string",
  3546. "description": "The status of a user within an organization either active or invited",
  3547. "example": "active"
  3548. },
  3549. "roles": {
  3550. "type": "array",
  3551. "description": "an array of roles the user belongs to for an organization",
  3552. "items": {
  3553. "$ref": "#/components/schemas/Role"
  3554. }
  3555. }
  3556. }
  3557. },
  3558. "ServiceAccountTokenResponse": {
  3559. "type": "object",
  3560. "properties": {
  3561. "token": {
  3562. "type": "string",
  3563. "description": "JWT that will be used as Authorization header on all requests requiring authentication.",
  3564. "example": "Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDA..."
  3565. }
  3566. }
  3567. },
  3568. "ServiceAccountTokenInput": {
  3569. "type": "object",
  3570. "required": [
  3571. "clientName",
  3572. "clientId",
  3573. "clientSecret"
  3574. ],
  3575. "properties": {
  3576. "clientName": {
  3577. "type": "string",
  3578. "description": "The organization name in a more human readable format",
  3579. "example": "Binford Tools"
  3580. },
  3581. "clientId": {
  3582. "type": "string",
  3583. "description": "The unique identifier for the client for authentication",
  3584. "example": "binford"
  3585. },
  3586. "clientSecret": {
  3587. "type": "string",
  3588. "description": "The UUID client secret for the service account from the create service account response in the user interface",
  3589. "format": "uuid",
  3590. "example": "00b03a37-209c-462a-971b-be35ab3321de"
  3591. }
  3592. }
  3593. },
  3594. "StatusEnum": {
  3595. "type": "string",
  3596. "enum": [
  3597. "ACTIVE",
  3598. "PENDING",
  3599. "PREPARING",
  3600. "PREPARED",
  3601. "INITIALIZING",
  3602. "PARKED",
  3603. "PARKING",
  3604. "UNPARKING",
  3605. "TERMINATED",
  3606. "TERMINATING",
  3607. "RESIZING",
  3608. "ERROR",
  3609. "MAINTENANCE",
  3610. "SUSPENDED",
  3611. "UNKNOWN"
  3612. ],
  3613. "example": "ACTIVE"
  3614. },
  3615. "Database": {
  3616. "type": "object",
  3617. "description": "Database contains the key information about a database",
  3618. "required": [
  3619. "id",
  3620. "orgId",
  3621. "ownerId",
  3622. "info",
  3623. "status"
  3624. ],
  3625. "properties": {
  3626. "id": {
  3627. "type": "string",
  3628. "example": "1234-5678-91011121-3141"
  3629. },
  3630. "orgId": {
  3631. "type": "string",
  3632. "example": "organizations/7142-1283-54249566-3707"
  3633. },
  3634. "ownerId": {
  3635. "type": "string",
  3636. "example": "users/8243-2404-85664728-0889"
  3637. },
  3638. "info": {
  3639. "$ref": "#/components/schemas/DatabaseInfo"
  3640. },
  3641. "creationTime": {
  3642. "type": "string",
  3643. "description": "CreationTime in ISO RFC3339 format",
  3644. "example": "2012-11-01T22:08:41+00:00"
  3645. },
  3646. "terminationTime": {
  3647. "type": "string",
  3648. "description": "TerminationTime in ISO RFC3339 format",
  3649. "example": "2019-11-01T22:08:41+00:00"
  3650. },
  3651. "status": {
  3652. "$ref": "#/components/schemas/StatusEnum"
  3653. },
  3654. "storage": {
  3655. "$ref": "#/components/schemas/Storage"
  3656. },
  3657. "availableActions": {
  3658. "type": "array",
  3659. "items": {
  3660. "type": "string",
  3661. "enum": [
  3662. "park",
  3663. "unpark",
  3664. "resize",
  3665. "resetPassword",
  3666. "addKeyspace",
  3667. "addDatacenters",
  3668. "terminateDatacenter",
  3669. "getCreds",
  3670. "terminate",
  3671. "removeKeyspace",
  3672. "removeMigrationProxy",
  3673. "launchMigrationProxy"
  3674. ],
  3675. "example": "park, terminate"
  3676. }
  3677. },
  3678. "message": {
  3679. "type": "string",
  3680. "description": "Message to the customer about the cluster",
  3681. "example": "Auto parked due to inactivity"
  3682. },
  3683. "grafanaUrl": {
  3684. "type": "string",
  3685. "example": "http://path-to-grafana:port"
  3686. },
  3687. "cqlshUrl": {
  3688. "type": "string",
  3689. "example": "http://path-to-cqlsh:port/cqlsh"
  3690. },
  3691. "graphqlUrl": {
  3692. "type": "string",
  3693. "example": "http://path-to-graqphl:port/api/graphql"
  3694. },
  3695. "dataEndpointUrl": {
  3696. "type": "string",
  3697. "example": "http://path-to-dataendpoint:port/api/rest"
  3698. }
  3699. }
  3700. },
  3701. "Datacenter": {
  3702. "type": "object",
  3703. "description": "Datacenter is the definition of a cassandra datacenter",
  3704. "required": [
  3705. "tier",
  3706. "cloudProvider",
  3707. "region",
  3708. "status"
  3709. ],
  3710. "properties": {
  3711. "id": {
  3712. "type": "string",
  3713. "example": "1234-5678-91011121-3141-1"
  3714. },
  3715. "name": {
  3716. "type": "string",
  3717. "example": "dc-1234-5678-91011121-3141"
  3718. },
  3719. "tier": {
  3720. "type": "string",
  3721. "example": "Developer"
  3722. },
  3723. "status": {
  3724. "type": "string",
  3725. "example": "ACTIVE"
  3726. },
  3727. "cloudProvider": {
  3728. "type": "string",
  3729. "example": "GCP"
  3730. },
  3731. "region": {
  3732. "type": "string",
  3733. "example": "us-east1"
  3734. },
  3735. "regionZone": {
  3736. "type": "string",
  3737. "example": "na",
  3738. "enum": [
  3739. "emea",
  3740. "apac",
  3741. "na",
  3742. "sa"
  3743. ]
  3744. },
  3745. "regionClassification": {
  3746. "type": "string",
  3747. "example": "standard",
  3748. "enum": [
  3749. "standard",
  3750. "premium",
  3751. "premium_plus"
  3752. ]
  3753. },
  3754. "capacityUnits": {
  3755. "type": "integer",
  3756. "example": 1,
  3757. "description": "CapacityUnits is the amount of space available (horizontal scaling) for the database"
  3758. },
  3759. "grafanaUrl": {
  3760. "type": "string",
  3761. "example": "http://path-to-grafana:port"
  3762. },
  3763. "cqlshUrl": {
  3764. "type": "string",
  3765. "example": "http://path-to-cqlsh:port/cqlsh"
  3766. },
  3767. "graphqlUrl": {
  3768. "type": "string",
  3769. "example": "http://path-to-graqphl:port/api/graphql"
  3770. },
  3771. "dataEndpointUrl": {
  3772. "type": "string",
  3773. "example": "http://path-to-dataendpoint:port/api/rest"
  3774. },
  3775. "secureBundleUrl": {
  3776. "type": "string",
  3777. "example": "http://s3-signed-bundle-url"
  3778. },
  3779. "secureBundleInternalUrl": {
  3780. "type": "string",
  3781. "example": "http://s3-signed-internal-bundle-url"
  3782. },
  3783. "secureBundleMigrationProxyUrl": {
  3784. "type": "string",
  3785. "example": "http://s3-signed-proxy-bundle-url"
  3786. },
  3787. "secureBundleMigrationProxyInternalUrl": {
  3788. "type": "string",
  3789. "example": "http://s3-signed-proxy-internal-bundle-url"
  3790. }
  3791. }
  3792. },
  3793. "DatabaseInfoCreate": {
  3794. "type": "object",
  3795. "required": [
  3796. "name",
  3797. "cloudProvider",
  3798. "tier",
  3799. "capacityUnits",
  3800. "region"
  3801. ],
  3802. "description": "DatabaseInfo is the user-provided information describing a database",
  3803. "properties": {
  3804. "name": {
  3805. "type": "string",
  3806. "example": "mySplendidDatabase",
  3807. "description": "Name of the database--user friendly identifier"
  3808. },
  3809. "keyspace": {
  3810. "type": "string",
  3811. "example": "myKeyspace",
  3812. "description": "(Optional) Keyspace name in database. If not passed, keyspace is created with name \"default_keyspace\""
  3813. },
  3814. "cloudProvider": {
  3815. "type": "string",
  3816. "example": "AWS",
  3817. "enum": [
  3818. "AWS",
  3819. "GCP",
  3820. "AZURE"
  3821. ],
  3822. "description": "CloudProvider where the database lives"
  3823. },
  3824. "tier": {
  3825. "type": "string",
  3826. "example": "developer",
  3827. "enum": [
  3828. "developer",
  3829. "A5",
  3830. "A10",
  3831. "A20",
  3832. "A40",
  3833. "C10",
  3834. "C20",
  3835. "C40",
  3836. "D10",
  3837. "D20",
  3838. "D40",
  3839. "serverless"
  3840. ],
  3841. "description": "Tier defines the compute power (vertical scaling) for the database, developer gcp is the free tier."
  3842. },
  3843. "capacityUnits": {
  3844. "type": "integer",
  3845. "example": 1,
  3846. "minimum": 1,
  3847. "maximum": 100,
  3848. "description": "CapacityUnits is the amount of space available (horizontal scaling) for the database. For free tier the max CU's is 1, and 100 for CXX/DXX the max is 12 on startup."
  3849. },
  3850. "region": {
  3851. "type": "string",
  3852. "example": "us-west-2",
  3853. "description": "Region refers to the cloud region."
  3854. },
  3855. "dbType": {
  3856. "type": "string",
  3857. "example": "vector",
  3858. "enum": [
  3859. "vector"
  3860. ],
  3861. "description": "Type of the serverless database, currently only supported value is “vector”. \"vector\" creates a cassandra database with vector support. Field not being inputted creates default serverless database."
  3862. }
  3863. }
  3864. },
  3865. "DatabaseInfo": {
  3866. "type": "object",
  3867. "description": "DatabaseInfo is the user-provided information describing a database",
  3868. "properties": {
  3869. "name": {
  3870. "type": "string",
  3871. "example": "mySplendidDatabase",
  3872. "description": "Name of the database--user friendly identifier"
  3873. },
  3874. "keyspace": {
  3875. "type": "string",
  3876. "example": "myKeyspace",
  3877. "description": "Keyspace name in database"
  3878. },
  3879. "cloudProvider": {
  3880. "type": "string",
  3881. "example": "AWS",
  3882. "enum": [
  3883. "AWS",
  3884. "GCP",
  3885. "AZURE"
  3886. ],
  3887. "description": "CloudProvider where the database lives"
  3888. },
  3889. "tier": {
  3890. "type": "string",
  3891. "example": "developer",
  3892. "enum": [
  3893. "developer",
  3894. "A5",
  3895. "A10",
  3896. "A20",
  3897. "A40",
  3898. "C10",
  3899. "C20",
  3900. "C40",
  3901. "D10",
  3902. "D20",
  3903. "D40",
  3904. "serverless"
  3905. ],
  3906. "description": "Tier defines the compute power (vertical scaling) for the database"
  3907. },
  3908. "capacityUnits": {
  3909. "type": "integer",
  3910. "example": 1,
  3911. "minimum": 1,
  3912. "maximum": 100,
  3913. "description": "CapacityUnits is the amount of space available (horizontal scaling) for the database. For free tier the max CU's is 1, and 12 for C10 the max is 12 on startup."
  3914. },
  3915. "region": {
  3916. "type": "string",
  3917. "example": "us-west-2",
  3918. "description": "Region refers to the cloud region."
  3919. },
  3920. "additionalKeyspaces": {
  3921. "type": "array",
  3922. "maximum": 1,
  3923. "items": {
  3924. "type": "string",
  3925. "example": "additionalKeyspace"
  3926. },
  3927. "description": "Additional keyspaces names in database"
  3928. },
  3929. "dbType": {
  3930. "type": "string",
  3931. "example": "vector",
  3932. "enum": [
  3933. "vector"
  3934. ],
  3935. "description": "Type of the serverless database, currently only supported value is “vector”. \"vector\" creates a cassandra database with vector support. Field not being inputted creates default serverless database."
  3936. }
  3937. }
  3938. },
  3939. "DatadogTelemetryRequest": {
  3940. "description": "Telemetry Config Block for Datadog",
  3941. "type": "object",
  3942. "properties": {
  3943. "Datadog": {
  3944. "$ref": "#/components/schemas/DatadogTelemetryRequestBlock"
  3945. }
  3946. },
  3947. "required": [
  3948. "Datadog"
  3949. ]
  3950. },
  3951. "DatadogTelemetryRequestBlock": {
  3952. "description": "Telemetry Config Block for Datadog servers",
  3953. "type": "object",
  3954. "required": [
  3955. "api_key"
  3956. ],
  3957. "properties": {
  3958. "api_key": {
  3959. "type": "string",
  3960. "description": "API key to authenticate to the Datadog API"
  3961. },
  3962. "site": {
  3963. "type": "string",
  3964. "description": "The Datadog site to send data to, which should be the site parameter corresponding to the Datadog site URL",
  3965. "example": "datadoghq.com"
  3966. }
  3967. }
  3968. },
  3969. "CloudWatchTelemetryRequest": {
  3970. "description": "Telemetry Config Block for AWS CloudWatch",
  3971. "type": "object",
  3972. "properties": {
  3973. "cloudwatch": {
  3974. "$ref": "#/components/schemas/CloudWatchTelemetryRequestBlock"
  3975. }
  3976. },
  3977. "required": [
  3978. "cloudwatch"
  3979. ]
  3980. },
  3981. "CloudWatchTelemetryRequestBlock": {
  3982. "description": "Telemetry Config Block for CloudWatch servers",
  3983. "type": "object",
  3984. "required": [
  3985. "access_key",
  3986. "secret_key",
  3987. "region"
  3988. ],
  3989. "properties": {
  3990. "access_key": {
  3991. "type": "string",
  3992. "description": "AWS access key"
  3993. },
  3994. "secret": {
  3995. "type": "string",
  3996. "description": "AWS secret"
  3997. },
  3998. "region": {
  3999. "type": "string",
  4000. "description": "AWS region for CloudWatch",
  4001. "example": "us-east-1"
  4002. }
  4003. }
  4004. },
  4005. "RemotePrometheusTelemetryRequest": {
  4006. "description": "Telemetry Config for Prometheus Remote Write",
  4007. "type": "object",
  4008. "properties": {
  4009. "prometheus_remote": {
  4010. "$ref": "#/components/schemas/RemotePrometheusTelemetryRequestBlock"
  4011. }
  4012. },
  4013. "required": [
  4014. "prometheus_remote"
  4015. ]
  4016. },
  4017. "RemotePrometheusTelemetryRequestBlock": {
  4018. "description": "Telemetry Config for Prometheus Remote Write",
  4019. "oneOf": [
  4020. {
  4021. "$ref": "#/components/schemas/RemotePrometheusBasicAuthTelemetryRequest"
  4022. },
  4023. {
  4024. "$ref": "#/components/schemas/RemotePrometheusBearerAuthTelemetryRequest"
  4025. }
  4026. ],
  4027. "discriminator": {
  4028. "propertyName": "auth_strategy",
  4029. "mapping": {
  4030. "basic": "#/components/schemas/RemotePrometheusBasicAuthTelemetryRequest",
  4031. "bearer": "#/components/schemas/RemotePrometheusBearerAuthTelemetryRequest"
  4032. }
  4033. }
  4034. },
  4035. "RemotePrometheusAuthRequest": {
  4036. "description": "The base object for a Prometheus Remote Write object",
  4037. "type": "object",
  4038. "required": [
  4039. "endpoint",
  4040. "auth_strategy"
  4041. ],
  4042. "properties": {
  4043. "endpoint": {
  4044. "type": "string",
  4045. "example": "https://prometheus.example.com/api/prom/push",
  4046. "description": "full HTTP or HTTPS address and path for prometheus endpoint"
  4047. },
  4048. "auth_strategy": {
  4049. "type": "string",
  4050. "enum": [
  4051. "basic",
  4052. "bearer"
  4053. ],
  4054. "description": "The authentication strategy used by your Prometheus setup.\n * `basic` - Basic Authentication (Username & Password)\n * `bearer` - Bearer Token Authentication\n"
  4055. }
  4056. }
  4057. },
  4058. "RemotePrometheusBasicAuthTelemetryRequest": {
  4059. "allOf": [
  4060. {
  4061. "$ref": "#/components/schemas/RemotePrometheusAuthRequest"
  4062. },
  4063. {
  4064. "type": "object",
  4065. "description": "Telemetry Config for Prometheus Remote Write with Basic Authentication",
  4066. "required": [
  4067. "user",
  4068. "password"
  4069. ],
  4070. "properties": {
  4071. "user": {
  4072. "type": "string",
  4073. "example": "promuser",
  4074. "description": "Username for Prometheus Remote Write Authentication"
  4075. },
  4076. "password": {
  4077. "type": "string",
  4078. "format": "password",
  4079. "example": "prompassword",
  4080. "description": "Password for Prometheus Remote Write Authentication"
  4081. }
  4082. }
  4083. }
  4084. ]
  4085. },
  4086. "RemotePrometheusBearerAuthTelemetryRequest": {
  4087. "allOf": [
  4088. {
  4089. "$ref": "#/components/schemas/RemotePrometheusAuthRequest"
  4090. },
  4091. {
  4092. "type": "object",
  4093. "description": "Telemetry Config for Prometheus Remote Write with Bearer Token",
  4094. "required": [
  4095. "token"
  4096. ],
  4097. "properties": {
  4098. "token": {
  4099. "type": "string",
  4100. "format": "password",
  4101. "example": "AstraTelemetry123",
  4102. "description": "Bearer Token for Prometheus Remote Write Authentication"
  4103. }
  4104. }
  4105. }
  4106. ]
  4107. },
  4108. "KafkaBootstrapServer": {
  4109. "description": "A Hostname and Port combination for a Kafka Bootstrap Server",
  4110. "type": "string",
  4111. "example": "kafka-0.yourdomain.com:9092"
  4112. },
  4113. "KafkaTelemetryRequest": {
  4114. "description": "Telemetry Config for Kafka",
  4115. "type": "object",
  4116. "properties": {
  4117. "kafka": {
  4118. "$ref": "#/components/schemas/KafkaTelemetryRequestBlock"
  4119. }
  4120. },
  4121. "required": [
  4122. "kafka"
  4123. ]
  4124. },
  4125. "KafkaTelemetryRequestBlock": {
  4126. "description": "Telemetry Config Block for Kafka servers",
  4127. "type": "object",
  4128. "required": [
  4129. "bootstrap_servers",
  4130. "topic",
  4131. "sasl_mechanism",
  4132. "sasl_username",
  4133. "sasl_password"
  4134. ],
  4135. "properties": {
  4136. "bootstrap_servers": {
  4137. "type": "array",
  4138. "items": {
  4139. "$ref": "#/components/schemas/KafkaBootstrapServer"
  4140. }
  4141. },
  4142. "topic": {
  4143. "type": "string",
  4144. "example": "astra_metrics_events",
  4145. "description": "Kafka topic to write metrics to; user must create this topic on their server(s)"
  4146. },
  4147. "sasl_mechanism": {
  4148. "type": "string",
  4149. "enum": [
  4150. "GSSAPI",
  4151. "PLAIN",
  4152. "SCRAM-SHA-256",
  4153. "SCRAM-SHA-512"
  4154. ],
  4155. "description": "Kafka SASL mechanism"
  4156. },
  4157. "sasl_username": {
  4158. "type": "string",
  4159. "example": "kafkauser",
  4160. "description": "Username for Kafka Authentication"
  4161. },
  4162. "sasl_password": {
  4163. "type": "string",
  4164. "example": "kafkapassword",
  4165. "description": "Password for Kafka Authentication"
  4166. },
  4167. "security_protocol": {
  4168. "type": "string",
  4169. "enum": [
  4170. "SASL_PLAINTEXT",
  4171. "SASL_SSL"
  4172. ],
  4173. "description": "NOTE: This is an advanced option, which most users will not need to set. Most Kafka installations will not require this setting for us to connect. Users of hosted Kafka on Confluent Cloud may need to set 'SASL_SSL'. Valid Options:\n * `SASL_PLAINTEXT` - SASL Authenticated, non-encrypted channel\n * `SASL_SSL` - SASL Authenticated, encrypted channel\n! Non-Authenticated options (i.e., `SSL` and `PLAINTEXT`) are not supported.\n"
  4174. }
  4175. }
  4176. },
  4177. "SplunkTelemetryRequest": {
  4178. "description": "Telemetry Config for Splunk. The metric name is formatted differently from other sinks, using dot to connect namespaces. The format entails default_namespace.kubernetes_grouping_namespace. For example, a metric_name in Splunk sink would be astra.db_range_latency_seconds:rate1m.",
  4179. "type": "object",
  4180. "properties": {
  4181. "splunk": {
  4182. "$ref": "#/components/schemas/SplunkTelemetryRequestBlock"
  4183. }
  4184. },
  4185. "required": [
  4186. "splunk"
  4187. ]
  4188. },
  4189. "SplunkTelemetryRequestBlock": {
  4190. "description": "Telemetry Config Block for Splunk servers",
  4191. "type": "object",
  4192. "required": [
  4193. "endpoint",
  4194. "index",
  4195. "token"
  4196. ],
  4197. "properties": {
  4198. "endpoint": {
  4199. "type": "string",
  4200. "example": "https://http-inputs-YOURCOMPANY.splunkcloud.com",
  4201. "description": "Path for Splunk endpoint, which should always be a full HTTPS address."
  4202. },
  4203. "index": {
  4204. "type": "string",
  4205. "example": "astra_third_party_metrics_test",
  4206. "description": "Splunk index to write metrics to. Index must be set so the Splunk token has permission to write to it."
  4207. },
  4208. "token": {
  4209. "type": "string",
  4210. "example": "splunk-token",
  4211. "description": "Token for Splunk Authentication"
  4212. },
  4213. "source": {
  4214. "type": "string",
  4215. "example": "splunk-source",
  4216. "description": "Source of events sent to this sink. If unset, we set it to a default value, eg. \"astradb\"."
  4217. },
  4218. "sourcetype": {
  4219. "type": "string",
  4220. "example": "splunk-sourcetype",
  4221. "description": "Sourcetype of events sent to this sink. If unset, we set it to a default value, eg. \"astradb-metrics\"."
  4222. }
  4223. }
  4224. },
  4225. "PulsarTelemetryRequest": {
  4226. "description": "Telemetry Config for Pulsar servers",
  4227. "type": "object",
  4228. "properties": {
  4229. "pulsar": {
  4230. "$ref": "#/components/schemas/PulsarTelemetryRequestBlock"
  4231. }
  4232. },
  4233. "required": [
  4234. "pulsar"
  4235. ]
  4236. },
  4237. "PulsarTelemetryRequestBlock": {
  4238. "description": "Telemetry Config",
  4239. "oneOf": [
  4240. {
  4241. "$ref": "#/components/schemas/PulsarTokenAuthTelemetryRequest"
  4242. },
  4243. {
  4244. "$ref": "#/components/schemas/PulsarOAuth2TelemetryRequest"
  4245. }
  4246. ],
  4247. "discriminator": {
  4248. "propertyName": "auth_strategy",
  4249. "mapping": {
  4250. "token": "#/components/schemas/PulsarTokenAuthTelemetryRequest",
  4251. "oauth2": "#/components/schemas/PulsarOAuth2TelemetryRequest"
  4252. }
  4253. }
  4254. },
  4255. "PulsarAuthRequest": {
  4256. "description": "The base object for a Pulsar object",
  4257. "type": "object",
  4258. "required": [
  4259. "endpoint",
  4260. "topic",
  4261. "auth_strategy"
  4262. ],
  4263. "properties": {
  4264. "endpoint": {
  4265. "type": "string",
  4266. "example": "pulsar+ssl://pulsar.example.com",
  4267. "description": "URL for your Pulsar Broker"
  4268. },
  4269. "auth_strategy": {
  4270. "type": "string",
  4271. "enum": [
  4272. "token",
  4273. "oauth2"
  4274. ],
  4275. "description": "The authentication strategy used by your Pulsar broker.\n * `token` - a bearer token is provided to authenticate\n * `oauth2` - OAuth2 is used to authenticate\n"
  4276. },
  4277. "topic": {
  4278. "type": "string",
  4279. "example": "my-topic-123",
  4280. "description": "The Pulsar topic to publish telemetry to"
  4281. },
  4282. "auth_name": {
  4283. "type": "string",
  4284. "example": "foobar",
  4285. "description": "The basic authentication name."
  4286. }
  4287. }
  4288. },
  4289. "PulsarTokenAuthTelemetryRequest": {
  4290. "allOf": [
  4291. {
  4292. "$ref": "#/components/schemas/PulsarAuthRequest"
  4293. },
  4294. {
  4295. "type": "object",
  4296. "description": "Telemetry config",
  4297. "required": [
  4298. "token"
  4299. ],
  4300. "properties": {
  4301. "token": {
  4302. "type": "string",
  4303. "format": "password",
  4304. "example": "AstraTelemetry123",
  4305. "description": "Bearer Token for Pulsar Authentication"
  4306. }
  4307. }
  4308. }
  4309. ]
  4310. },
  4311. "PulsarOAuth2TelemetryRequest": {
  4312. "allOf": [
  4313. {
  4314. "$ref": "#/components/schemas/PulsarAuthRequest"
  4315. },
  4316. {
  4317. "type": "object",
  4318. "description": "Telemetry config",
  4319. "required": [
  4320. "oauth2_credentials_url",
  4321. "oauth2_issuer_url"
  4322. ],
  4323. "properties": {
  4324. "oauth2_credentials_url": {
  4325. "type": "string",
  4326. "description": "Credentials URL For OAuth2"
  4327. },
  4328. "oauth2_issuer_url": {
  4329. "type": "string",
  4330. "description": "Issuer URL for OAuth2",
  4331. "example": "https://astra-oauth2.example.com"
  4332. },
  4333. "oauth2_audience": {
  4334. "type": "string",
  4335. "description": "Audience for OAuth2",
  4336. "example": "astra-pulsar"
  4337. },
  4338. "oauth2_scope": {
  4339. "type": "string",
  4340. "description": "Scope for OAuth2",
  4341. "example": "db-telemetry"
  4342. }
  4343. }
  4344. }
  4345. ]
  4346. },
  4347. "CredsURL": {
  4348. "description": "CredsURL from which the creds zip may be downloaded",
  4349. "type": "object",
  4350. "required": [
  4351. "downloadURL"
  4352. ],
  4353. "properties": {
  4354. "downloadURL": {
  4355. "type": "string",
  4356. "example": "nifty.cloud.datastax.com:9092",
  4357. "description": "DownloadURL is only valid for about 5 minutes"
  4358. },
  4359. "downloadURLInternal": {
  4360. "type": "string",
  4361. "example": "internal-nifty.cloud.datastax.com:9092",
  4362. "description": "Internal DownloadURL is only valid for about 5 minutes"
  4363. },
  4364. "downloadURLMigrationProxy": {
  4365. "type": "string",
  4366. "example": "proxy-nifty.cloud.datastax.com:9092",
  4367. "description": "Migration Proxy DownloadURL is only valid for about 5 minutes"
  4368. },
  4369. "downloadURLMigrationProxyInternal": {
  4370. "type": "string",
  4371. "example": "proxy-nifty.cloud.datastax.com:9092",
  4372. "description": "Internal Migration Proxy DownloadURL is only valid for about 5 minutes"
  4373. },
  4374. "datcenterID": {
  4375. "type": "string",
  4376. "example": "dde308f5-a8b0-474d-afd6-81e5689e3e25"
  4377. },
  4378. "region": {
  4379. "type": "string",
  4380. "example": "us-east-1"
  4381. },
  4382. "cloudProvider": {
  4383. "type": "string",
  4384. "example": "AWS"
  4385. },
  4386. "customDomainBundles": {
  4387. "type": "array",
  4388. "items": {
  4389. "type": "object",
  4390. "properties": {
  4391. "domain": {
  4392. "type": "string",
  4393. "example": "example.domain.com"
  4394. },
  4395. "cqlFQDN": {
  4396. "type": "string",
  4397. "example": "dde308f5-a8b0-474d-afd6-81e5689e3e25-us-east-1.db.example.domain.com"
  4398. },
  4399. "apiFQDN": {
  4400. "type": "string",
  4401. "example": "dde308f5-a8b0-474d-afd6-81e5689e3e25-us-east-1.apps.example.domain.com"
  4402. },
  4403. "dashboardFQDN": {
  4404. "type": "string",
  4405. "example": "dde308f5-a8b0-474d-afd6-81e5689e3e25-us-east-1.dashboard.example.domain.com"
  4406. },
  4407. "downloadURL": {
  4408. "type": "string",
  4409. "example": "nifty.cloud.datastax.com:9092"
  4410. }
  4411. }
  4412. }
  4413. }
  4414. }
  4415. },
  4416. "CredsURLList": {
  4417. "type": "array",
  4418. "description": "an array of credsURL",
  4419. "items": {
  4420. "$ref": "#/components/schemas/CredsURL"
  4421. }
  4422. },
  4423. "UserPassword": {
  4424. "description": "UserPassword specifies a username and new password. The specified password will be updated for the specified database user",
  4425. "type": "object",
  4426. "properties": {
  4427. "username": {
  4428. "type": "string",
  4429. "example": "dbusername"
  4430. },
  4431. "password": {
  4432. "type": "string",
  4433. "example": "MyNewSecur3Passw0rd",
  4434. "description": "New password (min 6 characters)"
  4435. }
  4436. }
  4437. },
  4438. "MigrationProxyConfiguration": {
  4439. "description": "Configuration of the migration proxy and mappings of astra node to a customer node currently in use",
  4440. "type": "object",
  4441. "required": [
  4442. "originUsername",
  4443. "originPassword",
  4444. "mappings"
  4445. ],
  4446. "properties": {
  4447. "originUsername": {
  4448. "type": "string",
  4449. "example": "cassandraUsername",
  4450. "description": "origin cassandra username"
  4451. },
  4452. "originPassword": {
  4453. "type": "string",
  4454. "example": "cassandraPassword",
  4455. "description": "origin cassandra password"
  4456. },
  4457. "mappings": {
  4458. "type": "array",
  4459. "items": {
  4460. "$ref": "#/components/schemas/MigrationProxyMapping"
  4461. }
  4462. }
  4463. }
  4464. },
  4465. "MigrationProxyMapping": {
  4466. "description": "A mapping of astra node to a customer node currently in use",
  4467. "type": "object",
  4468. "required": [
  4469. "originIP",
  4470. "originPort",
  4471. "rack",
  4472. "rackNodeOrdinal"
  4473. ],
  4474. "properties": {
  4475. "originIP": {
  4476. "type": "string",
  4477. "example": "172.18.19.20",
  4478. "description": "ip on which the node currently in use is accessible"
  4479. },
  4480. "originPort": {
  4481. "type": "integer",
  4482. "example": 9042,
  4483. "description": "port on which the node currently in use is accessible"
  4484. },
  4485. "rack": {
  4486. "type": "integer",
  4487. "example": 2,
  4488. "description": "the number of the rack, usually 0, 1, or 2"
  4489. },
  4490. "rackNodeOrdinal": {
  4491. "type": "integer",
  4492. "example": 1,
  4493. "description": "The number of the node in a given rack, starting with 0"
  4494. }
  4495. }
  4496. },
  4497. "CapacityUnits": {
  4498. "description": "CapacityUnits is used to horizontally scale a database.",
  4499. "type": "object",
  4500. "properties": {
  4501. "capacityUnits": {
  4502. "type": "integer",
  4503. "minimum": 1,
  4504. "maximum": 100,
  4505. "example": 4,
  4506. "description": "CapacityUnits can be increased by a max of three additional capacity units per operation. Reducing capacity units is not supported at this time"
  4507. }
  4508. }
  4509. },
  4510. "Storage": {
  4511. "description": "Storage contains the information about how much storage space a cluster has available",
  4512. "type": "object",
  4513. "required": [
  4514. "nodeCount",
  4515. "replicationFactor",
  4516. "totalStorage"
  4517. ],
  4518. "properties": {
  4519. "nodeCount": {
  4520. "type": "integer",
  4521. "example": 6,
  4522. "description": "NodeCount for the cluster"
  4523. },
  4524. "replicationFactor": {
  4525. "type": "integer",
  4526. "example": 3,
  4527. "description": "ReplicationFactor is the number of nodes storing a piece of data"
  4528. },
  4529. "totalStorage": {
  4530. "type": "integer",
  4531. "example": 800,
  4532. "description": "TotalStorage of the cluster in GB"
  4533. },
  4534. "usedStorage": {
  4535. "type": "integer",
  4536. "example": 348,
  4537. "description": "UsedStorage in GB"
  4538. }
  4539. }
  4540. },
  4541. "RegionCombination": {
  4542. "type": "object",
  4543. "description": "RegionCombination defines a Tier, cloud provider, region combination",
  4544. "required": [
  4545. "tier",
  4546. "cloudProvider",
  4547. "region",
  4548. "cost"
  4549. ],
  4550. "properties": {
  4551. "tier": {
  4552. "type": "string",
  4553. "example": "Free"
  4554. },
  4555. "cloudProvider": {
  4556. "type": "string",
  4557. "example": "GCP"
  4558. },
  4559. "region": {
  4560. "type": "string",
  4561. "example": "us-east1"
  4562. },
  4563. "cost": {
  4564. "$ref": "#/components/schemas/Costs"
  4565. }
  4566. }
  4567. },
  4568. "AvailableRegionCombination": {
  4569. "type": "object",
  4570. "description": "AvailableRegionCombination defines a Tier, cloud provider, region combination",
  4571. "required": [
  4572. "tier",
  4573. "cloudProvider",
  4574. "region",
  4575. "cost",
  4576. "databaseCountUsed",
  4577. "databaseCountLimit",
  4578. "capacityUnitsUsed",
  4579. "capacityUnitsLimit",
  4580. "defaultStoragePerCapacityUnitGb"
  4581. ],
  4582. "properties": {
  4583. "tier": {
  4584. "type": "string",
  4585. "example": "Free"
  4586. },
  4587. "cloudProvider": {
  4588. "type": "string",
  4589. "example": "GCP"
  4590. },
  4591. "region": {
  4592. "type": "string",
  4593. "example": "us-east1"
  4594. },
  4595. "cost": {
  4596. "$ref": "#/components/schemas/Costs"
  4597. },
  4598. "databaseCountUsed": {
  4599. "type": "integer",
  4600. "example": 0
  4601. },
  4602. "databaseCountLimit": {
  4603. "type": "integer",
  4604. "example": 1
  4605. },
  4606. "capacityUnitsUsed": {
  4607. "type": "integer",
  4608. "example": 0
  4609. },
  4610. "capacityUnitsLimit": {
  4611. "type": "integer",
  4612. "example": 30
  4613. },
  4614. "defaultStoragePerCapacityUnitGb": {
  4615. "type": "integer",
  4616. "example": 500
  4617. }
  4618. }
  4619. },
  4620. "ServerlessRegion": {
  4621. "type": "object",
  4622. "description": "Serverless region information",
  4623. "required": [
  4624. "cloudProvider",
  4625. "name",
  4626. "displayName",
  4627. "zone",
  4628. "classification",
  4629. "enabled",
  4630. "reservedForQualifiedUsers",
  4631. "region_type"
  4632. ],
  4633. "properties": {
  4634. "cloudProvider": {
  4635. "type": "string",
  4636. "example": "aws"
  4637. },
  4638. "name": {
  4639. "type": "string",
  4640. "example": "us-west-2"
  4641. },
  4642. "displayName": {
  4643. "type": "string",
  4644. "example": "US West (Oregon)"
  4645. },
  4646. "zone": {
  4647. "type": "string",
  4648. "example": "na"
  4649. },
  4650. "classification": {
  4651. "type": "string",
  4652. "example": "standard"
  4653. },
  4654. "enabled": {
  4655. "type": "boolean",
  4656. "example": true
  4657. },
  4658. "reservedForQualifiedUsers": {
  4659. "type": "boolean",
  4660. "example": true
  4661. },
  4662. "region_type": {
  4663. "type": "string",
  4664. "description": "region type. Supported values are \"vector\" or \"serverless\"",
  4665. "enum": [
  4666. "serverless",
  4667. "vector"
  4668. ],
  4669. "example": "vector"
  4670. }
  4671. }
  4672. },
  4673. "Costs": {
  4674. "properties": {
  4675. "costPerMinCents": {
  4676. "type": "number",
  4677. "format": "double",
  4678. "example": 0
  4679. },
  4680. "costPerHourCents": {
  4681. "type": "number",
  4682. "format": "double",
  4683. "example": 0
  4684. },
  4685. "costPerDayCents": {
  4686. "type": "number",
  4687. "format": "double",
  4688. "example": 0
  4689. },
  4690. "costPerMonthCents": {
  4691. "type": "number",
  4692. "format": "double",
  4693. "example": 0
  4694. },
  4695. "costPerMinParkedCents": {
  4696. "type": "number",
  4697. "format": "double",
  4698. "example": 0
  4699. },
  4700. "costPerHourParkedCents": {
  4701. "type": "number",
  4702. "format": "double",
  4703. "example": 0
  4704. },
  4705. "costPerDayParkedCents": {
  4706. "type": "number",
  4707. "format": "double",
  4708. "example": 0
  4709. },
  4710. "costPerMonthParkedCents": {
  4711. "type": "number",
  4712. "format": "double",
  4713. "example": 0
  4714. }
  4715. }
  4716. },
  4717. "Errors": {
  4718. "description": "Errors is a collection of individual Error objects",
  4719. "type": "object",
  4720. "required": [
  4721. "errors"
  4722. ],
  4723. "properties": {
  4724. "errors": {
  4725. "type": "array",
  4726. "items": {
  4727. "$ref": "#/components/schemas/Error"
  4728. }
  4729. }
  4730. }
  4731. },
  4732. "Error": {
  4733. "description": "ModelError information that is returned to users",
  4734. "type": "object",
  4735. "required": [
  4736. "id",
  4737. "message"
  4738. ],
  4739. "properties": {
  4740. "ID": {
  4741. "type": "integer",
  4742. "example": 123,
  4743. "description": "API specific error code"
  4744. },
  4745. "message": {
  4746. "type": "string",
  4747. "example": "Something is broken",
  4748. "description": "User-friendly description of error"
  4749. }
  4750. }
  4751. },
  4752. "Role": {
  4753. "type": "object",
  4754. "description": "Details of a user role and its policy details",
  4755. "properties": {
  4756. "id": {
  4757. "type": "string",
  4758. "description": "The unique system generated identifier of the role."
  4759. },
  4760. "name": {
  4761. "type": "string",
  4762. "description": "The name of the role."
  4763. },
  4764. "policy": {
  4765. "$ref": "#/components/schemas/Policy"
  4766. },
  4767. "last_update_datetime": {
  4768. "type": "string",
  4769. "description": "The date and time of the last update on the role.",
  4770. "format": "date-time"
  4771. },
  4772. "last_update_userid": {
  4773. "type": "string",
  4774. "description": "The userID of the user who last updated the role."
  4775. }
  4776. }
  4777. },
  4778. "Policy": {
  4779. "type": "object",
  4780. "description": "A policy for a role in Astra.",
  4781. "required": [
  4782. "description",
  4783. "actions",
  4784. "effect",
  4785. "resources"
  4786. ],
  4787. "properties": {
  4788. "description": {
  4789. "description": "A description of this policy",
  4790. "type": "string"
  4791. },
  4792. "resources": {
  4793. "type": "array",
  4794. "description": "The resources this policy can manipulate.",
  4795. "items": {
  4796. "type": "string",
  4797. "example": "drn:astra:org:__ORG_ID__"
  4798. }
  4799. },
  4800. "actions": {
  4801. "type": "array",
  4802. "description": "The actions this policy can take. Example Actions: 'org-billing-write' 'db-keyspace-create'",
  4803. "items": {
  4804. "type": "string",
  4805. "enum": [
  4806. "db-all-keyspace-create",
  4807. "db-all-keyspace-describe",
  4808. "db-cql",
  4809. "db-graphql",
  4810. "db-keyspace-alter",
  4811. "db-keyspace-authorize",
  4812. "db-keyspace-create",
  4813. "db-keyspace-describe",
  4814. "db-keyspace-drop",
  4815. "db-keyspace-grant",
  4816. "db-keyspace-modify",
  4817. "db-rest",
  4818. "db-table-alter",
  4819. "db-table-authorize",
  4820. "db-table-create",
  4821. "db-table-describe",
  4822. "db-table-drop",
  4823. "db-table-grant",
  4824. "db-table-modify",
  4825. "db-table-select",
  4826. "db-manage-thirdpartymetrics",
  4827. "org-audits-read",
  4828. "org-billing-read",
  4829. "org-billing-write",
  4830. "org-db-addpeering",
  4831. "org-db-create",
  4832. "org-db-expand",
  4833. "org-db-passwordreset",
  4834. "org-db-suspend",
  4835. "org-db-terminate",
  4836. "org-db-view",
  4837. "org-external-auth-read",
  4838. "org-external-auth-write",
  4839. "org-notification-write",
  4840. "org-read",
  4841. "org-role-delete",
  4842. "org-role-read",
  4843. "org-role-write",
  4844. "org-token-read",
  4845. "org-token-write",
  4846. "org-user-read",
  4847. "org-user-write",
  4848. "org-write"
  4849. ]
  4850. }
  4851. },
  4852. "effect": {
  4853. "type": "string",
  4854. "description": "Effect this policy will have on the provided resource",
  4855. "enum": [
  4856. "allow"
  4857. ]
  4858. }
  4859. }
  4860. },
  4861. "Organization": {
  4862. "type": "object",
  4863. "description": "An organization",
  4864. "required": [
  4865. "id"
  4866. ],
  4867. "properties": {
  4868. "id": {
  4869. "type": "string",
  4870. "description": "The organization UUID",
  4871. "example": "d04d1eb2-6a52-483e-ab16-faaad3d077a9"
  4872. }
  4873. }
  4874. },
  4875. "Roles": {
  4876. "type": "array",
  4877. "description": "an array of roles",
  4878. "items": {
  4879. "$ref": "#/components/schemas/Role"
  4880. }
  4881. },
  4882. "CreateRoleRequest": {
  4883. "type": "object",
  4884. "description": "The createRole model",
  4885. "required": [
  4886. "name",
  4887. "policy"
  4888. ],
  4889. "properties": {
  4890. "name": {
  4891. "type": "string"
  4892. },
  4893. "policy": {
  4894. "$ref": "#/components/schemas/Policy"
  4895. }
  4896. }
  4897. },
  4898. "UpdateRoleRequest": {
  4899. "type": "object",
  4900. "description": "The updateRole model",
  4901. "required": [
  4902. "name",
  4903. "policy"
  4904. ],
  4905. "properties": {
  4906. "name": {
  4907. "type": "string"
  4908. },
  4909. "policy": {
  4910. "$ref": "#/components/schemas/Policy"
  4911. }
  4912. }
  4913. },
  4914. "RoleInviteRequest": {
  4915. "type": "object",
  4916. "description": "The roleInvite model",
  4917. "required": [
  4918. "roles"
  4919. ],
  4920. "properties": {
  4921. "roles": {
  4922. "type": "array",
  4923. "items": {
  4924. "type": "string"
  4925. }
  4926. }
  4927. }
  4928. },
  4929. "PrivateLinkOrgOutput": {
  4930. "type": "object",
  4931. "properties": {
  4932. "clusters": {
  4933. "type": "array",
  4934. "description": "List of endpoints for a cluster",
  4935. "items": {
  4936. "$ref": "#/components/schemas/PrivateLinkClusterOutput"
  4937. }
  4938. }
  4939. }
  4940. },
  4941. "PrivateLinkClusterOutput": {
  4942. "type": "object",
  4943. "properties": {
  4944. "clusterID": {
  4945. "type": "string",
  4946. "description": "Cluster ID for all private links connected to the cluster's datacenters"
  4947. },
  4948. "datacenters": {
  4949. "type": "array",
  4950. "description": "List of endpoints for a datacenter",
  4951. "items": {
  4952. "$ref": "#/components/schemas/PrivateLinkDatacenterOutput"
  4953. }
  4954. }
  4955. }
  4956. },
  4957. "PrivateLinkDatacenterOutput": {
  4958. "type": "object",
  4959. "properties": {
  4960. "serviceName": {
  4961. "$ref": "#/components/schemas/ServiceName"
  4962. },
  4963. "allowedPrincipals": {
  4964. "$ref": "#/components/schemas/AllowedPrincipals"
  4965. },
  4966. "datacenterID": {
  4967. "type": "string",
  4968. "description": "Datacenter ID for the private link endpoint"
  4969. },
  4970. "endpoints": {
  4971. "type": "array",
  4972. "description": "List of endpoints associated with the given org-cluster-dc combo",
  4973. "items": {
  4974. "$ref": "#/components/schemas/PrivateLinkEndpoint"
  4975. }
  4976. }
  4977. }
  4978. },
  4979. "PrivateLinkEndpoint": {
  4980. "type": "object",
  4981. "properties": {
  4982. "endpointID": {
  4983. "type": "string",
  4984. "description": "Endpoint ID of the user side private link",
  4985. "example": "vpce-svc-1148ea04af491da11"
  4986. },
  4987. "description": {
  4988. "type": "string",
  4989. "description": "User defined description of the endpoint",
  4990. "example": "ecomm-team-billing-app"
  4991. },
  4992. "linkID": {
  4993. "type": "string",
  4994. "description": "Link ID for the private link service and endpoint connection",
  4995. "example": "126845687"
  4996. },
  4997. "status": {
  4998. "type": "string",
  4999. "description": "The current status of the connection",
  5000. "example": "Accepted",
  5001. "enum": [
  5002. "Accepted",
  5003. "Rejected"
  5004. ]
  5005. },
  5006. "createdDateTime": {
  5007. "type": "string",
  5008. "description": "The datetime that the private link connection was created",
  5009. "example": "2009-11-10T23:00:00"
  5010. }
  5011. }
  5012. },
  5013. "ServiceName": {
  5014. "type": "string",
  5015. "description": "The given endpoint service for the user to connect to",
  5016. "example": "com.amazonaws.vpce.us-east-1.vpce-svc-1148ea04af491da11"
  5017. },
  5018. "AllowedPrincipals": {
  5019. "type": "array",
  5020. "description": "List of principals to do action for private link",
  5021. "example": [
  5022. "arn:aws:iam::123456789012:role/admin"
  5023. ],
  5024. "items": {
  5025. "type": "string"
  5026. }
  5027. },
  5028. "PrivateLinkCreateConfigInput": {
  5029. "type": "object",
  5030. "properties": {
  5031. "allowedPrincipals": {
  5032. "$ref": "#/components/schemas/AllowedPrincipals"
  5033. }
  5034. }
  5035. },
  5036. "PrivateLinkDeleteConfigInput": {
  5037. "type": "object",
  5038. "properties": {
  5039. "allowedPrincipal": {
  5040. "type": "string",
  5041. "description": "The allowed-principal",
  5042. "example": "arn:aws:iam::123456789012:role/admin"
  5043. }
  5044. }
  5045. },
  5046. "PrivateLinkCreateConfigOutput": {
  5047. "type": "object",
  5048. "properties": {
  5049. "serviceName": {
  5050. "$ref": "#/components/schemas/ServiceName"
  5051. },
  5052. "allowedPrincipals": {
  5053. "$ref": "#/components/schemas/AllowedPrincipals"
  5054. }
  5055. }
  5056. },
  5057. "PrivateLinkCreateEndpointInput": {
  5058. "type": "object",
  5059. "properties": {
  5060. "endpointID": {
  5061. "type": "string",
  5062. "description": "The user's endpoint created in their cloud provider account",
  5063. "example": "vpce-svc-1148ea04af8675309"
  5064. },
  5065. "description": {
  5066. "type": "string",
  5067. "description": "The human readable description of the endpoint",
  5068. "example": "ecomm-team-billing-app-prod"
  5069. }
  5070. }
  5071. },
  5072. "PrivateLinkUpdateEndpointInput": {
  5073. "type": "object",
  5074. "properties": {
  5075. "description": {
  5076. "type": "string",
  5077. "description": "User defined description of the endpoint",
  5078. "example": "ecomm-team-billing-app"
  5079. }
  5080. }
  5081. },
  5082. "AccessListRequest": {
  5083. "type": "object",
  5084. "description": "The model used to build an access list",
  5085. "properties": {
  5086. "addresses": {
  5087. "type": "array",
  5088. "description": "A listing of the allowed addresses",
  5089. "items": {
  5090. "$ref": "#/components/schemas/AddressRequest"
  5091. }
  5092. },
  5093. "configurations": {
  5094. "$ref": "#/components/schemas/AccessListConfigurations"
  5095. }
  5096. }
  5097. },
  5098. "AccessListResponse": {
  5099. "type": "object",
  5100. "description": "The response for a requested access list",
  5101. "properties": {
  5102. "organizationId": {
  5103. "type": "string",
  5104. "description": "The unique identifier of the organization",
  5105. "format": "uuid",
  5106. "example": "303a3598-0905-4b5d-9db2-4bf2f9790973"
  5107. },
  5108. "databaseId": {
  5109. "type": "string",
  5110. "description": "The unique identifier of the database",
  5111. "format": "uuid",
  5112. "example": "8fbcfe1d-56fa-4ed0-9aff-f57029feef1b"
  5113. },
  5114. "addresses": {
  5115. "type": "array",
  5116. "description": "A listing of the allowed addresses",
  5117. "items": {
  5118. "$ref": "#/components/schemas/AddressResponse"
  5119. }
  5120. },
  5121. "configurations": {
  5122. "$ref": "#/components/schemas/AccessListConfigurations"
  5123. }
  5124. }
  5125. },
  5126. "AddressRequest": {
  5127. "type": "object",
  5128. "description": "The model used to build an address for an access list",
  5129. "required": [
  5130. "address",
  5131. "enabled",
  5132. "description"
  5133. ],
  5134. "properties": {
  5135. "address": {
  5136. "pattern": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$",
  5137. "type": "string",
  5138. "description": "The address (ip address and subnet mask in CIDR notation) of the address to allow",
  5139. "example": "137.187.23.0/24"
  5140. },
  5141. "enabled": {
  5142. "type": "boolean",
  5143. "description": "The indication if the access address is enabled or not",
  5144. "example": true
  5145. },
  5146. "description": {
  5147. "type": "string",
  5148. "description": "Description of this addresses use",
  5149. "example": "This address allows the database connections from the prod environment"
  5150. }
  5151. }
  5152. },
  5153. "AddressResponse": {
  5154. "type": "object",
  5155. "description": "The response for a requested address in an access list",
  5156. "properties": {
  5157. "address": {
  5158. "pattern": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$",
  5159. "type": "string",
  5160. "description": "The address (ip address and subnet mask in CIDR notation) of the address to allow",
  5161. "example": "137.187.23.0/24"
  5162. },
  5163. "enabled": {
  5164. "type": "boolean",
  5165. "description": "The indication if the access address is enabled or not",
  5166. "example": true
  5167. },
  5168. "description": {
  5169. "type": "string",
  5170. "description": "Description of this addresses use",
  5171. "example": "This address allows the database connections from the prod environment"
  5172. },
  5173. "lastUpdateDateTime": {
  5174. "type": "string",
  5175. "description": "The last update date/time for the access list",
  5176. "format": "date-time",
  5177. "example": "2021-01-21T17:32:28Z"
  5178. }
  5179. }
  5180. },
  5181. "AccessListConfigurations": {
  5182. "required": [
  5183. "accessListEnabled"
  5184. ],
  5185. "type": "object",
  5186. "properties": {
  5187. "accessListEnabled": {
  5188. "type": "boolean"
  5189. }
  5190. }
  5191. },
  5192. "ValidationResponse": {
  5193. "type": "object",
  5194. "properties": {
  5195. "valid": {
  5196. "type": "boolean"
  5197. },
  5198. "validationFailures": {
  5199. "type": "array",
  5200. "items": {
  5201. "type": "string"
  5202. }
  5203. }
  5204. },
  5205. "description": "The response for validation checks"
  5206. },
  5207. "GenerateTokenBody": {
  5208. "type": "object",
  5209. "description": "The post body to generate a token",
  5210. "required": [
  5211. "roles"
  5212. ],
  5213. "properties": {
  5214. "roles": {
  5215. "type": "array",
  5216. "description": "The roles for which the token will be generated",
  5217. "items": {
  5218. "type": "string",
  5219. "example": "write"
  5220. }
  5221. }
  5222. }
  5223. },
  5224. "ClientRoleList": {
  5225. "type": "object",
  5226. "description": "The response for a requested token",
  5227. "properties": {
  5228. "clients": {
  5229. "type": "array",
  5230. "description": "a list of clientId and associated soles",
  5231. "items": {
  5232. "$ref": "#/components/schemas/ClientRole"
  5233. }
  5234. }
  5235. }
  5236. },
  5237. "ClientRole": {
  5238. "type": "object",
  5239. "description": "An individual clientID and associated roles",
  5240. "properties": {
  5241. "clientId": {
  5242. "type": "string",
  5243. "description": "the clientID",
  5244. "example": "IFmJlTkNvptFzTDEQpQIEJud"
  5245. },
  5246. "roles": {
  5247. "type": "array",
  5248. "items": {
  5249. "type": "string",
  5250. "description": "Role associated with the client."
  5251. }
  5252. }
  5253. }
  5254. },
  5255. "GenerateTokenResponse": {
  5256. "type": "object",
  5257. "description": "The response for a requested token",
  5258. "required": [
  5259. "clientId",
  5260. "secret",
  5261. "orgId",
  5262. "roles"
  5263. ],
  5264. "properties": {
  5265. "clientId": {
  5266. "type": "string",
  5267. "description": "The id of the client (uuid)",
  5268. "format": "string"
  5269. },
  5270. "secret": {
  5271. "type": "string",
  5272. "description": "The secret token",
  5273. "format": "string"
  5274. },
  5275. "orgId": {
  5276. "type": "string",
  5277. "description": "the UUID of the organization",
  5278. "example": "uuid"
  5279. },
  5280. "roles": {
  5281. "type": "array",
  5282. "description": "The roles for which the token will be generated",
  5283. "items": {
  5284. "type": "string",
  5285. "example": "write"
  5286. }
  5287. },
  5288. "token": {
  5289. "type": "string",
  5290. "description": "AstraCS:clientId:hex(sha256(secret))",
  5291. "example": "uuid"
  5292. }
  5293. }
  5294. },
  5295. "ExternalKMS": {
  5296. "type": "object",
  5297. "properties": {
  5298. "orgId": {
  5299. "type": "string",
  5300. "format": "uuid",
  5301. "description": "The unique identifier for the organization.",
  5302. "example": "368600f6-a1e7-42f1-8266-2960de5313f3"
  5303. },
  5304. "aws": {
  5305. "$ref": "#/components/schemas/AWS-KMS"
  5306. },
  5307. "gcp": {
  5308. "$ref": "#/components/schemas/GCP-KMS"
  5309. }
  5310. }
  5311. },
  5312. "AWS-KMS": {
  5313. "type": "object",
  5314. "properties": {
  5315. "keyID": {
  5316. "type": "string",
  5317. "description": "The unique identifier of the customer-key."
  5318. },
  5319. "region": {
  5320. "type": "string",
  5321. "description": "The region in which the master key exists."
  5322. }
  5323. }
  5324. },
  5325. "GCP-KMS": {
  5326. "type": "object",
  5327. "properties": {
  5328. "keyID": {
  5329. "type": "string",
  5330. "description": "The KMS key version resource id for encryption operations."
  5331. },
  5332. "region": {
  5333. "type": "string",
  5334. "description": "The region in which the key exists."
  5335. }
  5336. }
  5337. },
  5338. "GetAllCustomerKeys": {
  5339. "type": "array",
  5340. "description": "List of Customer Keys in an organization",
  5341. "items": {
  5342. "$ref": "#/components/schemas/ExternalKMSResponse"
  5343. }
  5344. },
  5345. "ExternalKMSResponse": {
  5346. "type": "object",
  5347. "properties": {
  5348. "OrganizationID": {
  5349. "type": "string"
  5350. },
  5351. "CloudProvider": {
  5352. "type": "string"
  5353. },
  5354. "KeyID": {
  5355. "type": "string"
  5356. },
  5357. "Region": {
  5358. "type": "string"
  5359. }
  5360. }
  5361. },
  5362. "GetParticularCustomerKey": {
  5363. "type": "object",
  5364. "description": "Retrieves a Customer Key for the specified provider and region combination",
  5365. "properties": {
  5366. "orgId": {
  5367. "type": "string",
  5368. "example": "ccd0aa59-facd-4a42-b27f-49dba057833d"
  5369. },
  5370. "aws": {
  5371. "type": "object",
  5372. "properties": {
  5373. "keyID": {
  5374. "type": "string",
  5375. "example": "arn:aws:kms:us-east-1:111111111:key/aabbbb-a00f-4c38-9e92-b46ff1ed181d"
  5376. },
  5377. "region": {
  5378. "type": "string",
  5379. "example": "us-east-1"
  5380. }
  5381. }
  5382. }
  5383. }
  5384. },
  5385. "GetCloudProviderAccounts": {
  5386. "type": "array",
  5387. "description": "List of Cloud provider accounts in an organization for a cloud-provider & region combination",
  5388. "items": {
  5389. "$ref": "#/components/schemas/CloudProviderAccountDetails"
  5390. }
  5391. },
  5392. "CloudProviderAccountDetails": {
  5393. "type": "object",
  5394. "properties": {
  5395. "organization_id": {
  5396. "type": "string"
  5397. },
  5398. "provider_id": {
  5399. "type": "string"
  5400. },
  5401. "provider": {
  5402. "type": "string"
  5403. }
  5404. }
  5405. },
  5406. "VPCConnection": {
  5407. "description": "A VPC peering connection with an Astra database",
  5408. "type": "object",
  5409. "required": [
  5410. "connectionId",
  5411. "status",
  5412. "currentVpc",
  5413. "otherVpc"
  5414. ],
  5415. "properties": {
  5416. "connectionId": {
  5417. "type": "string",
  5418. "description": "A unique identifier for the peering connection"
  5419. },
  5420. "status": {
  5421. "type": "string",
  5422. "description": "The current status of the connection"
  5423. },
  5424. "currentVpc": {
  5425. "description": "Details about the VPC where the Astra database is running",
  5426. "$ref": "#/components/schemas/VPC"
  5427. },
  5428. "otherVpc": {
  5429. "description": "Details about the VPC peered to the Astra database's VPC",
  5430. "$ref": "#/components/schemas/VPC"
  5431. }
  5432. }
  5433. },
  5434. "VPC": {
  5435. "description": "Details about a virtual private cloud",
  5436. "type": "object",
  5437. "required": [
  5438. "provider",
  5439. "account",
  5440. "vpcId",
  5441. "cidrBlock"
  5442. ],
  5443. "properties": {
  5444. "provider": {
  5445. "type": "string",
  5446. "example": "aws",
  5447. "description": "Cloud provider the VPC is hosted on"
  5448. },
  5449. "account": {
  5450. "type": "string",
  5451. "description": "Account (AWS), Project (GCP) or Subscription (Azure) the VPC belongs to"
  5452. },
  5453. "vpcId": {
  5454. "type": "string",
  5455. "description": "The VPC's unique identifier"
  5456. },
  5457. "cidrBlock": {
  5458. "type": "string",
  5459. "description": "The CIDR block available for this VPC",
  5460. "pattern": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$",
  5461. "example": "137.187.23.0/24"
  5462. }
  5463. }
  5464. },
  5465. "AzureVPC": {
  5466. "description": "Details about an Azure virtual private cloud",
  5467. "type": "object",
  5468. "required": [
  5469. "tenantId",
  5470. "subscriptionId",
  5471. "resourceGroupName",
  5472. "virtualNetworkName"
  5473. ],
  5474. "properties": {
  5475. "tenantId": {
  5476. "type": "string",
  5477. "description": "ID of the Azure tenant the subscription resides in"
  5478. },
  5479. "subscriptionId": {
  5480. "type": "string",
  5481. "description": "ID of the subscription the resource group and virtual network reside in"
  5482. },
  5483. "resourceGroupName": {
  5484. "type": "string",
  5485. "description": "Name of the Resource Group the virtual network resides in"
  5486. },
  5487. "virtualNetworkName": {
  5488. "type": "string",
  5489. "description": "Name of the Virtual Network the peering is connecting to"
  5490. }
  5491. }
  5492. },
  5493. "AmazonVPC": {
  5494. "description": "Details about an AWS virtual private cloud",
  5495. "type": "object",
  5496. "required": [
  5497. "accountId",
  5498. "vpcId",
  5499. "region",
  5500. "cidrBlock"
  5501. ],
  5502. "properties": {
  5503. "accountId": {
  5504. "type": "string",
  5505. "description": "ID of the AWS account the VPC belongs to",
  5506. "pattern": "^\\d{12}$",
  5507. "example": 123456780000
  5508. },
  5509. "vpcId": {
  5510. "type": "string",
  5511. "description": "Unique identifier for the VPC",
  5512. "pattern": "^(vpc-)([a-z0-9]{8}|[a-z0-9]{17})$",
  5513. "example": "vpc-00001111aa332244c"
  5514. },
  5515. "region": {
  5516. "type": "string",
  5517. "description": "AWS region the VPC resides in"
  5518. },
  5519. "cidrBlock": {
  5520. "type": "string",
  5521. "description": "The CIDR block available for this VPC",
  5522. "pattern": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$",
  5523. "example": "137.187.23.0/24"
  5524. }
  5525. }
  5526. },
  5527. "GoogleVPC": {
  5528. "description": "Details about a GCP virtual private cloud",
  5529. "type": "object",
  5530. "required": [
  5531. "projectId",
  5532. "vpcNetworkName"
  5533. ],
  5534. "properties": {
  5535. "projectId": {
  5536. "type": "string",
  5537. "description": "ID of the GPC project the VPC belongs to"
  5538. },
  5539. "vpcNetworkName": {
  5540. "type": "string",
  5541. "description": "Unique identifier for the VPC"
  5542. }
  5543. }
  5544. },
  5545. "MigrationStatus": {
  5546. "description": "Status information about an ongoing SSTables based migration.",
  5547. "type": "object",
  5548. "properties": {
  5549. "migrationID": {
  5550. "type": "string",
  5551. "description": "ID of an ongoing SSTables based migration."
  5552. },
  5553. "status": {
  5554. "type": "string",
  5555. "enum": [
  5556. "INITIALIZING",
  5557. "READY",
  5558. "STARTING",
  5559. "IN_PROGRESS",
  5560. "ERROR",
  5561. "DONE"
  5562. ]
  5563. },
  5564. "concurrency": {
  5565. "type": "integer",
  5566. "description": "Configured concurrency for the import."
  5567. },
  5568. "targetSubsetSizeGB": {
  5569. "type": "double",
  5570. "description": "Configured target subset size for the import."
  5571. }
  5572. }
  5573. }
  5574. },
  5575. "responses": {
  5576. "Ok": {
  5577. "description": "The request completed successfully"
  5578. },
  5579. "Created": {
  5580. "description": "The request completed successfully and created an object"
  5581. },
  5582. "Accepted": {
  5583. "description": "The request was accepted"
  5584. },
  5585. "NoContent": {
  5586. "description": "The request succeeded and no content is returned in response body"
  5587. },
  5588. "BadRequest": {
  5589. "description": "Bad request",
  5590. "content": {
  5591. "application/json": {
  5592. "schema": {
  5593. "$ref": "#/components/schemas/Errors"
  5594. }
  5595. }
  5596. }
  5597. },
  5598. "Unauthorized": {
  5599. "description": "The user is unauthorized to perform the operation",
  5600. "content": {
  5601. "application/json": {
  5602. "schema": {
  5603. "$ref": "#/components/schemas/Errors"
  5604. }
  5605. }
  5606. }
  5607. },
  5608. "Forbidden": {
  5609. "description": "The user is forbidden to perform the operation",
  5610. "content": {
  5611. "application/json": {
  5612. "schema": {
  5613. "$ref": "#/components/schemas/Errors"
  5614. }
  5615. }
  5616. }
  5617. },
  5618. "NotFound": {
  5619. "description": "The specified database was not found",
  5620. "content": {
  5621. "application/json": {
  5622. "schema": {
  5623. "$ref": "#/components/schemas/Errors"
  5624. }
  5625. }
  5626. }
  5627. },
  5628. "Conflict": {
  5629. "description": "The database is not in a valid state to perform the operation",
  5630. "content": {
  5631. "application/json": {
  5632. "schema": {
  5633. "$ref": "#/components/schemas/Errors"
  5634. }
  5635. }
  5636. }
  5637. },
  5638. "UnprocessableEntity": {
  5639. "description": "The structured data in the request could not be parsed",
  5640. "content": {
  5641. "application/json": {
  5642. "schema": {
  5643. "$ref": "#/components/schemas/Errors"
  5644. }
  5645. }
  5646. }
  5647. },
  5648. "ServerError": {
  5649. "description": "A server error occurred",
  5650. "content": {
  5651. "application/json": {
  5652. "schema": {
  5653. "$ref": "#/components/schemas/Errors"
  5654. }
  5655. }
  5656. }
  5657. }
  5658. },
  5659. "securitySchemes": {
  5660. "BearerAuth": {
  5661. "description": "An Application token must be passed in header in order to access the API. https://docs.datastax.com/en/astra-serverless/docs/manage/org/managing-org.html#_manage_application_tokens",
  5662. "type": "http",
  5663. "scheme": "bearer"
  5664. }
  5665. }
  5666. }
  5667. }