1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163 |
- # Licensed to the Apache Software Foundation (ASF) under one
- # or more contributor license agreements. See the NOTICE file
- # distributed with this work for additional information
- # regarding copyright ownership. The ASF licenses this file
- # to you under the Apache License, Version 2.0 (the
- # "License"); you may not use this file except in compliance
- # with the License. You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing,
- # software distributed under the License is distributed on an
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- # KIND, either express or implied. See the License for the
- # specific language governing permissions and limitations
- # under the License.
- ---
- openapi: 3.0.3
- info:
- title: "Airflow API (Stable)"
- description: |
- # Overview
- To facilitate management, Apache Airflow supports a range of REST API endpoints across its
- objects.
- This section provides an overview of the API design, methods, and supported use cases.
- Most of the endpoints accept `JSON` as input and return `JSON` responses.
- This means that you must usually add the following headers to your request:
- ```
- Content-type: application/json
- Accept: application/json
- ```
- ## Resources
- The term `resource` refers to a single type of object in the Airflow metadata. An API is broken up by its
- endpoint's corresponding resource.
- The name of a resource is typically plural and expressed in camelCase. Example: `dagRuns`.
- Resource names are used as part of endpoint URLs, as well as in API parameters and responses.
- ## CRUD Operations
- The platform supports **C**reate, **R**ead, **U**pdate, and **D**elete operations on most resources.
- You can review the standards for these operations and their standard parameters below.
- Some endpoints have special behavior as exceptions.
- ### Create
- To create a resource, you typically submit an HTTP `POST` request with the resource's required metadata
- in the request body.
- The response returns a `201 Created` response code upon success with the resource's metadata, including
- its internal `id`, in the response body.
- ### Read
- The HTTP `GET` request can be used to read a resource or to list a number of resources.
- A resource's `id` can be submitted in the request parameters to read a specific resource.
- The response usually returns a `200 OK` response code upon success, with the resource's metadata in
- the response body.
- If a `GET` request does not include a specific resource `id`, it is treated as a list request.
- The response usually returns a `200 OK` response code upon success, with an object containing a list
- of resources' metadata in the response body.
- When reading resources, some common query parameters are usually available. e.g.:
- ```
- v1/connections?limit=25&offset=25
- ```
- |Query Parameter|Type|Description|
- |---------------|----|-----------|
- |limit|integer|Maximum number of objects to fetch. Usually 25 by default|
- |offset|integer|Offset after which to start returning objects. For use with limit query parameter.|
- ### Update
- Updating a resource requires the resource `id`, and is typically done using an HTTP `PATCH` request,
- with the fields to modify in the request body.
- The response usually returns a `200 OK` response code upon success, with information about the modified
- resource in the response body.
- ### Delete
- Deleting a resource requires the resource `id` and is typically executed via an HTTP `DELETE` request.
- The response usually returns a `204 No Content` response code upon success.
- ## Conventions
- - Resource names are plural and expressed in camelCase.
- - Names are consistent between URL parameter name and field name.
- - Field names are in snake_case.
- ```json
- {
- "description": "string",
- "name": "string",
- "occupied_slots": 0,
- "open_slots": 0
- "queued_slots": 0,
- "running_slots": 0,
- "scheduled_slots": 0,
- "slots": 0,
- }
- ```
- ### Update Mask
- Update mask is available as a query parameter in patch endpoints. It is used to notify the
- API which fields you want to update. Using `update_mask` makes it easier to update objects
- by helping the server know which fields to update in an object instead of updating all fields.
- The update request ignores any fields that aren't specified in the field mask, leaving them with
- their current values.
- Example:
- ```
- resource = request.get('/resource/my-id').json()
- resource['my_field'] = 'new-value'
- request.patch('/resource/my-id?update_mask=my_field', data=json.dumps(resource))
- ```
- ## Versioning and Endpoint Lifecycle
- - API versioning is not synchronized to specific releases of the Apache Airflow.
- - APIs are designed to be backward compatible.
- - Any changes to the API will first go through a deprecation phase.
- # Trying the API
- You can use a third party client, such as [curl](https://curl.haxx.se/), [HTTPie](https://httpie.org/),
- [Postman](https://www.postman.com/) or [the Insomnia rest client](https://insomnia.rest/) to test
- the Apache Airflow API.
- Note that you will need to pass credentials data.
- For e.g., here is how to pause a DAG with [curl](https://curl.haxx.se/), when basic authorization is used:
- ```bash
- curl -X PATCH 'https://example.com/api/v1/dags/{dag_id}?update_mask=is_paused' \
- -H 'Content-Type: application/json' \
- --user "username:password" \
- -d '{
- "is_paused": true
- }'
- ```
- Using a graphical tool such as [Postman](https://www.postman.com/) or [Insomnia](https://insomnia.rest/),
- it is possible to import the API specifications directly:
- 1. Download the API specification by clicking the **Download** button at the top of this document
- 2. Import the JSON specification in the graphical tool of your choice.
- - In *Postman*, you can click the **import** button at the top
- - With *Insomnia*, you can just drag-and-drop the file on the UI
- Note that with *Postman*, you can also generate code snippets by selecting a request and clicking on
- the **Code** button.
- ## Enabling CORS
- [Cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
- is a browser security feature that restricts HTTP requests that are
- initiated from scripts running in the browser.
- For details on enabling/configuring CORS, see
- [Enabling CORS](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html).
- # Authentication
- To be able to meet the requirements of many organizations, Airflow supports many authentication methods,
- and it is even possible to add your own method.
- If you want to check which auth backend is currently set, you can use
- `airflow config get-value api auth_backends` command as in the example below.
- ```bash
- $ airflow config get-value api auth_backends
- airflow.api.auth.backend.basic_auth
- ```
- The default is to deny all requests.
- For details on configuring the authentication, see
- [API Authorization](https://airflow.apache.org/docs/apache-airflow/stable/security/api.html).
- # Errors
- We follow the error response format proposed in [RFC 7807](https://tools.ietf.org/html/rfc7807)
- also known as Problem Details for HTTP APIs. As with our normal API responses,
- your client must be prepared to gracefully handle additional members of the response.
- ## Unauthenticated
- This indicates that the request has not been applied because it lacks valid authentication
- credentials for the target resource. Please check that you have valid credentials.
- ## PermissionDenied
- This response means that the server understood the request but refuses to authorize
- it because it lacks sufficient rights to the resource. It happens when you do not have the
- necessary permission to execute the action you performed. You need to get the appropriate
- permissions in other to resolve this error.
- ## BadRequest
- This response means that the server cannot or will not process the request due to something
- that is perceived to be a client error (e.g., malformed request syntax, invalid request message
- framing, or deceptive request routing). To resolve this, please ensure that your syntax is correct.
- ## NotFound
- This client error response indicates that the server cannot find the requested resource.
- ## MethodNotAllowed
- Indicates that the request method is known by the server but is not supported by the target resource.
- ## NotAcceptable
- The target resource does not have a current representation that would be acceptable to the user
- agent, according to the proactive negotiation header fields received in the request, and the
- server is unwilling to supply a default representation.
- ## AlreadyExists
- The request could not be completed due to a conflict with the current state of the target
- resource, e.g. the resource it tries to create already exists.
- ## Unknown
- This means that the server encountered an unexpected condition that prevented it from
- fulfilling the request.
- version: "2.10.5"
- license:
- name: Apache 2.0
- url: http://www.apache.org/licenses/LICENSE-2.0.html
- contact:
- name: Apache Software Foundation
- url: https://airflow.apache.org
- email: dev@airflow.apache.org
- servers:
- - url: /api/v1
- description: Apache Airflow Stable API.
- paths:
- # Database entities
- /connections:
- get:
- summary: List connections
- x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
- operationId: get_connections
- tags: [Connection]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ConnectionCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- post:
- summary: Create a connection
- x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
- operationId: post_connection
- tags: [Connection]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Connection"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Connection"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /connections/{connection_id}:
- parameters:
- - $ref: "#/components/parameters/ConnectionID"
- get:
- summary: Get a connection
- x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
- operationId: get_connection
- tags: [Connection]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Connection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- patch:
- summary: Update a connection
- x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
- operationId: patch_connection
- tags: [Connection]
- parameters:
- - $ref: "#/components/parameters/UpdateMask"
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Connection"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Connection"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- delete:
- summary: Delete a connection
- x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
- operationId: delete_connection
- tags: [Connection]
- responses:
- "204":
- description: Success.
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /connections/test:
- post:
- summary: Test a connection
- description: |
- Test a connection.
- For security reasons, the test connection functionality is disabled by default across Airflow UI, API and CLI.
- For more information on capabilities of users, see the documentation:
- https://airflow.apache.org/docs/apache-airflow/stable/security/security_model.html#capabilities-of-authenticated-ui-users.
- It is strongly advised to not enable the feature until you make sure that only
- highly trusted UI/API users have "edit connection" permissions.
- Set the "test_connection" flag to "Enabled" in the "core" section of Airflow configuration (airflow.cfg) to enable testing of collections.
- It can also be controlled by the environment variable `AIRFLOW__CORE__TEST_CONNECTION`.
- *New in version 2.2.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
- operationId: test_connection
- tags: [Connection]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Connection"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ConnectionTest"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags:
- get:
- summary: List DAGs
- description: >
- List DAGs in the database.
- `dag_id_pattern` can be set to match dags of a specific pattern
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_endpoint
- operationId: get_dags
- tags: [DAG]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- - $ref: "#/components/parameters/FilterTags"
- - $ref: "#/components/parameters/OnlyActive"
- - $ref: "#/components/parameters/Paused"
- - $ref: "#/components/parameters/ReturnFields"
- - name: dag_id_pattern
- in: query
- schema:
- type: string
- required: false
- description: |
- If set, only return DAGs with dag_ids matching this pattern.
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAGCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- patch:
- summary: Update DAGs
- description: >
- Update DAGs of a given dag_id_pattern using UpdateMask.
- This endpoint allows specifying `~` as the dag_id_pattern to update all DAGs.
- *New in version 2.3.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_endpoint
- operationId: patch_dags
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/FilterTags"
- - $ref: "#/components/parameters/UpdateMask"
- - $ref: "#/components/parameters/OnlyActive"
- - name: dag_id_pattern
- in: query
- schema:
- type: string
- required: true
- description: |
- If set, only update DAGs with dag_ids matching this pattern.
- tags: [DAG]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAG"
- example:
- is_paused: true
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAGCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- get:
- summary: Get basic information about a DAG
- description: >
- Presents only information available in database (DAGModel).
- If you need detailed information, consider using GET /dags/{dag_id}/details.
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_endpoint
- operationId: get_dag
- tags: [DAG]
- parameters:
- - $ref: "#/components/parameters/ReturnFields"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAG"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- patch:
- summary: Update a DAG
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_endpoint
- operationId: patch_dag
- parameters:
- - $ref: "#/components/parameters/UpdateMask"
- tags: [DAG]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAG"
- example:
- is_paused: true
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAG"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- delete:
- summary: Delete a DAG
- description: |
- Deletes all metadata related to the DAG, including finished DAG Runs and Tasks.
- Logs are not deleted. This action cannot be undone.
- *New in version 2.2.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_endpoint
- operationId: delete_dag
- tags: [DAG]
- responses:
- "204":
- description: Success.
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- "409":
- $ref: "#/components/responses/AlreadyExists"
- /dags/{dag_id}/clearTaskInstances:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- post:
- summary: Clear a set of task instances
- description: >
- Clears a set of task instances associated with the DAG for a specified date range.
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: post_clear_task_instances
- tags: [DAG]
- requestBody:
- description: Parameters of action
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ClearTaskInstances"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceReferenceCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/setNote:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- patch:
- summary: Update the TaskInstance note.
- description: |
- Update the manual user note of a non-mapped Task Instance.
- *New in version 2.5.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: set_task_instance_note
- tags: [TaskInstance]
- requestBody:
- description: Parameters of set Task Instance note.
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/SetTaskInstanceNote"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstance"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- ? /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/setNote
- : parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- - $ref: "#/components/parameters/MapIndex"
- patch:
- summary: Update the TaskInstance note.
- description: |
- Update the manual user note of a mapped Task Instance.
- *New in version 2.5.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: set_mapped_task_instance_note
- tags: [TaskInstance]
- requestBody:
- description: Parameters of set Task Instance note.
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/SetTaskInstanceNote"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstance"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/dependencies:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- get:
- summary: Get task dependencies blocking task from getting scheduled.
- description: |
- Get task dependencies blocking task from getting scheduled.
- *New in version 2.10.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: get_task_instance_dependencies
- tags: [TaskInstance]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceDependencyCollection"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- ? /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/dependencies
- : parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- - $ref: "#/components/parameters/MapIndex"
- get:
- summary: Get task dependencies blocking task from getting scheduled.
- description: |
- Get task dependencies blocking task from getting scheduled.
- *New in version 2.10.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: get_mapped_task_instance_dependencies
- tags: [TaskInstance]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceDependencyCollection"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/updateTaskInstancesState:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- post:
- summary: Set a state of task instances
- description: >
- Updates the state for multiple task instances simultaneously.
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: post_set_task_instances_state
- tags: [DAG]
- requestBody:
- description: Parameters of action
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/UpdateTaskInstancesState"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceReferenceCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- get:
- summary: List DAG runs
- description: >
- This endpoint allows specifying `~` as the dag_id to retrieve DAG runs for all DAGs.
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
- operationId: get_dag_runs
- tags: [DAGRun]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/FilterExecutionDateGTE"
- - $ref: "#/components/parameters/FilterExecutionDateLTE"
- - $ref: "#/components/parameters/FilterStartDateGTE"
- - $ref: "#/components/parameters/FilterStartDateLTE"
- - $ref: "#/components/parameters/FilterEndDateGTE"
- - $ref: "#/components/parameters/FilterEndDateLTE"
- - $ref: "#/components/parameters/FilterUpdatedAtGTE"
- - $ref: "#/components/parameters/FilterUpdatedAtLTE"
- - $ref: "#/components/parameters/FilterState"
- - $ref: "#/components/parameters/OrderBy"
- - $ref: "#/components/parameters/ReturnFields"
- responses:
- "200":
- description: List of DAG runs.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAGRunCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- post:
- summary: Trigger a new DAG run.
- description: >
- This will initiate a dagrun.
- If DAG is paused then dagrun state will remain queued, and the task won't run.
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
- operationId: post_dag_run
- tags: [DAGRun]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAGRun"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAGRun"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "409":
- $ref: "#/components/responses/AlreadyExists"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/~/dagRuns/list:
- post:
- summary: List DAG runs (batch)
- description: >
- This endpoint is a POST to allow filtering across a large number of DAG IDs, where as a GET it
- would run in to maximum HTTP request URL length limit.
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
- operationId: get_dag_runs_batch
- tags: [DAGRun]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ListDagRunsForm"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAGRunCollection"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /dags/{dag_id}/dagRuns/{dag_run_id}:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- get:
- summary: Get a DAG run
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
- operationId: get_dag_run
- tags: [DAGRun]
- parameters:
- - $ref: "#/components/parameters/ReturnFields"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAGRun"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- delete:
- summary: Delete a DAG run
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
- operationId: delete_dag_run
- tags: [DAGRun]
- responses:
- "204":
- description: Success.
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- patch:
- summary: Modify a DAG run
- description: |
- Modify a DAG run.
- *New in version 2.2.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
- operationId: update_dag_run_state
- tags: [DAGRun]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/UpdateDagRunState"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAGRun"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns/{dag_run_id}/clear:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- post:
- summary: Clear a DAG run
- description: |
- Clear a DAG run.
- *New in version 2.4.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
- operationId: clear_dag_run
- tags: [DAGRun]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ClearDagRun"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- anyOf:
- - $ref: "#/components/schemas/DAGRun"
- - $ref: "#/components/schemas/TaskInstanceCollection"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns/{dag_run_id}/upstreamDatasetEvents:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- get:
- summary: Get dataset events for a DAG run
- description: |
- Get datasets for a dag run.
- *New in version 2.4.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
- operationId: get_upstream_dataset_events
- tags: [DAGRun, Dataset]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DatasetEventCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns/{dag_run_id}/setNote:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- patch:
- summary: Update the DagRun note.
- description: |
- Update the manual user note of a DagRun.
- *New in version 2.5.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_run_endpoint
- operationId: set_dag_run_note
- tags: [DAGRun]
- requestBody:
- description: Parameters of set DagRun note.
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/SetDagRunNote"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAGRun"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/datasets/queuedEvent/{uri}:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DatasetURI"
- get:
- summary: Get a queued Dataset event for a DAG
- description: |
- Get a queued Dataset event for a DAG.
- *New in version 2.9.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
- operationId: get_dag_dataset_queued_event
- parameters:
- - $ref: "#/components/parameters/Before"
- tags: [Dataset]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/QueuedEvent"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- delete:
- summary: Delete a queued Dataset event for a DAG.
- description: |
- Delete a queued Dataset event for a DAG.
- *New in version 2.9.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
- operationId: delete_dag_dataset_queued_event
- parameters:
- - $ref: "#/components/parameters/Before"
- tags: [Dataset]
- responses:
- "204":
- description: Success.
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/datasets/queuedEvent:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- get:
- summary: Get queued Dataset events for a DAG.
- description: |
- Get queued Dataset events for a DAG.
- *New in version 2.9.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
- operationId: get_dag_dataset_queued_events
- parameters:
- - $ref: "#/components/parameters/Before"
- tags: [Dataset]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/QueuedEventCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- delete:
- summary: Delete queued Dataset events for a DAG.
- description: |
- Delete queued Dataset events for a DAG.
- *New in version 2.9.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
- operationId: delete_dag_dataset_queued_events
- parameters:
- - $ref: "#/components/parameters/Before"
- tags: [Dataset]
- responses:
- "204":
- description: Success.
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /parseDagFile/{file_token}:
- parameters:
- - $ref: "#/components/parameters/FileToken"
- put:
- summary: Request re-parsing of a DAG file
- description: >
- Request re-parsing of existing DAG files using a file token.
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_parsing
- operationId: reparse_dag_file
- tags: [ DAG ]
- responses:
- "201":
- description: Success.
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /datasets/queuedEvent/{uri}:
- parameters:
- - $ref: "#/components/parameters/DatasetURI"
- get:
- summary: Get queued Dataset events for a Dataset.
- description: |
- Get queued Dataset events for a Dataset
- *New in version 2.9.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
- operationId: get_dataset_queued_events
- parameters:
- - $ref: "#/components/parameters/Before"
- tags: [Dataset]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/QueuedEventCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- delete:
- summary: Delete queued Dataset events for a Dataset.
- description: |
- Delete queued Dataset events for a Dataset.
- *New in version 2.9.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
- operationId: delete_dataset_queued_events
- parameters:
- - $ref: "#/components/parameters/Before"
- tags: [Dataset]
- responses:
- "204":
- description: Success.
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /eventLogs:
- get:
- summary: List log entries
- description: List log entries from event log.
- x-openapi-router-controller: airflow.api_connexion.endpoints.event_log_endpoint
- operationId: get_event_logs
- tags: [EventLog]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- - $ref: "#/components/parameters/FilterDAGID"
- - $ref: "#/components/parameters/FilterTaskID"
- - $ref: "#/components/parameters/FilterRunID"
- - $ref: "#/components/parameters/FilterMapIndex"
- - $ref: "#/components/parameters/FilterTryNumber"
- - $ref: "#/components/parameters/Event"
- - $ref: "#/components/parameters/Owner"
- - $ref: "#/components/parameters/Before"
- - $ref: "#/components/parameters/After"
- - name: included_events
- in: query
- schema:
- type: string
- required: false
- description: |
- One or more event names separated by commas. If set, only return event logs with events matching this pattern.
- *New in version 2.9.0*
- - name: excluded_events
- in: query
- schema:
- type: string
- required: false
- description: |
- One or more event names separated by commas. If set, only return event logs with events that do not match this pattern.
- *New in version 2.9.0*
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/EventLogCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /eventLogs/{event_log_id}:
- parameters:
- - $ref: "#/components/parameters/EventLogID"
- get:
- summary: Get a log entry
- x-openapi-router-controller: airflow.api_connexion.endpoints.event_log_endpoint
- operationId: get_event_log
- tags: [EventLog]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/EventLog"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /importErrors:
- get:
- summary: List import errors
- x-openapi-router-controller: airflow.api_connexion.endpoints.import_error_endpoint
- operationId: get_import_errors
- tags: [ImportError]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ImportErrorCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /importErrors/{import_error_id}:
- parameters:
- - $ref: "#/components/parameters/ImportErrorID"
- get:
- summary: Get an import error
- x-openapi-router-controller: airflow.api_connexion.endpoints.import_error_endpoint
- operationId: get_import_error
- tags: [ImportError]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ImportError"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /pools:
- get:
- summary: List pools
- x-openapi-router-controller: airflow.api_connexion.endpoints.pool_endpoint
- operationId: get_pools
- tags: [Pool]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- responses:
- "200":
- description: List of pools.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PoolCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- post:
- summary: Create a pool
- x-openapi-router-controller: airflow.api_connexion.endpoints.pool_endpoint
- operationId: post_pool
- tags: [Pool]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Pool"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Pool"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /pools/{pool_name}:
- parameters:
- - $ref: "#/components/parameters/PoolName"
- get:
- summary: Get a pool
- x-openapi-router-controller: airflow.api_connexion.endpoints.pool_endpoint
- operationId: get_pool
- tags: [Pool]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Pool"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- patch:
- summary: Update a pool
- x-openapi-router-controller: airflow.api_connexion.endpoints.pool_endpoint
- operationId: patch_pool
- tags: [Pool]
- parameters:
- - $ref: "#/components/parameters/UpdateMask"
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Pool"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Pool"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- "409":
- $ref: "#/components/responses/AlreadyExists"
- delete:
- summary: Delete a pool
- x-openapi-router-controller: airflow.api_connexion.endpoints.pool_endpoint
- operationId: delete_pool
- tags: [Pool]
- responses:
- "204":
- description: Success.
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /providers:
- get:
- summary: List providers
- description: |
- Get a list of providers.
- *New in version 2.1.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.provider_endpoint
- operationId: get_providers
- tags: [Provider]
- responses:
- "200":
- description: List of providers.
- content:
- application/json:
- schema:
- allOf:
- - $ref: "#/components/schemas/ProviderCollection"
- - $ref: "#/components/schemas/CollectionInfo"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/FilterExecutionDateGTE"
- - $ref: "#/components/parameters/FilterExecutionDateLTE"
- - $ref: "#/components/parameters/FilterStartDateGTE"
- - $ref: "#/components/parameters/FilterStartDateLTE"
- - $ref: "#/components/parameters/FilterEndDateGTE"
- - $ref: "#/components/parameters/FilterEndDateLTE"
- - $ref: "#/components/parameters/FilterUpdatedAtGTE"
- - $ref: "#/components/parameters/FilterUpdatedAtLTE"
- - $ref: "#/components/parameters/FilterDurationGTE"
- - $ref: "#/components/parameters/FilterDurationLTE"
- - $ref: "#/components/parameters/FilterState"
- - $ref: "#/components/parameters/FilterPool"
- - $ref: "#/components/parameters/FilterQueue"
- - $ref: "#/components/parameters/FilterExecutor"
- get:
- summary: List task instances
- description: >
- This endpoint allows specifying `~` as the dag_id, dag_run_id to retrieve DAG runs for all DAGs
- and DAG runs.
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: get_task_instances
- tags: [TaskInstance]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- get:
- summary: Get a task instance
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: get_task_instance
- tags: [TaskInstance]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstance"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- patch:
- summary: Updates the state of a task instance
- description: >
- Updates the state for single task instance.
- *New in version 2.5.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: patch_task_instance
- tags: [TaskInstance]
- requestBody:
- description: Parameters of action
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/UpdateTaskInstance"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceReference"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- - $ref: "#/components/parameters/MapIndex"
- get:
- summary: Get a mapped task instance
- description: |
- Get details of a mapped task instance.
- *New in version 2.3.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: get_mapped_task_instance
- tags: [TaskInstance]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstance"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- patch:
- summary: Updates the state of a mapped task instance
- description: >
- Updates the state for single mapped task instance.
- *New in version 2.5.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: patch_mapped_task_instance
- tags: [TaskInstance]
- requestBody:
- description: Parameters of action
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/UpdateTaskInstance"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceReference"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/listMapped:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- get:
- summary: List mapped task instances
- description: |
- Get details of all mapped task instances.
- *New in version 2.3.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: get_mapped_task_instances
- tags: [TaskInstance]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/FilterExecutionDateGTE"
- - $ref: "#/components/parameters/FilterExecutionDateLTE"
- - $ref: "#/components/parameters/FilterStartDateGTE"
- - $ref: "#/components/parameters/FilterStartDateLTE"
- - $ref: "#/components/parameters/FilterEndDateGTE"
- - $ref: "#/components/parameters/FilterEndDateLTE"
- - $ref: "#/components/parameters/FilterUpdatedAtGTE"
- - $ref: "#/components/parameters/FilterUpdatedAtLTE"
- - $ref: "#/components/parameters/FilterDurationGTE"
- - $ref: "#/components/parameters/FilterDurationLTE"
- - $ref: "#/components/parameters/FilterState"
- - $ref: "#/components/parameters/FilterPool"
- - $ref: "#/components/parameters/FilterQueue"
- - $ref: "#/components/parameters/FilterExecutor"
- - $ref: "#/components/parameters/OrderBy"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/~/dagRuns/~/taskInstances/list:
- post:
- summary: List task instances (batch)
- description: >
- List task instances from all DAGs and DAG runs.
- This endpoint is a POST to allow filtering across a large number of DAG IDs, where as a GET it
- would run in to maximum HTTP request URL length limits.
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: get_task_instances_batch
- tags: [TaskInstance]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ListTaskInstanceForm"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/tries/{task_try_number}:
- get:
- summary: get taskinstance try
- description: |
- Get details of a task instance try.
- *New in version 2.10.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: get_task_instance_try_details
- tags: [TaskInstance]
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- - $ref: "#/components/parameters/TaskTryNumber"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceHistory"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/tries:
- get:
- summary: List task instance tries
- description: |
- Get details of all task instance tries.
- *New in version 2.10.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: get_task_instance_tries
- tags: [TaskInstance]
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceHistoryCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/tries:
- get:
- summary: List mapped task instance tries
- description: |
- Get details of all task instance tries.
- *New in version 2.10.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: get_mapped_task_instance_tries
- tags: [TaskInstance]
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- - $ref: "#/components/parameters/MapIndex"
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceHistoryCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/tries/{task_try_number}:
- get:
- summary: get mapped taskinstance try
- description: |
- Get details of a mapped task instance try.
- *New in version 2.10.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_instance_endpoint
- operationId: get_mapped_task_instance_try_details
- tags: [TaskInstance]
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- - $ref: "#/components/parameters/MapIndex"
- - $ref: "#/components/parameters/TaskTryNumber"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskInstanceHistory"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /variables:
- get:
- summary: List variables
- description: The collection does not contain data. To get data, you must get a single entity.
- x-openapi-router-controller: airflow.api_connexion.endpoints.variable_endpoint
- operationId: get_variables
- tags: [Variable]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/VariableCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- post:
- summary: Create a variable
- x-openapi-router-controller: airflow.api_connexion.endpoints.variable_endpoint
- operationId: post_variables
- tags: [Variable]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Variable"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Variable"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /variables/{variable_key}:
- parameters:
- - $ref: "#/components/parameters/VariableKey"
- get:
- summary: Get a variable
- description: Get a variable by key.
- x-openapi-router-controller: airflow.api_connexion.endpoints.variable_endpoint
- operationId: get_variable
- tags: [Variable]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Variable"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- patch:
- summary: Update a variable
- description: Update a variable by key.
- x-openapi-router-controller: airflow.api_connexion.endpoints.variable_endpoint
- operationId: patch_variable
- tags: [Variable]
- parameters:
- - $ref: "#/components/parameters/UpdateMask"
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Variable"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Variable"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- delete:
- summary: Delete a variable
- x-openapi-router-controller: airflow.api_connexion.endpoints.variable_endpoint
- operationId: delete_variable
- tags: [Variable]
- responses:
- "204":
- description: Success.
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- get:
- summary: List XCom entries
- description:
- This endpoint allows specifying `~` as the dag_id, dag_run_id, task_id to retrieve XCOM entries for
- for all DAGs, DAG runs and task instances. XCom values won't be returned as they can be large.
- Use this endpoint to get a list of XCom entries and then fetch individual entry to get value.
- x-openapi-router-controller: airflow.api_connexion.endpoints.xcom_endpoint
- operationId: get_xcom_entries
- tags: [XCom]
- parameters:
- - $ref: "#/components/parameters/FilterMapIndex"
- - $ref: "#/components/parameters/FilterXcomKey"
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/XComCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- ? /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries/{xcom_key}
- : parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- - $ref: "#/components/parameters/XComKey"
- get:
- summary: Get an XCom entry
- x-openapi-router-controller: airflow.api_connexion.endpoints.xcom_endpoint
- operationId: get_xcom_entry
- tags: [XCom]
- parameters:
- - $ref: "#/components/parameters/FilterMapIndex"
- - in: query
- name: deserialize
- schema:
- type: boolean
- default: false
- required: false
- description: |
- Whether to deserialize an XCom value when using a custom XCom backend.
- The XCom API endpoint calls `orm_deserialize_value` by default since an XCom may contain value
- that is potentially expensive to deserialize in the web server. Setting this to true overrides
- the consideration, and calls `deserialize_value` instead.
- This parameter is not meaningful when using the default XCom backend.
- *New in version 2.4.0*
- - in: query
- name: stringify
- schema:
- type: boolean
- default: true
- required: false
- description: |
- Whether to convert the XCom value to be a string. XCom values can be of Any data type.
- If set to true (default) the Any value will be returned as string, e.g. a Python representation
- of a dict. If set to false it will return the raw data as dict, list, string or whatever was stored.
- This parameter is not meaningful when using XCom pickling, then it is always returned as string.
- *New in version 2.10.0*
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/XCom"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- # Non-database resources
- /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/links:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- - $ref: "#/components/parameters/FilterMapIndex"
- get:
- summary: List extra links
- description: >
- List extra links for task instance.
- x-openapi-router-controller: airflow.api_connexion.endpoints.extra_link_endpoint
- operationId: get_extra_links
- tags: [TaskInstance]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ExtraLinkCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- ? /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{task_try_number}
- : parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/DAGRunID"
- - $ref: "#/components/parameters/TaskID"
- - $ref: "#/components/parameters/TaskTryNumber"
- - $ref: "#/components/parameters/FullContent"
- - $ref: "#/components/parameters/FilterMapIndex"
- - $ref: "#/components/parameters/ContinuationToken"
- get:
- summary: Get logs
- description: |
- Get logs for a specific task instance and its try number.
- To get log from specific character position, following way of using
- URLSafeSerializer can be used.
- Example:
- ```
- from itsdangerous.url_safe import URLSafeSerializer
- request_url = f"api/v1/dags/{DAG_ID}/dagRuns/{RUN_ID}/taskInstances/{TASK_ID}/logs/1"
- key = app.config["SECRET_KEY"]
- serializer = URLSafeSerializer(key)
- token = serializer.dumps({"log_pos": 10000})
- response = self.client.get(
- request_url,
- query_string={"token": token},
- headers={"Accept": "text/plain"},
- environ_overrides={"REMOTE_USER": "test"},
- )
- continuation_token = response.json["continuation_token"]
- metadata = URLSafeSerializer(key).loads(continuation_token)
- log_pos = metadata["log_pos"]
- end_of_log = metadata["end_of_log"]
- ```
- If log_pos is passed as 10000 like the above example, it renders the logs starting
- from char position 10000 to last (not the end as the logs may be tailing behind in
- running state). This way pagination can be done with metadata as part of the token.
- x-openapi-router-controller: airflow.api_connexion.endpoints.log_endpoint
- operationId: get_log
- tags: [TaskInstance]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- type: object
- properties:
- continuation_token:
- type: string
- content:
- type: string
- text/plain:
- schema:
- type: string
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/details:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- get:
- summary: Get a simplified representation of DAG
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_endpoint
- operationId: get_dag_details
- description: >
- The response contains many DAG attributes, so the response can be large.
- If possible, consider using GET /dags/{dag_id}.
- tags: [DAG]
- parameters:
- - $ref: "#/components/parameters/ReturnFields"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DAGDetail"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/tasks:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/OrderBy"
- get:
- summary: Get tasks for DAG
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_endpoint
- operationId: get_tasks
- tags: [DAG]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/TaskCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dags/{dag_id}/tasks/{task_id}:
- parameters:
- - $ref: "#/components/parameters/DAGID"
- - $ref: "#/components/parameters/TaskID"
- get:
- summary: Get simplified representation of a task
- x-openapi-router-controller: airflow.api_connexion.endpoints.task_endpoint
- operationId: get_task
- tags: [DAG]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Task"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /dagStats:
- get:
- summary: List Dag statistics
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_stats_endpoint
- operationId: get_dag_stats
- tags: [DagStats]
- parameters:
- - name: dag_ids
- in: query
- schema:
- type: string
- required: true
- description: |
- One or more DAG IDs separated by commas to filter relevant Dags.
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DagStatsCollectionSchema"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /dagSources/{file_token}:
- parameters:
- - $ref: "#/components/parameters/FileToken"
- get:
- summary: Get a source code
- description: >
- Get a source code using file token.
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_source_endpoint
- operationId: get_dag_source
- tags: [DAG]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- type: object
- properties:
- content:
- type: string
- text/plain:
- schema:
- type: string
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- "406":
- $ref: "#/components/responses/NotAcceptable"
- /dagWarnings:
- get:
- summary: List dag warnings
- x-openapi-router-controller: airflow.api_connexion.endpoints.dag_warning_endpoint
- operationId: get_dag_warnings
- tags: [DagWarning]
- parameters:
- - name: dag_id
- in: query
- schema:
- type: string
- required: false
- description: If set, only return DAG warnings with this dag_id.
- - name: warning_type
- in: query
- schema:
- type: string
- required: false
- description: If set, only return DAG warnings with this type.
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DagWarningCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /datasets:
- get:
- summary: List datasets
- x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
- operationId: get_datasets
- tags: [Dataset]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- - name: uri_pattern
- in: query
- schema:
- type: string
- required: false
- description: |
- If set, only return datasets with uris matching this pattern.
- - name: dag_ids
- in: query
- schema:
- type: string
- required: false
- description: |
- One or more DAG IDs separated by commas to filter datasets by associated DAGs either consuming or producing.
- *New in version 2.9.0*
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DatasetCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /datasets/{uri}:
- parameters:
- - $ref: "#/components/parameters/DatasetURI"
- get:
- summary: Get a dataset
- description: Get a dataset by uri.
- x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
- operationId: get_dataset
- tags: [Dataset]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Dataset"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /datasets/events:
- get:
- summary: Get dataset events
- description: Get dataset events
- x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
- operationId: get_dataset_events
- tags: [Dataset]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- - $ref: "#/components/parameters/FilterDatasetID"
- - $ref: "#/components/parameters/FilterSourceDAGID"
- - $ref: "#/components/parameters/FilterSourceTaskID"
- - $ref: "#/components/parameters/FilterSourceRunID"
- - $ref: "#/components/parameters/FilterSourceMapIndex"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/DatasetEventCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- post:
- summary: Create dataset event
- description: Create dataset event
- x-openapi-router-controller: airflow.api_connexion.endpoints.dataset_endpoint
- operationId: create_dataset_event
- tags: [Dataset]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CreateDatasetEvent'
- responses:
- '200':
- description: Success.
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatasetEvent'
- "400":
- $ref: "#/components/responses/BadRequest"
- '401':
- $ref: '#/components/responses/Unauthenticated'
- '403':
- $ref: '#/components/responses/PermissionDenied'
- '404':
- $ref: '#/components/responses/NotFound'
- /config:
- get:
- summary: Get current configuration
- x-openapi-router-controller: airflow.api_connexion.endpoints.config_endpoint
- operationId: get_config
- tags: [Config]
- parameters:
- - name: section
- in: query
- schema:
- type: string
- required: false
- description: If given, only return config of this section.
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Config"
- example:
- sections:
- - name: core
- options:
- - key: dags_folder
- value: /home/user/my-dags-folder
- - name: smtp
- options:
- - key: smtp_host
- value: localhost
- - key: smtp_mail_from
- value: airflow@example.com
- text/plain:
- schema:
- type: string
- example: |
- [core]
- dags_folder = /home/user/my-dags-folder
- [smtp]
- smtp_host = localhost
- smtp_mail_from = airflow@example.com
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /config/section/{section}/option/{option}:
- get:
- summary: Get a option from configuration
- x-openapi-router-controller: airflow.api_connexion.endpoints.config_endpoint
- operationId: get_value
- tags: [Config]
- parameters:
- - name: section
- in: path
- schema:
- type: string
- required: true
- - name: option
- in: path
- schema:
- type: string
- required: true
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Config"
- example:
- sections:
- - name: core
- options:
- - key: dags_folder
- value: /home/user/my-dags-folder
- text/plain:
- schema:
- type: string
- example: |
- [core]
- dags_folder = /home/user/my-dags-folder
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /health:
- get:
- summary: Get instance status
- description: |
- Get the status of Airflow's metadatabase, triggerer and scheduler. It includes info about
- metadatabase and last heartbeat of scheduler and triggerer.
- x-openapi-router-controller: airflow.api_connexion.endpoints.health_endpoint
- operationId: get_health
- tags: [Monitoring]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/HealthInfo"
- /version:
- get:
- summary: Get version information
- x-openapi-router-controller: airflow.api_connexion.endpoints.version_endpoint
- operationId: get_version
- tags: [Monitoring]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/VersionInfo"
- /plugins:
- get:
- summary: Get a list of loaded plugins
- description: |
- Get a list of loaded plugins.
- *New in version 2.1.0*
- x-openapi-router-controller: airflow.api_connexion.endpoints.plugin_endpoint
- operationId: get_plugins
- tags: [Plugin]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- responses:
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PluginCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /roles:
- get:
- deprecated: true
- summary: List roles
- description: |
- Get a list of roles.
- *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
- x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
- operationId: get_roles
- tags: [Role]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/RoleCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- post:
- deprecated: true
- summary: Create a role
- description: |
- Create a new role.
- *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
- x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
- operationId: post_role
- tags: [Role]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Role"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Role"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /roles/{role_name}:
- parameters:
- - $ref: "#/components/parameters/RoleName"
- get:
- deprecated: true
- summary: Get a role
- description: |
- Get a role.
- *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
- x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
- operationId: get_role
- tags: [Role]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Role"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- patch:
- deprecated: true
- summary: Update a role
- description: |
- Update a role.
- *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
- x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
- operationId: patch_role
- tags: [Role]
- parameters:
- - $ref: "#/components/parameters/UpdateMask"
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Role"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Role"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- delete:
- deprecated: true
- summary: Delete a role
- description: |
- Delete a role.
- *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
- x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
- operationId: delete_role
- tags: [Role]
- responses:
- "204":
- description: Success.
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- /permissions:
- get:
- deprecated: true
- summary: List permissions
- description: |
- Get a list of permissions.
- *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
- x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
- operationId: get_permissions
- tags: [Permission]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ActionCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- /users:
- get:
- deprecated: true
- summary: List users
- description: |
- Get a list of users.
- *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
- x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
- operationId: get_users
- tags: [User]
- parameters:
- - $ref: "#/components/parameters/PageLimit"
- - $ref: "#/components/parameters/PageOffset"
- - $ref: "#/components/parameters/OrderBy"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/UserCollection"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- post:
- deprecated: true
- summary: Create a user
- description: |
- Create a new user with unique username and email.
- *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
- x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
- operationId: post_user
- tags: [User]
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/User"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/User"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "409":
- $ref: "#/components/responses/AlreadyExists"
- /users/{username}:
- parameters:
- - $ref: "#/components/parameters/Username"
- get:
- deprecated: true
- summary: Get a user
- description: |
- Get a user with a specific username.
- *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
- x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
- operationId: get_user
- tags: [User]
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/UserCollectionItem"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- patch:
- deprecated: true
- summary: Update a user
- description: |
- Update fields for a user.
- *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
- x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
- operationId: patch_user
- tags: [User]
- parameters:
- - $ref: "#/components/parameters/UpdateMask"
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/User"
- responses:
- "200":
- description: Success.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/UserCollectionItem"
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- delete:
- deprecated: true
- summary: Delete a user
- description: |
- Delete a user with a specific username.
- *This API endpoint is deprecated, please use the endpoint `/auth/fab/v1` for this operation instead.*
- x-openapi-router-controller: airflow.api_connexion.endpoints.forward_to_fab_endpoint
- operationId: delete_user
- tags: [User]
- responses:
- "204":
- description: Success.
- "400":
- $ref: "#/components/responses/BadRequest"
- "401":
- $ref: "#/components/responses/Unauthenticated"
- "403":
- $ref: "#/components/responses/PermissionDenied"
- "404":
- $ref: "#/components/responses/NotFound"
- components:
- # Reusable schemas (data models)
- schemas:
- # Database entities
- UserCollectionItem:
- description: |
- A user object.
- *New in version 2.1.0*
- type: object
- properties:
- first_name:
- type: string
- description: |
- The user's first name.
- *Changed in version 2.4.0*: The requirement for this to be non-empty was removed.
- last_name:
- type: string
- description: |
- The user's last name.
- *Changed in version 2.4.0*: The requirement for this to be non-empty was removed.
- username:
- type: string
- description: |
- The username.
- *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added.
- minLength: 1
- email:
- type: string
- description: |
- The user's email.
- *Changed in version 2.2.0*: A minimum character length requirement ('minLength') is added.
- minLength: 1
- active:
- type: boolean
- description: Whether the user is active
- readOnly: true
- nullable: true
- last_login:
- type: string
- format: datetime
- description: The last user login
- readOnly: true
- nullable: true
- login_count:
- type: integer
- description: The login count
- readOnly: true
- nullable: true
- failed_login_count:
- type: integer
- description: The number of times the login failed
- readOnly: true
- nullable: true
- roles:
- type: array
- description: |
- User roles.
- *Changed in version 2.2.0*: Field is no longer read-only.
- items:
- type: object
- properties:
- name:
- type: string
- nullable: true
- created_on:
- type: string
- format: datetime
- description: The date user was created
- readOnly: true
- nullable: true
- changed_on:
- type: string
- format: datetime
- description: The date user was changed
- readOnly: true
- nullable: true
- User:
- type: object
- description: |
- A user object with sensitive data.
- *New in version 2.1.0*
- allOf:
- - $ref: "#/components/schemas/UserCollectionItem"
- - type: object
- properties:
- password:
- type: string
- writeOnly: true
- UserCollection:
- type: object
- description: |
- Collection of users.
- *New in version 2.1.0*
- allOf:
- - type: object
- properties:
- users:
- type: array
- items:
- $ref: "#/components/schemas/UserCollectionItem"
- - $ref: "#/components/schemas/CollectionInfo"
- ConnectionCollectionItem:
- description: >
- Connection collection item.
- The password and extra fields are only available when retrieving a single object due to the
- sensitivity of this data.
- type: object
- properties:
- connection_id:
- type: string
- description: The connection ID.
- conn_type:
- type: string
- description: The connection type.
- description:
- type: string
- description: The description of the connection.
- nullable: true
- host:
- type: string
- nullable: true
- description: Host of the connection.
- login:
- type: string
- nullable: true
- description: Login of the connection.
- schema:
- type: string
- nullable: true
- description: Schema of the connection.
- port:
- type: integer
- nullable: true
- description: Port of the connection.
- ConnectionCollection:
- type: object
- description: |
- Collection of connections.
- *Changed in version 2.1.0*: 'total_entries' field is added.
- allOf:
- - type: object
- properties:
- connections:
- type: array
- items:
- $ref: "#/components/schemas/ConnectionCollectionItem"
- - $ref: "#/components/schemas/CollectionInfo"
- Connection:
- description: Full representation of the connection.
- allOf:
- - $ref: "#/components/schemas/ConnectionCollectionItem"
- - type: object
- properties:
- password:
- type: string
- format: password
- writeOnly: true
- description: Password of the connection.
- extra:
- type: string
- nullable: true
- description: Other values that cannot be put into another field, e.g. RSA keys.
- ConnectionTest:
- description: |
- Connection test results.
- *New in version 2.2.0*
- type: object
- properties:
- status:
- type: boolean
- description: The status of the request.
- message:
- type: string
- description: The success or failure message of the request.
- DAG:
- type: object
- description: DAG
- properties:
- dag_id:
- type: string
- readOnly: true
- description: The ID of the DAG.
- dag_display_name:
- type: string
- readOnly: true
- description: |
- Human centric display text for the DAG.
- *New in version 2.9.0*
- root_dag_id:
- type: string
- readOnly: true
- nullable: true
- description: If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, null.
- is_paused:
- type: boolean
- nullable: true
- description: Whether the DAG is paused.
- is_active:
- description: |
- Whether the DAG is currently seen by the scheduler(s).
- *New in version 2.1.1*
- *Changed in version 2.2.0*: Field is read-only.
- nullable: true
- readOnly: true
- type: boolean
- is_subdag:
- description: Whether the DAG is SubDAG.
- type: boolean
- readOnly: true
- last_parsed_time:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- description: |
- The last time the DAG was parsed.
- *New in version 2.3.0*
- last_pickled:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- description: |
- The last time the DAG was pickled.
- *New in version 2.3.0*
- last_expired:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- description: |
- Time when the DAG last received a refresh signal
- (e.g. the DAG's "refresh" button was clicked in the web UI)
- *New in version 2.3.0*
- scheduler_lock:
- type: boolean
- readOnly: true
- nullable: true
- description: |
- Whether (one of) the scheduler is scheduling this DAG at the moment
- *New in version 2.3.0*
- pickle_id:
- type: string
- readOnly: true
- nullable: true
- description: |
- Foreign key to the latest pickle_id
- *New in version 2.3.0*
- default_view:
- type: string
- nullable: true
- readOnly: true
- description: |
- Default view of the DAG inside the webserver
- *New in version 2.3.0*
- fileloc:
- description: The absolute path to the file.
- type: string
- readOnly: true
- file_token:
- type: string
- readOnly: true
- description: >
- The key containing the encrypted path to the file. Encryption and decryption take place only on
- the server. This prevents the client from reading an non-DAG file. This also ensures API
- extensibility, because the format of encrypted data may change.
- owners:
- type: array
- items:
- type: string
- readOnly: true
- description:
- type: string
- readOnly: true
- nullable: true
- description: >
- User-provided DAG description, which can consist of several sentences or paragraphs that
- describe DAG contents.
- schedule_interval:
- $ref: "#/components/schemas/ScheduleInterval"
- timetable_description:
- type: string
- readOnly: true
- nullable: true
- description: |
- Timetable/Schedule Interval description.
- *New in version 2.3.0*
- tags:
- description: List of tags.
- type: array
- nullable: true
- items:
- $ref: "#/components/schemas/Tag"
- readOnly: true
- max_active_tasks:
- type: integer
- nullable: true
- readOnly: true
- description: |
- Maximum number of active tasks that can be run on the DAG
- *New in version 2.3.0*
- max_active_runs:
- type: integer
- nullable: true
- readOnly: true
- description: |
- Maximum number of active DAG runs for the DAG
- *New in version 2.3.0*
- has_task_concurrency_limits:
- type: boolean
- nullable: true
- readOnly: true
- description: |
- Whether the DAG has task concurrency limits
- *New in version 2.3.0*
- has_import_errors:
- type: boolean
- nullable: true
- readOnly: true
- description: |
- Whether the DAG has import errors
- *New in version 2.3.0*
- next_dagrun:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- description: |
- The logical date of the next dag run.
- *New in version 2.3.0*
- next_dagrun_data_interval_start:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- description: |
- The start of the interval of the next dag run.
- *New in version 2.3.0*
- next_dagrun_data_interval_end:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- description: |
- The end of the interval of the next dag run.
- *New in version 2.3.0*
- next_dagrun_create_after:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- description: |
- Earliest time at which this ``next_dagrun`` can be created.
- *New in version 2.3.0*
- max_consecutive_failed_dag_runs:
- type: integer
- nullable: true
- readOnly: true
- description: |
- (experimental) The maximum number of consecutive DAG failures before DAG is automatically paused.
- *New in version 2.9.0*
- DAGCollection:
- description: |
- Collection of DAGs.
- *Changed in version 2.1.0*: 'total_entries' field is added.
- type: object
- allOf:
- - type: object
- properties:
- dags:
- type: array
- items:
- $ref: "#/components/schemas/DAG"
- - $ref: "#/components/schemas/CollectionInfo"
- DAGRun:
- type: object
- properties:
- dag_run_id:
- type: string
- nullable: true
- description: |
- Run ID.
- The value of this field can be set only when creating the object. If you try to modify the
- field of an existing object, the request fails with an BAD_REQUEST error.
- If not provided, a value will be generated based on execution_date.
- If the specified dag_run_id is in use, the creation request fails with an ALREADY_EXISTS error.
- This together with DAG_ID are a unique key.
- dag_id:
- type: string
- readOnly: true
- logical_date:
- type: string
- nullable: true
- description: |
- The logical date (previously called execution date). This is the time or interval covered by
- this DAG run, according to the DAG definition.
- The value of this field can be set only when creating the object. If you try to modify the
- field of an existing object, the request fails with an BAD_REQUEST error.
- This together with DAG_ID are a unique key.
- *New in version 2.2.0*
- format: date-time
- execution_date:
- type: string
- nullable: true
- description: |
- The execution date. This is the same as logical_date, kept for backwards compatibility.
- If both this field and logical_date are provided but with different values, the request
- will fail with an BAD_REQUEST error.
- *Changed in version 2.2.0*: Field becomes nullable.
- *Deprecated since version 2.2.0*: Use 'logical_date' instead.
- format: date-time
- deprecated: true
- start_date:
- type: string
- format: date-time
- description: |
- The start time. The time when DAG run was actually created.
- *Changed in version 2.1.3*: Field becomes nullable.
- readOnly: true
- nullable: true
- end_date:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- data_interval_start:
- type: string
- format: date-time
- description: |
- The beginning of the interval the DAG run covers.
- nullable: true
- data_interval_end:
- type: string
- format: date-time
- description: |
- The end of the interval the DAG run covers.
- nullable: true
- last_scheduling_decision:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- run_type:
- type: string
- readOnly: true
- enum:
- - backfill
- - manual
- - scheduled
- - dataset_triggered
- state:
- $ref: "#/components/schemas/DagState"
- external_trigger:
- type: boolean
- readOnly: true
- conf:
- type: object
- description: |
- JSON object describing additional configuration parameters.
- The value of this field can be set only when creating the object. If you try to modify the
- field of an existing object, the request fails with an BAD_REQUEST error.
- note:
- type: string
- description: |
- Contains manually entered notes by the user about the DagRun.
- *New in version 2.5.0*
- nullable: true
- UpdateDagRunState:
- type: object
- description: |
- Modify the state of a DAG run.
- *New in version 2.2.0*
- properties:
- state:
- description: The state to set this DagRun
- type: string
- enum:
- - success
- - failed
- - queued
- DAGRunCollection:
- type: object
- description: |
- Collection of DAG runs.
- *Changed in version 2.1.0*: 'total_entries' field is added.
- allOf:
- - type: object
- properties:
- dag_runs:
- type: array
- items:
- $ref: "#/components/schemas/DAGRun"
- - $ref: "#/components/schemas/CollectionInfo"
- DagStatsCollectionSchema:
- type: object
- description: |
- Collection of Dag statistics.
- allOf:
- - type: object
- properties:
- dags:
- type: array
- items:
- $ref: "#/components/schemas/DagStatsCollectionItem"
- - $ref: "#/components/schemas/CollectionInfo"
- DagStatsCollectionItem:
- description: DagStats entry collection item.
- type: object
- properties:
- dag_id:
- type: string
- description: The DAG ID.
- stats:
- type: array
- nullable: true
- items:
- $ref: "#/components/schemas/DagStatsStateCollectionItem"
- DagStatsStateCollectionItem:
- description: DagStatsState entry collection item.
- type: object
- properties:
- state:
- type: string
- description: The DAG state.
- count:
- type: integer
- description: The DAG state count.
- DagWarning:
- type: object
- properties:
- dag_id:
- type: string
- readOnly: true
- description: The dag_id.
- warning_type:
- type: string
- readOnly: true
- description: The warning type for the dag warning.
- message:
- type: string
- readOnly: true
- description: The message for the dag warning.
- timestamp:
- type: string
- format: datetime
- readOnly: true
- description: The time when this warning was logged.
- DagWarningCollection:
- type: object
- description: |
- Collection of DAG warnings.
- allOf:
- - type: object
- properties:
- dag_warnings:
- type: array
- items:
- $ref: "#/components/schemas/DagWarning"
- - $ref: "#/components/schemas/CollectionInfo"
- SetDagRunNote:
- type: object
- properties:
- note:
- description: Custom notes left by users for this Dag Run.
- type: string
- EventLog:
- type: object
- description: Log of user operations via CLI or Web UI.
- properties:
- event_log_id:
- description: The event log ID
- type: integer
- readOnly: true
- when:
- description: The time when these events happened.
- format: date-time
- type: string
- readOnly: true
- dag_id:
- description: The DAG ID
- type: string
- readOnly: true
- nullable: true
- task_id:
- description: The Task ID
- type: string
- readOnly: true
- nullable: true
- run_id:
- description: The DAG Run ID
- type: string
- readOnly: true
- nullable: true
- map_index:
- description: The Map Index
- type: integer
- readOnly: true
- nullable: true
- try_number:
- description: The Try Number
- type: integer
- readOnly: true
- nullable: true
- event:
- description: A key describing the type of event.
- type: string
- readOnly: true
- execution_date:
- description: |
- When the event was dispatched for an object having execution_date, the value of this field.
- format: date-time
- type: string
- readOnly: true
- nullable: true
- owner:
- description: Name of the user who triggered these events a.
- type: string
- nullable: true
- readOnly: true
- extra:
- description: |
- Other information that was not included in the other fields, e.g. the complete CLI command.
- type: string
- readOnly: true
- nullable: true
- EventLogCollection:
- type: object
- description: |
- Collection of event logs.
- *Changed in version 2.1.0*: 'total_entries' field is added.
- *Changed in version 2.10.0*: 'try_number' and 'map_index' fields are added.
- allOf:
- - type: object
- properties:
- event_logs:
- type: array
- items:
- $ref: "#/components/schemas/EventLog"
- - $ref: "#/components/schemas/CollectionInfo"
- ImportError:
- type: object
- properties:
- import_error_id:
- type: integer
- readOnly: true
- description: The import error ID.
- timestamp:
- type: string
- format: datetime
- readOnly: true
- description: The time when this error was created.
- filename:
- type: string
- readOnly: true
- description: The filename
- stack_trace:
- type: string
- readOnly: true
- description: The full stackstrace.
- ImportErrorCollection:
- type: object
- description: |
- Collection of import errors.
- *Changed in version 2.1.0*: 'total_entries' field is added.
- allOf:
- - type: object
- properties:
- import_errors:
- type: array
- items:
- $ref: "#/components/schemas/ImportError"
- - $ref: "#/components/schemas/CollectionInfo"
- HealthInfo:
- type: object
- description: Instance status information.
- properties:
- metadatabase:
- $ref: "#/components/schemas/MetadatabaseStatus"
- scheduler:
- $ref: "#/components/schemas/SchedulerStatus"
- triggerer:
- $ref: "#/components/schemas/TriggererStatus"
- dag_processor:
- $ref: "#/components/schemas/DagProcessorStatus"
- MetadatabaseStatus:
- type: object
- description: The status of the metadatabase.
- properties:
- status:
- $ref: "#/components/schemas/HealthStatus"
- SchedulerStatus:
- type: object
- description: The status and the latest scheduler heartbeat.
- properties:
- status:
- $ref: "#/components/schemas/HealthStatus"
- latest_scheduler_heartbeat:
- description: The time the scheduler last did a heartbeat.
- type: string
- format: datetime
- readOnly: true
- nullable: true
- TriggererStatus:
- type: object
- description: |
- The status and the latest triggerer heartbeat.
- *New in version 2.6.2*
- properties:
- status:
- $ref: "#/components/schemas/HealthStatus"
- latest_triggerer_heartbeat:
- description: The time the triggerer last did a heartbeat.
- type: string
- format: datetime
- readOnly: true
- nullable: true
- DagProcessorStatus:
- type: object
- description: |
- The status and the latest dag processor heartbeat.
- *New in version 2.6.3*
- properties:
- status:
- $ref: "#/components/schemas/HealthStatus"
- latest_dag_processor_heartbeat:
- description: The time the dag processor last did a heartbeat.
- type: string
- format: datetime
- readOnly: true
- nullable: true
- Pool:
- description: The pool
- type: object
- properties:
- name:
- type: string
- description: The name of pool.
- slots:
- type: integer
- description: |
- The maximum number of slots that can be assigned to tasks. One job may occupy one or more slots.
- occupied_slots:
- type: integer
- readOnly: true
- description: The number of slots used by running/queued tasks at the moment. May include deferred tasks if 'include_deferred' is set to true.
- running_slots:
- type: integer
- readOnly: true
- description: The number of slots used by running tasks at the moment.
- queued_slots:
- type: integer
- readOnly: true
- description: The number of slots used by queued tasks at the moment.
- open_slots:
- type: integer
- readOnly: true
- description: The number of free slots at the moment.
- scheduled_slots:
- type: integer
- readOnly: true
- description: The number of slots used by scheduled tasks at the moment.
- deferred_slots:
- type: integer
- readOnly: true
- description: |
- The number of slots used by deferred tasks at the moment. Relevant if 'include_deferred' is set to true.
- *New in version 2.7.0*
- description:
- type: string
- description: |
- The description of the pool.
- *New in version 2.3.0*
- nullable: true
- include_deferred:
- type: boolean
- description: |
- If set to true, deferred tasks are considered when calculating open pool slots.
- *New in version 2.7.0*
- PoolCollection:
- type: object
- description: |
- Collection of pools.
- *Changed in version 2.1.0*: 'total_entries' field is added.
- allOf:
- - type: object
- properties:
- pools:
- type: array
- items:
- $ref: "#/components/schemas/Pool"
- - $ref: "#/components/schemas/CollectionInfo"
- Provider:
- description: |
- The provider
- *New in version 2.1.0*
- type: object
- properties:
- package_name:
- type: string
- description: The package name of the provider.
- description:
- type: string
- description: The description of the provider.
- version:
- type: string
- description: The version of the provider.
- ProviderCollection:
- description: |
- Collection of providers.
- *New in version 2.1.0*
- type: object
- properties:
- providers:
- type: array
- items:
- $ref: "#/components/schemas/Provider"
- SLAMiss:
- type: object
- properties:
- task_id:
- type: string
- readOnly: true
- description: The task ID.
- dag_id:
- type: string
- description: The DAG ID.
- execution_date:
- type: string
- format: datetime
- email_sent:
- type: boolean
- timestamp:
- type: string
- format: datetime
- description:
- type: string
- nullable: true
- notification_sent:
- type: boolean
- nullable: true
- Trigger:
- type: object
- nullable: true
- properties:
- id:
- type: integer
- classpath:
- type: string
- kwargs:
- type: string
- created_date:
- type: string
- format: datetime
- triggerer_id:
- type: integer
- nullable: true
- TaskFailedDependency:
- type: object
- properties:
- name:
- type: string
- reason:
- type: string
- TaskInstanceDependencyCollection:
- type: object
- properties:
- dependencies:
- type: array
- items:
- $ref: "#/components/schemas/TaskFailedDependency"
- Job:
- type: object
- nullable: true
- properties:
- id:
- type: integer
- dag_id:
- type: string
- nullable: true
- state:
- type: string
- nullable: true
- job_type:
- type: string
- nullable: true
- start_date:
- type: string
- format: datetime
- nullable: true
- end_date:
- type: string
- format: datetime
- nullable: true
- latest_heartbeat:
- type: string
- format: datetime
- nullable: true
- executor_class:
- type: string
- nullable: true
- hostname:
- type: string
- nullable: true
- unixname:
- type: string
- nullable: true
- TaskInstance:
- type: object
- properties:
- task_id:
- type: string
- task_display_name:
- type: string
- description: |
- Human centric display text for the task.
- *New in version 2.9.0*
- dag_id:
- type: string
- dag_run_id:
- type: string
- description: |
- The DagRun ID for this task instance
- *New in version 2.3.0*
- execution_date:
- type: string
- format: datetime
- start_date:
- type: string
- format: datetime
- nullable: true
- end_date:
- type: string
- format: datetime
- nullable: true
- duration:
- type: number
- nullable: true
- state:
- $ref: "#/components/schemas/TaskState"
- try_number:
- type: integer
- map_index:
- type: integer
- max_tries:
- type: integer
- hostname:
- type: string
- unixname:
- type: string
- pool:
- type: string
- pool_slots:
- type: integer
- queue:
- type: string
- nullable: true
- priority_weight:
- type: integer
- nullable: true
- operator:
- type: string
- nullable: true
- description: |
- *Changed in version 2.1.1*: Field becomes nullable.
- queued_when:
- type: string
- nullable: true
- description: |
- The datetime that the task enter the state QUEUE, also known as queue_at
- pid:
- type: integer
- nullable: true
- executor:
- type: string
- nullable: true
- description: |
- Executor the task is configured to run on or None (which indicates the default executor)
- *New in version 2.10.0*
- executor_config:
- type: string
- sla_miss:
- $ref: "#/components/schemas/SLAMiss"
- rendered_map_index:
- description: |
- Rendered name of an expanded task instance, if the task is mapped.
- *New in version 2.9.0*
- type: string
- nullable: true
- rendered_fields:
- description: |
- JSON object describing rendered fields.
- *New in version 2.3.0*
- type: object
- trigger:
- $ref: "#/components/schemas/Trigger"
- triggerer_job:
- $ref: "#/components/schemas/Job"
- note:
- type: string
- description: |
- Contains manually entered notes by the user about the TaskInstance.
- *New in version 2.5.0*
- nullable: true
- TaskInstanceCollection:
- type: object
- description: |
- Collection of task instances.
- *Changed in version 2.1.0*: 'total_entries' field is added.
- allOf:
- - type: object
- properties:
- task_instances:
- type: array
- items:
- $ref: "#/components/schemas/TaskInstance"
- - $ref: "#/components/schemas/CollectionInfo"
- TaskInstanceHistory:
- type: object
- properties:
- task_id:
- type: string
- task_display_name:
- type: string
- description: |
- Human centric display text for the task.
- *New in version 2.9.0*
- dag_id:
- type: string
- dag_run_id:
- type: string
- description: |
- The DagRun ID for this task instance
- *New in version 2.3.0*
- start_date:
- type: string
- format: datetime
- nullable: true
- end_date:
- type: string
- format: datetime
- nullable: true
- duration:
- type: number
- nullable: true
- state:
- $ref: "#/components/schemas/TaskState"
- try_number:
- type: integer
- map_index:
- type: integer
- max_tries:
- type: integer
- hostname:
- type: string
- unixname:
- type: string
- pool:
- type: string
- pool_slots:
- type: integer
- queue:
- type: string
- nullable: true
- priority_weight:
- type: integer
- nullable: true
- operator:
- type: string
- nullable: true
- description: |
- *Changed in version 2.1.1*: Field becomes nullable.
- queued_when:
- type: string
- nullable: true
- description: |
- The datetime that the task enter the state QUEUE, also known as queue_at
- pid:
- type: integer
- nullable: true
- executor:
- type: string
- nullable: true
- description: |
- Executor the task is configured to run on or None (which indicates the default executor)
- *New in version 2.10.0*
- executor_config:
- type: string
- TaskInstanceHistoryCollection:
- type: object
- description: |
- Collection of task instances .
- *Changed in version 2.1.0*: 'total_entries' field is added.
- allOf:
- - type: object
- properties:
- task_instances_history:
- type: array
- items:
- $ref: "#/components/schemas/TaskInstanceHistory"
- - $ref: "#/components/schemas/CollectionInfo"
- TaskInstanceReference:
- type: object
- properties:
- task_id:
- type: string
- readOnly: true
- description: The task ID.
- dag_id:
- type: string
- readOnly: true
- description: The DAG ID.
- execution_date:
- type: string
- format: datetime
- readOnly: true
- dag_run_id:
- type: string
- readOnly: true
- description: The DAG run ID.
- TaskInstanceReferenceCollection:
- type: object
- properties:
- task_instances:
- type: array
- items:
- $ref: "#/components/schemas/TaskInstanceReference"
- VariableCollectionItem:
- description: XCom entry collection item.
- The value field are only available when retrieving a single object due to the sensitivity of this
- data.
- # Divided into two schemas for sensitive data protection
- type: object
- properties:
- key:
- type: string
- description:
- type: string
- description: |
- The description of the variable.
- *New in version 2.4.0*
- nullable: true
- VariableCollection:
- type: object
- description: |
- Collection of variables.
- *Changed in version 2.1.0*: 'total_entries' field is added.
- allOf:
- - type: object
- properties:
- variables:
- type: array
- items:
- $ref: "#/components/schemas/VariableCollectionItem"
- - $ref: "#/components/schemas/CollectionInfo"
- Variable:
- description: Full representation of Variable
- allOf:
- - $ref: "#/components/schemas/VariableCollectionItem"
- - type: object
- properties:
- value:
- type: string
- XComCollectionItem:
- # Divided into two schemas for sensitive data protection
- type: object
- description: |
- XCom entry collection item.
- The value field is only available when reading a single object due to the size of the value.
- properties:
- key:
- type: string
- timestamp:
- type: string
- format: datetime
- execution_date:
- type: string
- format: datetime
- map_index:
- type: integer
- task_id:
- type: string
- dag_id:
- type: string
- XComCollection:
- type: object
- description: |
- Collection of XCom entries.
- *Changed in version 2.1.0*: 'total_entries' field is added.
- allOf:
- - type: object
- properties:
- xcom_entries:
- type: array
- items:
- $ref: "#/components/schemas/XComCollectionItem"
- - $ref: "#/components/schemas/CollectionInfo"
- XCom:
- description: Full representations of XCom entry.
- allOf:
- - $ref: "#/components/schemas/XComCollectionItem"
- - type: object
- properties:
- value:
- anyOf:
- - type: string
- - type: number
- - type: integer
- - type: boolean
- - type: array
- items: {}
- - type: object
- nullable: true
- description: The value(s),
- # Python objects
- # Based on
- # airflow/serialization/schema.json
- # but simplified to make the easier to use and to make backward compatibility easier.
- DAGDetail:
- description: |
- DAG details.
- For details see:
- [airflow.models.dag.DAG](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/dag/index.html#airflow.models.dag.DAG)
- allOf:
- - $ref: "#/components/schemas/DAG"
- - type: object
- properties:
- timezone:
- $ref: "#/components/schemas/Timezone"
- nullable: true
- catchup:
- type: boolean
- readOnly: true
- nullable: true
- orientation:
- type: string
- readOnly: true
- nullable: true
- concurrency:
- type: number
- readOnly: true
- nullable: true
- start_date:
- type: string
- format: "date-time"
- readOnly: true
- nullable: true
- description: |
- The DAG's start date.
- *Changed in version 2.0.1*: Field becomes nullable.
- dag_run_timeout:
- $ref: "#/components/schemas/TimeDelta"
- nullable: true
- dataset_expression:
- type: object
- description: Nested dataset any/all conditions
- nullable: true
- doc_md:
- type: string
- readOnly: true
- nullable: true
- default_view:
- type: string
- readOnly: true
- nullable: true
- params:
- type: object
- readOnly: true
- description: |
- User-specified DAG params.
- *New in version 2.0.1*
- end_date:
- type: string
- format: "date-time"
- readOnly: true
- nullable: true
- description: |
- The DAG's end date.
- *New in version 2.3.0*.
- is_paused_upon_creation:
- type: boolean
- readOnly: true
- nullable: true
- description: |
- Whether the DAG is paused upon creation.
- *New in version 2.3.0*
- last_parsed:
- type: string
- format: date-time
- nullable: true
- readOnly: true
- description: |
- The last time the DAG was parsed.
- *New in version 2.3.0*
- template_search_path:
- type: array
- nullable: true
- items:
- type: string
- description: |
- The template search path.
- *New in version 2.3.0*
- render_template_as_native_obj:
- type: boolean
- nullable: true
- readOnly: true
- description: |
- Whether to render templates as native Python objects.
- *New in version 2.3.0*
- ExtraLink:
- type: object
- description: Additional links containing additional information about the task.
- properties:
- class_ref:
- $ref: "#/components/schemas/ClassReference"
- name:
- type: string
- readOnly: true
- href:
- type: string
- readOnly: true
- ExtraLinkCollection:
- type: object
- description: The collection of extra links.
- properties:
- extra_links:
- type: array
- items:
- $ref: "#/components/schemas/ExtraLink"
- Task:
- type: object
- description: |
- For details see:
- [airflow.models.baseoperator.BaseOperator](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/baseoperator/index.html#airflow.models.baseoperator.BaseOperator)
- properties:
- class_ref:
- $ref: "#/components/schemas/ClassReference"
- task_id:
- type: string
- readOnly: true
- task_display_name:
- type: string
- readOnly: true
- owner:
- type: string
- readOnly: true
- start_date:
- type: string
- format: "date-time"
- readOnly: true
- nullable: true
- end_date:
- type: string
- format: "date-time"
- readOnly: true
- nullable: true
- trigger_rule:
- $ref: "#/components/schemas/TriggerRule"
- extra_links:
- type: array
- readOnly: true
- items:
- type: object
- properties:
- class_ref:
- $ref: "#/components/schemas/ClassReference"
- depends_on_past:
- type: boolean
- readOnly: true
- is_mapped:
- type: boolean
- readOnly: true
- wait_for_downstream:
- type: boolean
- readOnly: true
- retries:
- type: number
- readOnly: true
- queue:
- type: string
- readOnly: true
- nullable: true
- executor:
- type: string
- readOnly: true
- nullable: true
- pool:
- type: string
- readOnly: true
- pool_slots:
- type: number
- readOnly: true
- execution_timeout:
- $ref: "#/components/schemas/TimeDelta"
- retry_delay:
- $ref: "#/components/schemas/TimeDelta"
- retry_exponential_backoff:
- type: boolean
- readOnly: true
- priority_weight:
- type: number
- readOnly: true
- weight_rule:
- $ref: "#/components/schemas/WeightRule"
- ui_color:
- $ref: "#/components/schemas/Color"
- ui_fgcolor:
- $ref: "#/components/schemas/Color"
- template_fields:
- type: array
- readOnly: true
- items:
- type: string
- sub_dag:
- $ref: "#/components/schemas/DAG"
- downstream_task_ids:
- type: array
- readOnly: true
- items:
- type: string
- doc_md:
- type: string
- readOnly: true
- nullable: true
- description: |
- Task documentation in markdown.
- *New in version 2.10.0*
- TaskCollection:
- type: object
- description: Collection of tasks.
- properties:
- tasks:
- type: array
- items:
- $ref: "#/components/schemas/Task"
- # Plugin
- PluginCollectionItem:
- type: object
- description: |
- A plugin Item.
- *New in version 2.1.0*
- properties:
- name:
- type: string
- description: The name of the plugin
- hooks:
- type: array
- items:
- type: string
- nullable: true
- description: The plugin hooks
- executors:
- type: array
- items:
- type: string
- nullable: true
- description: The plugin executors
- macros:
- type: array
- items:
- type: string
- nullable: true
- description: The plugin macros
- flask_blueprints:
- type: array
- items:
- type: string
- nullable: true
- description: The flask blueprints
- appbuilder_views:
- type: array
- items:
- type: object
- nullable: true
- description: The appuilder views
- appbuilder_menu_items:
- type: array
- items:
- type: object
- nullable: true
- description: The Flask Appbuilder menu items
- global_operator_extra_links:
- type: array
- items:
- type: string
- nullable: true
- description: The global operator extra links
- operator_extra_links:
- type: array
- items:
- type: string
- nullable: true
- description: Operator extra links
- source:
- type: string
- description: The plugin source
- nullable: true
- ti_deps:
- type: array
- items:
- type: string
- description: The plugin task instance dependencies
- listeners:
- type: array
- items:
- type: string
- description: The plugin listeners
- timetables:
- type: array
- items:
- type: string
- description: The plugin timetables
- PluginCollection:
- type: object
- description: |
- A collection of plugin.
- *New in version 2.1.0*
- allOf:
- - type: object
- properties:
- plugins:
- type: array
- items:
- $ref: "#/components/schemas/PluginCollectionItem"
- - $ref: "#/components/schemas/CollectionInfo"
- Role:
- description: |
- a role item.
- *New in version 2.1.0*
- type: object
- properties:
- name:
- type: string
- description: |
- The name of the role
- *Changed in version 2.3.0*: A minimum character length requirement ('minLength') is added.
- minLength: 1
- actions:
- type: array
- items:
- $ref: "#/components/schemas/ActionResource"
- RoleCollection:
- description: |
- A collection of roles.
- *New in version 2.1.0*
- type: object
- allOf:
- - type: object
- properties:
- roles:
- type: array
- items:
- $ref: "#/components/schemas/Role"
- - $ref: "#/components/schemas/CollectionInfo"
- Action:
- description: |
- An action Item.
- *New in version 2.1.0*
- type: object
- properties:
- name:
- type: string
- description: The name of the permission "action"
- nullable: false
- ActionCollection:
- description: |
- A collection of actions.
- *New in version 2.1.0*
- type: object
- allOf:
- - type: object
- properties:
- actions:
- type: array
- items:
- $ref: "#/components/schemas/Action"
- - $ref: "#/components/schemas/CollectionInfo"
- Resource:
- description: |
- A resource on which permissions are granted.
- *New in version 2.1.0*
- type: object
- properties:
- name:
- type: string
- description: The name of the resource
- nullable: false
- ActionResource:
- description: |
- The Action-Resource item.
- *New in version 2.1.0*
- type: object
- properties:
- action:
- type: object
- $ref: "#/components/schemas/Action"
- description: The permission action
- resource:
- type: object
- $ref: "#/components/schemas/Resource"
- description: The permission resource
- Dataset:
- description: |
- A dataset item.
- *New in version 2.4.0*
- type: object
- properties:
- id:
- type: integer
- description: The dataset id
- uri:
- type: string
- description: The dataset uri
- nullable: false
- extra:
- type: object
- description: The dataset extra
- nullable: true
- created_at:
- type: string
- description: The dataset creation time
- nullable: false
- updated_at:
- type: string
- description: The dataset update time
- nullable: false
- consuming_dags:
- type: array
- items:
- $ref: "#/components/schemas/DagScheduleDatasetReference"
- producing_tasks:
- type: array
- items:
- $ref: "#/components/schemas/TaskOutletDatasetReference"
- TaskOutletDatasetReference:
- description: |
- A datasets reference to an upstream task.
- *New in version 2.4.0*
- type: object
- properties:
- dag_id:
- type: string
- description: The DAG ID that updates the dataset.
- nullable: true
- task_id:
- type: string
- description: The task ID that updates the dataset.
- nullable: true
- created_at:
- type: string
- description: The dataset creation time
- nullable: false
- updated_at:
- type: string
- description: The dataset update time
- nullable: false
- DagScheduleDatasetReference:
- description: |
- A datasets reference to a downstream DAG.
- *New in version 2.4.0*
- type: object
- properties:
- dag_id:
- type: string
- description: The DAG ID that depends on the dataset.
- nullable: true
- created_at:
- type: string
- description: The dataset reference creation time
- nullable: false
- updated_at:
- type: string
- description: The dataset reference update time
- nullable: false
- DatasetCollection:
- description: |
- A collection of datasets.
- *New in version 2.4.0*
- type: object
- allOf:
- - type: object
- properties:
- datasets:
- type: array
- items:
- $ref: "#/components/schemas/Dataset"
- - $ref: "#/components/schemas/CollectionInfo"
- DatasetEvent:
- description: |
- A dataset event.
- *New in version 2.4.0*
- type: object
- properties:
- dataset_id:
- type: integer
- description: The dataset id
- dataset_uri:
- type: string
- description: The URI of the dataset
- nullable: false
- extra:
- type: object
- description: The dataset event extra
- nullable: true
- source_dag_id:
- type: string
- description: The DAG ID that updated the dataset.
- nullable: true
- source_task_id:
- type: string
- description: The task ID that updated the dataset.
- nullable: true
- source_run_id:
- type: string
- description: The DAG run ID that updated the dataset.
- nullable: true
- source_map_index:
- type: integer
- description: The task map index that updated the dataset.
- nullable: true
- created_dagruns:
- type: array
- items:
- $ref: "#/components/schemas/BasicDAGRun"
- timestamp:
- type: string
- description: The dataset event creation time
- nullable: false
- CreateDatasetEvent:
- type: object
- required:
- - dataset_uri
- properties:
- dataset_uri:
- type: string
- description: The URI of the dataset
- nullable: false
- extra:
- type: object
- description: The dataset event extra
- nullable: true
- QueuedEvent:
- type: object
- properties:
- uri:
- type: string
- description: The datata uri.
- dag_id:
- type: string
- description: The DAG ID.
- created_at:
- type: string
- format: date-time
- description: The creation time of QueuedEvent
- QueuedEventCollection:
- description: |
- A collection of Dataset Dag Run Queues.
- *New in version 2.9.0*
- type: object
- allOf:
- - type: object
- properties:
- datasets:
- type: array
- items:
- $ref: "#/components/schemas/QueuedEvent"
- - $ref: "#/components/schemas/CollectionInfo"
- BasicDAGRun:
- type: object
- properties:
- run_id:
- type: string
- description: |
- Run ID.
- dag_id:
- type: string
- readOnly: true
- logical_date:
- type: string
- description: |
- The logical date (previously called execution date). This is the time or interval covered by
- this DAG run, according to the DAG definition.
- The value of this field can be set only when creating the object. If you try to modify the
- field of an existing object, the request fails with an BAD_REQUEST error.
- This together with DAG_ID are a unique key.
- *New in version 2.2.0*
- format: date-time
- start_date:
- type: string
- format: date-time
- description: |
- The start time. The time when DAG run was actually created.
- *Changed in version 2.1.3*: Field becomes nullable.
- readOnly: true
- nullable: true
- end_date:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- data_interval_start:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- data_interval_end:
- type: string
- format: date-time
- readOnly: true
- nullable: true
- state:
- $ref: "#/components/schemas/DagState"
- DatasetEventCollection:
- description: |
- A collection of dataset events.
- *New in version 2.4.0*
- type: object
- allOf:
- - type: object
- properties:
- dataset_events:
- type: array
- items:
- $ref: "#/components/schemas/DatasetEvent"
- - $ref: "#/components/schemas/CollectionInfo"
- # Configuration
- ConfigOption:
- type: object
- description: The option of configuration.
- properties:
- key:
- type: string
- readOnly: true
- value:
- type: string
- readOnly: true
- ConfigSection:
- type: object
- description: The section of configuration.
- properties:
- name:
- type: string
- readOnly: true
- options:
- type: array
- items:
- $ref: "#/components/schemas/ConfigOption"
- Config:
- type: object
- description: The configuration.
- properties:
- sections:
- type: array
- items:
- $ref: "#/components/schemas/ConfigSection"
- VersionInfo:
- type: object
- description: Version information.
- properties:
- version:
- type: string
- description: The version of Airflow
- git_version:
- type: string
- description: The git version (including git commit hash)
- nullable: true
- # Form
- ClearDagRun:
- type: object
- properties:
- dry_run:
- description: |
- If set, don't actually run this operation. The response will contain a list of task instances
- planned to be cleaned, but not modified in any way.
- type: boolean
- default: true
- ClearTaskInstances:
- type: object
- properties:
- dry_run:
- description: |
- If set, don't actually run this operation. The response will contain a list of task instances
- planned to be cleaned, but not modified in any way.
- type: boolean
- default: true
- task_ids:
- description: |
- A list of task ids to clear.
- *New in version 2.1.0*
- type: array
- items:
- type: string
- minItems: 1
- start_date:
- description: The minimum execution date to clear.
- type: string
- format: datetime
- end_date:
- description: The maximum execution date to clear.
- type: string
- format: datetime
- only_failed:
- description: Only clear failed tasks.
- type: boolean
- default: true
- only_running:
- description: Only clear running tasks.
- type: boolean
- default: false
- include_subdags:
- description: Clear tasks in subdags and clear external tasks indicated by ExternalTaskMarker.
- type: boolean
- include_parentdag:
- description: Clear tasks in the parent dag of the subdag.
- type: boolean
- reset_dag_runs:
- description: Set state of DAG runs to RUNNING.
- type: boolean
- dag_run_id:
- type: string
- description: The DagRun ID for this task instance
- nullable: true
- include_upstream:
- description: If set to true, upstream tasks are also affected.
- type: boolean
- default: false
- include_downstream:
- description: If set to true, downstream tasks are also affected.
- type: boolean
- default: false
- include_future:
- description: If set to True, also tasks from future DAG Runs are affected.
- type: boolean
- default: false
- include_past:
- description: If set to True, also tasks from past DAG Runs are affected.
- type: boolean
- default: false
- UpdateTaskInstancesState:
- type: object
- properties:
- dry_run:
- description: |
- If set, don't actually run this operation. The response will contain a list of task instances
- planned to be affected, but won't be modified in any way.
- type: boolean
- default: true
- task_id:
- description: The task ID.
- type: string
- execution_date:
- description: The execution date. Either set this or dag_run_id but not both.
- type: string
- format: datetime
- dag_run_id:
- description: |
- The task instance's DAG run ID. Either set this or execution_date but not both.
- *New in version 2.3.0*
- type: string
- include_upstream:
- description: If set to true, upstream tasks are also affected.
- type: boolean
- include_downstream:
- description: If set to true, downstream tasks are also affected.
- type: boolean
- include_future:
- description: If set to True, also tasks from future DAG Runs are affected.
- type: boolean
- include_past:
- description: If set to True, also tasks from past DAG Runs are affected.
- type: boolean
- new_state:
- $ref: "#/components/schemas/UpdateTaskState"
- UpdateTaskInstance:
- type: object
- properties:
- dry_run:
- description: |
- If set, don't actually run this operation. The response will contain the task instance
- planned to be affected, but won't be modified in any way.
- type: boolean
- default: true
- new_state:
- $ref: "#/components/schemas/UpdateTaskState"
- SetTaskInstanceNote:
- type: object
- required:
- - note
- properties:
- note:
- description: The custom note to set for this Task Instance.
- type: string
- ListDagRunsForm:
- type: object
- properties:
- order_by:
- type: string
- description: |
- The name of the field to order the results by. Prefix a field name
- with `-` to reverse the sort order.
- *New in version 2.1.0*
- page_offset:
- type: integer
- minimum: 0
- description: The number of items to skip before starting to collect the result set.
- page_limit:
- type: integer
- minimum: 1
- default: 100
- description: The numbers of items to return.
- dag_ids:
- type: array
- items:
- type: string
- description: Return objects with specific DAG IDs.
- The value can be repeated to retrieve multiple matching values (OR condition).
- states:
- type: array
- items:
- type: string
- description: Return objects with specific states.
- The value can be repeated to retrieve multiple matching values (OR condition).
- execution_date_gte:
- type: string
- format: date-time
- description: |
- Returns objects greater or equal to the specified date.
- This can be combined with execution_date_lte key to receive only the selected period.
- execution_date_lte:
- type: string
- format: date-time
- description: |
- Returns objects less than or equal to the specified date.
- This can be combined with execution_date_gte key to receive only the selected period.
- start_date_gte:
- type: string
- format: date-time
- description: |
- Returns objects greater or equal the specified date.
- This can be combined with start_date_lte key to receive only the selected period.
- start_date_lte:
- type: string
- format: date-time
- description: |
- Returns objects less or equal the specified date.
- This can be combined with start_date_gte parameter to receive only the selected period
- end_date_gte:
- type: string
- format: date-time
- description: |
- Returns objects greater or equal the specified date.
- This can be combined with end_date_lte parameter to receive only the selected period.
- end_date_lte:
- type: string
- format: date-time
- description: |
- Returns objects less than or equal to the specified date.
- This can be combined with end_date_gte parameter to receive only the selected period.
- ListTaskInstanceForm:
- type: object
- properties:
- page_offset:
- type: integer
- minimum: 0
- description: The number of items to skip before starting to collect the result set.
- page_limit:
- type: integer
- minimum: 1
- default: 100
- description: The numbers of items to return.
- dag_ids:
- type: array
- items:
- type: string
- description: Return objects with specific DAG IDs.
- The value can be repeated to retrieve multiple matching values (OR condition).
- dag_run_ids:
- type: array
- items:
- type: string
- description: Return objects with specific DAG Run IDs.
- The value can be repeated to retrieve multiple matching values (OR condition).
- *New in version 2.7.1*
- task_ids:
- type: array
- items:
- type: string
- description: Return objects with specific task IDs.
- The value can be repeated to retrieve multiple matching values (OR condition).
- *New in version 2.7.1*
- execution_date_gte:
- type: string
- format: date-time
- description: |
- Returns objects greater or equal to the specified date.
- This can be combined with execution_date_lte parameter to receive only the selected period.
- execution_date_lte:
- type: string
- format: date-time
- description: |
- Returns objects less than or equal to the specified date.
- This can be combined with execution_date_gte parameter to receive only the selected period.
- start_date_gte:
- type: string
- format: date-time
- description: |
- Returns objects greater or equal the specified date.
- This can be combined with start_date_lte parameter to receive only the selected period.
- start_date_lte:
- type: string
- format: date-time
- description: |
- Returns objects less or equal the specified date.
- This can be combined with start_date_gte parameter to receive only the selected period.
- end_date_gte:
- type: string
- format: date-time
- description: |
- Returns objects greater or equal the specified date.
- This can be combined with start_date_lte parameter to receive only the selected period.
- end_date_lte:
- type: string
- format: date-time
- description: |
- Returns objects less than or equal to the specified date.
- This can be combined with start_date_gte parameter to receive only the selected period.
- duration_gte:
- type: number
- description: |
- Returns objects greater than or equal to the specified values.
- This can be combined with duration_lte parameter to receive only the selected period.
- duration_lte:
- type: number
- description: |
- Returns objects less than or equal to the specified values.
- This can be combined with duration_gte parameter to receive only the selected range.
- state:
- type: array
- items:
- $ref: "#/components/schemas/TaskState"
- description: The value can be repeated to retrieve multiple matching values (OR condition).
- pool:
- type: array
- items:
- type: string
- description: The value can be repeated to retrieve multiple matching values (OR condition).
- queue:
- type: array
- items:
- type: string
- description: The value can be repeated to retrieve multiple matching values (OR condition).
- executor:
- type: array
- items:
- type: string
- description: The value can be repeated to retrieve multiple matching values (OR condition).
- # Common data type
- ScheduleInterval:
- description: |
- Schedule interval. Defines how often DAG runs, this object gets added to your latest task instance's
- execution_date to figure out the next schedule.
- nullable: true
- readOnly: true
- anyOf:
- - $ref: "#/components/schemas/TimeDelta"
- - $ref: "#/components/schemas/RelativeDelta"
- - $ref: "#/components/schemas/CronExpression"
- discriminator:
- propertyName: __type
- TimeDelta:
- description: Time delta
- type: object
- nullable: true
- required:
- - __type
- - days
- - seconds
- - microseconds
- properties:
- __type: { type: string }
- days: { type: integer }
- seconds: { type: integer }
- microseconds: { type: integer }
- RelativeDelta:
- description: Relative delta
- # TODO: Why we need these fields?
- type: object
- required:
- - __type
- - years
- - months
- - days
- - leapdays
- - hours
- - minutes
- - seconds
- - microseconds
- - year
- - month
- - day
- - hour
- - minute
- - second
- - microsecond
- properties:
- __type: { type: string }
- years: { type: integer }
- months: { type: integer }
- days: { type: integer }
- leapdays: { type: integer }
- hours: { type: integer }
- minutes: { type: integer }
- seconds: { type: integer }
- microseconds: { type: integer }
- year: { type: integer }
- month: { type: integer }
- day: { type: integer }
- hour: { type: integer }
- minute: { type: integer }
- second: { type: integer }
- microsecond: { type: integer }
- CronExpression:
- description: Cron expression
- type: object
- required:
- - __type
- - value
- properties:
- __type: { type: string }
- value: { type: string }
- nullable: true
- Timezone:
- type: string
- Tag:
- description: Tag
- # Object to maintain extensibility
- type: object
- properties:
- name:
- type: string
- Color:
- description: Color in hexadecimal notation.
- type: string
- pattern: ^#[a-fA-F0-9]{3,6}$
- ClassReference:
- description: Class reference
- type: object
- properties:
- module_path:
- type: string
- readOnly: true
- class_name:
- type: string
- readOnly: true
- # Generic
- Error:
- description: |
- [RFC7807](https://tools.ietf.org/html/rfc7807) compliant response.
- type: object
- properties:
- type:
- type: string
- description: |
- A URI reference [RFC3986] that identifies the problem type. This specification
- encourages that, when dereferenced, it provide human-readable documentation for
- the problem type.
- title:
- type: string
- description: A short, human-readable summary of the problem type.
- status:
- type: number
- description: The HTTP status code generated by the API server for this occurrence of the problem.
- detail:
- type: string
- description: A human-readable explanation specific to this occurrence of the problem.
- instance:
- type: string
- description: |
- A URI reference that identifies the specific occurrence of the problem. It may or may
- not yield further information if dereferenced.
- required:
- - type
- - title
- - status
- CollectionInfo:
- description: Metadata about collection.
- type: object
- properties:
- total_entries:
- type: integer
- description: |
- Count of total objects in the current result set before pagination parameters
- (limit, offset) are applied.
- # Enums
- TaskState:
- description: |
- Task state.
- *Changed in version 2.0.2*: 'removed' is added as a possible value.
- *Changed in version 2.2.0*: 'deferred' is added as a possible value.
- *Changed in version 2.4.0*: 'sensing' state has been removed.
- *Changed in version 2.4.2*: 'restarting' is added as a possible value
- *Changed in version 2.7.0*: Field becomes nullable and null primitive is added as a possible value.
- *Changed in version 2.7.0*: 'none' state is deprecated in favor of null.
- type: string
- nullable: true
- enum:
- - null
- - success
- - running
- - failed
- - upstream_failed
- - skipped
- - up_for_retry
- - up_for_reschedule
- - queued
- - none
- - scheduled
- - deferred
- - removed
- - restarting
- UpdateTaskState:
- description: |
- Expected new state. Only a subset of TaskState are available.
- Other states are managed directly by the scheduler or the workers and cannot be updated manually through the REST API.
- type: string
- enum:
- - success
- - failed
- - skipped
- DagState:
- description: |
- DAG State.
- *Changed in version 2.1.3*: 'queued' is added as a possible value.
- type: string
- readOnly: true
- enum:
- - queued
- - running
- - success
- - failed
- TriggerRule:
- description: |
- Trigger rule.
- *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
- *Changed in version 2.3.0*: 'all_skipped' is added as a possible value.
- *Changed in version 2.5.0*: 'one_done' is added as a possible value.
- *Changed in version 2.7.0*: 'all_done_setup_success' is added as a possible value.
- type: string
- enum:
- - all_success
- - all_failed
- - all_done
- - all_done_setup_success
- - one_success
- - one_failed
- - one_done
- - none_failed
- - none_skipped
- - none_failed_or_skipped
- - none_failed_min_one_success
- - dummy
- - all_skipped
- - always
- WeightRule:
- description: Weight rule.
- type: string
- enum:
- - downstream
- - upstream
- - absolute
- HealthStatus:
- description: Health status
- type: string
- nullable: true
- enum:
- - healthy
- - unhealthy
- # Reusable path, query, header and cookie parameters
- parameters:
- # Pagination parameters
- PageOffset:
- in: query
- name: offset
- required: false
- schema:
- type: integer
- minimum: 0
- description: The number of items to skip before starting to collect the result set.
- PageLimit:
- in: query
- name: limit
- required: false
- schema:
- type: integer
- default: 100
- description: The numbers of items to return.
- # Database entity fields
- Username:
- in: path
- name: username
- schema:
- type: string
- required: true
- description: |
- The username of the user.
- *New in version 2.1.0*
- RoleName:
- in: path
- name: role_name
- schema:
- type: string
- required: true
- description: The role name
- ConnectionID:
- in: path
- name: connection_id
- schema:
- type: string
- required: true
- description: The connection ID.
- DAGID:
- in: path
- name: dag_id
- schema:
- type: string
- required: true
- description: The DAG ID.
- TaskID:
- in: path
- name: task_id
- schema:
- type: string
- required: true
- description: The task ID.
- Event:
- in: query
- name: event
- schema:
- type: string
- required: false
- description: The name of event log.
- Owner:
- in: query
- name: owner
- schema:
- type: string
- required: false
- description: The owner's name of event log.
- Before:
- in: query
- name: before
- schema:
- type: string
- format: date-time
- required: false
- description: Timestamp to select event logs occurring before.
- After:
- in: query
- name: after
- schema:
- type: string
- format: date-time
- required: false
- description: Timestamp to select event logs occurring after.
- MapIndex:
- in: path
- name: map_index
- schema:
- type: integer
- required: true
- description: The map index.
- DAGRunID:
- in: path
- name: dag_run_id
- schema:
- type: string
- required: true
- description: The DAG run ID.
- TaskTryNumber:
- in: path
- name: task_try_number
- schema:
- type: integer
- required: true
- description: The task try number.
- EventLogID:
- in: path
- name: event_log_id
- schema:
- type: integer
- required: true
- description: The event log ID.
- ImportErrorID:
- in: path
- name: import_error_id
- schema:
- type: integer
- required: true
- description: The import error ID.
- DatasetURI:
- in: path
- name: uri
- schema:
- type: string
- format: path
- required: true
- description: The encoded Dataset URI
- PoolName:
- in: path
- name: pool_name
- schema:
- type: string
- required: true
- description: The pool name.
- VariableKey:
- in: path
- name: variable_key
- schema:
- type: string
- format: path
- required: true
- description: The variable Key.
- # Logs
- FullContent:
- in: query
- name: full_content
- schema:
- type: boolean
- required: false
- description: |
- A full content will be returned.
- By default, only the first fragment will be returned.
- ContinuationToken:
- in: query
- name: token
- schema:
- type: string
- required: false
- description: |
- A token that allows you to continue fetching logs.
- If passed, it will specify the location from which the download should be continued.
- XComKey:
- in: path
- name: xcom_key
- schema:
- type: string
- format: path
- required: true
- description: The XCom key.
- # Filters
- FilterExecutionDateGTE:
- in: query
- name: execution_date_gte
- schema:
- type: string
- format: date-time
- required: false
- description: |
- Returns objects greater or equal to the specified date.
- This can be combined with execution_date_lte parameter to receive only the selected period.
- FilterExecutionDateLTE:
- in: query
- name: execution_date_lte
- schema:
- type: string
- format: date-time
- required: false
- description: |
- Returns objects less than or equal to the specified date.
- This can be combined with execution_date_gte parameter to receive only the selected period.
- FilterStartDateGTE:
- in: query
- name: start_date_gte
- schema:
- type: string
- format: date-time
- required: false
- description: |
- Returns objects greater or equal the specified date.
- This can be combined with start_date_lte parameter to receive only the selected period.
- FilterStartDateLTE:
- in: query
- name: start_date_lte
- schema:
- type: string
- format: date-time
- required: false
- description: |
- Returns objects less or equal the specified date.
- This can be combined with start_date_gte parameter to receive only the selected period.
- FilterEndDateGTE:
- in: query
- name: end_date_gte
- schema:
- type: string
- format: date-time
- required: false
- description: |
- Returns objects greater or equal the specified date.
- This can be combined with start_date_lte parameter to receive only the selected period.
- FilterEndDateLTE:
- in: query
- name: end_date_lte
- schema:
- type: string
- format: date-time
- required: false
- description: |
- Returns objects less than or equal to the specified date.
- This can be combined with start_date_gte parameter to receive only the selected period.
- FilterDurationGTE:
- in: query
- name: duration_gte
- schema:
- type: number
- required: false
- description: |
- Returns objects greater than or equal to the specified values.
- This can be combined with duration_lte parameter to receive only the selected period.
- FilterDurationLTE:
- in: query
- name: duration_lte
- schema:
- type: number
- required: false
- description: |
- Returns objects less than or equal to the specified values.
- This can be combined with duration_gte parameter to receive only the selected range.
- FilterState:
- in: query
- name: state
- schema:
- type: array
- items:
- type: string
- required: false
- description: The value can be repeated to retrieve multiple matching values (OR condition).
- FilterPool:
- in: query
- name: pool
- schema:
- type: array
- items:
- type: string
- required: false
- description: The value can be repeated to retrieve multiple matching values (OR condition).
- FilterQueue:
- in: query
- name: queue
- schema:
- type: array
- items:
- type: string
- description: The value can be repeated to retrieve multiple matching values (OR condition).
- FilterExecutor:
- in: query
- name: executor
- schema:
- type: array
- items:
- type: string
- description: The value can be repeated to retrieve multiple matching values (OR condition).
- FilterTags:
- in: query
- name: tags
- schema:
- type: array
- items:
- type: string
- description: |
- List of tags to filter results.
- *New in version 2.2.0*
- FilterDatasetID:
- in: query
- name: dataset_id
- schema:
- type: integer
- description: The Dataset ID that updated the dataset.
- FilterSourceDAGID:
- in: query
- name: source_dag_id
- schema:
- type: string
- description: The DAG ID that updated the dataset.
- FilterSourceTaskID:
- in: query
- name: source_task_id
- schema:
- type: string
- description: The task ID that updated the dataset.
- FilterSourceRunID:
- in: query
- name: source_run_id
- schema:
- type: string
- description: The DAG run ID that updated the dataset.
- FilterSourceMapIndex:
- in: query
- name: source_map_index
- schema:
- type: integer
- description: The map index that updated the dataset.
- FilterMapIndex:
- in: query
- name: map_index
- schema:
- type: integer
- description: Filter on map index for mapped task.
- FilterTryNumber:
- in: query
- name: try_number
- schema:
- type: integer
- description: Filter on try_number for task instance.
- OrderBy:
- in: query
- name: order_by
- schema:
- type: string
- required: false
- description: |
- The name of the field to order the results by.
- Prefix a field name with `-` to reverse the sort order.
- *New in version 2.1.0*
- OnlyActive:
- in: query
- name: only_active
- schema:
- type: boolean
- default: true
- required: false
- description: |
- Only filter active DAGs.
- *New in version 2.1.1*
- FilterUpdatedAtLTE:
- in: query
- name: updated_at_lte
- schema:
- type: string
- format: date-time
- required: false
- description: |
- Returns objects less or equal the specified date.
- This can be combined with updated_at_gte parameter to receive only the selected period.
- *New in version 2.6.0*
- FilterUpdatedAtGTE:
- in: query
- name: updated_at_gte
- schema:
- type: string
- format: date-time
- required: false
- description: |
- Returns objects greater or equal the specified date.
- This can be combined with updated_at_lte parameter to receive only the selected period.
- *New in version 2.6.0*
- Paused:
- in: query
- name: paused
- schema:
- type: boolean
- required: false
- description: |
- Only filter paused/unpaused DAGs. If absent or null, it returns paused and unpaused DAGs.
- *New in version 2.6.0*
- FilterXcomKey:
- in: query
- name: xcom_key
- schema:
- type: string
- required: false
- description: Only filter the XCom records which have the provided key.
- FilterDAGID:
- in: query
- name: dag_id
- schema:
- type: string
- required: false
- description: Returns objects matched by the DAG ID.
- FilterTaskID:
- in: query
- name: task_id
- schema:
- type: string
- required: false
- description: Returns objects matched by the Task ID.
- FilterRunID:
- in: query
- name: run_id
- schema:
- type: string
- required: false
- description: Returns objects matched by the Run ID.
- # Other parameters
- FileToken:
- in: path
- name: file_token
- schema:
- type: string
- required: true
- description: |
- The key containing the encrypted path to the file. Encryption and decryption take place only on
- the server. This prevents the client from reading an non-DAG file. This also ensures API
- extensibility, because the format of encrypted data may change.
- UpdateMask:
- in: query
- name: update_mask
- schema:
- type: array
- items:
- type: string
- description: |
- The fields to update on the resource. If absent or empty, all modifiable fields are updated.
- A comma-separated list of fully qualified names of fields.
- style: form
- explode: false
- ReturnFields:
- in: query
- name: fields
- schema:
- type: array
- items:
- type: string
- description: |
- List of field for return.
- # Reusable request bodies
- requestBodies: {}
- # Reusable responses, such as 401 Unauthenticated or 400 Bad Request
- responses:
- # 400
- "BadRequest":
- description: Client specified an invalid argument.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- # 401
- "Unauthenticated":
- description: Request not authenticated due to missing, invalid, authentication info.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- # 403
- "PermissionDenied":
- description: Client does not have sufficient permission.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- # 404
- "NotFound":
- description: A specified resource is not found.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- # 405
- "MethodNotAllowed":
- description: Request method is known by the server but is not supported by the target resource.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- # 406
- "NotAcceptable":
- description: A specified Accept header is not allowed.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- # 409
- "AlreadyExists":
- description: An existing resource conflicts with the request.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- # 500
- "Unknown":
- description: Unknown server error.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- # Reusable response headers
- headers: {}
- # Reusable examples
- examples: {}
- # Reusable links
- links: {}
- # Reusable callbacks
- callbacks: {}
- securitySchemes:
- Basic:
- type: http
- scheme: basic
- GoogleOpenId:
- type: openIdConnect
- openIdConnectUrl: https://accounts.google.com/.well-known/openid-configuration
- Kerberos:
- type: http
- scheme: negotiate
- # The API will provide support for plugins to support various authorization mechanisms.
- # Detailed information will be available in the plugin specification.
- security: []
- tags:
- - name: Config
- - name: Connection
- - name: DAG
- - name: DAGRun
- - name: DagWarning
- - name: Dataset
- - name: EventLog
- - name: ImportError
- - name: Monitoring
- - name: Permission
- - name: Plugin
- - name: Pool
- - name: Provider
- - name: Role
- - name: TaskInstance
- - name: User
- - name: Variable
- - name: XCom
- externalDocs:
- url: https://airflow.apache.org/docs/apache-airflow/stable/
|