v1.yaml 181 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing,
  12. # software distributed under the License is distributed on an
  13. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. # KIND, either express or implied. See the License for the
  15. # specific language governing permissions and limitations
  16. # under the License.
  17. ---
  18. openapi: 3.0.3
  19. info:
  20. title: "Airflow API (Stable)"
  21. description: |
  22. # Overview
  23. To facilitate management, Apache Airflow supports a range of REST API endpoints across its
  24. objects.
  25. This section provides an overview of the API design, methods, and supported use cases.
  26. Most of the endpoints accept `JSON` as input and return `JSON` responses.
  27. This means that you must usually add the following headers to your request:
  28. ```
  29. Content-type: application/json
  30. Accept: application/json
  31. ```
  32. ## Resources
  33. The term `resource` refers to a single type of object in the Airflow metadata. An API is broken up by its
  34. endpoint's corresponding resource.
  35. The name of a resource is typically plural and expressed in camelCase. Example: `dagRuns`.
  36. Resource names are used as part of endpoint URLs, as well as in API parameters and responses.
  37. ## CRUD Operations
  38. The platform supports **C**reate, **R**ead, **U**pdate, and **D**elete operations on most resources.
  39. You can review the standards for these operations and their standard parameters below.
  40. Some endpoints have special behavior as exceptions.
  41. ### Create
  42. To create a resource, you typically submit an HTTP `POST` request with the resource's required metadata
  43. in the request body.
  44. The response returns a `201 Created` response code upon success with the resource's metadata, including
  45. its internal `id`, in the response body.
  46. ### Read
  47. The HTTP `GET` request can be used to read a resource or to list a number of resources.
  48. A resource's `id` can be submitted in the request parameters to read a specific resource.
  49. The response usually returns a `200 OK` response code upon success, with the resource's metadata in
  50. the response body.
  51. If a `GET` request does not include a specific resource `id`, it is treated as a list request.
  52. The response usually returns a `200 OK` response code upon success, with an object containing a list
  53. of resources' metadata in the response body.
  54. When reading resources, some common query parameters are usually available. e.g.:
  55. ```
  56. v1/connections?limit=25&offset=25
  57. ```
  58. |Query Parameter|Type|Description|
  59. |---------------|----|-----------|
  60. |limit|integer|Maximum number of objects to fetch. Usually 25 by default|
  61. |offset|integer|Offset after which to start returning objects. For use with limit query parameter.|
  62. ### Update
  63. Updating a resource requires the resource `id`, and is typically done using an HTTP `PATCH` request,
  64. with the fields to modify in the request body.
  65. The response usually returns a `200 OK` response code upon success, with information about the modified
  66. resource in the response body.
  67. ### Delete
  68. Deleting a resource requires the resource `id` and is typically executed via an HTTP `DELETE` request.
  69. The response usually returns a `204 No Content` response code upon success.
  70. ## Conventions
  71. - Resource names are plural and expressed in camelCase.
  72. - Names are consistent between URL parameter name and field name.
  73. - Field names are in snake_case.
  74. ```json
  75. {
  76. "description": "string",
  77. "name": "string",
  78. "occupied_slots": 0,
  79. "open_slots": 0
  80. "queued_slots": 0,
  81. "running_slots": 0,
  82. "scheduled_slots": 0,
  83. "slots": 0,
  84. }
  85. ```
  86. ### Update Mask
  87. Update mask is available as a query parameter in patch endpoints. It is used to notify the
  88. API which fields you want to update. Using `update_mask` makes it easier to update objects
  89. by helping the server know which fields to update in an object instead of updating all fields.
  90. The update request ignores any fields that aren't specified in the field mask, leaving them with
  91. their current values.
  92. Example:
  93. ```
  94. resource = request.get('/resource/my-id').json()
  95. resource['my_field'] = 'new-value'
  96. request.patch('/resource/my-id?update_mask=my_field', data=json.dumps(resource))
  97. ```
  98. ## Versioning and Endpoint Lifecycle
  99. - API versioning is not synchronized to specific releases of the Apache Airflow.
  100. - APIs are designed to be backward compatible.
  101. - Any changes to the API will first go through a deprecation phase.
  102. # Trying the API
  103. You can use a third party client, such as [curl](https://curl.haxx.se/), [HTTPie](https://httpie.org/),
  104. [Postman](https://www.postman.com/) or [the Insomnia rest client](https://insomnia.rest/) to test
  105. the Apache Airflow API.
  106. Note that you will need to pass credentials data.
  107. For e.g., here is how to pause a DAG with [curl](https://curl.haxx.se/), when basic authorization is used:
  108. ```bash
  109. curl -X PATCH 'https://example.com/api/v1/dags/{dag_id}?update_mask=is_paused' \
  110. -H 'Content-Type: application/json' \
  111. --user "username:password" \
  112. -d '{
  113. "is_paused": true
  114. }'
  115. ```
  116. Using a graphical tool such as [Postman](https://www.postman.com/) or [Insomnia](https://insomnia.rest/),
  117. it is possible to import the API specifications directly:
  118. 1. Download the API specification by clicking the **Download** button at the top of this document
  119. 2. Import the JSON specification in the graphical tool of your choice.
  120. - In *Postman*, you can click the **import** button at the top
  121. - With *Insomnia*, you can just drag-and-drop the file on the UI
  122. Note that with *Postman*, you can also generate code snippets by selecting a request and clicking on
  123. the **Code** button.
  124. ## Enabling CORS
  125. [Cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
  126. is a browser security feature that restricts HTTP requests that are
  127. initiated from scripts running in the browser.
  128. For details on enabling/configuring CORS, see
  129. [Enabling CORS](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html).
  130. # Authentication
  131. To be able to meet the requirements of many organizations, Airflow supports many authentication methods,
  132. and it is even possible to add your own method.
  133. If you want to check which auth backend is currently set, you can use
  134. `airflow config get-value api auth_backends` command as in the example below.
  135. ```bash
  136. $ airflow config get-value api auth_backends
  137. airflow.api.auth.backend.basic_auth
  138. ```
  139. The default is to deny all requests.
  140. For details on configuring the authentication, see
  141. [API Authorization](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html).
  142. # Errors
  143. We follow the error response format proposed in [RFC 7807](https://tools.ietf.org/html/rfc7807)
  144. also known as Problem Details for HTTP APIs. As with our normal API responses,
  145. your client must be prepared to gracefully handle additional members of the response.
  146. ## Unauthenticated
  147. This indicates that the request has not been applied because it lacks valid authentication
  148. credentials for the target resource. Please check that you have valid credentials.
  149. ## PermissionDenied
  150. This response means that the server understood the request but refuses to authorize
  151. it because it lacks sufficient rights to the resource. It happens when you do not have the
  152. necessary permission to execute the action you performed. You need to get the appropriate
  153. permissions in other to resolve this error.
  154. ## BadRequest
  155. This response means that the server cannot or will not process the request due to something
  156. that is perceived to be a client error (e.g., malformed request syntax, invalid request message
  157. framing, or deceptive request routing). To resolve this, please ensure that your syntax is correct.
  158. ## NotFound
  159. This client error response indicates that the server cannot find the requested resource.
  160. ## MethodNotAllowed
  161. Indicates that the request method is known by the server but is not supported by the target resource.
  162. ## NotAcceptable
  163. The target resource does not have a current representation that would be acceptable to the user
  164. agent, according to the proactive negotiation header fields received in the request, and the
  165. server is unwilling to supply a default representation.
  166. ## AlreadyExists
  167. The request could not be completed due to a conflict with the current state of the target
  168. resource, e.g. the resource it tries to create already exists.
  169. ## Unknown
  170. This means that the server encountered an unexpected condition that prevented it from
  171. fulfilling the request.
  172. version: "2.10.5"
  173. license:
  174. name: Apache 2.0
  175. url: http://www.apache.org/licenses/LICENSE-2.0.html
  176. contact:
  177. name: Apache Software Foundation
  178. url: https://airflow.apache.org
  179. email: dev@airflow.apache.org
  180. servers:
  181. - url: /api/v1
  182. description: Apache Airflow Stable API.
  183. paths:
  184. # Database entities
  185. /connections:
  186. get:
  187. summary: List connections
  188. x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
  189. operationId: get_connections
  190. tags: [Connection]
  191. parameters:
  192. - $ref: "#/components/parameters/PageLimit"
  193. - $ref: "#/components/parameters/PageOffset"
  194. - $ref: "#/components/parameters/OrderBy"
  195. responses:
  196. "200":
  197. description: Success.
  198. content:
  199. application/json:
  200. schema:
  201. $ref: "#/components/schemas/ConnectionCollection"
  202. "401":
  203. $ref: "#/components/responses/Unauthenticated"
  204. "403":
  205. $ref: "#/components/responses/PermissionDenied"
  206. post:
  207. summary: Create a connection
  208. x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
  209. operationId: post_connection
  210. tags: [Connection]
  211. requestBody:
  212. required: true
  213. content:
  214. application/json:
  215. schema:
  216. $ref: "#/components/schemas/Connection"
  217. responses:
  218. "200":
  219. description: Success.
  220. content:
  221. application/json:
  222. schema:
  223. $ref: "#/components/schemas/Connection"
  224. "400":
  225. $ref: "#/components/responses/BadRequest"
  226. "401":
  227. $ref: "#/components/responses/Unauthenticated"
  228. "403":
  229. $ref: "#/components/responses/PermissionDenied"
  230. /connections/{connection_id}:
  231. parameters:
  232. - $ref: "#/components/parameters/ConnectionID"
  233. get:
  234. summary: Get a connection
  235. x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
  236. operationId: get_connection
  237. tags: [Connection]
  238. responses:
  239. "200":
  240. description: Success.
  241. content:
  242. application/json:
  243. schema:
  244. $ref: "#/components/schemas/Connection"
  245. "401":
  246. $ref: "#/components/responses/Unauthenticated"
  247. "403":
  248. $ref: "#/components/responses/PermissionDenied"
  249. "404":
  250. $ref: "#/components/responses/NotFound"
  251. patch:
  252. summary: Update a connection
  253. x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
  254. operationId: patch_connection
  255. tags: [Connection]
  256. parameters:
  257. - $ref: "#/components/parameters/UpdateMask"
  258. requestBody:
  259. required: true
  260. content:
  261. application/json:
  262. schema:
  263. $ref: "#/components/schemas/Connection"
  264. responses:
  265. "200":
  266. description: Success.
  267. content:
  268. application/json:
  269. schema:
  270. $ref: "#/components/schemas/Connection"
  271. "400":
  272. $ref: "#/components/responses/BadRequest"
  273. "401":
  274. $ref: "#/components/responses/Unauthenticated"
  275. "403":
  276. $ref: "#/components/responses/PermissionDenied"
  277. "404":
  278. $ref: "#/components/responses/NotFound"
  279. delete:
  280. summary: Delete a connection
  281. x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
  282. operationId: delete_connection
  283. tags: [Connection]
  284. responses:
  285. "204":
  286. description: Success.
  287. "400":
  288. $ref: "#/components/responses/BadRequest"
  289. "401":
  290. $ref: "#/components/responses/Unauthenticated"
  291. "403":
  292. $ref: "#/components/responses/PermissionDenied"
  293. "404":
  294. $ref: "#/components/responses/NotFound"
  295. /connections/test:
  296. post:
  297. summary: Test a connection
  298. description: |
  299. Test a connection.
  300. For security reasons, the test connection functionality is disabled by default across Airflow UI, API and CLI.
  301. For more information on capabilities of users, see the documentation:
  302. https://airflow.apache.org/docs/apache-airflow/stable/security/security_model.html#capabilities-of-authenticated-ui-users.
  303. It is strongly advised to not enable the feature until you make sure that only
  304. highly trusted UI/API users have "edit connection" permissions.
  305. Set the "test_connection" flag to "Enabled" in the "core" section of Airflow configuration (airflow.cfg) to enable testing of collections.
  306. It can also be controlled by the environment variable `AIRFLOW__CORE__TEST_CONNECTION`.
  307. *New in version 2.2.0*
  308. x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
  309. operationId: test_connection
  310. tags: [Connection]
  311. requestBody:
  312. required: true
  313. content:
  314. application/json:
  315. schema:
  316. $ref: "#/components/schemas/Connection"
  317. responses:
  318. "200":
  319. description: Success.
  320. content:
  321. application/json:
  322. schema:
  323. $ref: "#/components/schemas/ConnectionTest"
  324. "400":
  325. $ref: "#/components/responses/BadRequest"
  326. "401":
  327. $ref: "#/components/responses/Unauthenticated"
  328. "403":
  329. $ref: "#/components/responses/PermissionDenied"
  330. "404":
  331. $ref: "#/components/responses/NotFound"
  332. /dags:
  333. get:
  334. summary: List DAGs
  335. description: >
  336. List DAGs in the database.
  337. `dag_id_pattern` can be set to match dags of a specific pattern
  338. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_endpoint
  339. operationId: get_dags
  340. tags: [DAG]
  341. parameters:
  342. - $ref: "#/components/parameters/PageLimit"
  343. - $ref: "#/components/parameters/PageOffset"
  344. - $ref: "#/components/parameters/OrderBy"
  345. - $ref: "#/components/parameters/FilterTags"
  346. - $ref: "#/components/parameters/OnlyActive"
  347. - $ref: "#/components/parameters/Paused"
  348. - $ref: "#/components/parameters/ReturnFields"
  349. - name: dag_id_pattern
  350. in: query
  351. schema:
  352. type: string
  353. required: false
  354. description: |
  355. If set, only return DAGs with dag_ids matching this pattern.
  356. responses:
  357. "200":
  358. description: Success.
  359. content:
  360. application/json:
  361. schema:
  362. $ref: "#/components/schemas/DAGCollection"
  363. "401":
  364. $ref: "#/components/responses/Unauthenticated"
  365. patch:
  366. summary: Update DAGs
  367. description: >
  368. Update DAGs of a given dag_id_pattern using UpdateMask.
  369. This endpoint allows specifying `~` as the dag_id_pattern to update all DAGs.
  370. *New in version 2.3.0*
  371. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_endpoint
  372. operationId: patch_dags
  373. parameters:
  374. - $ref: "#/components/parameters/PageLimit"
  375. - $ref: "#/components/parameters/PageOffset"
  376. - $ref: "#/components/parameters/FilterTags"
  377. - $ref: "#/components/parameters/UpdateMask"
  378. - $ref: "#/components/parameters/OnlyActive"
  379. - name: dag_id_pattern
  380. in: query
  381. schema:
  382. type: string
  383. required: true
  384. description: |
  385. If set, only update DAGs with dag_ids matching this pattern.
  386. tags: [DAG]
  387. requestBody:
  388. required: true
  389. content:
  390. application/json:
  391. schema:
  392. $ref: "#/components/schemas/DAG"
  393. example:
  394. is_paused: true
  395. responses:
  396. "200":
  397. description: Success.
  398. content:
  399. application/json:
  400. schema:
  401. $ref: "#/components/schemas/DAGCollection"
  402. "401":
  403. $ref: "#/components/responses/Unauthenticated"
  404. "403":
  405. $ref: "#/components/responses/PermissionDenied"
  406. "404":
  407. $ref: "#/components/responses/NotFound"
  408. /dags/{dag_id}:
  409. parameters:
  410. - $ref: "#/components/parameters/DAGID"
  411. get:
  412. summary: Get basic information about a DAG
  413. description: >
  414. Presents only information available in database (DAGModel).
  415. If you need detailed information, consider using GET /dags/{dag_id}/details.
  416. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_endpoint
  417. operationId: get_dag
  418. tags: [DAG]
  419. parameters:
  420. - $ref: "#/components/parameters/ReturnFields"
  421. responses:
  422. "200":
  423. description: Success.
  424. content:
  425. application/json:
  426. schema:
  427. $ref: "#/components/schemas/DAG"
  428. "401":
  429. $ref: "#/components/responses/Unauthenticated"
  430. "403":
  431. $ref: "#/components/responses/PermissionDenied"
  432. "404":
  433. $ref: "#/components/responses/NotFound"
  434. patch:
  435. summary: Update a DAG
  436. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_endpoint
  437. operationId: patch_dag
  438. parameters:
  439. - $ref: "#/components/parameters/UpdateMask"
  440. tags: [DAG]
  441. requestBody:
  442. required: true
  443. content:
  444. application/json:
  445. schema:
  446. $ref: "#/components/schemas/DAG"
  447. example:
  448. is_paused: true
  449. responses:
  450. "200":
  451. description: Success.
  452. content:
  453. application/json:
  454. schema:
  455. $ref: "#/components/schemas/DAG"
  456. "401":
  457. $ref: "#/components/responses/Unauthenticated"
  458. "403":
  459. $ref: "#/components/responses/PermissionDenied"
  460. "404":
  461. $ref: "#/components/responses/NotFound"
  462. delete:
  463. summary: Delete a DAG
  464. description: |
  465. Deletes all metadata related to the DAG, including finished DAG Runs and Tasks.
  466. Logs are not deleted. This action cannot be undone.
  467. *New in version 2.2.0*
  468. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_endpoint
  469. operationId: delete_dag
  470. tags: [DAG]
  471. responses:
  472. "204":
  473. description: Success.
  474. "400":
  475. $ref: "#/components/responses/BadRequest"
  476. "401":
  477. $ref: "#/components/responses/Unauthenticated"
  478. "403":
  479. $ref: "#/components/responses/PermissionDenied"
  480. "404":
  481. $ref: "#/components/responses/NotFound"
  482. "409":
  483. $ref: "#/components/responses/AlreadyExists"
  484. /dags/{dag_id}/clearTaskInstances:
  485. parameters:
  486. - $ref: "#/components/parameters/DAGID"
  487. post:
  488. summary: Clear a set of task instances
  489. description: >
  490. Clears a set of task instances associated with the DAG for a specified date range.
  491. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  492. operationId: post_clear_task_instances
  493. tags: [DAG]
  494. requestBody:
  495. description: Parameters of action
  496. required: true
  497. content:
  498. application/json:
  499. schema:
  500. $ref: "#/components/schemas/ClearTaskInstances"
  501. responses:
  502. "200":
  503. description: Success.
  504. content:
  505. application/json:
  506. schema:
  507. $ref: "#/components/schemas/TaskInstanceReferenceCollection"
  508. "401":
  509. $ref: "#/components/responses/Unauthenticated"
  510. "403":
  511. $ref: "#/components/responses/PermissionDenied"
  512. "404":
  513. $ref: "#/components/responses/NotFound"
  514. /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/setNote:
  515. parameters:
  516. - $ref: "#/components/parameters/DAGID"
  517. - $ref: "#/components/parameters/DAGRunID"
  518. - $ref: "#/components/parameters/TaskID"
  519. patch:
  520. summary: Update the TaskInstance note.
  521. description: |
  522. Update the manual user note of a non-mapped Task Instance.
  523. *New in version 2.5.0*
  524. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  525. operationId: set_task_instance_note
  526. tags: [TaskInstance]
  527. requestBody:
  528. description: Parameters of set Task Instance note.
  529. required: true
  530. content:
  531. application/json:
  532. schema:
  533. $ref: "#/components/schemas/SetTaskInstanceNote"
  534. responses:
  535. "200":
  536. description: Success.
  537. content:
  538. application/json:
  539. schema:
  540. $ref: "#/components/schemas/TaskInstance"
  541. "400":
  542. $ref: "#/components/responses/BadRequest"
  543. "401":
  544. $ref: "#/components/responses/Unauthenticated"
  545. "403":
  546. $ref: "#/components/responses/PermissionDenied"
  547. "404":
  548. $ref: "#/components/responses/NotFound"
  549. ? /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/setNote
  550. : parameters:
  551. - $ref: "#/components/parameters/DAGID"
  552. - $ref: "#/components/parameters/DAGRunID"
  553. - $ref: "#/components/parameters/TaskID"
  554. - $ref: "#/components/parameters/MapIndex"
  555. patch:
  556. summary: Update the TaskInstance note.
  557. description: |
  558. Update the manual user note of a mapped Task Instance.
  559. *New in version 2.5.0*
  560. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  561. operationId: set_mapped_task_instance_note
  562. tags: [TaskInstance]
  563. requestBody:
  564. description: Parameters of set Task Instance note.
  565. required: true
  566. content:
  567. application/json:
  568. schema:
  569. $ref: "#/components/schemas/SetTaskInstanceNote"
  570. responses:
  571. "200":
  572. description: Success.
  573. content:
  574. application/json:
  575. schema:
  576. $ref: "#/components/schemas/TaskInstance"
  577. "400":
  578. $ref: "#/components/responses/BadRequest"
  579. "401":
  580. $ref: "#/components/responses/Unauthenticated"
  581. "403":
  582. $ref: "#/components/responses/PermissionDenied"
  583. "404":
  584. $ref: "#/components/responses/NotFound"
  585. /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/dependencies:
  586. parameters:
  587. - $ref: "#/components/parameters/DAGID"
  588. - $ref: "#/components/parameters/DAGRunID"
  589. - $ref: "#/components/parameters/TaskID"
  590. get:
  591. summary: Get task dependencies blocking task from getting scheduled.
  592. description: |
  593. Get task dependencies blocking task from getting scheduled.
  594. *New in version 2.10.0*
  595. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  596. operationId: get_task_instance_dependencies
  597. tags: [TaskInstance]
  598. responses:
  599. "200":
  600. description: Success.
  601. content:
  602. application/json:
  603. schema:
  604. $ref: "#/components/schemas/TaskInstanceDependencyCollection"
  605. "400":
  606. $ref: "#/components/responses/BadRequest"
  607. "401":
  608. $ref: "#/components/responses/Unauthenticated"
  609. "403":
  610. $ref: "#/components/responses/PermissionDenied"
  611. "404":
  612. $ref: "#/components/responses/NotFound"
  613. ? /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/dependencies
  614. : parameters:
  615. - $ref: "#/components/parameters/DAGID"
  616. - $ref: "#/components/parameters/DAGRunID"
  617. - $ref: "#/components/parameters/TaskID"
  618. - $ref: "#/components/parameters/MapIndex"
  619. get:
  620. summary: Get task dependencies blocking task from getting scheduled.
  621. description: |
  622. Get task dependencies blocking task from getting scheduled.
  623. *New in version 2.10.0*
  624. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  625. operationId: get_mapped_task_instance_dependencies
  626. tags: [TaskInstance]
  627. responses:
  628. "200":
  629. description: Success.
  630. content:
  631. application/json:
  632. schema:
  633. $ref: "#/components/schemas/TaskInstanceDependencyCollection"
  634. "400":
  635. $ref: "#/components/responses/BadRequest"
  636. "401":
  637. $ref: "#/components/responses/Unauthenticated"
  638. "403":
  639. $ref: "#/components/responses/PermissionDenied"
  640. "404":
  641. $ref: "#/components/responses/NotFound"
  642. /dags/{dag_id}/updateTaskInstancesState:
  643. parameters:
  644. - $ref: "#/components/parameters/DAGID"
  645. post:
  646. summary: Set a state of task instances
  647. description: >
  648. Updates the state for multiple task instances simultaneously.
  649. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  650. operationId: post_set_task_instances_state
  651. tags: [DAG]
  652. requestBody:
  653. description: Parameters of action
  654. required: true
  655. content:
  656. application/json:
  657. schema:
  658. $ref: "#/components/schemas/UpdateTaskInstancesState"
  659. responses:
  660. "200":
  661. description: Success.
  662. content:
  663. application/json:
  664. schema:
  665. $ref: "#/components/schemas/TaskInstanceReferenceCollection"
  666. "401":
  667. $ref: "#/components/responses/Unauthenticated"
  668. "403":
  669. $ref: "#/components/responses/PermissionDenied"
  670. "404":
  671. $ref: "#/components/responses/NotFound"
  672. /dags/{dag_id}/dagRuns:
  673. parameters:
  674. - $ref: "#/components/parameters/DAGID"
  675. get:
  676. summary: List DAG runs
  677. description: >
  678. This endpoint allows specifying `~` as the dag_id to retrieve DAG runs for all DAGs.
  679. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
  680. operationId: get_dag_runs
  681. tags: [DAGRun]
  682. parameters:
  683. - $ref: "#/components/parameters/PageLimit"
  684. - $ref: "#/components/parameters/PageOffset"
  685. - $ref: "#/components/parameters/FilterExecutionDateGTE"
  686. - $ref: "#/components/parameters/FilterExecutionDateLTE"
  687. - $ref: "#/components/parameters/FilterStartDateGTE"
  688. - $ref: "#/components/parameters/FilterStartDateLTE"
  689. - $ref: "#/components/parameters/FilterEndDateGTE"
  690. - $ref: "#/components/parameters/FilterEndDateLTE"
  691. - $ref: "#/components/parameters/FilterUpdatedAtGTE"
  692. - $ref: "#/components/parameters/FilterUpdatedAtLTE"
  693. - $ref: "#/components/parameters/FilterState"
  694. - $ref: "#/components/parameters/OrderBy"
  695. - $ref: "#/components/parameters/ReturnFields"
  696. responses:
  697. "200":
  698. description: List of DAG runs.
  699. content:
  700. application/json:
  701. schema:
  702. $ref: "#/components/schemas/DAGRunCollection"
  703. "401":
  704. $ref: "#/components/responses/Unauthenticated"
  705. post:
  706. summary: Trigger a new DAG run.
  707. description: >
  708. This will initiate a dagrun.
  709. If DAG is paused then dagrun state will remain queued, and the task won't run.
  710. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
  711. operationId: post_dag_run
  712. tags: [DAGRun]
  713. requestBody:
  714. required: true
  715. content:
  716. application/json:
  717. schema:
  718. $ref: "#/components/schemas/DAGRun"
  719. responses:
  720. "200":
  721. description: Success.
  722. content:
  723. application/json:
  724. schema:
  725. $ref: "#/components/schemas/DAGRun"
  726. "400":
  727. $ref: "#/components/responses/BadRequest"
  728. "401":
  729. $ref: "#/components/responses/Unauthenticated"
  730. "409":
  731. $ref: "#/components/responses/AlreadyExists"
  732. "403":
  733. $ref: "#/components/responses/PermissionDenied"
  734. "404":
  735. $ref: "#/components/responses/NotFound"
  736. /dags/~/dagRuns/list:
  737. post:
  738. summary: List DAG runs (batch)
  739. description: >
  740. This endpoint is a POST to allow filtering across a large number of DAG IDs, where as a GET it
  741. would run in to maximum HTTP request URL length limit.
  742. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
  743. operationId: get_dag_runs_batch
  744. tags: [DAGRun]
  745. requestBody:
  746. required: true
  747. content:
  748. application/json:
  749. schema:
  750. $ref: "#/components/schemas/ListDagRunsForm"
  751. responses:
  752. "200":
  753. description: Success.
  754. content:
  755. application/json:
  756. schema:
  757. $ref: "#/components/schemas/DAGRunCollection"
  758. "400":
  759. $ref: "#/components/responses/BadRequest"
  760. "401":
  761. $ref: "#/components/responses/Unauthenticated"
  762. "403":
  763. $ref: "#/components/responses/PermissionDenied"
  764. /dags/{dag_id}/dagRuns/{dag_run_id}:
  765. parameters:
  766. - $ref: "#/components/parameters/DAGID"
  767. - $ref: "#/components/parameters/DAGRunID"
  768. get:
  769. summary: Get a DAG run
  770. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
  771. operationId: get_dag_run
  772. tags: [DAGRun]
  773. parameters:
  774. - $ref: "#/components/parameters/ReturnFields"
  775. responses:
  776. "200":
  777. description: Success.
  778. content:
  779. application/json:
  780. schema:
  781. $ref: "#/components/schemas/DAGRun"
  782. "401":
  783. $ref: "#/components/responses/Unauthenticated"
  784. "403":
  785. $ref: "#/components/responses/PermissionDenied"
  786. "404":
  787. $ref: "#/components/responses/NotFound"
  788. delete:
  789. summary: Delete a DAG run
  790. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
  791. operationId: delete_dag_run
  792. tags: [DAGRun]
  793. responses:
  794. "204":
  795. description: Success.
  796. "400":
  797. $ref: "#/components/responses/BadRequest"
  798. "401":
  799. $ref: "#/components/responses/Unauthenticated"
  800. "403":
  801. $ref: "#/components/responses/PermissionDenied"
  802. "404":
  803. $ref: "#/components/responses/NotFound"
  804. patch:
  805. summary: Modify a DAG run
  806. description: |
  807. Modify a DAG run.
  808. *New in version 2.2.0*
  809. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
  810. operationId: update_dag_run_state
  811. tags: [DAGRun]
  812. requestBody:
  813. required: true
  814. content:
  815. application/json:
  816. schema:
  817. $ref: "#/components/schemas/UpdateDagRunState"
  818. responses:
  819. "200":
  820. description: Success.
  821. content:
  822. application/json:
  823. schema:
  824. $ref: "#/components/schemas/DAGRun"
  825. "400":
  826. $ref: "#/components/responses/BadRequest"
  827. "401":
  828. $ref: "#/components/responses/Unauthenticated"
  829. "403":
  830. $ref: "#/components/responses/PermissionDenied"
  831. "404":
  832. $ref: "#/components/responses/NotFound"
  833. /dags/{dag_id}/dagRuns/{dag_run_id}/clear:
  834. parameters:
  835. - $ref: "#/components/parameters/DAGID"
  836. - $ref: "#/components/parameters/DAGRunID"
  837. post:
  838. summary: Clear a DAG run
  839. description: |
  840. Clear a DAG run.
  841. *New in version 2.4.0*
  842. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
  843. operationId: clear_dag_run
  844. tags: [DAGRun]
  845. requestBody:
  846. required: true
  847. content:
  848. application/json:
  849. schema:
  850. $ref: "#/components/schemas/ClearDagRun"
  851. responses:
  852. "200":
  853. description: Success.
  854. content:
  855. application/json:
  856. schema:
  857. anyOf:
  858. - $ref: "#/components/schemas/DAGRun"
  859. - $ref: "#/components/schemas/TaskInstanceCollection"
  860. "400":
  861. $ref: "#/components/responses/BadRequest"
  862. "401":
  863. $ref: "#/components/responses/Unauthenticated"
  864. "403":
  865. $ref: "#/components/responses/PermissionDenied"
  866. "404":
  867. $ref: "#/components/responses/NotFound"
  868. /dags/{dag_id}/dagRuns/{dag_run_id}/upstreamDatasetEvents:
  869. parameters:
  870. - $ref: "#/components/parameters/DAGID"
  871. - $ref: "#/components/parameters/DAGRunID"
  872. get:
  873. summary: Get dataset events for a DAG run
  874. description: |
  875. Get datasets for a dag run.
  876. *New in version 2.4.0*
  877. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
  878. operationId: get_upstream_dataset_events
  879. tags: [DAGRun, Dataset]
  880. responses:
  881. "200":
  882. description: Success.
  883. content:
  884. application/json:
  885. schema:
  886. $ref: "#/components/schemas/DatasetEventCollection"
  887. "401":
  888. $ref: "#/components/responses/Unauthenticated"
  889. "403":
  890. $ref: "#/components/responses/PermissionDenied"
  891. "404":
  892. $ref: "#/components/responses/NotFound"
  893. /dags/{dag_id}/dagRuns/{dag_run_id}/setNote:
  894. parameters:
  895. - $ref: "#/components/parameters/DAGID"
  896. - $ref: "#/components/parameters/DAGRunID"
  897. patch:
  898. summary: Update the DagRun note.
  899. description: |
  900. Update the manual user note of a DagRun.
  901. *New in version 2.5.0*
  902. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
  903. operationId: set_dag_run_note
  904. tags: [DAGRun]
  905. requestBody:
  906. description: Parameters of set DagRun note.
  907. required: true
  908. content:
  909. application/json:
  910. schema:
  911. $ref: "#/components/schemas/SetDagRunNote"
  912. responses:
  913. "200":
  914. description: Success.
  915. content:
  916. application/json:
  917. schema:
  918. $ref: "#/components/schemas/DAGRun"
  919. "400":
  920. $ref: "#/components/responses/BadRequest"
  921. "401":
  922. $ref: "#/components/responses/Unauthenticated"
  923. "403":
  924. $ref: "#/components/responses/PermissionDenied"
  925. "404":
  926. $ref: "#/components/responses/NotFound"
  927. /dags/{dag_id}/datasets/queuedEvent/{uri}:
  928. parameters:
  929. - $ref: "#/components/parameters/DAGID"
  930. - $ref: "#/components/parameters/DatasetURI"
  931. get:
  932. summary: Get a queued Dataset event for a DAG
  933. description: |
  934. Get a queued Dataset event for a DAG.
  935. *New in version 2.9.0*
  936. x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
  937. operationId: get_dag_dataset_queued_event
  938. parameters:
  939. - $ref: "#/components/parameters/Before"
  940. tags: [Dataset]
  941. responses:
  942. "200":
  943. description: Success.
  944. content:
  945. application/json:
  946. schema:
  947. $ref: "#/components/schemas/QueuedEvent"
  948. "401":
  949. $ref: "#/components/responses/Unauthenticated"
  950. "403":
  951. $ref: "#/components/responses/PermissionDenied"
  952. "404":
  953. $ref: "#/components/responses/NotFound"
  954. delete:
  955. summary: Delete a queued Dataset event for a DAG.
  956. description: |
  957. Delete a queued Dataset event for a DAG.
  958. *New in version 2.9.0*
  959. x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
  960. operationId: delete_dag_dataset_queued_event
  961. parameters:
  962. - $ref: "#/components/parameters/Before"
  963. tags: [Dataset]
  964. responses:
  965. "204":
  966. description: Success.
  967. "400":
  968. $ref: "#/components/responses/BadRequest"
  969. "401":
  970. $ref: "#/components/responses/Unauthenticated"
  971. "403":
  972. $ref: "#/components/responses/PermissionDenied"
  973. "404":
  974. $ref: "#/components/responses/NotFound"
  975. /dags/{dag_id}/datasets/queuedEvent:
  976. parameters:
  977. - $ref: "#/components/parameters/DAGID"
  978. get:
  979. summary: Get queued Dataset events for a DAG.
  980. description: |
  981. Get queued Dataset events for a DAG.
  982. *New in version 2.9.0*
  983. x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
  984. operationId: get_dag_dataset_queued_events
  985. parameters:
  986. - $ref: "#/components/parameters/Before"
  987. tags: [Dataset]
  988. responses:
  989. "200":
  990. description: Success.
  991. content:
  992. application/json:
  993. schema:
  994. $ref: "#/components/schemas/QueuedEventCollection"
  995. "401":
  996. $ref: "#/components/responses/Unauthenticated"
  997. "403":
  998. $ref: "#/components/responses/PermissionDenied"
  999. "404":
  1000. $ref: "#/components/responses/NotFound"
  1001. delete:
  1002. summary: Delete queued Dataset events for a DAG.
  1003. description: |
  1004. Delete queued Dataset events for a DAG.
  1005. *New in version 2.9.0*
  1006. x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
  1007. operationId: delete_dag_dataset_queued_events
  1008. parameters:
  1009. - $ref: "#/components/parameters/Before"
  1010. tags: [Dataset]
  1011. responses:
  1012. "204":
  1013. description: Success.
  1014. "400":
  1015. $ref: "#/components/responses/BadRequest"
  1016. "401":
  1017. $ref: "#/components/responses/Unauthenticated"
  1018. "403":
  1019. $ref: "#/components/responses/PermissionDenied"
  1020. "404":
  1021. $ref: "#/components/responses/NotFound"
  1022. /parseDagFile/{file_token}:
  1023. parameters:
  1024. - $ref: "#/components/parameters/FileToken"
  1025. put:
  1026. summary: Request re-parsing of a DAG file
  1027. description: >
  1028. Request re-parsing of existing DAG files using a file token.
  1029. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_parsing
  1030. operationId: reparse_dag_file
  1031. tags: [ DAG ]
  1032. responses:
  1033. "201":
  1034. description: Success.
  1035. "401":
  1036. $ref: "#/components/responses/Unauthenticated"
  1037. "403":
  1038. $ref: "#/components/responses/PermissionDenied"
  1039. "404":
  1040. $ref: "#/components/responses/NotFound"
  1041. /datasets/queuedEvent/{uri}:
  1042. parameters:
  1043. - $ref: "#/components/parameters/DatasetURI"
  1044. get:
  1045. summary: Get queued Dataset events for a Dataset.
  1046. description: |
  1047. Get queued Dataset events for a Dataset
  1048. *New in version 2.9.0*
  1049. x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
  1050. operationId: get_dataset_queued_events
  1051. parameters:
  1052. - $ref: "#/components/parameters/Before"
  1053. tags: [Dataset]
  1054. responses:
  1055. "200":
  1056. description: Success.
  1057. content:
  1058. application/json:
  1059. schema:
  1060. $ref: "#/components/schemas/QueuedEventCollection"
  1061. "401":
  1062. $ref: "#/components/responses/Unauthenticated"
  1063. "403":
  1064. $ref: "#/components/responses/PermissionDenied"
  1065. "404":
  1066. $ref: "#/components/responses/NotFound"
  1067. delete:
  1068. summary: Delete queued Dataset events for a Dataset.
  1069. description: |
  1070. Delete queued Dataset events for a Dataset.
  1071. *New in version 2.9.0*
  1072. x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
  1073. operationId: delete_dataset_queued_events
  1074. parameters:
  1075. - $ref: "#/components/parameters/Before"
  1076. tags: [Dataset]
  1077. responses:
  1078. "204":
  1079. description: Success.
  1080. "400":
  1081. $ref: "#/components/responses/BadRequest"
  1082. "401":
  1083. $ref: "#/components/responses/Unauthenticated"
  1084. "403":
  1085. $ref: "#/components/responses/PermissionDenied"
  1086. "404":
  1087. $ref: "#/components/responses/NotFound"
  1088. /eventLogs:
  1089. get:
  1090. summary: List log entries
  1091. description: List log entries from event log.
  1092. x-openapi-router-controller: airflow.api_connexion.endpoints.event_log_endpoint
  1093. operationId: get_event_logs
  1094. tags: [EventLog]
  1095. parameters:
  1096. - $ref: "#/components/parameters/PageLimit"
  1097. - $ref: "#/components/parameters/PageOffset"
  1098. - $ref: "#/components/parameters/OrderBy"
  1099. - $ref: "#/components/parameters/FilterDAGID"
  1100. - $ref: "#/components/parameters/FilterTaskID"
  1101. - $ref: "#/components/parameters/FilterRunID"
  1102. - $ref: "#/components/parameters/FilterMapIndex"
  1103. - $ref: "#/components/parameters/FilterTryNumber"
  1104. - $ref: "#/components/parameters/Event"
  1105. - $ref: "#/components/parameters/Owner"
  1106. - $ref: "#/components/parameters/Before"
  1107. - $ref: "#/components/parameters/After"
  1108. - name: included_events
  1109. in: query
  1110. schema:
  1111. type: string
  1112. required: false
  1113. description: |
  1114. One or more event names separated by commas. If set, only return event logs with events matching this pattern.
  1115. *New in version 2.9.0*
  1116. - name: excluded_events
  1117. in: query
  1118. schema:
  1119. type: string
  1120. required: false
  1121. description: |
  1122. One or more event names separated by commas. If set, only return event logs with events that do not match this pattern.
  1123. *New in version 2.9.0*
  1124. responses:
  1125. "200":
  1126. description: Success.
  1127. content:
  1128. application/json:
  1129. schema:
  1130. $ref: "#/components/schemas/EventLogCollection"
  1131. "401":
  1132. $ref: "#/components/responses/Unauthenticated"
  1133. "403":
  1134. $ref: "#/components/responses/PermissionDenied"
  1135. /eventLogs/{event_log_id}:
  1136. parameters:
  1137. - $ref: "#/components/parameters/EventLogID"
  1138. get:
  1139. summary: Get a log entry
  1140. x-openapi-router-controller: airflow.api_connexion.endpoints.event_log_endpoint
  1141. operationId: get_event_log
  1142. tags: [EventLog]
  1143. responses:
  1144. "200":
  1145. description: Success.
  1146. content:
  1147. application/json:
  1148. schema:
  1149. $ref: "#/components/schemas/EventLog"
  1150. "401":
  1151. $ref: "#/components/responses/Unauthenticated"
  1152. "403":
  1153. $ref: "#/components/responses/PermissionDenied"
  1154. "404":
  1155. $ref: "#/components/responses/NotFound"
  1156. /importErrors:
  1157. get:
  1158. summary: List import errors
  1159. x-openapi-router-controller: airflow.api_connexion.endpoints.import_error_endpoint
  1160. operationId: get_import_errors
  1161. tags: [ImportError]
  1162. parameters:
  1163. - $ref: "#/components/parameters/PageLimit"
  1164. - $ref: "#/components/parameters/PageOffset"
  1165. - $ref: "#/components/parameters/OrderBy"
  1166. responses:
  1167. "200":
  1168. description: Success.
  1169. content:
  1170. application/json:
  1171. schema:
  1172. $ref: "#/components/schemas/ImportErrorCollection"
  1173. "401":
  1174. $ref: "#/components/responses/Unauthenticated"
  1175. "403":
  1176. $ref: "#/components/responses/PermissionDenied"
  1177. /importErrors/{import_error_id}:
  1178. parameters:
  1179. - $ref: "#/components/parameters/ImportErrorID"
  1180. get:
  1181. summary: Get an import error
  1182. x-openapi-router-controller: airflow.api_connexion.endpoints.import_error_endpoint
  1183. operationId: get_import_error
  1184. tags: [ImportError]
  1185. responses:
  1186. "200":
  1187. description: Success.
  1188. content:
  1189. application/json:
  1190. schema:
  1191. $ref: "#/components/schemas/ImportError"
  1192. "401":
  1193. $ref: "#/components/responses/Unauthenticated"
  1194. "403":
  1195. $ref: "#/components/responses/PermissionDenied"
  1196. "404":
  1197. $ref: "#/components/responses/NotFound"
  1198. /pools:
  1199. get:
  1200. summary: List pools
  1201. x-openapi-router-controller: airflow.api_connexion.endpoints.pool_endpoint
  1202. operationId: get_pools
  1203. tags: [Pool]
  1204. parameters:
  1205. - $ref: "#/components/parameters/PageLimit"
  1206. - $ref: "#/components/parameters/PageOffset"
  1207. - $ref: "#/components/parameters/OrderBy"
  1208. responses:
  1209. "200":
  1210. description: List of pools.
  1211. content:
  1212. application/json:
  1213. schema:
  1214. $ref: "#/components/schemas/PoolCollection"
  1215. "401":
  1216. $ref: "#/components/responses/Unauthenticated"
  1217. "403":
  1218. $ref: "#/components/responses/PermissionDenied"
  1219. post:
  1220. summary: Create a pool
  1221. x-openapi-router-controller: airflow.api_connexion.endpoints.pool_endpoint
  1222. operationId: post_pool
  1223. tags: [Pool]
  1224. requestBody:
  1225. required: true
  1226. content:
  1227. application/json:
  1228. schema:
  1229. $ref: "#/components/schemas/Pool"
  1230. responses:
  1231. "200":
  1232. description: Success.
  1233. content:
  1234. application/json:
  1235. schema:
  1236. $ref: "#/components/schemas/Pool"
  1237. "400":
  1238. $ref: "#/components/responses/BadRequest"
  1239. "401":
  1240. $ref: "#/components/responses/Unauthenticated"
  1241. "403":
  1242. $ref: "#/components/responses/PermissionDenied"
  1243. /pools/{pool_name}:
  1244. parameters:
  1245. - $ref: "#/components/parameters/PoolName"
  1246. get:
  1247. summary: Get a pool
  1248. x-openapi-router-controller: airflow.api_connexion.endpoints.pool_endpoint
  1249. operationId: get_pool
  1250. tags: [Pool]
  1251. responses:
  1252. "200":
  1253. description: Success.
  1254. content:
  1255. application/json:
  1256. schema:
  1257. $ref: "#/components/schemas/Pool"
  1258. "401":
  1259. $ref: "#/components/responses/Unauthenticated"
  1260. "403":
  1261. $ref: "#/components/responses/PermissionDenied"
  1262. "404":
  1263. $ref: "#/components/responses/NotFound"
  1264. patch:
  1265. summary: Update a pool
  1266. x-openapi-router-controller: airflow.api_connexion.endpoints.pool_endpoint
  1267. operationId: patch_pool
  1268. tags: [Pool]
  1269. parameters:
  1270. - $ref: "#/components/parameters/UpdateMask"
  1271. requestBody:
  1272. required: true
  1273. content:
  1274. application/json:
  1275. schema:
  1276. $ref: "#/components/schemas/Pool"
  1277. responses:
  1278. "200":
  1279. description: Success.
  1280. content:
  1281. application/json:
  1282. schema:
  1283. $ref: "#/components/schemas/Pool"
  1284. "400":
  1285. $ref: "#/components/responses/BadRequest"
  1286. "401":
  1287. $ref: "#/components/responses/Unauthenticated"
  1288. "403":
  1289. $ref: "#/components/responses/PermissionDenied"
  1290. "404":
  1291. $ref: "#/components/responses/NotFound"
  1292. "409":
  1293. $ref: "#/components/responses/AlreadyExists"
  1294. delete:
  1295. summary: Delete a pool
  1296. x-openapi-router-controller: airflow.api_connexion.endpoints.pool_endpoint
  1297. operationId: delete_pool
  1298. tags: [Pool]
  1299. responses:
  1300. "204":
  1301. description: Success.
  1302. "400":
  1303. $ref: "#/components/responses/BadRequest"
  1304. "401":
  1305. $ref: "#/components/responses/Unauthenticated"
  1306. "403":
  1307. $ref: "#/components/responses/PermissionDenied"
  1308. "404":
  1309. $ref: "#/components/responses/NotFound"
  1310. /providers:
  1311. get:
  1312. summary: List providers
  1313. description: |
  1314. Get a list of providers.
  1315. *New in version 2.1.0*
  1316. x-openapi-router-controller: airflow.api_connexion.endpoints.provider_endpoint
  1317. operationId: get_providers
  1318. tags: [Provider]
  1319. responses:
  1320. "200":
  1321. description: List of providers.
  1322. content:
  1323. application/json:
  1324. schema:
  1325. allOf:
  1326. - $ref: "#/components/schemas/ProviderCollection"
  1327. - $ref: "#/components/schemas/CollectionInfo"
  1328. "401":
  1329. $ref: "#/components/responses/Unauthenticated"
  1330. "403":
  1331. $ref: "#/components/responses/PermissionDenied"
  1332. /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances:
  1333. parameters:
  1334. - $ref: "#/components/parameters/DAGID"
  1335. - $ref: "#/components/parameters/DAGRunID"
  1336. - $ref: "#/components/parameters/FilterExecutionDateGTE"
  1337. - $ref: "#/components/parameters/FilterExecutionDateLTE"
  1338. - $ref: "#/components/parameters/FilterStartDateGTE"
  1339. - $ref: "#/components/parameters/FilterStartDateLTE"
  1340. - $ref: "#/components/parameters/FilterEndDateGTE"
  1341. - $ref: "#/components/parameters/FilterEndDateLTE"
  1342. - $ref: "#/components/parameters/FilterUpdatedAtGTE"
  1343. - $ref: "#/components/parameters/FilterUpdatedAtLTE"
  1344. - $ref: "#/components/parameters/FilterDurationGTE"
  1345. - $ref: "#/components/parameters/FilterDurationLTE"
  1346. - $ref: "#/components/parameters/FilterState"
  1347. - $ref: "#/components/parameters/FilterPool"
  1348. - $ref: "#/components/parameters/FilterQueue"
  1349. - $ref: "#/components/parameters/FilterExecutor"
  1350. get:
  1351. summary: List task instances
  1352. description: >
  1353. This endpoint allows specifying `~` as the dag_id, dag_run_id to retrieve DAG runs for all DAGs
  1354. and DAG runs.
  1355. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  1356. operationId: get_task_instances
  1357. tags: [TaskInstance]
  1358. parameters:
  1359. - $ref: "#/components/parameters/PageLimit"
  1360. - $ref: "#/components/parameters/PageOffset"
  1361. responses:
  1362. "200":
  1363. description: Success.
  1364. content:
  1365. application/json:
  1366. schema:
  1367. $ref: "#/components/schemas/TaskInstanceCollection"
  1368. "401":
  1369. $ref: "#/components/responses/Unauthenticated"
  1370. "403":
  1371. $ref: "#/components/responses/PermissionDenied"
  1372. /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}:
  1373. parameters:
  1374. - $ref: "#/components/parameters/DAGID"
  1375. - $ref: "#/components/parameters/DAGRunID"
  1376. - $ref: "#/components/parameters/TaskID"
  1377. get:
  1378. summary: Get a task instance
  1379. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  1380. operationId: get_task_instance
  1381. tags: [TaskInstance]
  1382. responses:
  1383. "200":
  1384. description: Success.
  1385. content:
  1386. application/json:
  1387. schema:
  1388. $ref: "#/components/schemas/TaskInstance"
  1389. "401":
  1390. $ref: "#/components/responses/Unauthenticated"
  1391. "403":
  1392. $ref: "#/components/responses/PermissionDenied"
  1393. "404":
  1394. $ref: "#/components/responses/NotFound"
  1395. patch:
  1396. summary: Updates the state of a task instance
  1397. description: >
  1398. Updates the state for single task instance.
  1399. *New in version 2.5.0*
  1400. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  1401. operationId: patch_task_instance
  1402. tags: [TaskInstance]
  1403. requestBody:
  1404. description: Parameters of action
  1405. required: true
  1406. content:
  1407. application/json:
  1408. schema:
  1409. $ref: "#/components/schemas/UpdateTaskInstance"
  1410. responses:
  1411. "200":
  1412. description: Success.
  1413. content:
  1414. application/json:
  1415. schema:
  1416. $ref: "#/components/schemas/TaskInstanceReference"
  1417. "401":
  1418. $ref: "#/components/responses/Unauthenticated"
  1419. "403":
  1420. $ref: "#/components/responses/PermissionDenied"
  1421. "404":
  1422. $ref: "#/components/responses/NotFound"
  1423. /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}:
  1424. parameters:
  1425. - $ref: "#/components/parameters/DAGID"
  1426. - $ref: "#/components/parameters/DAGRunID"
  1427. - $ref: "#/components/parameters/TaskID"
  1428. - $ref: "#/components/parameters/MapIndex"
  1429. get:
  1430. summary: Get a mapped task instance
  1431. description: |
  1432. Get details of a mapped task instance.
  1433. *New in version 2.3.0*
  1434. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  1435. operationId: get_mapped_task_instance
  1436. tags: [TaskInstance]
  1437. responses:
  1438. "200":
  1439. description: Success.
  1440. content:
  1441. application/json:
  1442. schema:
  1443. $ref: "#/components/schemas/TaskInstance"
  1444. "401":
  1445. $ref: "#/components/responses/Unauthenticated"
  1446. "403":
  1447. $ref: "#/components/responses/PermissionDenied"
  1448. "404":
  1449. $ref: "#/components/responses/NotFound"
  1450. patch:
  1451. summary: Updates the state of a mapped task instance
  1452. description: >
  1453. Updates the state for single mapped task instance.
  1454. *New in version 2.5.0*
  1455. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  1456. operationId: patch_mapped_task_instance
  1457. tags: [TaskInstance]
  1458. requestBody:
  1459. description: Parameters of action
  1460. content:
  1461. application/json:
  1462. schema:
  1463. $ref: "#/components/schemas/UpdateTaskInstance"
  1464. responses:
  1465. "200":
  1466. description: Success.
  1467. content:
  1468. application/json:
  1469. schema:
  1470. $ref: "#/components/schemas/TaskInstanceReference"
  1471. "401":
  1472. $ref: "#/components/responses/Unauthenticated"
  1473. "403":
  1474. $ref: "#/components/responses/PermissionDenied"
  1475. "404":
  1476. $ref: "#/components/responses/NotFound"
  1477. /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/listMapped:
  1478. parameters:
  1479. - $ref: "#/components/parameters/DAGID"
  1480. - $ref: "#/components/parameters/DAGRunID"
  1481. - $ref: "#/components/parameters/TaskID"
  1482. get:
  1483. summary: List mapped task instances
  1484. description: |
  1485. Get details of all mapped task instances.
  1486. *New in version 2.3.0*
  1487. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  1488. operationId: get_mapped_task_instances
  1489. tags: [TaskInstance]
  1490. parameters:
  1491. - $ref: "#/components/parameters/PageLimit"
  1492. - $ref: "#/components/parameters/PageOffset"
  1493. - $ref: "#/components/parameters/FilterExecutionDateGTE"
  1494. - $ref: "#/components/parameters/FilterExecutionDateLTE"
  1495. - $ref: "#/components/parameters/FilterStartDateGTE"
  1496. - $ref: "#/components/parameters/FilterStartDateLTE"
  1497. - $ref: "#/components/parameters/FilterEndDateGTE"
  1498. - $ref: "#/components/parameters/FilterEndDateLTE"
  1499. - $ref: "#/components/parameters/FilterUpdatedAtGTE"
  1500. - $ref: "#/components/parameters/FilterUpdatedAtLTE"
  1501. - $ref: "#/components/parameters/FilterDurationGTE"
  1502. - $ref: "#/components/parameters/FilterDurationLTE"
  1503. - $ref: "#/components/parameters/FilterState"
  1504. - $ref: "#/components/parameters/FilterPool"
  1505. - $ref: "#/components/parameters/FilterQueue"
  1506. - $ref: "#/components/parameters/FilterExecutor"
  1507. - $ref: "#/components/parameters/OrderBy"
  1508. responses:
  1509. "200":
  1510. description: Success.
  1511. content:
  1512. application/json:
  1513. schema:
  1514. $ref: "#/components/schemas/TaskInstanceCollection"
  1515. "401":
  1516. $ref: "#/components/responses/Unauthenticated"
  1517. "403":
  1518. $ref: "#/components/responses/PermissionDenied"
  1519. "404":
  1520. $ref: "#/components/responses/NotFound"
  1521. /dags/~/dagRuns/~/taskInstances/list:
  1522. post:
  1523. summary: List task instances (batch)
  1524. description: >
  1525. List task instances from all DAGs and DAG runs.
  1526. This endpoint is a POST to allow filtering across a large number of DAG IDs, where as a GET it
  1527. would run in to maximum HTTP request URL length limits.
  1528. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  1529. operationId: get_task_instances_batch
  1530. tags: [TaskInstance]
  1531. requestBody:
  1532. required: true
  1533. content:
  1534. application/json:
  1535. schema:
  1536. $ref: "#/components/schemas/ListTaskInstanceForm"
  1537. responses:
  1538. "200":
  1539. description: Success.
  1540. content:
  1541. application/json:
  1542. schema:
  1543. $ref: "#/components/schemas/TaskInstanceCollection"
  1544. "401":
  1545. $ref: "#/components/responses/Unauthenticated"
  1546. "403":
  1547. $ref: "#/components/responses/PermissionDenied"
  1548. "404":
  1549. $ref: "#/components/responses/NotFound"
  1550. /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/tries/{task_try_number}:
  1551. get:
  1552. summary: get taskinstance try
  1553. description: |
  1554. Get details of a task instance try.
  1555. *New in version 2.10.0*
  1556. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  1557. operationId: get_task_instance_try_details
  1558. tags: [TaskInstance]
  1559. parameters:
  1560. - $ref: "#/components/parameters/DAGID"
  1561. - $ref: "#/components/parameters/DAGRunID"
  1562. - $ref: "#/components/parameters/TaskID"
  1563. - $ref: "#/components/parameters/TaskTryNumber"
  1564. responses:
  1565. "200":
  1566. description: Success.
  1567. content:
  1568. application/json:
  1569. schema:
  1570. $ref: "#/components/schemas/TaskInstanceHistory"
  1571. "401":
  1572. $ref: "#/components/responses/Unauthenticated"
  1573. "403":
  1574. $ref: "#/components/responses/PermissionDenied"
  1575. "404":
  1576. $ref: "#/components/responses/NotFound"
  1577. /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/tries:
  1578. get:
  1579. summary: List task instance tries
  1580. description: |
  1581. Get details of all task instance tries.
  1582. *New in version 2.10.0*
  1583. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  1584. operationId: get_task_instance_tries
  1585. tags: [TaskInstance]
  1586. parameters:
  1587. - $ref: "#/components/parameters/DAGID"
  1588. - $ref: "#/components/parameters/DAGRunID"
  1589. - $ref: "#/components/parameters/TaskID"
  1590. - $ref: "#/components/parameters/PageLimit"
  1591. - $ref: "#/components/parameters/PageOffset"
  1592. - $ref: "#/components/parameters/OrderBy"
  1593. responses:
  1594. "200":
  1595. description: Success.
  1596. content:
  1597. application/json:
  1598. schema:
  1599. $ref: "#/components/schemas/TaskInstanceHistoryCollection"
  1600. "401":
  1601. $ref: "#/components/responses/Unauthenticated"
  1602. "403":
  1603. $ref: "#/components/responses/PermissionDenied"
  1604. "404":
  1605. $ref: "#/components/responses/NotFound"
  1606. /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/tries:
  1607. get:
  1608. summary: List mapped task instance tries
  1609. description: |
  1610. Get details of all task instance tries.
  1611. *New in version 2.10.0*
  1612. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  1613. operationId: get_mapped_task_instance_tries
  1614. tags: [TaskInstance]
  1615. parameters:
  1616. - $ref: "#/components/parameters/DAGID"
  1617. - $ref: "#/components/parameters/DAGRunID"
  1618. - $ref: "#/components/parameters/TaskID"
  1619. - $ref: "#/components/parameters/MapIndex"
  1620. - $ref: "#/components/parameters/PageLimit"
  1621. - $ref: "#/components/parameters/PageOffset"
  1622. - $ref: "#/components/parameters/OrderBy"
  1623. responses:
  1624. "200":
  1625. description: Success.
  1626. content:
  1627. application/json:
  1628. schema:
  1629. $ref: "#/components/schemas/TaskInstanceHistoryCollection"
  1630. "401":
  1631. $ref: "#/components/responses/Unauthenticated"
  1632. "403":
  1633. $ref: "#/components/responses/PermissionDenied"
  1634. "404":
  1635. $ref: "#/components/responses/NotFound"
  1636. /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/tries/{task_try_number}:
  1637. get:
  1638. summary: get mapped taskinstance try
  1639. description: |
  1640. Get details of a mapped task instance try.
  1641. *New in version 2.10.0*
  1642. x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
  1643. operationId: get_mapped_task_instance_try_details
  1644. tags: [TaskInstance]
  1645. parameters:
  1646. - $ref: "#/components/parameters/DAGID"
  1647. - $ref: "#/components/parameters/DAGRunID"
  1648. - $ref: "#/components/parameters/TaskID"
  1649. - $ref: "#/components/parameters/MapIndex"
  1650. - $ref: "#/components/parameters/TaskTryNumber"
  1651. responses:
  1652. "200":
  1653. description: Success.
  1654. content:
  1655. application/json:
  1656. schema:
  1657. $ref: "#/components/schemas/TaskInstanceHistory"
  1658. "401":
  1659. $ref: "#/components/responses/Unauthenticated"
  1660. "403":
  1661. $ref: "#/components/responses/PermissionDenied"
  1662. "404":
  1663. $ref: "#/components/responses/NotFound"
  1664. /variables:
  1665. get:
  1666. summary: List variables
  1667. description: The collection does not contain data. To get data, you must get a single entity.
  1668. x-openapi-router-controller: airflow.api_connexion.endpoints.variable_endpoint
  1669. operationId: get_variables
  1670. tags: [Variable]
  1671. parameters:
  1672. - $ref: "#/components/parameters/PageLimit"
  1673. - $ref: "#/components/parameters/PageOffset"
  1674. - $ref: "#/components/parameters/OrderBy"
  1675. responses:
  1676. "200":
  1677. description: Success.
  1678. content:
  1679. application/json:
  1680. schema:
  1681. $ref: "#/components/schemas/VariableCollection"
  1682. "401":
  1683. $ref: "#/components/responses/Unauthenticated"
  1684. "403":
  1685. $ref: "#/components/responses/PermissionDenied"
  1686. post:
  1687. summary: Create a variable
  1688. x-openapi-router-controller: airflow.api_connexion.endpoints.variable_endpoint
  1689. operationId: post_variables
  1690. tags: [Variable]
  1691. requestBody:
  1692. required: true
  1693. content:
  1694. application/json:
  1695. schema:
  1696. $ref: "#/components/schemas/Variable"
  1697. responses:
  1698. "200":
  1699. description: Success.
  1700. content:
  1701. application/json:
  1702. schema:
  1703. $ref: "#/components/schemas/Variable"
  1704. "400":
  1705. $ref: "#/components/responses/BadRequest"
  1706. "401":
  1707. $ref: "#/components/responses/Unauthenticated"
  1708. "403":
  1709. $ref: "#/components/responses/PermissionDenied"
  1710. /variables/{variable_key}:
  1711. parameters:
  1712. - $ref: "#/components/parameters/VariableKey"
  1713. get:
  1714. summary: Get a variable
  1715. description: Get a variable by key.
  1716. x-openapi-router-controller: airflow.api_connexion.endpoints.variable_endpoint
  1717. operationId: get_variable
  1718. tags: [Variable]
  1719. responses:
  1720. "200":
  1721. description: Success.
  1722. content:
  1723. application/json:
  1724. schema:
  1725. $ref: "#/components/schemas/Variable"
  1726. "401":
  1727. $ref: "#/components/responses/Unauthenticated"
  1728. "403":
  1729. $ref: "#/components/responses/PermissionDenied"
  1730. "404":
  1731. $ref: "#/components/responses/NotFound"
  1732. patch:
  1733. summary: Update a variable
  1734. description: Update a variable by key.
  1735. x-openapi-router-controller: airflow.api_connexion.endpoints.variable_endpoint
  1736. operationId: patch_variable
  1737. tags: [Variable]
  1738. parameters:
  1739. - $ref: "#/components/parameters/UpdateMask"
  1740. requestBody:
  1741. required: true
  1742. content:
  1743. application/json:
  1744. schema:
  1745. $ref: "#/components/schemas/Variable"
  1746. responses:
  1747. "200":
  1748. description: Success.
  1749. content:
  1750. application/json:
  1751. schema:
  1752. $ref: "#/components/schemas/Variable"
  1753. "400":
  1754. $ref: "#/components/responses/BadRequest"
  1755. "401":
  1756. $ref: "#/components/responses/Unauthenticated"
  1757. "403":
  1758. $ref: "#/components/responses/PermissionDenied"
  1759. "404":
  1760. $ref: "#/components/responses/NotFound"
  1761. delete:
  1762. summary: Delete a variable
  1763. x-openapi-router-controller: airflow.api_connexion.endpoints.variable_endpoint
  1764. operationId: delete_variable
  1765. tags: [Variable]
  1766. responses:
  1767. "204":
  1768. description: Success.
  1769. "400":
  1770. $ref: "#/components/responses/BadRequest"
  1771. "401":
  1772. $ref: "#/components/responses/Unauthenticated"
  1773. "403":
  1774. $ref: "#/components/responses/PermissionDenied"
  1775. "404":
  1776. $ref: "#/components/responses/NotFound"
  1777. /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries:
  1778. parameters:
  1779. - $ref: "#/components/parameters/DAGID"
  1780. - $ref: "#/components/parameters/DAGRunID"
  1781. - $ref: "#/components/parameters/TaskID"
  1782. get:
  1783. summary: List XCom entries
  1784. description:
  1785. This endpoint allows specifying `~` as the dag_id, dag_run_id, task_id to retrieve XCOM entries for
  1786. for all DAGs, DAG runs and task instances. XCom values won't be returned as they can be large.
  1787. Use this endpoint to get a list of XCom entries and then fetch individual entry to get value.
  1788. x-openapi-router-controller: airflow.api_connexion.endpoints.xcom_endpoint
  1789. operationId: get_xcom_entries
  1790. tags: [XCom]
  1791. parameters:
  1792. - $ref: "#/components/parameters/FilterMapIndex"
  1793. - $ref: "#/components/parameters/FilterXcomKey"
  1794. - $ref: "#/components/parameters/PageLimit"
  1795. - $ref: "#/components/parameters/PageOffset"
  1796. responses:
  1797. "200":
  1798. description: Success.
  1799. content:
  1800. application/json:
  1801. schema:
  1802. $ref: "#/components/schemas/XComCollection"
  1803. "401":
  1804. $ref: "#/components/responses/Unauthenticated"
  1805. "403":
  1806. $ref: "#/components/responses/PermissionDenied"
  1807. ? /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries/{xcom_key}
  1808. : parameters:
  1809. - $ref: "#/components/parameters/DAGID"
  1810. - $ref: "#/components/parameters/DAGRunID"
  1811. - $ref: "#/components/parameters/TaskID"
  1812. - $ref: "#/components/parameters/XComKey"
  1813. get:
  1814. summary: Get an XCom entry
  1815. x-openapi-router-controller: airflow.api_connexion.endpoints.xcom_endpoint
  1816. operationId: get_xcom_entry
  1817. tags: [XCom]
  1818. parameters:
  1819. - $ref: "#/components/parameters/FilterMapIndex"
  1820. - in: query
  1821. name: deserialize
  1822. schema:
  1823. type: boolean
  1824. default: false
  1825. required: false
  1826. description: |
  1827. Whether to deserialize an XCom value when using a custom XCom backend.
  1828. The XCom API endpoint calls `orm_deserialize_value` by default since an XCom may contain value
  1829. that is potentially expensive to deserialize in the web server. Setting this to true overrides
  1830. the consideration, and calls `deserialize_value` instead.
  1831. This parameter is not meaningful when using the default XCom backend.
  1832. *New in version 2.4.0*
  1833. - in: query
  1834. name: stringify
  1835. schema:
  1836. type: boolean
  1837. default: true
  1838. required: false
  1839. description: |
  1840. Whether to convert the XCom value to be a string. XCom values can be of Any data type.
  1841. If set to true (default) the Any value will be returned as string, e.g. a Python representation
  1842. of a dict. If set to false it will return the raw data as dict, list, string or whatever was stored.
  1843. This parameter is not meaningful when using XCom pickling, then it is always returned as string.
  1844. *New in version 2.10.0*
  1845. responses:
  1846. "200":
  1847. description: Success.
  1848. content:
  1849. application/json:
  1850. schema:
  1851. $ref: "#/components/schemas/XCom"
  1852. "401":
  1853. $ref: "#/components/responses/Unauthenticated"
  1854. "403":
  1855. $ref: "#/components/responses/PermissionDenied"
  1856. "404":
  1857. $ref: "#/components/responses/NotFound"
  1858. # Non-database resources
  1859. /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/links:
  1860. parameters:
  1861. - $ref: "#/components/parameters/DAGID"
  1862. - $ref: "#/components/parameters/DAGRunID"
  1863. - $ref: "#/components/parameters/TaskID"
  1864. - $ref: "#/components/parameters/FilterMapIndex"
  1865. get:
  1866. summary: List extra links
  1867. description: >
  1868. List extra links for task instance.
  1869. x-openapi-router-controller: airflow.api_connexion.endpoints.extra_link_endpoint
  1870. operationId: get_extra_links
  1871. tags: [TaskInstance]
  1872. responses:
  1873. "200":
  1874. description: Success.
  1875. content:
  1876. application/json:
  1877. schema:
  1878. $ref: "#/components/schemas/ExtraLinkCollection"
  1879. "401":
  1880. $ref: "#/components/responses/Unauthenticated"
  1881. "403":
  1882. $ref: "#/components/responses/PermissionDenied"
  1883. "404":
  1884. $ref: "#/components/responses/NotFound"
  1885. ? /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{task_try_number}
  1886. : parameters:
  1887. - $ref: "#/components/parameters/DAGID"
  1888. - $ref: "#/components/parameters/DAGRunID"
  1889. - $ref: "#/components/parameters/TaskID"
  1890. - $ref: "#/components/parameters/TaskTryNumber"
  1891. - $ref: "#/components/parameters/FullContent"
  1892. - $ref: "#/components/parameters/FilterMapIndex"
  1893. - $ref: "#/components/parameters/ContinuationToken"
  1894. get:
  1895. summary: Get logs
  1896. description: |
  1897. Get logs for a specific task instance and its try number.
  1898. To get log from specific character position, following way of using
  1899. URLSafeSerializer can be used.
  1900. Example:
  1901. ```
  1902. from itsdangerous.url_safe import URLSafeSerializer
  1903. request_url = f"api/v1/dags/{DAG_ID}/dagRuns/{RUN_ID}/taskInstances/{TASK_ID}/logs/1"
  1904. key = app.config["SECRET_KEY"]
  1905. serializer = URLSafeSerializer(key)
  1906. token = serializer.dumps({"log_pos": 10000})
  1907. response = self.client.get(
  1908. request_url,
  1909. query_string={"token": token},
  1910. headers={"Accept": "text/plain"},
  1911. environ_overrides={"REMOTE_USER": "test"},
  1912. )
  1913. continuation_token = response.json["continuation_token"]
  1914. metadata = URLSafeSerializer(key).loads(continuation_token)
  1915. log_pos = metadata["log_pos"]
  1916. end_of_log = metadata["end_of_log"]
  1917. ```
  1918. If log_pos is passed as 10000 like the above example, it renders the logs starting
  1919. from char position 10000 to last (not the end as the logs may be tailing behind in
  1920. running state). This way pagination can be done with metadata as part of the token.
  1921. x-openapi-router-controller: airflow.api_connexion.endpoints.log_endpoint
  1922. operationId: get_log
  1923. tags: [TaskInstance]
  1924. responses:
  1925. "200":
  1926. description: Success.
  1927. content:
  1928. application/json:
  1929. schema:
  1930. type: object
  1931. properties:
  1932. continuation_token:
  1933. type: string
  1934. content:
  1935. type: string
  1936. text/plain:
  1937. schema:
  1938. type: string
  1939. "400":
  1940. $ref: "#/components/responses/BadRequest"
  1941. "401":
  1942. $ref: "#/components/responses/Unauthenticated"
  1943. "403":
  1944. $ref: "#/components/responses/PermissionDenied"
  1945. "404":
  1946. $ref: "#/components/responses/NotFound"
  1947. /dags/{dag_id}/details:
  1948. parameters:
  1949. - $ref: "#/components/parameters/DAGID"
  1950. get:
  1951. summary: Get a simplified representation of DAG
  1952. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_endpoint
  1953. operationId: get_dag_details
  1954. description: >
  1955. The response contains many DAG attributes, so the response can be large.
  1956. If possible, consider using GET /dags/{dag_id}.
  1957. tags: [DAG]
  1958. parameters:
  1959. - $ref: "#/components/parameters/ReturnFields"
  1960. responses:
  1961. "200":
  1962. description: Success.
  1963. content:
  1964. application/json:
  1965. schema:
  1966. $ref: "#/components/schemas/DAGDetail"
  1967. "401":
  1968. $ref: "#/components/responses/Unauthenticated"
  1969. "403":
  1970. $ref: "#/components/responses/PermissionDenied"
  1971. "404":
  1972. $ref: "#/components/responses/NotFound"
  1973. /dags/{dag_id}/tasks:
  1974. parameters:
  1975. - $ref: "#/components/parameters/DAGID"
  1976. - $ref: "#/components/parameters/OrderBy"
  1977. get:
  1978. summary: Get tasks for DAG
  1979. x-openapi-router-controller: airflow.api_connexion.endpoints.task_endpoint
  1980. operationId: get_tasks
  1981. tags: [DAG]
  1982. responses:
  1983. "200":
  1984. description: Success.
  1985. content:
  1986. application/json:
  1987. schema:
  1988. $ref: "#/components/schemas/TaskCollection"
  1989. "401":
  1990. $ref: "#/components/responses/Unauthenticated"
  1991. "403":
  1992. $ref: "#/components/responses/PermissionDenied"
  1993. "404":
  1994. $ref: "#/components/responses/NotFound"
  1995. /dags/{dag_id}/tasks/{task_id}:
  1996. parameters:
  1997. - $ref: "#/components/parameters/DAGID"
  1998. - $ref: "#/components/parameters/TaskID"
  1999. get:
  2000. summary: Get simplified representation of a task
  2001. x-openapi-router-controller: airflow.api_connexion.endpoints.task_endpoint
  2002. operationId: get_task
  2003. tags: [DAG]
  2004. responses:
  2005. "200":
  2006. description: Success.
  2007. content:
  2008. application/json:
  2009. schema:
  2010. $ref: "#/components/schemas/Task"
  2011. "401":
  2012. $ref: "#/components/responses/Unauthenticated"
  2013. "403":
  2014. $ref: "#/components/responses/PermissionDenied"
  2015. "404":
  2016. $ref: "#/components/responses/NotFound"
  2017. /dagStats:
  2018. get:
  2019. summary: List Dag statistics
  2020. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_stats_endpoint
  2021. operationId: get_dag_stats
  2022. tags: [DagStats]
  2023. parameters:
  2024. - name: dag_ids
  2025. in: query
  2026. schema:
  2027. type: string
  2028. required: true
  2029. description: |
  2030. One or more DAG IDs separated by commas to filter relevant Dags.
  2031. responses:
  2032. "200":
  2033. description: Success.
  2034. content:
  2035. application/json:
  2036. schema:
  2037. $ref: "#/components/schemas/DagStatsCollectionSchema"
  2038. "401":
  2039. $ref: "#/components/responses/Unauthenticated"
  2040. "403":
  2041. $ref: "#/components/responses/PermissionDenied"
  2042. /dagSources/{file_token}:
  2043. parameters:
  2044. - $ref: "#/components/parameters/FileToken"
  2045. get:
  2046. summary: Get a source code
  2047. description: >
  2048. Get a source code using file token.
  2049. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_source_endpoint
  2050. operationId: get_dag_source
  2051. tags: [DAG]
  2052. responses:
  2053. "200":
  2054. description: Success.
  2055. content:
  2056. application/json:
  2057. schema:
  2058. type: object
  2059. properties:
  2060. content:
  2061. type: string
  2062. text/plain:
  2063. schema:
  2064. type: string
  2065. "401":
  2066. $ref: "#/components/responses/Unauthenticated"
  2067. "403":
  2068. $ref: "#/components/responses/PermissionDenied"
  2069. "404":
  2070. $ref: "#/components/responses/NotFound"
  2071. "406":
  2072. $ref: "#/components/responses/NotAcceptable"
  2073. /dagWarnings:
  2074. get:
  2075. summary: List dag warnings
  2076. x-openapi-router-controller: airflow.api_connexion.endpoints.dag_warning_endpoint
  2077. operationId: get_dag_warnings
  2078. tags: [DagWarning]
  2079. parameters:
  2080. - name: dag_id
  2081. in: query
  2082. schema:
  2083. type: string
  2084. required: false
  2085. description: If set, only return DAG warnings with this dag_id.
  2086. - name: warning_type
  2087. in: query
  2088. schema:
  2089. type: string
  2090. required: false
  2091. description: If set, only return DAG warnings with this type.
  2092. - $ref: "#/components/parameters/PageLimit"
  2093. - $ref: "#/components/parameters/PageOffset"
  2094. - $ref: "#/components/parameters/OrderBy"
  2095. responses:
  2096. "200":
  2097. description: Success.
  2098. content:
  2099. application/json:
  2100. schema:
  2101. $ref: "#/components/schemas/DagWarningCollection"
  2102. "401":
  2103. $ref: "#/components/responses/Unauthenticated"
  2104. "403":
  2105. $ref: "#/components/responses/PermissionDenied"
  2106. /datasets:
  2107. get:
  2108. summary: List datasets
  2109. x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
  2110. operationId: get_datasets
  2111. tags: [Dataset]
  2112. parameters:
  2113. - $ref: "#/components/parameters/PageLimit"
  2114. - $ref: "#/components/parameters/PageOffset"
  2115. - $ref: "#/components/parameters/OrderBy"
  2116. - name: uri_pattern
  2117. in: query
  2118. schema:
  2119. type: string
  2120. required: false
  2121. description: |
  2122. If set, only return datasets with uris matching this pattern.
  2123. - name: dag_ids
  2124. in: query
  2125. schema:
  2126. type: string
  2127. required: false
  2128. description: |
  2129. One or more DAG IDs separated by commas to filter datasets by associated DAGs either consuming or producing.
  2130. *New in version 2.9.0*
  2131. responses:
  2132. "200":
  2133. description: Success.
  2134. content:
  2135. application/json:
  2136. schema:
  2137. $ref: "#/components/schemas/DatasetCollection"
  2138. "401":
  2139. $ref: "#/components/responses/Unauthenticated"
  2140. "403":
  2141. $ref: "#/components/responses/PermissionDenied"
  2142. /datasets/{uri}:
  2143. parameters:
  2144. - $ref: "#/components/parameters/DatasetURI"
  2145. get:
  2146. summary: Get a dataset
  2147. description: Get a dataset by uri.
  2148. x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
  2149. operationId: get_dataset
  2150. tags: [Dataset]
  2151. responses:
  2152. "200":
  2153. description: Success.
  2154. content:
  2155. application/json:
  2156. schema:
  2157. $ref: "#/components/schemas/Dataset"
  2158. "401":
  2159. $ref: "#/components/responses/Unauthenticated"
  2160. "403":
  2161. $ref: "#/components/responses/PermissionDenied"
  2162. "404":
  2163. $ref: "#/components/responses/NotFound"
  2164. /datasets/events:
  2165. get:
  2166. summary: Get dataset events
  2167. description: Get dataset events
  2168. x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
  2169. operationId: get_dataset_events
  2170. tags: [Dataset]
  2171. parameters:
  2172. - $ref: "#/components/parameters/PageLimit"
  2173. - $ref: "#/components/parameters/PageOffset"
  2174. - $ref: "#/components/parameters/OrderBy"
  2175. - $ref: "#/components/parameters/FilterDatasetID"
  2176. - $ref: "#/components/parameters/FilterSourceDAGID"
  2177. - $ref: "#/components/parameters/FilterSourceTaskID"
  2178. - $ref: "#/components/parameters/FilterSourceRunID"
  2179. - $ref: "#/components/parameters/FilterSourceMapIndex"
  2180. responses:
  2181. "200":
  2182. description: Success.
  2183. content:
  2184. application/json:
  2185. schema:
  2186. $ref: "#/components/schemas/DatasetEventCollection"
  2187. "401":
  2188. $ref: "#/components/responses/Unauthenticated"
  2189. "403":
  2190. $ref: "#/components/responses/PermissionDenied"
  2191. "404":
  2192. $ref: "#/components/responses/NotFound"
  2193. post:
  2194. summary: Create dataset event
  2195. description: Create dataset event
  2196. x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
  2197. operationId: create_dataset_event
  2198. tags: [Dataset]
  2199. requestBody:
  2200. required: true
  2201. content:
  2202. application/json:
  2203. schema:
  2204. $ref: '#/components/schemas/CreateDatasetEvent'
  2205. responses:
  2206. '200':
  2207. description: Success.
  2208. content:
  2209. application/json:
  2210. schema:
  2211. $ref: '#/components/schemas/DatasetEvent'
  2212. "400":
  2213. $ref: "#/components/responses/BadRequest"
  2214. '401':
  2215. $ref: '#/components/responses/Unauthenticated'
  2216. '403':
  2217. $ref: '#/components/responses/PermissionDenied'
  2218. '404':
  2219. $ref: '#/components/responses/NotFound'
  2220. /config:
  2221. get:
  2222. summary: Get current configuration
  2223. x-openapi-router-controller: airflow.api_connexion.endpoints.config_endpoint
  2224. operationId: get_config
  2225. tags: [Config]
  2226. parameters:
  2227. - name: section
  2228. in: query
  2229. schema:
  2230. type: string
  2231. required: false
  2232. description: If given, only return config of this section.
  2233. responses:
  2234. "200":
  2235. description: Success.
  2236. content:
  2237. application/json:
  2238. schema:
  2239. $ref: "#/components/schemas/Config"
  2240. example:
  2241. sections:
  2242. - name: core
  2243. options:
  2244. - key: dags_folder
  2245. value: /home/user/my-dags-folder
  2246. - name: smtp
  2247. options:
  2248. - key: smtp_host
  2249. value: localhost
  2250. - key: smtp_mail_from
  2251. value: airflow@example.com
  2252. text/plain:
  2253. schema:
  2254. type: string
  2255. example: |
  2256. [core]
  2257. dags_folder = /home/user/my-dags-folder
  2258. [smtp]
  2259. smtp_host = localhost
  2260. smtp_mail_from = airflow@example.com
  2261. "401":
  2262. $ref: "#/components/responses/Unauthenticated"
  2263. "403":
  2264. $ref: "#/components/responses/PermissionDenied"
  2265. "404":
  2266. $ref: "#/components/responses/NotFound"
  2267. /config/section/{section}/option/{option}:
  2268. get:
  2269. summary: Get a option from configuration
  2270. x-openapi-router-controller: airflow.api_connexion.endpoints.config_endpoint
  2271. operationId: get_value
  2272. tags: [Config]
  2273. parameters:
  2274. - name: section
  2275. in: path
  2276. schema:
  2277. type: string
  2278. required: true
  2279. - name: option
  2280. in: path
  2281. schema:
  2282. type: string
  2283. required: true
  2284. responses:
  2285. "200":
  2286. description: Success.
  2287. content:
  2288. application/json:
  2289. schema:
  2290. $ref: "#/components/schemas/Config"
  2291. example:
  2292. sections:
  2293. - name: core
  2294. options:
  2295. - key: dags_folder
  2296. value: /home/user/my-dags-folder
  2297. text/plain:
  2298. schema:
  2299. type: string
  2300. example: |
  2301. [core]
  2302. dags_folder = /home/user/my-dags-folder
  2303. "401":
  2304. $ref: "#/components/responses/Unauthenticated"
  2305. "403":
  2306. $ref: "#/components/responses/PermissionDenied"
  2307. "404":
  2308. $ref: "#/components/responses/NotFound"
  2309. /health:
  2310. get:
  2311. summary: Get instance status
  2312. description: |
  2313. Get the status of Airflow's metadatabase, triggerer and scheduler. It includes info about
  2314. metadatabase and last heartbeat of scheduler and triggerer.
  2315. x-openapi-router-controller: airflow.api_connexion.endpoints.health_endpoint
  2316. operationId: get_health
  2317. tags: [Monitoring]
  2318. responses:
  2319. "200":
  2320. description: Success.
  2321. content:
  2322. application/json:
  2323. schema:
  2324. $ref: "#/components/schemas/HealthInfo"
  2325. /version:
  2326. get:
  2327. summary: Get version information
  2328. x-openapi-router-controller: airflow.api_connexion.endpoints.version_endpoint
  2329. operationId: get_version
  2330. tags: [Monitoring]
  2331. responses:
  2332. "200":
  2333. description: Success.
  2334. content:
  2335. application/json:
  2336. schema:
  2337. $ref: "#/components/schemas/VersionInfo"
  2338. /plugins:
  2339. get:
  2340. summary: Get a list of loaded plugins
  2341. description: |
  2342. Get a list of loaded plugins.
  2343. *New in version 2.1.0*
  2344. x-openapi-router-controller: airflow.api_connexion.endpoints.plugin_endpoint
  2345. operationId: get_plugins
  2346. tags: [Plugin]
  2347. parameters:
  2348. - $ref: "#/components/parameters/PageLimit"
  2349. - $ref: "#/components/parameters/PageOffset"
  2350. responses:
  2351. "200":
  2352. description: Success
  2353. content:
  2354. application/json:
  2355. schema:
  2356. $ref: "#/components/schemas/PluginCollection"
  2357. "401":
  2358. $ref: "#/components/responses/Unauthenticated"
  2359. "403":
  2360. $ref: "#/components/responses/PermissionDenied"
  2361. "404":
  2362. $ref: "#/components/responses/NotFound"
  2363. /roles:
  2364. get:
  2365. deprecated: true
  2366. summary: List roles
  2367. description: |
  2368. Get a list of roles.
  2369. *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
  2370. x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
  2371. operationId: get_roles
  2372. tags: [Role]
  2373. parameters:
  2374. - $ref: "#/components/parameters/PageLimit"
  2375. - $ref: "#/components/parameters/PageOffset"
  2376. - $ref: "#/components/parameters/OrderBy"
  2377. responses:
  2378. "200":
  2379. description: Success.
  2380. content:
  2381. application/json:
  2382. schema:
  2383. $ref: "#/components/schemas/RoleCollection"
  2384. "401":
  2385. $ref: "#/components/responses/Unauthenticated"
  2386. "403":
  2387. $ref: "#/components/responses/PermissionDenied"
  2388. post:
  2389. deprecated: true
  2390. summary: Create a role
  2391. description: |
  2392. Create a new role.
  2393. *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
  2394. x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
  2395. operationId: post_role
  2396. tags: [Role]
  2397. requestBody:
  2398. required: true
  2399. content:
  2400. application/json:
  2401. schema:
  2402. $ref: "#/components/schemas/Role"
  2403. responses:
  2404. "200":
  2405. description: Success.
  2406. content:
  2407. application/json:
  2408. schema:
  2409. $ref: "#/components/schemas/Role"
  2410. "400":
  2411. $ref: "#/components/responses/BadRequest"
  2412. "401":
  2413. $ref: "#/components/responses/Unauthenticated"
  2414. "403":
  2415. $ref: "#/components/responses/PermissionDenied"
  2416. /roles/{role_name}:
  2417. parameters:
  2418. - $ref: "#/components/parameters/RoleName"
  2419. get:
  2420. deprecated: true
  2421. summary: Get a role
  2422. description: |
  2423. Get a role.
  2424. *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
  2425. x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
  2426. operationId: get_role
  2427. tags: [Role]
  2428. responses:
  2429. "200":
  2430. description: Success.
  2431. content:
  2432. application/json:
  2433. schema:
  2434. $ref: "#/components/schemas/Role"
  2435. "401":
  2436. $ref: "#/components/responses/Unauthenticated"
  2437. "403":
  2438. $ref: "#/components/responses/PermissionDenied"
  2439. "404":
  2440. $ref: "#/components/responses/NotFound"
  2441. patch:
  2442. deprecated: true
  2443. summary: Update a role
  2444. description: |
  2445. Update a role.
  2446. *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
  2447. x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
  2448. operationId: patch_role
  2449. tags: [Role]
  2450. parameters:
  2451. - $ref: "#/components/parameters/UpdateMask"
  2452. requestBody:
  2453. required: true
  2454. content:
  2455. application/json:
  2456. schema:
  2457. $ref: "#/components/schemas/Role"
  2458. responses:
  2459. "200":
  2460. description: Success.
  2461. content:
  2462. application/json:
  2463. schema:
  2464. $ref: "#/components/schemas/Role"
  2465. "400":
  2466. $ref: "#/components/responses/BadRequest"
  2467. "401":
  2468. $ref: "#/components/responses/Unauthenticated"
  2469. "403":
  2470. $ref: "#/components/responses/PermissionDenied"
  2471. "404":
  2472. $ref: "#/components/responses/NotFound"
  2473. delete:
  2474. deprecated: true
  2475. summary: Delete a role
  2476. description: |
  2477. Delete a role.
  2478. *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
  2479. x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
  2480. operationId: delete_role
  2481. tags: [Role]
  2482. responses:
  2483. "204":
  2484. description: Success.
  2485. "400":
  2486. $ref: "#/components/responses/BadRequest"
  2487. "401":
  2488. $ref: "#/components/responses/Unauthenticated"
  2489. "403":
  2490. $ref: "#/components/responses/PermissionDenied"
  2491. "404":
  2492. $ref: "#/components/responses/NotFound"
  2493. /permissions:
  2494. get:
  2495. deprecated: true
  2496. summary: List permissions
  2497. description: |
  2498. Get a list of permissions.
  2499. *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
  2500. x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
  2501. operationId: get_permissions
  2502. tags: [Permission]
  2503. parameters:
  2504. - $ref: "#/components/parameters/PageLimit"
  2505. - $ref: "#/components/parameters/PageOffset"
  2506. responses:
  2507. "200":
  2508. description: Success.
  2509. content:
  2510. application/json:
  2511. schema:
  2512. $ref: "#/components/schemas/ActionCollection"
  2513. "401":
  2514. $ref: "#/components/responses/Unauthenticated"
  2515. "403":
  2516. $ref: "#/components/responses/PermissionDenied"
  2517. /users:
  2518. get:
  2519. deprecated: true
  2520. summary: List users
  2521. description: |
  2522. Get a list of users.
  2523. *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
  2524. x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
  2525. operationId: get_users
  2526. tags: [User]
  2527. parameters:
  2528. - $ref: "#/components/parameters/PageLimit"
  2529. - $ref: "#/components/parameters/PageOffset"
  2530. - $ref: "#/components/parameters/OrderBy"
  2531. responses:
  2532. "200":
  2533. description: Success.
  2534. content:
  2535. application/json:
  2536. schema:
  2537. $ref: "#/components/schemas/UserCollection"
  2538. "401":
  2539. $ref: "#/components/responses/Unauthenticated"
  2540. "403":
  2541. $ref: "#/components/responses/PermissionDenied"
  2542. post:
  2543. deprecated: true
  2544. summary: Create a user
  2545. description: |
  2546. Create a new user with unique username and email.
  2547. *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
  2548. x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
  2549. operationId: post_user
  2550. tags: [User]
  2551. requestBody:
  2552. required: true
  2553. content:
  2554. application/json:
  2555. schema:
  2556. $ref: "#/components/schemas/User"
  2557. responses:
  2558. "200":
  2559. description: Success.
  2560. content:
  2561. application/json:
  2562. schema:
  2563. $ref: "#/components/schemas/User"
  2564. "400":
  2565. $ref: "#/components/responses/BadRequest"
  2566. "401":
  2567. $ref: "#/components/responses/Unauthenticated"
  2568. "403":
  2569. $ref: "#/components/responses/PermissionDenied"
  2570. "409":
  2571. $ref: "#/components/responses/AlreadyExists"
  2572. /users/{username}:
  2573. parameters:
  2574. - $ref: "#/components/parameters/Username"
  2575. get:
  2576. deprecated: true
  2577. summary: Get a user
  2578. description: |
  2579. Get a user with a specific username.
  2580. *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
  2581. x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
  2582. operationId: get_user
  2583. tags: [User]
  2584. responses:
  2585. "200":
  2586. description: Success.
  2587. content:
  2588. application/json:
  2589. schema:
  2590. $ref: "#/components/schemas/UserCollectionItem"
  2591. "401":
  2592. $ref: "#/components/responses/Unauthenticated"
  2593. "403":
  2594. $ref: "#/components/responses/PermissionDenied"
  2595. "404":
  2596. $ref: "#/components/responses/NotFound"
  2597. patch:
  2598. deprecated: true
  2599. summary: Update a user
  2600. description: |
  2601. Update fields for a user.
  2602. *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
  2603. x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
  2604. operationId: patch_user
  2605. tags: [User]
  2606. parameters:
  2607. - $ref: "#/components/parameters/UpdateMask"
  2608. requestBody:
  2609. required: true
  2610. content:
  2611. application/json:
  2612. schema:
  2613. $ref: "#/components/schemas/User"
  2614. responses:
  2615. "200":
  2616. description: Success.
  2617. content:
  2618. application/json:
  2619. schema:
  2620. $ref: "#/components/schemas/UserCollectionItem"
  2621. "400":
  2622. $ref: "#/components/responses/BadRequest"
  2623. "401":
  2624. $ref: "#/components/responses/Unauthenticated"
  2625. "403":
  2626. $ref: "#/components/responses/PermissionDenied"
  2627. "404":
  2628. $ref: "#/components/responses/NotFound"
  2629. delete:
  2630. deprecated: true
  2631. summary: Delete a user
  2632. description: |
  2633. Delete a user with a specific username.
  2634. *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
  2635. x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
  2636. operationId: delete_user
  2637. tags: [User]
  2638. responses:
  2639. "204":
  2640. description: Success.
  2641. "400":
  2642. $ref: "#/components/responses/BadRequest"
  2643. "401":
  2644. $ref: "#/components/responses/Unauthenticated"
  2645. "403":
  2646. $ref: "#/components/responses/PermissionDenied"
  2647. "404":
  2648. $ref: "#/components/responses/NotFound"
  2649. components:
  2650. # Reusable schemas (data models)
  2651. schemas:
  2652. # Database entities
  2653. UserCollectionItem:
  2654. description: |
  2655. A user object.
  2656. *New in version 2.1.0*
  2657. type: object
  2658. properties:
  2659. first_name:
  2660. type: string
  2661. description: |
  2662. The user's first name.
  2663. *Changed in version 2.4.0*: The requirement for this to be non-empty was removed.
  2664. last_name:
  2665. type: string
  2666. description: |
  2667. The user's last name.
  2668. *Changed in version 2.4.0*: The requirement for this to be non-empty was removed.
  2669. username:
  2670. type: string
  2671. description: |
  2672. The username.
  2673. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added.
  2674. minLength: 1
  2675. email:
  2676. type: string
  2677. description: |
  2678. The user's email.
  2679. *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added.
  2680. minLength: 1
  2681. active:
  2682. type: boolean
  2683. description: Whether the user is active
  2684. readOnly: true
  2685. nullable: true
  2686. last_login:
  2687. type: string
  2688. format: datetime
  2689. description: The last user login
  2690. readOnly: true
  2691. nullable: true
  2692. login_count:
  2693. type: integer
  2694. description: The login count
  2695. readOnly: true
  2696. nullable: true
  2697. failed_login_count:
  2698. type: integer
  2699. description: The number of times the login failed
  2700. readOnly: true
  2701. nullable: true
  2702. roles:
  2703. type: array
  2704. description: |
  2705. User roles.
  2706. *Changed in version 2.2.0*: Field is no longer read-only.
  2707. items:
  2708. type: object
  2709. properties:
  2710. name:
  2711. type: string
  2712. nullable: true
  2713. created_on:
  2714. type: string
  2715. format: datetime
  2716. description: The date user was created
  2717. readOnly: true
  2718. nullable: true
  2719. changed_on:
  2720. type: string
  2721. format: datetime
  2722. description: The date user was changed
  2723. readOnly: true
  2724. nullable: true
  2725. User:
  2726. type: object
  2727. description: |
  2728. A user object with sensitive data.
  2729. *New in version 2.1.0*
  2730. allOf:
  2731. - $ref: "#/components/schemas/UserCollectionItem"
  2732. - type: object
  2733. properties:
  2734. password:
  2735. type: string
  2736. writeOnly: true
  2737. UserCollection:
  2738. type: object
  2739. description: |
  2740. Collection of users.
  2741. *New in version 2.1.0*
  2742. allOf:
  2743. - type: object
  2744. properties:
  2745. users:
  2746. type: array
  2747. items:
  2748. $ref: "#/components/schemas/UserCollectionItem"
  2749. - $ref: "#/components/schemas/CollectionInfo"
  2750. ConnectionCollectionItem:
  2751. description: >
  2752. Connection collection item.
  2753. The password and extra fields are only available when retrieving a single object due to the
  2754. sensitivity of this data.
  2755. type: object
  2756. properties:
  2757. connection_id:
  2758. type: string
  2759. description: The connection ID.
  2760. conn_type:
  2761. type: string
  2762. description: The connection type.
  2763. description:
  2764. type: string
  2765. description: The description of the connection.
  2766. nullable: true
  2767. host:
  2768. type: string
  2769. nullable: true
  2770. description: Host of the connection.
  2771. login:
  2772. type: string
  2773. nullable: true
  2774. description: Login of the connection.
  2775. schema:
  2776. type: string
  2777. nullable: true
  2778. description: Schema of the connection.
  2779. port:
  2780. type: integer
  2781. nullable: true
  2782. description: Port of the connection.
  2783. ConnectionCollection:
  2784. type: object
  2785. description: |
  2786. Collection of connections.
  2787. *Changed in version 2.1.0*: 'total_entries' field is added.
  2788. allOf:
  2789. - type: object
  2790. properties:
  2791. connections:
  2792. type: array
  2793. items:
  2794. $ref: "#/components/schemas/ConnectionCollectionItem"
  2795. - $ref: "#/components/schemas/CollectionInfo"
  2796. Connection:
  2797. description: Full representation of the connection.
  2798. allOf:
  2799. - $ref: "#/components/schemas/ConnectionCollectionItem"
  2800. - type: object
  2801. properties:
  2802. password:
  2803. type: string
  2804. format: password
  2805. writeOnly: true
  2806. description: Password of the connection.
  2807. extra:
  2808. type: string
  2809. nullable: true
  2810. description: Other values that cannot be put into another field, e.g. RSA keys.
  2811. ConnectionTest:
  2812. description: |
  2813. Connection test results.
  2814. *New in version 2.2.0*
  2815. type: object
  2816. properties:
  2817. status:
  2818. type: boolean
  2819. description: The status of the request.
  2820. message:
  2821. type: string
  2822. description: The success or failure message of the request.
  2823. DAG:
  2824. type: object
  2825. description: DAG
  2826. properties:
  2827. dag_id:
  2828. type: string
  2829. readOnly: true
  2830. description: The ID of the DAG.
  2831. dag_display_name:
  2832. type: string
  2833. readOnly: true
  2834. description: |
  2835. Human centric display text for the DAG.
  2836. *New in version 2.9.0*
  2837. root_dag_id:
  2838. type: string
  2839. readOnly: true
  2840. nullable: true
  2841. description: If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, null.
  2842. is_paused:
  2843. type: boolean
  2844. nullable: true
  2845. description: Whether the DAG is paused.
  2846. is_active:
  2847. description: |
  2848. Whether the DAG is currently seen by the scheduler(s).
  2849. *New in version 2.1.1*
  2850. *Changed in version 2.2.0*: Field is read-only.
  2851. nullable: true
  2852. readOnly: true
  2853. type: boolean
  2854. is_subdag:
  2855. description: Whether the DAG is SubDAG.
  2856. type: boolean
  2857. readOnly: true
  2858. last_parsed_time:
  2859. type: string
  2860. format: date-time
  2861. readOnly: true
  2862. nullable: true
  2863. description: |
  2864. The last time the DAG was parsed.
  2865. *New in version 2.3.0*
  2866. last_pickled:
  2867. type: string
  2868. format: date-time
  2869. readOnly: true
  2870. nullable: true
  2871. description: |
  2872. The last time the DAG was pickled.
  2873. *New in version 2.3.0*
  2874. last_expired:
  2875. type: string
  2876. format: date-time
  2877. readOnly: true
  2878. nullable: true
  2879. description: |
  2880. Time when the DAG last received a refresh signal
  2881. (e.g. the DAG's "refresh" button was clicked in the web UI)
  2882. *New in version 2.3.0*
  2883. scheduler_lock:
  2884. type: boolean
  2885. readOnly: true
  2886. nullable: true
  2887. description: |
  2888. Whether (one of) the scheduler is scheduling this DAG at the moment
  2889. *New in version 2.3.0*
  2890. pickle_id:
  2891. type: string
  2892. readOnly: true
  2893. nullable: true
  2894. description: |
  2895. Foreign key to the latest pickle_id
  2896. *New in version 2.3.0*
  2897. default_view:
  2898. type: string
  2899. nullable: true
  2900. readOnly: true
  2901. description: |
  2902. Default view of the DAG inside the webserver
  2903. *New in version 2.3.0*
  2904. fileloc:
  2905. description: The absolute path to the file.
  2906. type: string
  2907. readOnly: true
  2908. file_token:
  2909. type: string
  2910. readOnly: true
  2911. description: >
  2912. The key containing the encrypted path to the file. Encryption and decryption take place only on
  2913. the server. This prevents the client from reading an non-DAG file. This also ensures API
  2914. extensibility, because the format of encrypted data may change.
  2915. owners:
  2916. type: array
  2917. items:
  2918. type: string
  2919. readOnly: true
  2920. description:
  2921. type: string
  2922. readOnly: true
  2923. nullable: true
  2924. description: >
  2925. User-provided DAG description, which can consist of several sentences or paragraphs that
  2926. describe DAG contents.
  2927. schedule_interval:
  2928. $ref: "#/components/schemas/ScheduleInterval"
  2929. timetable_description:
  2930. type: string
  2931. readOnly: true
  2932. nullable: true
  2933. description: |
  2934. Timetable/Schedule Interval description.
  2935. *New in version 2.3.0*
  2936. tags:
  2937. description: List of tags.
  2938. type: array
  2939. nullable: true
  2940. items:
  2941. $ref: "#/components/schemas/Tag"
  2942. readOnly: true
  2943. max_active_tasks:
  2944. type: integer
  2945. nullable: true
  2946. readOnly: true
  2947. description: |
  2948. Maximum number of active tasks that can be run on the DAG
  2949. *New in version 2.3.0*
  2950. max_active_runs:
  2951. type: integer
  2952. nullable: true
  2953. readOnly: true
  2954. description: |
  2955. Maximum number of active DAG runs for the DAG
  2956. *New in version 2.3.0*
  2957. has_task_concurrency_limits:
  2958. type: boolean
  2959. nullable: true
  2960. readOnly: true
  2961. description: |
  2962. Whether the DAG has task concurrency limits
  2963. *New in version 2.3.0*
  2964. has_import_errors:
  2965. type: boolean
  2966. nullable: true
  2967. readOnly: true
  2968. description: |
  2969. Whether the DAG has import errors
  2970. *New in version 2.3.0*
  2971. next_dagrun:
  2972. type: string
  2973. format: date-time
  2974. readOnly: true
  2975. nullable: true
  2976. description: |
  2977. The logical date of the next dag run.
  2978. *New in version 2.3.0*
  2979. next_dagrun_data_interval_start:
  2980. type: string
  2981. format: date-time
  2982. readOnly: true
  2983. nullable: true
  2984. description: |
  2985. The start of the interval of the next dag run.
  2986. *New in version 2.3.0*
  2987. next_dagrun_data_interval_end:
  2988. type: string
  2989. format: date-time
  2990. readOnly: true
  2991. nullable: true
  2992. description: |
  2993. The end of the interval of the next dag run.
  2994. *New in version 2.3.0*
  2995. next_dagrun_create_after:
  2996. type: string
  2997. format: date-time
  2998. readOnly: true
  2999. nullable: true
  3000. description: |
  3001. Earliest time at which this ``next_dagrun`` can be created.
  3002. *New in version 2.3.0*
  3003. max_consecutive_failed_dag_runs:
  3004. type: integer
  3005. nullable: true
  3006. readOnly: true
  3007. description: |
  3008. (experimental) The maximum number of consecutive DAG failures before DAG is automatically paused.
  3009. *New in version 2.9.0*
  3010. DAGCollection:
  3011. description: |
  3012. Collection of DAGs.
  3013. *Changed in version 2.1.0*: 'total_entries' field is added.
  3014. type: object
  3015. allOf:
  3016. - type: object
  3017. properties:
  3018. dags:
  3019. type: array
  3020. items:
  3021. $ref: "#/components/schemas/DAG"
  3022. - $ref: "#/components/schemas/CollectionInfo"
  3023. DAGRun:
  3024. type: object
  3025. properties:
  3026. dag_run_id:
  3027. type: string
  3028. nullable: true
  3029. description: |
  3030. Run ID.
  3031. The value of this field can be set only when creating the object. If you try to modify the
  3032. field of an existing object, the request fails with an BAD_REQUEST error.
  3033. If not provided, a value will be generated based on execution_date.
  3034. If the specified dag_run_id is in use, the creation request fails with an ALREADY_EXISTS error.
  3035. This together with DAG_ID are a unique key.
  3036. dag_id:
  3037. type: string
  3038. readOnly: true
  3039. logical_date:
  3040. type: string
  3041. nullable: true
  3042. description: |
  3043. The logical date (previously called execution date). This is the time or interval covered by
  3044. this DAG run, according to the DAG definition.
  3045. The value of this field can be set only when creating the object. If you try to modify the
  3046. field of an existing object, the request fails with an BAD_REQUEST error.
  3047. This together with DAG_ID are a unique key.
  3048. *New in version 2.2.0*
  3049. format: date-time
  3050. execution_date:
  3051. type: string
  3052. nullable: true
  3053. description: |
  3054. The execution date. This is the same as logical_date, kept for backwards compatibility.
  3055. If both this field and logical_date are provided but with different values, the request
  3056. will fail with an BAD_REQUEST error.
  3057. *Changed in version 2.2.0*: Field becomes nullable.
  3058. *Deprecated since version 2.2.0*: Use 'logical_date' instead.
  3059. format: date-time
  3060. deprecated: true
  3061. start_date:
  3062. type: string
  3063. format: date-time
  3064. description: |
  3065. The start time. The time when DAG run was actually created.
  3066. *Changed in version 2.1.3*: Field becomes nullable.
  3067. readOnly: true
  3068. nullable: true
  3069. end_date:
  3070. type: string
  3071. format: date-time
  3072. readOnly: true
  3073. nullable: true
  3074. data_interval_start:
  3075. type: string
  3076. format: date-time
  3077. description: |
  3078. The beginning of the interval the DAG run covers.
  3079. nullable: true
  3080. data_interval_end:
  3081. type: string
  3082. format: date-time
  3083. description: |
  3084. The end of the interval the DAG run covers.
  3085. nullable: true
  3086. last_scheduling_decision:
  3087. type: string
  3088. format: date-time
  3089. readOnly: true
  3090. nullable: true
  3091. run_type:
  3092. type: string
  3093. readOnly: true
  3094. enum:
  3095. - backfill
  3096. - manual
  3097. - scheduled
  3098. - dataset_triggered
  3099. state:
  3100. $ref: "#/components/schemas/DagState"
  3101. external_trigger:
  3102. type: boolean
  3103. readOnly: true
  3104. conf:
  3105. type: object
  3106. description: |
  3107. JSON object describing additional configuration parameters.
  3108. The value of this field can be set only when creating the object. If you try to modify the
  3109. field of an existing object, the request fails with an BAD_REQUEST error.
  3110. note:
  3111. type: string
  3112. description: |
  3113. Contains manually entered notes by the user about the DagRun.
  3114. *New in version 2.5.0*
  3115. nullable: true
  3116. UpdateDagRunState:
  3117. type: object
  3118. description: |
  3119. Modify the state of a DAG run.
  3120. *New in version 2.2.0*
  3121. properties:
  3122. state:
  3123. description: The state to set this DagRun
  3124. type: string
  3125. enum:
  3126. - success
  3127. - failed
  3128. - queued
  3129. DAGRunCollection:
  3130. type: object
  3131. description: |
  3132. Collection of DAG runs.
  3133. *Changed in version 2.1.0*: 'total_entries' field is added.
  3134. allOf:
  3135. - type: object
  3136. properties:
  3137. dag_runs:
  3138. type: array
  3139. items:
  3140. $ref: "#/components/schemas/DAGRun"
  3141. - $ref: "#/components/schemas/CollectionInfo"
  3142. DagStatsCollectionSchema:
  3143. type: object
  3144. description: |
  3145. Collection of Dag statistics.
  3146. allOf:
  3147. - type: object
  3148. properties:
  3149. dags:
  3150. type: array
  3151. items:
  3152. $ref: "#/components/schemas/DagStatsCollectionItem"
  3153. - $ref: "#/components/schemas/CollectionInfo"
  3154. DagStatsCollectionItem:
  3155. description: DagStats entry collection item.
  3156. type: object
  3157. properties:
  3158. dag_id:
  3159. type: string
  3160. description: The DAG ID.
  3161. stats:
  3162. type: array
  3163. nullable: true
  3164. items:
  3165. $ref: "#/components/schemas/DagStatsStateCollectionItem"
  3166. DagStatsStateCollectionItem:
  3167. description: DagStatsState entry collection item.
  3168. type: object
  3169. properties:
  3170. state:
  3171. type: string
  3172. description: The DAG state.
  3173. count:
  3174. type: integer
  3175. description: The DAG state count.
  3176. DagWarning:
  3177. type: object
  3178. properties:
  3179. dag_id:
  3180. type: string
  3181. readOnly: true
  3182. description: The dag_id.
  3183. warning_type:
  3184. type: string
  3185. readOnly: true
  3186. description: The warning type for the dag warning.
  3187. message:
  3188. type: string
  3189. readOnly: true
  3190. description: The message for the dag warning.
  3191. timestamp:
  3192. type: string
  3193. format: datetime
  3194. readOnly: true
  3195. description: The time when this warning was logged.
  3196. DagWarningCollection:
  3197. type: object
  3198. description: |
  3199. Collection of DAG warnings.
  3200. allOf:
  3201. - type: object
  3202. properties:
  3203. dag_warnings:
  3204. type: array
  3205. items:
  3206. $ref: "#/components/schemas/DagWarning"
  3207. - $ref: "#/components/schemas/CollectionInfo"
  3208. SetDagRunNote:
  3209. type: object
  3210. properties:
  3211. note:
  3212. description: Custom notes left by users for this Dag Run.
  3213. type: string
  3214. EventLog:
  3215. type: object
  3216. description: Log of user operations via CLI or Web UI.
  3217. properties:
  3218. event_log_id:
  3219. description: The event log ID
  3220. type: integer
  3221. readOnly: true
  3222. when:
  3223. description: The time when these events happened.
  3224. format: date-time
  3225. type: string
  3226. readOnly: true
  3227. dag_id:
  3228. description: The DAG ID
  3229. type: string
  3230. readOnly: true
  3231. nullable: true
  3232. task_id:
  3233. description: The Task ID
  3234. type: string
  3235. readOnly: true
  3236. nullable: true
  3237. run_id:
  3238. description: The DAG Run ID
  3239. type: string
  3240. readOnly: true
  3241. nullable: true
  3242. map_index:
  3243. description: The Map Index
  3244. type: integer
  3245. readOnly: true
  3246. nullable: true
  3247. try_number:
  3248. description: The Try Number
  3249. type: integer
  3250. readOnly: true
  3251. nullable: true
  3252. event:
  3253. description: A key describing the type of event.
  3254. type: string
  3255. readOnly: true
  3256. execution_date:
  3257. description: |
  3258. When the event was dispatched for an object having execution_date, the value of this field.
  3259. format: date-time
  3260. type: string
  3261. readOnly: true
  3262. nullable: true
  3263. owner:
  3264. description: Name of the user who triggered these events a.
  3265. type: string
  3266. nullable: true
  3267. readOnly: true
  3268. extra:
  3269. description: |
  3270. Other information that was not included in the other fields, e.g. the complete CLI command.
  3271. type: string
  3272. readOnly: true
  3273. nullable: true
  3274. EventLogCollection:
  3275. type: object
  3276. description: |
  3277. Collection of event logs.
  3278. *Changed in version 2.1.0*: 'total_entries' field is added.
  3279. *Changed in version 2.10.0*: 'try_number' and 'map_index' fields are added.
  3280. allOf:
  3281. - type: object
  3282. properties:
  3283. event_logs:
  3284. type: array
  3285. items:
  3286. $ref: "#/components/schemas/EventLog"
  3287. - $ref: "#/components/schemas/CollectionInfo"
  3288. ImportError:
  3289. type: object
  3290. properties:
  3291. import_error_id:
  3292. type: integer
  3293. readOnly: true
  3294. description: The import error ID.
  3295. timestamp:
  3296. type: string
  3297. format: datetime
  3298. readOnly: true
  3299. description: The time when this error was created.
  3300. filename:
  3301. type: string
  3302. readOnly: true
  3303. description: The filename
  3304. stack_trace:
  3305. type: string
  3306. readOnly: true
  3307. description: The full stackstrace.
  3308. ImportErrorCollection:
  3309. type: object
  3310. description: |
  3311. Collection of import errors.
  3312. *Changed in version 2.1.0*: 'total_entries' field is added.
  3313. allOf:
  3314. - type: object
  3315. properties:
  3316. import_errors:
  3317. type: array
  3318. items:
  3319. $ref: "#/components/schemas/ImportError"
  3320. - $ref: "#/components/schemas/CollectionInfo"
  3321. HealthInfo:
  3322. type: object
  3323. description: Instance status information.
  3324. properties:
  3325. metadatabase:
  3326. $ref: "#/components/schemas/MetadatabaseStatus"
  3327. scheduler:
  3328. $ref: "#/components/schemas/SchedulerStatus"
  3329. triggerer:
  3330. $ref: "#/components/schemas/TriggererStatus"
  3331. dag_processor:
  3332. $ref: "#/components/schemas/DagProcessorStatus"
  3333. MetadatabaseStatus:
  3334. type: object
  3335. description: The status of the metadatabase.
  3336. properties:
  3337. status:
  3338. $ref: "#/components/schemas/HealthStatus"
  3339. SchedulerStatus:
  3340. type: object
  3341. description: The status and the latest scheduler heartbeat.
  3342. properties:
  3343. status:
  3344. $ref: "#/components/schemas/HealthStatus"
  3345. latest_scheduler_heartbeat:
  3346. description: The time the scheduler last did a heartbeat.
  3347. type: string
  3348. format: datetime
  3349. readOnly: true
  3350. nullable: true
  3351. TriggererStatus:
  3352. type: object
  3353. description: |
  3354. The status and the latest triggerer heartbeat.
  3355. *New in version 2.6.2*
  3356. properties:
  3357. status:
  3358. $ref: "#/components/schemas/HealthStatus"
  3359. latest_triggerer_heartbeat:
  3360. description: The time the triggerer last did a heartbeat.
  3361. type: string
  3362. format: datetime
  3363. readOnly: true
  3364. nullable: true
  3365. DagProcessorStatus:
  3366. type: object
  3367. description: |
  3368. The status and the latest dag processor heartbeat.
  3369. *New in version 2.6.3*
  3370. properties:
  3371. status:
  3372. $ref: "#/components/schemas/HealthStatus"
  3373. latest_dag_processor_heartbeat:
  3374. description: The time the dag processor last did a heartbeat.
  3375. type: string
  3376. format: datetime
  3377. readOnly: true
  3378. nullable: true
  3379. Pool:
  3380. description: The pool
  3381. type: object
  3382. properties:
  3383. name:
  3384. type: string
  3385. description: The name of pool.
  3386. slots:
  3387. type: integer
  3388. description: |
  3389. The maximum number of slots that can be assigned to tasks. One job may occupy one or more slots.
  3390. occupied_slots:
  3391. type: integer
  3392. readOnly: true
  3393. description: The number of slots used by running/queued tasks at the moment. May include deferred tasks if 'include_deferred' is set to true.
  3394. running_slots:
  3395. type: integer
  3396. readOnly: true
  3397. description: The number of slots used by running tasks at the moment.
  3398. queued_slots:
  3399. type: integer
  3400. readOnly: true
  3401. description: The number of slots used by queued tasks at the moment.
  3402. open_slots:
  3403. type: integer
  3404. readOnly: true
  3405. description: The number of free slots at the moment.
  3406. scheduled_slots:
  3407. type: integer
  3408. readOnly: true
  3409. description: The number of slots used by scheduled tasks at the moment.
  3410. deferred_slots:
  3411. type: integer
  3412. readOnly: true
  3413. description: |
  3414. The number of slots used by deferred tasks at the moment. Relevant if 'include_deferred' is set to true.
  3415. *New in version 2.7.0*
  3416. description:
  3417. type: string
  3418. description: |
  3419. The description of the pool.
  3420. *New in version 2.3.0*
  3421. nullable: true
  3422. include_deferred:
  3423. type: boolean
  3424. description: |
  3425. If set to true, deferred tasks are considered when calculating open pool slots.
  3426. *New in version 2.7.0*
  3427. PoolCollection:
  3428. type: object
  3429. description: |
  3430. Collection of pools.
  3431. *Changed in version 2.1.0*: 'total_entries' field is added.
  3432. allOf:
  3433. - type: object
  3434. properties:
  3435. pools:
  3436. type: array
  3437. items:
  3438. $ref: "#/components/schemas/Pool"
  3439. - $ref: "#/components/schemas/CollectionInfo"
  3440. Provider:
  3441. description: |
  3442. The provider
  3443. *New in version 2.1.0*
  3444. type: object
  3445. properties:
  3446. package_name:
  3447. type: string
  3448. description: The package name of the provider.
  3449. description:
  3450. type: string
  3451. description: The description of the provider.
  3452. version:
  3453. type: string
  3454. description: The version of the provider.
  3455. ProviderCollection:
  3456. description: |
  3457. Collection of providers.
  3458. *New in version 2.1.0*
  3459. type: object
  3460. properties:
  3461. providers:
  3462. type: array
  3463. items:
  3464. $ref: "#/components/schemas/Provider"
  3465. SLAMiss:
  3466. type: object
  3467. properties:
  3468. task_id:
  3469. type: string
  3470. readOnly: true
  3471. description: The task ID.
  3472. dag_id:
  3473. type: string
  3474. description: The DAG ID.
  3475. execution_date:
  3476. type: string
  3477. format: datetime
  3478. email_sent:
  3479. type: boolean
  3480. timestamp:
  3481. type: string
  3482. format: datetime
  3483. description:
  3484. type: string
  3485. nullable: true
  3486. notification_sent:
  3487. type: boolean
  3488. nullable: true
  3489. Trigger:
  3490. type: object
  3491. nullable: true
  3492. properties:
  3493. id:
  3494. type: integer
  3495. classpath:
  3496. type: string
  3497. kwargs:
  3498. type: string
  3499. created_date:
  3500. type: string
  3501. format: datetime
  3502. triggerer_id:
  3503. type: integer
  3504. nullable: true
  3505. TaskFailedDependency:
  3506. type: object
  3507. properties:
  3508. name:
  3509. type: string
  3510. reason:
  3511. type: string
  3512. TaskInstanceDependencyCollection:
  3513. type: object
  3514. properties:
  3515. dependencies:
  3516. type: array
  3517. items:
  3518. $ref: "#/components/schemas/TaskFailedDependency"
  3519. Job:
  3520. type: object
  3521. nullable: true
  3522. properties:
  3523. id:
  3524. type: integer
  3525. dag_id:
  3526. type: string
  3527. nullable: true
  3528. state:
  3529. type: string
  3530. nullable: true
  3531. job_type:
  3532. type: string
  3533. nullable: true
  3534. start_date:
  3535. type: string
  3536. format: datetime
  3537. nullable: true
  3538. end_date:
  3539. type: string
  3540. format: datetime
  3541. nullable: true
  3542. latest_heartbeat:
  3543. type: string
  3544. format: datetime
  3545. nullable: true
  3546. executor_class:
  3547. type: string
  3548. nullable: true
  3549. hostname:
  3550. type: string
  3551. nullable: true
  3552. unixname:
  3553. type: string
  3554. nullable: true
  3555. TaskInstance:
  3556. type: object
  3557. properties:
  3558. task_id:
  3559. type: string
  3560. task_display_name:
  3561. type: string
  3562. description: |
  3563. Human centric display text for the task.
  3564. *New in version 2.9.0*
  3565. dag_id:
  3566. type: string
  3567. dag_run_id:
  3568. type: string
  3569. description: |
  3570. The DagRun ID for this task instance
  3571. *New in version 2.3.0*
  3572. execution_date:
  3573. type: string
  3574. format: datetime
  3575. start_date:
  3576. type: string
  3577. format: datetime
  3578. nullable: true
  3579. end_date:
  3580. type: string
  3581. format: datetime
  3582. nullable: true
  3583. duration:
  3584. type: number
  3585. nullable: true
  3586. state:
  3587. $ref: "#/components/schemas/TaskState"
  3588. try_number:
  3589. type: integer
  3590. map_index:
  3591. type: integer
  3592. max_tries:
  3593. type: integer
  3594. hostname:
  3595. type: string
  3596. unixname:
  3597. type: string
  3598. pool:
  3599. type: string
  3600. pool_slots:
  3601. type: integer
  3602. queue:
  3603. type: string
  3604. nullable: true
  3605. priority_weight:
  3606. type: integer
  3607. nullable: true
  3608. operator:
  3609. type: string
  3610. nullable: true
  3611. description: |
  3612. *Changed in version 2.1.1*: Field becomes nullable.
  3613. queued_when:
  3614. type: string
  3615. nullable: true
  3616. description: |
  3617. The datetime that the task enter the state QUEUE, also known as queue_at
  3618. pid:
  3619. type: integer
  3620. nullable: true
  3621. executor:
  3622. type: string
  3623. nullable: true
  3624. description: |
  3625. Executor the task is configured to run on or None (which indicates the default executor)
  3626. *New in version 2.10.0*
  3627. executor_config:
  3628. type: string
  3629. sla_miss:
  3630. $ref: "#/components/schemas/SLAMiss"
  3631. rendered_map_index:
  3632. description: |
  3633. Rendered name of an expanded task instance, if the task is mapped.
  3634. *New in version 2.9.0*
  3635. type: string
  3636. nullable: true
  3637. rendered_fields:
  3638. description: |
  3639. JSON object describing rendered fields.
  3640. *New in version 2.3.0*
  3641. type: object
  3642. trigger:
  3643. $ref: "#/components/schemas/Trigger"
  3644. triggerer_job:
  3645. $ref: "#/components/schemas/Job"
  3646. note:
  3647. type: string
  3648. description: |
  3649. Contains manually entered notes by the user about the TaskInstance.
  3650. *New in version 2.5.0*
  3651. nullable: true
  3652. TaskInstanceCollection:
  3653. type: object
  3654. description: |
  3655. Collection of task instances.
  3656. *Changed in version 2.1.0*: 'total_entries' field is added.
  3657. allOf:
  3658. - type: object
  3659. properties:
  3660. task_instances:
  3661. type: array
  3662. items:
  3663. $ref: "#/components/schemas/TaskInstance"
  3664. - $ref: "#/components/schemas/CollectionInfo"
  3665. TaskInstanceHistory:
  3666. type: object
  3667. properties:
  3668. task_id:
  3669. type: string
  3670. task_display_name:
  3671. type: string
  3672. description: |
  3673. Human centric display text for the task.
  3674. *New in version 2.9.0*
  3675. dag_id:
  3676. type: string
  3677. dag_run_id:
  3678. type: string
  3679. description: |
  3680. The DagRun ID for this task instance
  3681. *New in version 2.3.0*
  3682. start_date:
  3683. type: string
  3684. format: datetime
  3685. nullable: true
  3686. end_date:
  3687. type: string
  3688. format: datetime
  3689. nullable: true
  3690. duration:
  3691. type: number
  3692. nullable: true
  3693. state:
  3694. $ref: "#/components/schemas/TaskState"
  3695. try_number:
  3696. type: integer
  3697. map_index:
  3698. type: integer
  3699. max_tries:
  3700. type: integer
  3701. hostname:
  3702. type: string
  3703. unixname:
  3704. type: string
  3705. pool:
  3706. type: string
  3707. pool_slots:
  3708. type: integer
  3709. queue:
  3710. type: string
  3711. nullable: true
  3712. priority_weight:
  3713. type: integer
  3714. nullable: true
  3715. operator:
  3716. type: string
  3717. nullable: true
  3718. description: |
  3719. *Changed in version 2.1.1*: Field becomes nullable.
  3720. queued_when:
  3721. type: string
  3722. nullable: true
  3723. description: |
  3724. The datetime that the task enter the state QUEUE, also known as queue_at
  3725. pid:
  3726. type: integer
  3727. nullable: true
  3728. executor:
  3729. type: string
  3730. nullable: true
  3731. description: |
  3732. Executor the task is configured to run on or None (which indicates the default executor)
  3733. *New in version 2.10.0*
  3734. executor_config:
  3735. type: string
  3736. TaskInstanceHistoryCollection:
  3737. type: object
  3738. description: |
  3739. Collection of task instances .
  3740. *Changed in version 2.1.0*: 'total_entries' field is added.
  3741. allOf:
  3742. - type: object
  3743. properties:
  3744. task_instances_history:
  3745. type: array
  3746. items:
  3747. $ref: "#/components/schemas/TaskInstanceHistory"
  3748. - $ref: "#/components/schemas/CollectionInfo"
  3749. TaskInstanceReference:
  3750. type: object
  3751. properties:
  3752. task_id:
  3753. type: string
  3754. readOnly: true
  3755. description: The task ID.
  3756. dag_id:
  3757. type: string
  3758. readOnly: true
  3759. description: The DAG ID.
  3760. execution_date:
  3761. type: string
  3762. format: datetime
  3763. readOnly: true
  3764. dag_run_id:
  3765. type: string
  3766. readOnly: true
  3767. description: The DAG run ID.
  3768. TaskInstanceReferenceCollection:
  3769. type: object
  3770. properties:
  3771. task_instances:
  3772. type: array
  3773. items:
  3774. $ref: "#/components/schemas/TaskInstanceReference"
  3775. VariableCollectionItem:
  3776. description: XCom entry collection item.
  3777. The value field are only available when retrieving a single object due to the sensitivity of this
  3778. data.
  3779. # Divided into two schemas for sensitive data protection
  3780. type: object
  3781. properties:
  3782. key:
  3783. type: string
  3784. description:
  3785. type: string
  3786. description: |
  3787. The description of the variable.
  3788. *New in version 2.4.0*
  3789. nullable: true
  3790. VariableCollection:
  3791. type: object
  3792. description: |
  3793. Collection of variables.
  3794. *Changed in version 2.1.0*: 'total_entries' field is added.
  3795. allOf:
  3796. - type: object
  3797. properties:
  3798. variables:
  3799. type: array
  3800. items:
  3801. $ref: "#/components/schemas/VariableCollectionItem"
  3802. - $ref: "#/components/schemas/CollectionInfo"
  3803. Variable:
  3804. description: Full representation of Variable
  3805. allOf:
  3806. - $ref: "#/components/schemas/VariableCollectionItem"
  3807. - type: object
  3808. properties:
  3809. value:
  3810. type: string
  3811. XComCollectionItem:
  3812. # Divided into two schemas for sensitive data protection
  3813. type: object
  3814. description: |
  3815. XCom entry collection item.
  3816. The value field is only available when reading a single object due to the size of the value.
  3817. properties:
  3818. key:
  3819. type: string
  3820. timestamp:
  3821. type: string
  3822. format: datetime
  3823. execution_date:
  3824. type: string
  3825. format: datetime
  3826. map_index:
  3827. type: integer
  3828. task_id:
  3829. type: string
  3830. dag_id:
  3831. type: string
  3832. XComCollection:
  3833. type: object
  3834. description: |
  3835. Collection of XCom entries.
  3836. *Changed in version 2.1.0*: 'total_entries' field is added.
  3837. allOf:
  3838. - type: object
  3839. properties:
  3840. xcom_entries:
  3841. type: array
  3842. items:
  3843. $ref: "#/components/schemas/XComCollectionItem"
  3844. - $ref: "#/components/schemas/CollectionInfo"
  3845. XCom:
  3846. description: Full representations of XCom entry.
  3847. allOf:
  3848. - $ref: "#/components/schemas/XComCollectionItem"
  3849. - type: object
  3850. properties:
  3851. value:
  3852. anyOf:
  3853. - type: string
  3854. - type: number
  3855. - type: integer
  3856. - type: boolean
  3857. - type: array
  3858. items: {}
  3859. - type: object
  3860. nullable: true
  3861. description: The value(s),
  3862. # Python objects
  3863. # Based on
  3864. # airflow/serialization/schema.json
  3865. # but simplified to make the easier to use and to make backward compatibility easier.
  3866. DAGDetail:
  3867. description: |
  3868. DAG details.
  3869. For details see:
  3870. [airflow.models.dag.DAG](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/dag/index.html#airflow.models.dag.DAG)
  3871. allOf:
  3872. - $ref: "#/components/schemas/DAG"
  3873. - type: object
  3874. properties:
  3875. timezone:
  3876. $ref: "#/components/schemas/Timezone"
  3877. nullable: true
  3878. catchup:
  3879. type: boolean
  3880. readOnly: true
  3881. nullable: true
  3882. orientation:
  3883. type: string
  3884. readOnly: true
  3885. nullable: true
  3886. concurrency:
  3887. type: number
  3888. readOnly: true
  3889. nullable: true
  3890. start_date:
  3891. type: string
  3892. format: "date-time"
  3893. readOnly: true
  3894. nullable: true
  3895. description: |
  3896. The DAG's start date.
  3897. *Changed in version 2.0.1*: Field becomes nullable.
  3898. dag_run_timeout:
  3899. $ref: "#/components/schemas/TimeDelta"
  3900. nullable: true
  3901. dataset_expression:
  3902. type: object
  3903. description: Nested dataset any/all conditions
  3904. nullable: true
  3905. doc_md:
  3906. type: string
  3907. readOnly: true
  3908. nullable: true
  3909. default_view:
  3910. type: string
  3911. readOnly: true
  3912. nullable: true
  3913. params:
  3914. type: object
  3915. readOnly: true
  3916. description: |
  3917. User-specified DAG params.
  3918. *New in version 2.0.1*
  3919. end_date:
  3920. type: string
  3921. format: "date-time"
  3922. readOnly: true
  3923. nullable: true
  3924. description: |
  3925. The DAG's end date.
  3926. *New in version 2.3.0*.
  3927. is_paused_upon_creation:
  3928. type: boolean
  3929. readOnly: true
  3930. nullable: true
  3931. description: |
  3932. Whether the DAG is paused upon creation.
  3933. *New in version 2.3.0*
  3934. last_parsed:
  3935. type: string
  3936. format: date-time
  3937. nullable: true
  3938. readOnly: true
  3939. description: |
  3940. The last time the DAG was parsed.
  3941. *New in version 2.3.0*
  3942. template_search_path:
  3943. type: array
  3944. nullable: true
  3945. items:
  3946. type: string
  3947. description: |
  3948. The template search path.
  3949. *New in version 2.3.0*
  3950. render_template_as_native_obj:
  3951. type: boolean
  3952. nullable: true
  3953. readOnly: true
  3954. description: |
  3955. Whether to render templates as native Python objects.
  3956. *New in version 2.3.0*
  3957. ExtraLink:
  3958. type: object
  3959. description: Additional links containing additional information about the task.
  3960. properties:
  3961. class_ref:
  3962. $ref: "#/components/schemas/ClassReference"
  3963. name:
  3964. type: string
  3965. readOnly: true
  3966. href:
  3967. type: string
  3968. readOnly: true
  3969. ExtraLinkCollection:
  3970. type: object
  3971. description: The collection of extra links.
  3972. properties:
  3973. extra_links:
  3974. type: array
  3975. items:
  3976. $ref: "#/components/schemas/ExtraLink"
  3977. Task:
  3978. type: object
  3979. description: |
  3980. For details see:
  3981. [airflow.models.baseoperator.BaseOperator](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/baseoperator/index.html#airflow.models.baseoperator.BaseOperator)
  3982. properties:
  3983. class_ref:
  3984. $ref: "#/components/schemas/ClassReference"
  3985. task_id:
  3986. type: string
  3987. readOnly: true
  3988. task_display_name:
  3989. type: string
  3990. readOnly: true
  3991. owner:
  3992. type: string
  3993. readOnly: true
  3994. start_date:
  3995. type: string
  3996. format: "date-time"
  3997. readOnly: true
  3998. nullable: true
  3999. end_date:
  4000. type: string
  4001. format: "date-time"
  4002. readOnly: true
  4003. nullable: true
  4004. trigger_rule:
  4005. $ref: "#/components/schemas/TriggerRule"
  4006. extra_links:
  4007. type: array
  4008. readOnly: true
  4009. items:
  4010. type: object
  4011. properties:
  4012. class_ref:
  4013. $ref: "#/components/schemas/ClassReference"
  4014. depends_on_past:
  4015. type: boolean
  4016. readOnly: true
  4017. is_mapped:
  4018. type: boolean
  4019. readOnly: true
  4020. wait_for_downstream:
  4021. type: boolean
  4022. readOnly: true
  4023. retries:
  4024. type: number
  4025. readOnly: true
  4026. queue:
  4027. type: string
  4028. readOnly: true
  4029. nullable: true
  4030. executor:
  4031. type: string
  4032. readOnly: true
  4033. nullable: true
  4034. pool:
  4035. type: string
  4036. readOnly: true
  4037. pool_slots:
  4038. type: number
  4039. readOnly: true
  4040. execution_timeout:
  4041. $ref: "#/components/schemas/TimeDelta"
  4042. retry_delay:
  4043. $ref: "#/components/schemas/TimeDelta"
  4044. retry_exponential_backoff:
  4045. type: boolean
  4046. readOnly: true
  4047. priority_weight:
  4048. type: number
  4049. readOnly: true
  4050. weight_rule:
  4051. $ref: "#/components/schemas/WeightRule"
  4052. ui_color:
  4053. $ref: "#/components/schemas/Color"
  4054. ui_fgcolor:
  4055. $ref: "#/components/schemas/Color"
  4056. template_fields:
  4057. type: array
  4058. readOnly: true
  4059. items:
  4060. type: string
  4061. sub_dag:
  4062. $ref: "#/components/schemas/DAG"
  4063. downstream_task_ids:
  4064. type: array
  4065. readOnly: true
  4066. items:
  4067. type: string
  4068. doc_md:
  4069. type: string
  4070. readOnly: true
  4071. nullable: true
  4072. description: |
  4073. Task documentation in markdown.
  4074. *New in version 2.10.0*
  4075. TaskCollection:
  4076. type: object
  4077. description: Collection of tasks.
  4078. properties:
  4079. tasks:
  4080. type: array
  4081. items:
  4082. $ref: "#/components/schemas/Task"
  4083. # Plugin
  4084. PluginCollectionItem:
  4085. type: object
  4086. description: |
  4087. A plugin Item.
  4088. *New in version 2.1.0*
  4089. properties:
  4090. name:
  4091. type: string
  4092. description: The name of the plugin
  4093. hooks:
  4094. type: array
  4095. items:
  4096. type: string
  4097. nullable: true
  4098. description: The plugin hooks
  4099. executors:
  4100. type: array
  4101. items:
  4102. type: string
  4103. nullable: true
  4104. description: The plugin executors
  4105. macros:
  4106. type: array
  4107. items:
  4108. type: string
  4109. nullable: true
  4110. description: The plugin macros
  4111. flask_blueprints:
  4112. type: array
  4113. items:
  4114. type: string
  4115. nullable: true
  4116. description: The flask blueprints
  4117. appbuilder_views:
  4118. type: array
  4119. items:
  4120. type: object
  4121. nullable: true
  4122. description: The appuilder views
  4123. appbuilder_menu_items:
  4124. type: array
  4125. items:
  4126. type: object
  4127. nullable: true
  4128. description: The Flask Appbuilder menu items
  4129. global_operator_extra_links:
  4130. type: array
  4131. items:
  4132. type: string
  4133. nullable: true
  4134. description: The global operator extra links
  4135. operator_extra_links:
  4136. type: array
  4137. items:
  4138. type: string
  4139. nullable: true
  4140. description: Operator extra links
  4141. source:
  4142. type: string
  4143. description: The plugin source
  4144. nullable: true
  4145. ti_deps:
  4146. type: array
  4147. items:
  4148. type: string
  4149. description: The plugin task instance dependencies
  4150. listeners:
  4151. type: array
  4152. items:
  4153. type: string
  4154. description: The plugin listeners
  4155. timetables:
  4156. type: array
  4157. items:
  4158. type: string
  4159. description: The plugin timetables
  4160. PluginCollection:
  4161. type: object
  4162. description: |
  4163. A collection of plugin.
  4164. *New in version 2.1.0*
  4165. allOf:
  4166. - type: object
  4167. properties:
  4168. plugins:
  4169. type: array
  4170. items:
  4171. $ref: "#/components/schemas/PluginCollectionItem"
  4172. - $ref: "#/components/schemas/CollectionInfo"
  4173. Role:
  4174. description: |
  4175. a role item.
  4176. *New in version 2.1.0*
  4177. type: object
  4178. properties:
  4179. name:
  4180. type: string
  4181. description: |
  4182. The name of the role
  4183. *Changed in version 2.3.0*: A minimum character length requirement ('minLength') is added.
  4184. minLength: 1
  4185. actions:
  4186. type: array
  4187. items:
  4188. $ref: "#/components/schemas/ActionResource"
  4189. RoleCollection:
  4190. description: |
  4191. A collection of roles.
  4192. *New in version 2.1.0*
  4193. type: object
  4194. allOf:
  4195. - type: object
  4196. properties:
  4197. roles:
  4198. type: array
  4199. items:
  4200. $ref: "#/components/schemas/Role"
  4201. - $ref: "#/components/schemas/CollectionInfo"
  4202. Action:
  4203. description: |
  4204. An action Item.
  4205. *New in version 2.1.0*
  4206. type: object
  4207. properties:
  4208. name:
  4209. type: string
  4210. description: The name of the permission "action"
  4211. nullable: false
  4212. ActionCollection:
  4213. description: |
  4214. A collection of actions.
  4215. *New in version 2.1.0*
  4216. type: object
  4217. allOf:
  4218. - type: object
  4219. properties:
  4220. actions:
  4221. type: array
  4222. items:
  4223. $ref: "#/components/schemas/Action"
  4224. - $ref: "#/components/schemas/CollectionInfo"
  4225. Resource:
  4226. description: |
  4227. A resource on which permissions are granted.
  4228. *New in version 2.1.0*
  4229. type: object
  4230. properties:
  4231. name:
  4232. type: string
  4233. description: The name of the resource
  4234. nullable: false
  4235. ActionResource:
  4236. description: |
  4237. The Action-Resource item.
  4238. *New in version 2.1.0*
  4239. type: object
  4240. properties:
  4241. action:
  4242. type: object
  4243. $ref: "#/components/schemas/Action"
  4244. description: The permission action
  4245. resource:
  4246. type: object
  4247. $ref: "#/components/schemas/Resource"
  4248. description: The permission resource
  4249. Dataset:
  4250. description: |
  4251. A dataset item.
  4252. *New in version 2.4.0*
  4253. type: object
  4254. properties:
  4255. id:
  4256. type: integer
  4257. description: The dataset id
  4258. uri:
  4259. type: string
  4260. description: The dataset uri
  4261. nullable: false
  4262. extra:
  4263. type: object
  4264. description: The dataset extra
  4265. nullable: true
  4266. created_at:
  4267. type: string
  4268. description: The dataset creation time
  4269. nullable: false
  4270. updated_at:
  4271. type: string
  4272. description: The dataset update time
  4273. nullable: false
  4274. consuming_dags:
  4275. type: array
  4276. items:
  4277. $ref: "#/components/schemas/DagScheduleDatasetReference"
  4278. producing_tasks:
  4279. type: array
  4280. items:
  4281. $ref: "#/components/schemas/TaskOutletDatasetReference"
  4282. TaskOutletDatasetReference:
  4283. description: |
  4284. A datasets reference to an upstream task.
  4285. *New in version 2.4.0*
  4286. type: object
  4287. properties:
  4288. dag_id:
  4289. type: string
  4290. description: The DAG ID that updates the dataset.
  4291. nullable: true
  4292. task_id:
  4293. type: string
  4294. description: The task ID that updates the dataset.
  4295. nullable: true
  4296. created_at:
  4297. type: string
  4298. description: The dataset creation time
  4299. nullable: false
  4300. updated_at:
  4301. type: string
  4302. description: The dataset update time
  4303. nullable: false
  4304. DagScheduleDatasetReference:
  4305. description: |
  4306. A datasets reference to a downstream DAG.
  4307. *New in version 2.4.0*
  4308. type: object
  4309. properties:
  4310. dag_id:
  4311. type: string
  4312. description: The DAG ID that depends on the dataset.
  4313. nullable: true
  4314. created_at:
  4315. type: string
  4316. description: The dataset reference creation time
  4317. nullable: false
  4318. updated_at:
  4319. type: string
  4320. description: The dataset reference update time
  4321. nullable: false
  4322. DatasetCollection:
  4323. description: |
  4324. A collection of datasets.
  4325. *New in version 2.4.0*
  4326. type: object
  4327. allOf:
  4328. - type: object
  4329. properties:
  4330. datasets:
  4331. type: array
  4332. items:
  4333. $ref: "#/components/schemas/Dataset"
  4334. - $ref: "#/components/schemas/CollectionInfo"
  4335. DatasetEvent:
  4336. description: |
  4337. A dataset event.
  4338. *New in version 2.4.0*
  4339. type: object
  4340. properties:
  4341. dataset_id:
  4342. type: integer
  4343. description: The dataset id
  4344. dataset_uri:
  4345. type: string
  4346. description: The URI of the dataset
  4347. nullable: false
  4348. extra:
  4349. type: object
  4350. description: The dataset event extra
  4351. nullable: true
  4352. source_dag_id:
  4353. type: string
  4354. description: The DAG ID that updated the dataset.
  4355. nullable: true
  4356. source_task_id:
  4357. type: string
  4358. description: The task ID that updated the dataset.
  4359. nullable: true
  4360. source_run_id:
  4361. type: string
  4362. description: The DAG run ID that updated the dataset.
  4363. nullable: true
  4364. source_map_index:
  4365. type: integer
  4366. description: The task map index that updated the dataset.
  4367. nullable: true
  4368. created_dagruns:
  4369. type: array
  4370. items:
  4371. $ref: "#/components/schemas/BasicDAGRun"
  4372. timestamp:
  4373. type: string
  4374. description: The dataset event creation time
  4375. nullable: false
  4376. CreateDatasetEvent:
  4377. type: object
  4378. required:
  4379. - dataset_uri
  4380. properties:
  4381. dataset_uri:
  4382. type: string
  4383. description: The URI of the dataset
  4384. nullable: false
  4385. extra:
  4386. type: object
  4387. description: The dataset event extra
  4388. nullable: true
  4389. QueuedEvent:
  4390. type: object
  4391. properties:
  4392. uri:
  4393. type: string
  4394. description: The datata uri.
  4395. dag_id:
  4396. type: string
  4397. description: The DAG ID.
  4398. created_at:
  4399. type: string
  4400. format: date-time
  4401. description: The creation time of QueuedEvent
  4402. QueuedEventCollection:
  4403. description: |
  4404. A collection of Dataset Dag Run Queues.
  4405. *New in version 2.9.0*
  4406. type: object
  4407. allOf:
  4408. - type: object
  4409. properties:
  4410. datasets:
  4411. type: array
  4412. items:
  4413. $ref: "#/components/schemas/QueuedEvent"
  4414. - $ref: "#/components/schemas/CollectionInfo"
  4415. BasicDAGRun:
  4416. type: object
  4417. properties:
  4418. run_id:
  4419. type: string
  4420. description: |
  4421. Run ID.
  4422. dag_id:
  4423. type: string
  4424. readOnly: true
  4425. logical_date:
  4426. type: string
  4427. description: |
  4428. The logical date (previously called execution date). This is the time or interval covered by
  4429. this DAG run, according to the DAG definition.
  4430. The value of this field can be set only when creating the object. If you try to modify the
  4431. field of an existing object, the request fails with an BAD_REQUEST error.
  4432. This together with DAG_ID are a unique key.
  4433. *New in version 2.2.0*
  4434. format: date-time
  4435. start_date:
  4436. type: string
  4437. format: date-time
  4438. description: |
  4439. The start time. The time when DAG run was actually created.
  4440. *Changed in version 2.1.3*: Field becomes nullable.
  4441. readOnly: true
  4442. nullable: true
  4443. end_date:
  4444. type: string
  4445. format: date-time
  4446. readOnly: true
  4447. nullable: true
  4448. data_interval_start:
  4449. type: string
  4450. format: date-time
  4451. readOnly: true
  4452. nullable: true
  4453. data_interval_end:
  4454. type: string
  4455. format: date-time
  4456. readOnly: true
  4457. nullable: true
  4458. state:
  4459. $ref: "#/components/schemas/DagState"
  4460. DatasetEventCollection:
  4461. description: |
  4462. A collection of dataset events.
  4463. *New in version 2.4.0*
  4464. type: object
  4465. allOf:
  4466. - type: object
  4467. properties:
  4468. dataset_events:
  4469. type: array
  4470. items:
  4471. $ref: "#/components/schemas/DatasetEvent"
  4472. - $ref: "#/components/schemas/CollectionInfo"
  4473. # Configuration
  4474. ConfigOption:
  4475. type: object
  4476. description: The option of configuration.
  4477. properties:
  4478. key:
  4479. type: string
  4480. readOnly: true
  4481. value:
  4482. type: string
  4483. readOnly: true
  4484. ConfigSection:
  4485. type: object
  4486. description: The section of configuration.
  4487. properties:
  4488. name:
  4489. type: string
  4490. readOnly: true
  4491. options:
  4492. type: array
  4493. items:
  4494. $ref: "#/components/schemas/ConfigOption"
  4495. Config:
  4496. type: object
  4497. description: The configuration.
  4498. properties:
  4499. sections:
  4500. type: array
  4501. items:
  4502. $ref: "#/components/schemas/ConfigSection"
  4503. VersionInfo:
  4504. type: object
  4505. description: Version information.
  4506. properties:
  4507. version:
  4508. type: string
  4509. description: The version of Airflow
  4510. git_version:
  4511. type: string
  4512. description: The git version (including git commit hash)
  4513. nullable: true
  4514. # Form
  4515. ClearDagRun:
  4516. type: object
  4517. properties:
  4518. dry_run:
  4519. description: |
  4520. If set, don't actually run this operation. The response will contain a list of task instances
  4521. planned to be cleaned, but not modified in any way.
  4522. type: boolean
  4523. default: true
  4524. ClearTaskInstances:
  4525. type: object
  4526. properties:
  4527. dry_run:
  4528. description: |
  4529. If set, don't actually run this operation. The response will contain a list of task instances
  4530. planned to be cleaned, but not modified in any way.
  4531. type: boolean
  4532. default: true
  4533. task_ids:
  4534. description: |
  4535. A list of task ids to clear.
  4536. *New in version 2.1.0*
  4537. type: array
  4538. items:
  4539. type: string
  4540. minItems: 1
  4541. start_date:
  4542. description: The minimum execution date to clear.
  4543. type: string
  4544. format: datetime
  4545. end_date:
  4546. description: The maximum execution date to clear.
  4547. type: string
  4548. format: datetime
  4549. only_failed:
  4550. description: Only clear failed tasks.
  4551. type: boolean
  4552. default: true
  4553. only_running:
  4554. description: Only clear running tasks.
  4555. type: boolean
  4556. default: false
  4557. include_subdags:
  4558. description: Clear tasks in subdags and clear external tasks indicated by ExternalTaskMarker.
  4559. type: boolean
  4560. include_parentdag:
  4561. description: Clear tasks in the parent dag of the subdag.
  4562. type: boolean
  4563. reset_dag_runs:
  4564. description: Set state of DAG runs to RUNNING.
  4565. type: boolean
  4566. dag_run_id:
  4567. type: string
  4568. description: The DagRun ID for this task instance
  4569. nullable: true
  4570. include_upstream:
  4571. description: If set to true, upstream tasks are also affected.
  4572. type: boolean
  4573. default: false
  4574. include_downstream:
  4575. description: If set to true, downstream tasks are also affected.
  4576. type: boolean
  4577. default: false
  4578. include_future:
  4579. description: If set to True, also tasks from future DAG Runs are affected.
  4580. type: boolean
  4581. default: false
  4582. include_past:
  4583. description: If set to True, also tasks from past DAG Runs are affected.
  4584. type: boolean
  4585. default: false
  4586. UpdateTaskInstancesState:
  4587. type: object
  4588. properties:
  4589. dry_run:
  4590. description: |
  4591. If set, don't actually run this operation. The response will contain a list of task instances
  4592. planned to be affected, but won't be modified in any way.
  4593. type: boolean
  4594. default: true
  4595. task_id:
  4596. description: The task ID.
  4597. type: string
  4598. execution_date:
  4599. description: The execution date. Either set this or dag_run_id but not both.
  4600. type: string
  4601. format: datetime
  4602. dag_run_id:
  4603. description: |
  4604. The task instance's DAG run ID. Either set this or execution_date but not both.
  4605. *New in version 2.3.0*
  4606. type: string
  4607. include_upstream:
  4608. description: If set to true, upstream tasks are also affected.
  4609. type: boolean
  4610. include_downstream:
  4611. description: If set to true, downstream tasks are also affected.
  4612. type: boolean
  4613. include_future:
  4614. description: If set to True, also tasks from future DAG Runs are affected.
  4615. type: boolean
  4616. include_past:
  4617. description: If set to True, also tasks from past DAG Runs are affected.
  4618. type: boolean
  4619. new_state:
  4620. $ref: "#/components/schemas/UpdateTaskState"
  4621. UpdateTaskInstance:
  4622. type: object
  4623. properties:
  4624. dry_run:
  4625. description: |
  4626. If set, don't actually run this operation. The response will contain the task instance
  4627. planned to be affected, but won't be modified in any way.
  4628. type: boolean
  4629. default: true
  4630. new_state:
  4631. $ref: "#/components/schemas/UpdateTaskState"
  4632. SetTaskInstanceNote:
  4633. type: object
  4634. required:
  4635. - note
  4636. properties:
  4637. note:
  4638. description: The custom note to set for this Task Instance.
  4639. type: string
  4640. ListDagRunsForm:
  4641. type: object
  4642. properties:
  4643. order_by:
  4644. type: string
  4645. description: |
  4646. The name of the field to order the results by. Prefix a field name
  4647. with `-` to reverse the sort order.
  4648. *New in version 2.1.0*
  4649. page_offset:
  4650. type: integer
  4651. minimum: 0
  4652. description: The number of items to skip before starting to collect the result set.
  4653. page_limit:
  4654. type: integer
  4655. minimum: 1
  4656. default: 100
  4657. description: The numbers of items to return.
  4658. dag_ids:
  4659. type: array
  4660. items:
  4661. type: string
  4662. description: Return objects with specific DAG IDs.
  4663. The value can be repeated to retrieve multiple matching values (OR condition).
  4664. states:
  4665. type: array
  4666. items:
  4667. type: string
  4668. description: Return objects with specific states.
  4669. The value can be repeated to retrieve multiple matching values (OR condition).
  4670. execution_date_gte:
  4671. type: string
  4672. format: date-time
  4673. description: |
  4674. Returns objects greater or equal to the specified date.
  4675. This can be combined with execution_date_lte key to receive only the selected period.
  4676. execution_date_lte:
  4677. type: string
  4678. format: date-time
  4679. description: |
  4680. Returns objects less than or equal to the specified date.
  4681. This can be combined with execution_date_gte key to receive only the selected period.
  4682. start_date_gte:
  4683. type: string
  4684. format: date-time
  4685. description: |
  4686. Returns objects greater or equal the specified date.
  4687. This can be combined with start_date_lte key to receive only the selected period.
  4688. start_date_lte:
  4689. type: string
  4690. format: date-time
  4691. description: |
  4692. Returns objects less or equal the specified date.
  4693. This can be combined with start_date_gte parameter to receive only the selected period
  4694. end_date_gte:
  4695. type: string
  4696. format: date-time
  4697. description: |
  4698. Returns objects greater or equal the specified date.
  4699. This can be combined with end_date_lte parameter to receive only the selected period.
  4700. end_date_lte:
  4701. type: string
  4702. format: date-time
  4703. description: |
  4704. Returns objects less than or equal to the specified date.
  4705. This can be combined with end_date_gte parameter to receive only the selected period.
  4706. ListTaskInstanceForm:
  4707. type: object
  4708. properties:
  4709. page_offset:
  4710. type: integer
  4711. minimum: 0
  4712. description: The number of items to skip before starting to collect the result set.
  4713. page_limit:
  4714. type: integer
  4715. minimum: 1
  4716. default: 100
  4717. description: The numbers of items to return.
  4718. dag_ids:
  4719. type: array
  4720. items:
  4721. type: string
  4722. description: Return objects with specific DAG IDs.
  4723. The value can be repeated to retrieve multiple matching values (OR condition).
  4724. dag_run_ids:
  4725. type: array
  4726. items:
  4727. type: string
  4728. description: Return objects with specific DAG Run IDs.
  4729. The value can be repeated to retrieve multiple matching values (OR condition).
  4730. *New in version 2.7.1*
  4731. task_ids:
  4732. type: array
  4733. items:
  4734. type: string
  4735. description: Return objects with specific task IDs.
  4736. The value can be repeated to retrieve multiple matching values (OR condition).
  4737. *New in version 2.7.1*
  4738. execution_date_gte:
  4739. type: string
  4740. format: date-time
  4741. description: |
  4742. Returns objects greater or equal to the specified date.
  4743. This can be combined with execution_date_lte parameter to receive only the selected period.
  4744. execution_date_lte:
  4745. type: string
  4746. format: date-time
  4747. description: |
  4748. Returns objects less than or equal to the specified date.
  4749. This can be combined with execution_date_gte parameter to receive only the selected period.
  4750. start_date_gte:
  4751. type: string
  4752. format: date-time
  4753. description: |
  4754. Returns objects greater or equal the specified date.
  4755. This can be combined with start_date_lte parameter to receive only the selected period.
  4756. start_date_lte:
  4757. type: string
  4758. format: date-time
  4759. description: |
  4760. Returns objects less or equal the specified date.
  4761. This can be combined with start_date_gte parameter to receive only the selected period.
  4762. end_date_gte:
  4763. type: string
  4764. format: date-time
  4765. description: |
  4766. Returns objects greater or equal the specified date.
  4767. This can be combined with start_date_lte parameter to receive only the selected period.
  4768. end_date_lte:
  4769. type: string
  4770. format: date-time
  4771. description: |
  4772. Returns objects less than or equal to the specified date.
  4773. This can be combined with start_date_gte parameter to receive only the selected period.
  4774. duration_gte:
  4775. type: number
  4776. description: |
  4777. Returns objects greater than or equal to the specified values.
  4778. This can be combined with duration_lte parameter to receive only the selected period.
  4779. duration_lte:
  4780. type: number
  4781. description: |
  4782. Returns objects less than or equal to the specified values.
  4783. This can be combined with duration_gte parameter to receive only the selected range.
  4784. state:
  4785. type: array
  4786. items:
  4787. $ref: "#/components/schemas/TaskState"
  4788. description: The value can be repeated to retrieve multiple matching values (OR condition).
  4789. pool:
  4790. type: array
  4791. items:
  4792. type: string
  4793. description: The value can be repeated to retrieve multiple matching values (OR condition).
  4794. queue:
  4795. type: array
  4796. items:
  4797. type: string
  4798. description: The value can be repeated to retrieve multiple matching values (OR condition).
  4799. executor:
  4800. type: array
  4801. items:
  4802. type: string
  4803. description: The value can be repeated to retrieve multiple matching values (OR condition).
  4804. # Common data type
  4805. ScheduleInterval:
  4806. description: |
  4807. Schedule interval. Defines how often DAG runs, this object gets added to your latest task instance's
  4808. execution_date to figure out the next schedule.
  4809. nullable: true
  4810. readOnly: true
  4811. anyOf:
  4812. - $ref: "#/components/schemas/TimeDelta"
  4813. - $ref: "#/components/schemas/RelativeDelta"
  4814. - $ref: "#/components/schemas/CronExpression"
  4815. discriminator:
  4816. propertyName: __type
  4817. TimeDelta:
  4818. description: Time delta
  4819. type: object
  4820. nullable: true
  4821. required:
  4822. - __type
  4823. - days
  4824. - seconds
  4825. - microseconds
  4826. properties:
  4827. __type: { type: string }
  4828. days: { type: integer }
  4829. seconds: { type: integer }
  4830. microseconds: { type: integer }
  4831. RelativeDelta:
  4832. description: Relative delta
  4833. # TODO: Why we need these fields?
  4834. type: object
  4835. required:
  4836. - __type
  4837. - years
  4838. - months
  4839. - days
  4840. - leapdays
  4841. - hours
  4842. - minutes
  4843. - seconds
  4844. - microseconds
  4845. - year
  4846. - month
  4847. - day
  4848. - hour
  4849. - minute
  4850. - second
  4851. - microsecond
  4852. properties:
  4853. __type: { type: string }
  4854. years: { type: integer }
  4855. months: { type: integer }
  4856. days: { type: integer }
  4857. leapdays: { type: integer }
  4858. hours: { type: integer }
  4859. minutes: { type: integer }
  4860. seconds: { type: integer }
  4861. microseconds: { type: integer }
  4862. year: { type: integer }
  4863. month: { type: integer }
  4864. day: { type: integer }
  4865. hour: { type: integer }
  4866. minute: { type: integer }
  4867. second: { type: integer }
  4868. microsecond: { type: integer }
  4869. CronExpression:
  4870. description: Cron expression
  4871. type: object
  4872. required:
  4873. - __type
  4874. - value
  4875. properties:
  4876. __type: { type: string }
  4877. value: { type: string }
  4878. nullable: true
  4879. Timezone:
  4880. type: string
  4881. Tag:
  4882. description: Tag
  4883. # Object to maintain extensibility
  4884. type: object
  4885. properties:
  4886. name:
  4887. type: string
  4888. Color:
  4889. description: Color in hexadecimal notation.
  4890. type: string
  4891. pattern: ^#[a-fA-F0-9]{3,6}$
  4892. ClassReference:
  4893. description: Class reference
  4894. type: object
  4895. properties:
  4896. module_path:
  4897. type: string
  4898. readOnly: true
  4899. class_name:
  4900. type: string
  4901. readOnly: true
  4902. # Generic
  4903. Error:
  4904. description: |
  4905. [RFC7807](https://tools.ietf.org/html/rfc7807) compliant response.
  4906. type: object
  4907. properties:
  4908. type:
  4909. type: string
  4910. description: |
  4911. A URI reference [RFC3986] that identifies the problem type. This specification
  4912. encourages that, when dereferenced, it provide human-readable documentation for
  4913. the problem type.
  4914. title:
  4915. type: string
  4916. description: A short, human-readable summary of the problem type.
  4917. status:
  4918. type: number
  4919. description: The HTTP status code generated by the API server for this occurrence of the problem.
  4920. detail:
  4921. type: string
  4922. description: A human-readable explanation specific to this occurrence of the problem.
  4923. instance:
  4924. type: string
  4925. description: |
  4926. A URI reference that identifies the specific occurrence of the problem. It may or may
  4927. not yield further information if dereferenced.
  4928. required:
  4929. - type
  4930. - title
  4931. - status
  4932. CollectionInfo:
  4933. description: Metadata about collection.
  4934. type: object
  4935. properties:
  4936. total_entries:
  4937. type: integer
  4938. description: |
  4939. Count of total objects in the current result set before pagination parameters
  4940. (limit, offset) are applied.
  4941. # Enums
  4942. TaskState:
  4943. description: |
  4944. Task state.
  4945. *Changed in version 2.0.2*: 'removed' is added as a possible value.
  4946. *Changed in version 2.2.0*: 'deferred' is added as a possible value.
  4947. *Changed in version 2.4.0*: 'sensing' state has been removed.
  4948. *Changed in version 2.4.2*: 'restarting' is added as a possible value
  4949. *Changed in version 2.7.0*: Field becomes nullable and null primitive is added as a possible value.
  4950. *Changed in version 2.7.0*: 'none' state is deprecated in favor of null.
  4951. type: string
  4952. nullable: true
  4953. enum:
  4954. - null
  4955. - success
  4956. - running
  4957. - failed
  4958. - upstream_failed
  4959. - skipped
  4960. - up_for_retry
  4961. - up_for_reschedule
  4962. - queued
  4963. - none
  4964. - scheduled
  4965. - deferred
  4966. - removed
  4967. - restarting
  4968. UpdateTaskState:
  4969. description: |
  4970. Expected new state. Only a subset of TaskState are available.
  4971. Other states are managed directly by the scheduler or the workers and cannot be updated manually through the REST API.
  4972. type: string
  4973. enum:
  4974. - success
  4975. - failed
  4976. - skipped
  4977. DagState:
  4978. description: |
  4979. DAG State.
  4980. *Changed in version 2.1.3*: 'queued' is added as a possible value.
  4981. type: string
  4982. readOnly: true
  4983. enum:
  4984. - queued
  4985. - running
  4986. - success
  4987. - failed
  4988. TriggerRule:
  4989. description: |
  4990. Trigger rule.
  4991. *Changed in version 2.2.0*: 'none_failed_min_one_success' is added as a possible value. Deprecated 'dummy' and 'always' is added as a possible value
  4992. *Changed in version 2.3.0*: 'all_skipped' is added as a possible value.
  4993. *Changed in version 2.5.0*: 'one_done' is added as a possible value.
  4994. *Changed in version 2.7.0*: 'all_done_setup_success' is added as a possible value.
  4995. type: string
  4996. enum:
  4997. - all_success
  4998. - all_failed
  4999. - all_done
  5000. - all_done_setup_success
  5001. - one_success
  5002. - one_failed
  5003. - one_done
  5004. - none_failed
  5005. - none_skipped
  5006. - none_failed_or_skipped
  5007. - none_failed_min_one_success
  5008. - dummy
  5009. - all_skipped
  5010. - always
  5011. WeightRule:
  5012. description: Weight rule.
  5013. type: string
  5014. enum:
  5015. - downstream
  5016. - upstream
  5017. - absolute
  5018. HealthStatus:
  5019. description: Health status
  5020. type: string
  5021. nullable: true
  5022. enum:
  5023. - healthy
  5024. - unhealthy
  5025. # Reusable path, query, header and cookie parameters
  5026. parameters:
  5027. # Pagination parameters
  5028. PageOffset:
  5029. in: query
  5030. name: offset
  5031. required: false
  5032. schema:
  5033. type: integer
  5034. minimum: 0
  5035. description: The number of items to skip before starting to collect the result set.
  5036. PageLimit:
  5037. in: query
  5038. name: limit
  5039. required: false
  5040. schema:
  5041. type: integer
  5042. default: 100
  5043. description: The numbers of items to return.
  5044. # Database entity fields
  5045. Username:
  5046. in: path
  5047. name: username
  5048. schema:
  5049. type: string
  5050. required: true
  5051. description: |
  5052. The username of the user.
  5053. *New in version 2.1.0*
  5054. RoleName:
  5055. in: path
  5056. name: role_name
  5057. schema:
  5058. type: string
  5059. required: true
  5060. description: The role name
  5061. ConnectionID:
  5062. in: path
  5063. name: connection_id
  5064. schema:
  5065. type: string
  5066. required: true
  5067. description: The connection ID.
  5068. DAGID:
  5069. in: path
  5070. name: dag_id
  5071. schema:
  5072. type: string
  5073. required: true
  5074. description: The DAG ID.
  5075. TaskID:
  5076. in: path
  5077. name: task_id
  5078. schema:
  5079. type: string
  5080. required: true
  5081. description: The task ID.
  5082. Event:
  5083. in: query
  5084. name: event
  5085. schema:
  5086. type: string
  5087. required: false
  5088. description: The name of event log.
  5089. Owner:
  5090. in: query
  5091. name: owner
  5092. schema:
  5093. type: string
  5094. required: false
  5095. description: The owner's name of event log.
  5096. Before:
  5097. in: query
  5098. name: before
  5099. schema:
  5100. type: string
  5101. format: date-time
  5102. required: false
  5103. description: Timestamp to select event logs occurring before.
  5104. After:
  5105. in: query
  5106. name: after
  5107. schema:
  5108. type: string
  5109. format: date-time
  5110. required: false
  5111. description: Timestamp to select event logs occurring after.
  5112. MapIndex:
  5113. in: path
  5114. name: map_index
  5115. schema:
  5116. type: integer
  5117. required: true
  5118. description: The map index.
  5119. DAGRunID:
  5120. in: path
  5121. name: dag_run_id
  5122. schema:
  5123. type: string
  5124. required: true
  5125. description: The DAG run ID.
  5126. TaskTryNumber:
  5127. in: path
  5128. name: task_try_number
  5129. schema:
  5130. type: integer
  5131. required: true
  5132. description: The task try number.
  5133. EventLogID:
  5134. in: path
  5135. name: event_log_id
  5136. schema:
  5137. type: integer
  5138. required: true
  5139. description: The event log ID.
  5140. ImportErrorID:
  5141. in: path
  5142. name: import_error_id
  5143. schema:
  5144. type: integer
  5145. required: true
  5146. description: The import error ID.
  5147. DatasetURI:
  5148. in: path
  5149. name: uri
  5150. schema:
  5151. type: string
  5152. format: path
  5153. required: true
  5154. description: The encoded Dataset URI
  5155. PoolName:
  5156. in: path
  5157. name: pool_name
  5158. schema:
  5159. type: string
  5160. required: true
  5161. description: The pool name.
  5162. VariableKey:
  5163. in: path
  5164. name: variable_key
  5165. schema:
  5166. type: string
  5167. format: path
  5168. required: true
  5169. description: The variable Key.
  5170. # Logs
  5171. FullContent:
  5172. in: query
  5173. name: full_content
  5174. schema:
  5175. type: boolean
  5176. required: false
  5177. description: |
  5178. A full content will be returned.
  5179. By default, only the first fragment will be returned.
  5180. ContinuationToken:
  5181. in: query
  5182. name: token
  5183. schema:
  5184. type: string
  5185. required: false
  5186. description: |
  5187. A token that allows you to continue fetching logs.
  5188. If passed, it will specify the location from which the download should be continued.
  5189. XComKey:
  5190. in: path
  5191. name: xcom_key
  5192. schema:
  5193. type: string
  5194. format: path
  5195. required: true
  5196. description: The XCom key.
  5197. # Filters
  5198. FilterExecutionDateGTE:
  5199. in: query
  5200. name: execution_date_gte
  5201. schema:
  5202. type: string
  5203. format: date-time
  5204. required: false
  5205. description: |
  5206. Returns objects greater or equal to the specified date.
  5207. This can be combined with execution_date_lte parameter to receive only the selected period.
  5208. FilterExecutionDateLTE:
  5209. in: query
  5210. name: execution_date_lte
  5211. schema:
  5212. type: string
  5213. format: date-time
  5214. required: false
  5215. description: |
  5216. Returns objects less than or equal to the specified date.
  5217. This can be combined with execution_date_gte parameter to receive only the selected period.
  5218. FilterStartDateGTE:
  5219. in: query
  5220. name: start_date_gte
  5221. schema:
  5222. type: string
  5223. format: date-time
  5224. required: false
  5225. description: |
  5226. Returns objects greater or equal the specified date.
  5227. This can be combined with start_date_lte parameter to receive only the selected period.
  5228. FilterStartDateLTE:
  5229. in: query
  5230. name: start_date_lte
  5231. schema:
  5232. type: string
  5233. format: date-time
  5234. required: false
  5235. description: |
  5236. Returns objects less or equal the specified date.
  5237. This can be combined with start_date_gte parameter to receive only the selected period.
  5238. FilterEndDateGTE:
  5239. in: query
  5240. name: end_date_gte
  5241. schema:
  5242. type: string
  5243. format: date-time
  5244. required: false
  5245. description: |
  5246. Returns objects greater or equal the specified date.
  5247. This can be combined with start_date_lte parameter to receive only the selected period.
  5248. FilterEndDateLTE:
  5249. in: query
  5250. name: end_date_lte
  5251. schema:
  5252. type: string
  5253. format: date-time
  5254. required: false
  5255. description: |
  5256. Returns objects less than or equal to the specified date.
  5257. This can be combined with start_date_gte parameter to receive only the selected period.
  5258. FilterDurationGTE:
  5259. in: query
  5260. name: duration_gte
  5261. schema:
  5262. type: number
  5263. required: false
  5264. description: |
  5265. Returns objects greater than or equal to the specified values.
  5266. This can be combined with duration_lte parameter to receive only the selected period.
  5267. FilterDurationLTE:
  5268. in: query
  5269. name: duration_lte
  5270. schema:
  5271. type: number
  5272. required: false
  5273. description: |
  5274. Returns objects less than or equal to the specified values.
  5275. This can be combined with duration_gte parameter to receive only the selected range.
  5276. FilterState:
  5277. in: query
  5278. name: state
  5279. schema:
  5280. type: array
  5281. items:
  5282. type: string
  5283. required: false
  5284. description: The value can be repeated to retrieve multiple matching values (OR condition).
  5285. FilterPool:
  5286. in: query
  5287. name: pool
  5288. schema:
  5289. type: array
  5290. items:
  5291. type: string
  5292. required: false
  5293. description: The value can be repeated to retrieve multiple matching values (OR condition).
  5294. FilterQueue:
  5295. in: query
  5296. name: queue
  5297. schema:
  5298. type: array
  5299. items:
  5300. type: string
  5301. description: The value can be repeated to retrieve multiple matching values (OR condition).
  5302. FilterExecutor:
  5303. in: query
  5304. name: executor
  5305. schema:
  5306. type: array
  5307. items:
  5308. type: string
  5309. description: The value can be repeated to retrieve multiple matching values (OR condition).
  5310. FilterTags:
  5311. in: query
  5312. name: tags
  5313. schema:
  5314. type: array
  5315. items:
  5316. type: string
  5317. description: |
  5318. List of tags to filter results.
  5319. *New in version 2.2.0*
  5320. FilterDatasetID:
  5321. in: query
  5322. name: dataset_id
  5323. schema:
  5324. type: integer
  5325. description: The Dataset ID that updated the dataset.
  5326. FilterSourceDAGID:
  5327. in: query
  5328. name: source_dag_id
  5329. schema:
  5330. type: string
  5331. description: The DAG ID that updated the dataset.
  5332. FilterSourceTaskID:
  5333. in: query
  5334. name: source_task_id
  5335. schema:
  5336. type: string
  5337. description: The task ID that updated the dataset.
  5338. FilterSourceRunID:
  5339. in: query
  5340. name: source_run_id
  5341. schema:
  5342. type: string
  5343. description: The DAG run ID that updated the dataset.
  5344. FilterSourceMapIndex:
  5345. in: query
  5346. name: source_map_index
  5347. schema:
  5348. type: integer
  5349. description: The map index that updated the dataset.
  5350. FilterMapIndex:
  5351. in: query
  5352. name: map_index
  5353. schema:
  5354. type: integer
  5355. description: Filter on map index for mapped task.
  5356. FilterTryNumber:
  5357. in: query
  5358. name: try_number
  5359. schema:
  5360. type: integer
  5361. description: Filter on try_number for task instance.
  5362. OrderBy:
  5363. in: query
  5364. name: order_by
  5365. schema:
  5366. type: string
  5367. required: false
  5368. description: |
  5369. The name of the field to order the results by.
  5370. Prefix a field name with `-` to reverse the sort order.
  5371. *New in version 2.1.0*
  5372. OnlyActive:
  5373. in: query
  5374. name: only_active
  5375. schema:
  5376. type: boolean
  5377. default: true
  5378. required: false
  5379. description: |
  5380. Only filter active DAGs.
  5381. *New in version 2.1.1*
  5382. FilterUpdatedAtLTE:
  5383. in: query
  5384. name: updated_at_lte
  5385. schema:
  5386. type: string
  5387. format: date-time
  5388. required: false
  5389. description: |
  5390. Returns objects less or equal the specified date.
  5391. This can be combined with updated_at_gte parameter to receive only the selected period.
  5392. *New in version 2.6.0*
  5393. FilterUpdatedAtGTE:
  5394. in: query
  5395. name: updated_at_gte
  5396. schema:
  5397. type: string
  5398. format: date-time
  5399. required: false
  5400. description: |
  5401. Returns objects greater or equal the specified date.
  5402. This can be combined with updated_at_lte parameter to receive only the selected period.
  5403. *New in version 2.6.0*
  5404. Paused:
  5405. in: query
  5406. name: paused
  5407. schema:
  5408. type: boolean
  5409. required: false
  5410. description: |
  5411. Only filter paused/unpaused DAGs. If absent or null, it returns paused and unpaused DAGs.
  5412. *New in version 2.6.0*
  5413. FilterXcomKey:
  5414. in: query
  5415. name: xcom_key
  5416. schema:
  5417. type: string
  5418. required: false
  5419. description: Only filter the XCom records which have the provided key.
  5420. FilterDAGID:
  5421. in: query
  5422. name: dag_id
  5423. schema:
  5424. type: string
  5425. required: false
  5426. description: Returns objects matched by the DAG ID.
  5427. FilterTaskID:
  5428. in: query
  5429. name: task_id
  5430. schema:
  5431. type: string
  5432. required: false
  5433. description: Returns objects matched by the Task ID.
  5434. FilterRunID:
  5435. in: query
  5436. name: run_id
  5437. schema:
  5438. type: string
  5439. required: false
  5440. description: Returns objects matched by the Run ID.
  5441. # Other parameters
  5442. FileToken:
  5443. in: path
  5444. name: file_token
  5445. schema:
  5446. type: string
  5447. required: true
  5448. description: |
  5449. The key containing the encrypted path to the file. Encryption and decryption take place only on
  5450. the server. This prevents the client from reading an non-DAG file. This also ensures API
  5451. extensibility, because the format of encrypted data may change.
  5452. UpdateMask:
  5453. in: query
  5454. name: update_mask
  5455. schema:
  5456. type: array
  5457. items:
  5458. type: string
  5459. description: |
  5460. The fields to update on the resource. If absent or empty, all modifiable fields are updated.
  5461. A comma-separated list of fully qualified names of fields.
  5462. style: form
  5463. explode: false
  5464. ReturnFields:
  5465. in: query
  5466. name: fields
  5467. schema:
  5468. type: array
  5469. items:
  5470. type: string
  5471. description: |
  5472. List of field for return.
  5473. # Reusable request bodies
  5474. requestBodies: {}
  5475. # Reusable responses, such as 401 Unauthenticated or 400 Bad Request
  5476. responses:
  5477. # 400
  5478. "BadRequest":
  5479. description: Client specified an invalid argument.
  5480. content:
  5481. application/json:
  5482. schema:
  5483. $ref: "#/components/schemas/Error"
  5484. # 401
  5485. "Unauthenticated":
  5486. description: Request not authenticated due to missing, invalid, authentication info.
  5487. content:
  5488. application/json:
  5489. schema:
  5490. $ref: "#/components/schemas/Error"
  5491. # 403
  5492. "PermissionDenied":
  5493. description: Client does not have sufficient permission.
  5494. content:
  5495. application/json:
  5496. schema:
  5497. $ref: "#/components/schemas/Error"
  5498. # 404
  5499. "NotFound":
  5500. description: A specified resource is not found.
  5501. content:
  5502. application/json:
  5503. schema:
  5504. $ref: "#/components/schemas/Error"
  5505. # 405
  5506. "MethodNotAllowed":
  5507. description: Request method is known by the server but is not supported by the target resource.
  5508. content:
  5509. application/json:
  5510. schema:
  5511. $ref: "#/components/schemas/Error"
  5512. # 406
  5513. "NotAcceptable":
  5514. description: A specified Accept header is not allowed.
  5515. content:
  5516. application/json:
  5517. schema:
  5518. $ref: "#/components/schemas/Error"
  5519. # 409
  5520. "AlreadyExists":
  5521. description: An existing resource conflicts with the request.
  5522. content:
  5523. application/json:
  5524. schema:
  5525. $ref: "#/components/schemas/Error"
  5526. # 500
  5527. "Unknown":
  5528. description: Unknown server error.
  5529. content:
  5530. application/json:
  5531. schema:
  5532. $ref: "#/components/schemas/Error"
  5533. # Reusable response headers
  5534. headers: {}
  5535. # Reusable examples
  5536. examples: {}
  5537. # Reusable links
  5538. links: {}
  5539. # Reusable callbacks
  5540. callbacks: {}
  5541. securitySchemes:
  5542. Basic:
  5543. type: http
  5544. scheme: basic
  5545. GoogleOpenId:
  5546. type: openIdConnect
  5547. openIdConnectUrl: https://accounts.google.com/.well-known/openid-configuration
  5548. Kerberos:
  5549. type: http
  5550. scheme: negotiate
  5551. # The API will provide support for plugins to support various authorization mechanisms.
  5552. # Detailed information will be available in the plugin specification.
  5553. security: []
  5554. tags:
  5555. - name: Config
  5556. - name: Connection
  5557. - name: DAG
  5558. - name: DAGRun
  5559. - name: DagWarning
  5560. - name: Dataset
  5561. - name: EventLog
  5562. - name: ImportError
  5563. - name: Monitoring
  5564. - name: Permission
  5565. - name: Plugin
  5566. - name: Pool
  5567. - name: Provider
  5568. - name: Role
  5569. - name: TaskInstance
  5570. - name: User
  5571. - name: Variable
  5572. - name: XCom
  5573. externalDocs:
  5574. url: https://airflow.apache.org/docs/apache-airflow/stable/