-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_v1_openapi.yaml
2695 lines (2607 loc) · 82.8 KB
/
api_v1_openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
components:
callbacks: {}
examples: {}
headers: {}
links: {}
parameters:
ConnectionID:
description: The connection ID.
in: path
name: connection_id
required: true
schema:
type: string
ContinuationToken:
description: |
A token that allows you to continue fetching logs.
If passed, it will specify the location from which the download should be continued.
in: query
name: token
required: false
schema:
type: string
DAGID:
description: The DAG ID.
in: path
name: dag_id
required: true
schema:
type: string
DAGRunID:
description: The DAG run ID.
in: path
name: dag_run_id
required: true
schema:
type: string
EventLogID:
description: The event log ID.
in: path
name: event_log_id
required: true
schema:
type: integer
FileToken:
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.
in: path
name: file_token
required: true
schema:
type: string
FilterDurationGTE:
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.
in: query
name: duration_gte
required: false
schema:
type: number
FilterDurationLTE:
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.
in: query
name: duration_lte
required: false
schema:
type: number
FilterEndDateGTE:
description: |
Returns objects greater or equal the specified date.
This can be combined with start_date_lte parameter to receive only the selected period.
in: query
name: end_date_gte
required: false
schema:
format: date-time
type: string
FilterEndDateLTE:
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.
in: query
name: end_date_lte
required: false
schema:
format: date-time
type: string
FilterExecutionDateGTE:
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.
in: query
name: execution_date_gte
required: false
schema:
format: date-time
type: string
FilterExecutionDateLTE:
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.
in: query
name: execution_date_lte
required: false
schema:
format: date-time
type: string
FilterPool:
description: The value can be repeated to retrieve multiple matching values (OR condition).
in: query
name: pool
required: false
schema:
items:
type: string
type: array
FilterQueue:
description: The value can be repeated to retrieve multiple matching values (OR condition).
in: query
name: queue
schema:
items:
type: string
type: array
FilterStartDateGTE:
description: |
Returns objects greater or equal the specified date.
This can be combined with start_date_lte parameter to receive only the selected period.
in: query
name: start_date_gte
required: false
schema:
format: date-time
type: string
FilterStartDateLTE:
description: |
Returns objects less or equal the specified date.
This can be combined with start_date_gte parameter to receive only the selected period.
in: query
name: start_date_lte
required: false
schema:
format: date-time
type: string
FilterState:
description: The value can be repeated to retrieve multiple matching values (OR condition).
in: query
name: state
required: false
schema:
items:
type: string
type: array
FullContent:
description: |
A full content will be returned.
By default, only the first fragment will be returned.
in: query
name: full_content
required: false
schema:
type: boolean
ImportErrorID:
description: The import error ID.
in: path
name: import_error_id
required: true
schema:
type: integer
PageLimit:
description: The numbers of items to return.
in: query
name: limit
required: false
schema:
default: 100
type: integer
PageOffset:
description: The number of items to skip before starting to collect the result set.
in: query
name: offset
required: false
schema:
minimum: 0
type: integer
PoolName:
description: The pool name.
in: path
name: pool_name
required: true
schema:
type: string
TaskID:
description: The task ID.
in: path
name: task_id
required: true
schema:
type: string
TaskTryNumber:
description: The task try number.
in: path
name: task_try_number
required: true
schema:
type: integer
UpdateMask:
description: |
The fields to update on the connection (connection, pool etc). If absent or empty, all
modifiable fields are updated. A comma-separated list of fully qualified names of fields.
explode: false
in: query
name: update_mask
schema:
items:
type: string
type: array
style: form
VariableKey:
description: The variable Key.
in: path
name: variable_key
required: true
schema:
type: string
XComKey:
description: The XCom key.
in: path
name: xcom_key
required: true
schema:
type: string
requestBodies: {}
responses:
AlreadyExists:
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: The resource that a client tried to create already exists.
BadRequest:
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Client specified an invalid argument.
MethodNotAllowed:
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Request method is known by the server but is not supported by the target resource.
NotAcceptable:
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: A specified Accept header is not allowed.
NotFound:
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: A specified resource is not found.
PermissionDenied:
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Client does not have sufficient permission.
Unauthenticated:
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Request not authenticated due to missing, invalid, authentication info.
Unknown:
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Unknown server error.
schemas:
ClassReference:
description: Class reference
properties:
class_name:
readOnly: true
type: string
module_path:
readOnly: true
type: string
type: object
ClearTaskInstance:
properties:
dry_run:
default: true
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
end_date:
description: The maximum execution date to clear.
format: datetime
type: string
include_parentdag:
description: Clear tasks in the parent dag of the subdag.
type: boolean
include_subdags:
description: Clear tasks in subdags and clear external tasks indicated by ExternalTaskMarker.
type: boolean
only_failed:
default: true
description: Only clear failed tasks.
type: boolean
only_running:
default: false
description: Only clear running tasks.
type: boolean
reset_dag_runs:
description: Set state of DAG runs to RUNNING.
type: boolean
start_date:
description: The minimum execution date to clear.
format: datetime
type: string
type: object
CollectionInfo:
description: Metadata about collection.
properties:
total_entries:
description: Count of objects in the current result set.
type: integer
type: object
Color:
description: Color in hexadecimal notation.
pattern: ^#[a-fA-F0-9]{3,6}$
type: string
Config:
description: The configuration.
properties:
sections:
items:
$ref: '#/components/schemas/ConfigSection'
type: array
type: object
ConfigOption:
description: The option of configuration.
properties:
key:
readOnly: true
type: string
value:
readOnly: true
type: string
type: object
ConfigSection:
description: The section of configuration.
properties:
name:
readOnly: true
type: string
options:
items:
$ref: '#/components/schemas/ConfigOption'
type: array
type: object
Connection:
allOf:
- $ref: '#/components/schemas/ConnectionCollectionItem'
- properties:
extra:
description: Other values that cannot be put into another field, e.g. RSA keys.
nullable: true
type: string
password:
description: Paasword of the connection.
format: password
type: string
writeOnly: true
type: object
description: Full representation of the connection.
ConnectionCollection:
description: Connections
properties:
connections:
items:
$ref: '#/components/schemas/ConnectionCollectionItem'
type: array
type: object
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.
properties:
conn_type:
description: The connection type.
type: string
connection_id:
description: The connection ID.
type: string
host:
description: Host of the connection.
nullable: true
type: string
login:
description: Login of the connection.
nullable: true
type: string
port:
description: Port of the connection.
nullable: true
type: integer
schema:
description: Schema of the connection.
nullable: true
type: string
type: object
CronExpression:
description: Cron expression
nullable: true
properties:
__type:
type: string
value:
type: string
required:
- __type
- value
type: object
DAG:
description: DAG
properties:
dag_id:
description: The ID of the DAG.
readOnly: true
type: string
description:
description: |
User-provided DAG description, which can consist of several sentences or paragraphs that describe DAG contents.
nullable: true
readOnly: true
type: string
file_token:
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.
readOnly: true
type: string
fileloc:
description: The absolute path to the file.
readOnly: true
type: string
is_paused:
description: Whether the DAG is paused.
nullable: true
type: boolean
is_subdag:
description: Whether the DAG is SubDAG.
readOnly: true
type: boolean
owners:
items:
type: string
readOnly: true
type: array
root_dag_id:
description: If the DAG is SubDAG then it is the top level DAG identifier. Otherwise, nulll.
nullable: true
readOnly: true
type: string
schedule_interval:
$ref: '#/components/schemas/ScheduleInterval'
tags:
description: List of tags.
items:
$ref: '#/components/schemas/Tag'
nullable: true
readOnly: true
type: array
type: object
DAGCollection:
description: Collection of DAGs
properties:
dags:
items:
$ref: '#/components/schemas/DAG'
type: array
type: object
DAGDetail:
allOf:
- $ref: '#/components/schemas/DAG'
- properties:
catchup:
readOnly: true
type: boolean
concurrency:
readOnly: true
type: number
dag_run_timeout:
$ref: '#/components/schemas/TimeDelta'
nullable: true
default_view:
readOnly: true
type: string
doc_md:
nullable: true
readOnly: true
type: string
orientation:
readOnly: true
type: string
start_date:
format: date-time
readOnly: true
type: string
timezone:
$ref: '#/components/schemas/Timezone'
type: object
description: |
DAG details.
For details see:
(airflow.models.DAG)[https://airflow.apache.org/docs/stable/_api/airflow/models/index.html#airflow.models.DAG]
DAGRun:
properties:
conf:
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.
type: object
dag_id:
readOnly: true
type: string
dag_run_id:
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.
nullable: true
type: string
end_date:
format: date-time
nullable: true
readOnly: true
type: string
execution_date:
description: |
The execution date. This is the time when the DAG run should be started 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.
format: date-time
type: string
external_trigger:
default: true
readOnly: true
type: boolean
start_date:
description: |
The start time. The time when DAG run was actually created.
format: date-time
readOnly: true
type: string
state:
$ref: '#/components/schemas/DagState'
readOnly: true
required:
- dag_id
type: object
DAGRunCollection:
description: Collection of DAG runs
properties:
dag_runs:
items:
$ref: '#/components/schemas/DAGRun'
type: array
type: object
DagState:
description: DAG State.
enum:
- success
- running
- failed
type: string
Error:
description: |
[RFC7807](https://tools.ietf.org/html/rfc7807) compliant response.
properties:
detail:
description: A human-readable explanation specific to this occurrence of the problem.
type: string
instance:
description: |
A URI reference that identifies the specific occurrence of the problem. It may or may
not yield further information if dereferenced.
type: string
status:
description: The HTTP status code generated by the API server for this occurrence of the problem.
type: number
title:
description: A short, human-readable summary of the problem type.
type: string
type:
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.
type: string
required:
- type
- title
- status
type: object
EventLog:
description: Log of user operations via CLI or Web UI.
properties:
dag_id:
description: The DAG ID
nullable: true
readOnly: true
type: string
event:
description: A key describing the type of event.
readOnly: true
type: string
event_log_id:
description: The evnet log ID
readOnly: true
type: integer
execution_date:
description: |
When the event was dispatched for an object having execution_date, the value of this field.
format: date-time
nullable: true
readOnly: true
type: string
extra:
description: |
Other information that was not included in the other fields, e.g. the complete CLI command.
nullable: true
readOnly: true
type: string
owner:
description: Name of the user who triggered these events a.
readOnly: true
type: string
task_id:
description: The DAG ID
nullable: true
readOnly: true
type: string
when:
description: The time when these events happened.
format: date-time
readOnly: true
type: string
type: object
EventLogCollection:
description: Collection of event log
properties:
event_logs:
items:
$ref: '#/components/schemas/EventLog'
type: array
type: object
ExtraLink:
description: Additional links containing additional information about the task.
properties:
class_ref:
$ref: '#/components/schemas/ClassReference'
href:
readOnly: true
type: string
name:
readOnly: true
type: string
type: object
ExtraLinkCollection:
description: The collection of extra links.
properties:
extra_links:
items:
$ref: '#/components/schemas/ExtraLink'
type: array
type: object
HealthInfo:
description: Instance status information.
properties:
metadatabase:
$ref: '#/components/schemas/MetadatabaseStatus'
scheduler:
$ref: '#/components/schemas/SchedulerStatus'
type: object
HealthStatus:
description: Health status
enum:
- healthy
- unhealthy
type: string
ImportError:
properties:
filename:
description: The filename
readOnly: true
type: string
import_error_id:
description: The import error ID.
readOnly: true
type: integer
stack_trace:
description: The full stackstrace..
readOnly: true
type: string
timestamp:
description: The time when this error was created.
format: datetime
readOnly: true
type: string
type: object
ImportErrorCollection:
properties:
import_errors:
items:
$ref: '#/components/schemas/ImportError'
type: array
type: object
ListDagRunsForm:
properties:
dag_ids:
description: |-
Return objects with specific DAG IDs.
The value can be repeated to retrieve multiple matching values (OR condition).
items:
type: string
type: array
end_date_gte:
description: |
Returns objects greater or equal the specified date.
This can be combined with end_date_lte parameter to receive only the selected period.
format: date-time
type: string
end_date_lte:
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.
format: date-time
type: string
execution_date_gte:
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.
format: date-time
type: string
execution_date_lte:
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.
format: date-time
type: string
page_limit:
default: 100
description: The numbers of items to return.
minimum: 1
type: integer
page_offset:
description: The number of items to skip before starting to collect the result set.
minimum: 0
type: integer
start_date_gte:
description: |
Returns objects greater or equal the specified date.
This can be combined with start_date_lte key to receive only the selected period.
format: date-time
type: string
start_date_lte:
description: |
Returns objects less or equal the specified date.
This can be combined with start_date_gte parameter to receive only the selected period
format: date-time
type: string
type: object
ListTaskInstanceForm:
properties:
dag_ids:
description: |-
Return objects with specific DAG IDs.
The value can be repeated to retrieve multiple matching values (OR condition).
items:
type: string
type: array
duration_gte:
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.
type: number
duration_lte:
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.
type: number
end_date_gte:
description: |
Returns objects greater or equal the specified date.
This can be combined with start_date_lte parameter to receive only the selected period.
format: date-time
type: string
end_date_lte:
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.
format: date-time
type: string
execution_date_gte:
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.
format: date-time
type: string
execution_date_lte:
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.
format: date-time
type: string
pool:
description: The value can be repeated to retrieve multiple matching values (OR condition).
items:
type: string
type: array
queue:
description: The value can be repeated to retrieve multiple matching values (OR condition).
items:
type: string
type: array
start_date_gte:
description: |
Returns objects greater or equal the specified date.
This can be combined with start_date_lte parameter to receive only the selected period.
format: date-time
type: string
start_date_lte:
description: |
Returns objects less or equal the specified date.
This can be combined with start_date_gte parameter to receive only the selected period.
format: date-time
type: string
state:
description: The value can be repeated to retrieve multiple matching values (OR condition).
items:
type: string
type: array
type: object
MetadatabaseStatus:
description: The status of the metadatabase.
properties:
status:
$ref: '#/components/schemas/HealthStatus'
type: object
Pool:
description: The pool
properties:
name:
description: The name of pool.
type: string
occupied_slots:
description: The number of slots used by running/queued tasks at the moment.
readOnly: true
type: integer
open_slots:
description: The number of free slots at the moment.
readOnly: true
type: integer
queued_slots:
description: The number of slots used by queued tasks at the moment.
readOnly: true
type: integer
slots:
description: |
The maximum number of slots that can be assigned to tasks. One job may occupy one or more slots.
type: integer
used_slots:
description: The number of slots used by running tasks at the moment.
readOnly: true
type: integer
type: object
PoolCollection:
description: Collection of pool.
properties:
pools:
items:
$ref: '#/components/schemas/Pool'
type: array
type: object
RelativeDelta:
description: Relative delta
properties:
__type:
type: string
day:
type: integer
days:
type: integer
hour:
type: integer
hours:
type: integer
leapdays:
type: integer
microsecond:
type: integer
microseconds:
type: integer
minute:
type: integer
minutes:
type: integer
month:
type: integer
months:
type: integer
second:
type: integer
seconds:
type: integer
year:
type: integer
years:
type: integer
required:
- __type
- years
- months
- days
- leapdays
- hours
- minutes
- seconds
- microseconds
- year
- month
- day
- hour
- minute
- second
- microsecond
type: object
SLAMiss:
properties:
dag_id:
description: The DAG ID.
type: string
description:
nullable: true
type: string
email_sent:
type: boolean
execution_date:
format: datetime
type: string
notification_sent:
type: boolean
task_id:
description: The task ID.
readOnly: true
type: string
timestamp: