-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabricks-openapi.yml
More file actions
3580 lines (3580 loc) · 113 KB
/
databricks-openapi.yml
File metadata and controls
3580 lines (3580 loc) · 113 KB
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
openapi: 3.1.0
info:
title: Databricks REST API
description: >-
The Databricks REST API provides programmatic access to manage Databricks
workspace resources including clusters, jobs, and workspace objects. All API
endpoints require authentication using a personal access token or OAuth token
passed via the Authorization header. The base URL is specific to your
Databricks workspace deployment region.
version: 2.1.0
contact:
name: Databricks
url: https://www.databricks.com/company/contact
email: support@databricks.com
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0
termsOfService: https://www.databricks.com/legal/terms-of-use
servers:
- url: https://{workspace_host}/api
description: Databricks workspace API endpoint
variables:
workspace_host:
default: adb-1234567890123456.7.azuredatabricks.net
description: >-
The hostname of your Databricks workspace. Format varies by cloud
provider (e.g., adb-<workspace-id>.<random>.azuredatabricks.net for
Azure, <workspace-id>.cloud.databricks.com for AWS).
security:
- bearerAuth: []
tags:
- name: Clusters
description: >-
Manage Databricks clusters for running data engineering and data science
workloads on Apache Spark.
- name: Jobs
description: >-
Create and manage automated workloads including notebooks, JARs, Python
scripts, and multi-task workflows.
- name: Workspace
description: >-
Manage workspace objects such as notebooks, folders, and libraries.
paths:
/2.0/clusters/create:
post:
operationId: createCluster
summary: Databricks Create a New Cluster
description: >-
Creates a new Spark cluster. This method acquires new instances from the
cloud provider and starts the Spark driver and worker processes. The
cluster is created asynchronously; use the cluster_id returned to poll
for status.
tags:
- Clusters
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateClusterRequest'
examples:
CreateclusterRequestExample:
summary: Default createCluster request
x-microcks-default: true
value:
cluster_name: example_value
spark_version: example_value
node_type_id: '500123'
driver_node_type_id: '500123'
num_workers: 10
autoscale:
min_workers: 10
max_workers: 10
spark_conf: example_value
aws_attributes:
first_on_demand: 10
availability: SPOT
zone_id: '500123'
instance_profile_arn: example_value
spot_bid_price_percent: 10
ebs_volume_type: GENERAL_PURPOSE_SSD
ebs_volume_count: 10
ebs_volume_size: 10
azure_attributes:
first_on_demand: 10
availability: SPOT_AZURE
spot_bid_max_price: 42.5
gcp_attributes:
use_preemptible_executors: true
google_service_account: example_value
availability: GCP_PREEMPTIBLE
custom_tags: example_value
spark_env_vars: example_value
autotermination_minutes: 10
enable_elastic_disk: true
instance_pool_id: '500123'
policy_id: '500123'
enable_local_disk_encryption: true
runtime_engine: STANDARD
data_security_mode: NONE
single_user_name: example_value
init_scripts:
- workspace: {}
volumes: {}
dbfs: {}
ssh_public_keys:
- example_value
responses:
'200':
description: Cluster creation initiated successfully.
content:
application/json:
schema:
type: object
properties:
cluster_id:
type: string
description: The unique identifier of the newly created cluster.
examples:
- '1234-567890-abcde123'
examples:
Createcluster200Example:
summary: Default createCluster 200 response
x-microcks-default: true
value:
cluster_id: '500123'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalServerError'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/2.0/clusters/list:
get:
operationId: listClusters
summary: Databricks List All Clusters
description: >-
Returns information about all clusters in the workspace, including
terminated clusters. Clusters are ordered by cluster_id.
tags:
- Clusters
parameters:
- name: can_use_client
in: query
required: false
description: Filter clusters by client compatibility.
schema:
type: string
example: example_value
responses:
'200':
description: Successfully retrieved the list of clusters.
content:
application/json:
schema:
type: object
properties:
clusters:
type: array
items:
$ref: '#/components/schemas/ClusterDetails'
examples:
Listclusters200Example:
summary: Default listClusters 200 response
x-microcks-default: true
value:
clusters:
- cluster_id: '500123'
cluster_name: example_value
spark_version: example_value
node_type_id: '500123'
driver_node_type_id: '500123'
num_workers: 10
state: PENDING
state_message: example_value
start_time: 10
terminated_time: 10
last_state_loss_time: 10
last_activity_time: 10
last_restarted_time: 10
creator_user_name: example_value
cluster_source: UI
spark_conf: example_value
custom_tags: example_value
spark_env_vars: example_value
autotermination_minutes: 10
enable_elastic_disk: true
instance_pool_id: '500123'
policy_id: '500123'
data_security_mode: example_value
single_user_name: example_value
runtime_engine: example_value
default_tags: example_value
cluster_log_status:
last_attempted: 10
last_exception: example_value
termination_reason:
code: example_value
type: example_value
parameters: example_value
disk_spec:
disk_count: 10
disk_size: 10
disk_type: {}
executors:
- {}
jdbc_port: 10
spark_context_id: '500123'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/2.0/clusters/get:
get:
operationId: getCluster
summary: Databricks Get Cluster Details
description: >-
Retrieves detailed information about a cluster, including its current
state, configuration, and runtime properties.
tags:
- Clusters
parameters:
- name: cluster_id
in: query
required: true
description: The unique identifier of the cluster.
schema:
type: string
example: '500123'
responses:
'200':
description: Successfully retrieved cluster details.
content:
application/json:
schema:
$ref: '#/components/schemas/ClusterDetails'
examples:
Getcluster200Example:
summary: Default getCluster 200 response
x-microcks-default: true
value:
cluster_id: '500123'
cluster_name: example_value
spark_version: example_value
node_type_id: '500123'
driver_node_type_id: '500123'
num_workers: 10
autoscale:
min_workers: 10
max_workers: 10
state: PENDING
state_message: example_value
start_time: 10
terminated_time: 10
last_state_loss_time: 10
last_activity_time: 10
last_restarted_time: 10
creator_user_name: example_value
cluster_source: UI
spark_conf: example_value
custom_tags: example_value
spark_env_vars: example_value
autotermination_minutes: 10
enable_elastic_disk: true
instance_pool_id: '500123'
policy_id: '500123'
data_security_mode: example_value
single_user_name: example_value
runtime_engine: example_value
default_tags: example_value
cluster_log_status:
last_attempted: 10
last_exception: example_value
termination_reason:
code: example_value
type: example_value
parameters: example_value
disk_spec:
disk_count: 10
disk_size: 10
disk_type:
azure_disk_volume_type: example_value
ebs_volume_type: example_value
driver:
private_ip: example_value
public_dns: example_value
node_id: '500123'
instance_id: '500123'
start_timestamp: 10
host_private_ip: example_value
executors:
- private_ip: example_value
public_dns: example_value
node_id: '500123'
instance_id: '500123'
start_timestamp: 10
host_private_ip: example_value
jdbc_port: 10
spark_context_id: '500123'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/2.0/clusters/start:
post:
operationId: startCluster
summary: Databricks Start a Terminated Cluster
description: >-
Starts a terminated cluster given its cluster_id. This is similar to
creating a cluster except it uses the configuration of the previously
terminated cluster.
tags:
- Clusters
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- cluster_id
properties:
cluster_id:
type: string
description: The cluster to start.
examples:
StartclusterRequestExample:
summary: Default startCluster request
x-microcks-default: true
value:
cluster_id: '500123'
responses:
'200':
description: Cluster start initiated successfully.
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/2.0/clusters/restart:
post:
operationId: restartCluster
summary: Databricks Restart a Cluster
description: >-
Restarts a Spark cluster given its cluster_id. If the cluster is not in
a RUNNING state, nothing happens.
tags:
- Clusters
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- cluster_id
properties:
cluster_id:
type: string
description: The cluster to restart.
examples:
RestartclusterRequestExample:
summary: Default restartCluster request
x-microcks-default: true
value:
cluster_id: '500123'
responses:
'200':
description: Cluster restart initiated successfully.
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/2.0/clusters/delete:
post:
operationId: terminateCluster
summary: Databricks Terminate a Cluster
description: >-
Terminates a Spark cluster given its cluster_id. The cluster is removed
after being terminated. Use the permanent-delete endpoint if you want to
remove the cluster configuration entirely.
tags:
- Clusters
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- cluster_id
properties:
cluster_id:
type: string
description: The cluster to terminate.
examples:
TerminateclusterRequestExample:
summary: Default terminateCluster request
x-microcks-default: true
value:
cluster_id: '500123'
responses:
'200':
description: Cluster termination initiated successfully.
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/2.0/clusters/permanent-delete:
post:
operationId: permanentDeleteCluster
summary: Databricks Permanently Delete a Cluster
description: >-
Permanently deletes a Spark cluster. If the cluster is running, it is
terminated and resources are asynchronously removed. If the cluster is
terminated, it is immediately removed. A cluster can only be permanently
deleted by an admin or the cluster creator.
tags:
- Clusters
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- cluster_id
properties:
cluster_id:
type: string
description: The cluster to permanently delete.
examples:
PermanentdeleteclusterRequestExample:
summary: Default permanentDeleteCluster request
x-microcks-default: true
value:
cluster_id: '500123'
responses:
'200':
description: Cluster permanently deleted.
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/2.0/clusters/edit:
post:
operationId: editCluster
summary: Databricks Edit Cluster Configuration
description: >-
Edits the configuration of a cluster to match the provided attributes.
The cluster must be in a RUNNING or TERMINATED state. If the cluster is
running, it will be restarted to apply the changes.
tags:
- Clusters
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EditClusterRequest'
examples:
EditclusterRequestExample:
summary: Default editCluster request
x-microcks-default: true
value:
cluster_id: '500123'
cluster_name: example_value
spark_version: example_value
node_type_id: '500123'
driver_node_type_id: '500123'
num_workers: 10
autoscale:
min_workers: 10
max_workers: 10
spark_conf: example_value
custom_tags: example_value
spark_env_vars: example_value
autotermination_minutes: 10
enable_elastic_disk: true
instance_pool_id: '500123'
policy_id: '500123'
data_security_mode: NONE
single_user_name: example_value
runtime_engine: STANDARD
responses:
'200':
description: Cluster configuration updated successfully.
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/2.0/clusters/events:
post:
operationId: listClusterEvents
summary: Databricks List Cluster Events
description: >-
Retrieves a list of events about the activity of a cluster. Events are
returned in reverse chronological order. This endpoint can be used to
audit cluster activity and monitor lifecycle changes.
tags:
- Clusters
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- cluster_id
properties:
cluster_id:
type: string
description: The ID of the cluster to retrieve events for.
start_time:
type: integer
format: int64
description: Start timestamp in milliseconds for the event query range.
end_time:
type: integer
format: int64
description: End timestamp in milliseconds for the event query range.
order:
type: string
enum:
- DESC
- ASC
description: Sort order for results.
event_types:
type: array
items:
type: string
enum:
- CREATING
- DID_NOT_EXPAND_DISK
- EXPANDED_DISK
- FAILED_TO_EXPAND_DISK
- INIT_SCRIPTS_STARTING
- INIT_SCRIPTS_FINISHED
- STARTING
- RESTARTING
- TERMINATING
- EDITED
- RUNNING
- RESIZING
- UPSIZE_COMPLETED
- NODES_LOST
- DRIVER_HEALTHY
- DRIVER_NOT_RESPONDING
- DRIVER_UNAVAILABLE
- SPARK_EXCEPTION
- PINNED
- UNPINNED
description: Filter by specific event types.
offset:
type: integer
format: int64
description: Offset for pagination.
limit:
type: integer
format: int64
description: Maximum number of events to return (max 500).
examples:
ListclustereventsRequestExample:
summary: Default listClusterEvents request
x-microcks-default: true
value:
cluster_id: '500123'
start_time: 10
end_time: 10
order: DESC
event_types:
- CREATING
offset: 10
limit: 10
responses:
'200':
description: Successfully retrieved cluster events.
content:
application/json:
schema:
type: object
properties:
events:
type: array
items:
$ref: '#/components/schemas/ClusterEvent'
next_page:
type: object
properties:
cluster_id:
type: string
end_time:
type: integer
format: int64
offset:
type: integer
format: int64
total_count:
type: integer
format: int64
examples:
Listclusterevents200Example:
summary: Default listClusterEvents 200 response
x-microcks-default: true
value:
events:
- cluster_id: '500123'
timestamp: 10
type: example_value
details:
current_num_workers: 10
target_num_workers: 10
previous_attributes: example_value
attributes: example_value
previous_cluster_size: example_value
cluster_size: example_value
cause: example_value
reason: {}
next_page:
cluster_id: '500123'
end_time: 10
offset: 10
total_count: 10
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/2.1/jobs/create:
post:
operationId: createJob
summary: Databricks Create a New Job
description: >-
Creates a new job with the provided settings. The job can be configured
with a single task or multiple tasks with dependencies forming a
directed acyclic graph (DAG).
tags:
- Jobs
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateJobRequest'
examples:
CreatejobRequestExample:
summary: Default createJob request
x-microcks-default: true
value:
name: Example Title
tasks:
- task_key: example_value
description: A sample description.
depends_on: {}
existing_cluster_id: '500123'
job_cluster_key: example_value
notebook_task: {}
spark_jar_task: {}
spark_python_task: {}
spark_submit_task: {}
pipeline_task: {}
python_wheel_task: {}
sql_task: {}
dbt_task: {}
run_if: ALL_SUCCESS
timeout_seconds: 10
max_retries: 10
min_retry_interval_millis: 10
retry_on_timeout: true
libraries: {}
job_clusters:
- job_cluster_key: example_value
email_notifications:
on_start:
- {}
on_success:
- {}
on_failure:
- {}
on_duration_warning_threshold_exceeded:
- {}
no_alert_for_skipped_runs: true
webhook_notifications:
on_start:
- {}
on_success:
- {}
on_failure:
- {}
on_duration_warning_threshold_exceeded:
- {}
notification_settings:
no_alert_for_skipped_runs: true
no_alert_for_canceled_runs: true
timeout_seconds: 10
schedule:
quartz_cron_expression: example_value
timezone_id: '500123'
pause_status: PAUSED
continuous:
pause_status: PAUSED
trigger:
pause_status: PAUSED
file_arrival:
url: https://www.example.com
min_time_between_triggers_seconds: 10
wait_after_last_change_seconds: 10
max_concurrent_runs: 10
git_source:
git_url: https://www.example.com
git_provider: gitHub
git_branch: example_value
git_tag: example_value
git_commit: example_value
tags: example_value
format: SINGLE_TASK
queue:
enabled: true
parameters:
- name: Example Title
default: example_value
run_as:
user_name: example_value
service_principal_name: example_value
access_control_list:
- user_name: example_value
group_name: example_value
service_principal_name: example_value
permission_level: CAN_MANAGE
responses:
'200':
description: Job created successfully.
content:
application/json:
schema:
type: object
properties:
job_id:
type: integer
format: int64
description: The canonical identifier for the newly created job.
examples:
- 11223344
examples:
Createjob200Example:
summary: Default createJob 200 response
x-microcks-default: true
value:
job_id: '500123'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/2.1/jobs/list:
get:
operationId: listJobs
summary: Databricks List All Jobs
description: >-
Retrieves a list of jobs in the workspace. Results are paginated and can
be filtered by name.
tags:
- Jobs
parameters:
- name: limit
in: query
required: false
description: >-
The number of jobs to return. This value must be greater than 0 and
less than or equal to 25. The default value is 20.
schema:
type: integer
default: 20
maximum: 25
example: 10
- name: offset
in: query
required: false
description: The offset of the first job to return.
schema:
type: integer
default: 0
example: 10
- name: name
in: query
required: false
description: >-
A filter on the list based on the exact (case-insensitive) job name.
schema:
type: string
example: Example Title
- name: expand_tasks
in: query
required: false
description: Whether to include task and cluster details in the response.
schema:
type: boolean
default: false
example: true
responses:
'200':
description: Successfully retrieved the list of jobs.
content:
application/json:
schema:
type: object
properties:
jobs:
type: array
items:
$ref: '#/components/schemas/Job'
has_more:
type: boolean
description: Whether there are more jobs to list.
examples:
Listjobs200Example:
summary: Default listJobs 200 response
x-microcks-default: true
value:
jobs:
- job_id: '500123'
creator_user_name: example_value
run_as_user_name: example_value
created_time: 10
has_more: true
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/2.1/jobs/get:
get:
operationId: getJob
summary: Databricks Get a Job
description: >-
Retrieves the details of a single job, including its settings, creator,
and run history summary.
tags:
- Jobs
parameters:
- name: job_id
in: query
required: true
description: The canonical identifier of the job to retrieve.
schema:
type: integer
format: int64
example: '500123'
responses:
'200':
description: Successfully retrieved the job.
content:
application/json:
schema:
$ref: '#/components/schemas/Job'
examples:
Getjob200Example:
summary: Default getJob 200 response
x-microcks-default: true
value:
job_id: '500123'
creator_user_name: example_value
run_as_user_name: example_value
settings:
name: Example Title
tasks:
- {}
job_clusters:
- {}
timeout_seconds: 10
max_concurrent_runs: 10
tags: example_value
format: SINGLE_TASK
queue:
enabled: true
continuous:
pause_status: PAUSED
parameters:
- {}
run_as:
user_name: example_value
service_principal_name: example_value
created_time: 10
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/2.1/jobs/update:
post:
operationId: updateJob
summary: Databricks Partially Update a Job
description: >-
Add, update, or remove specific settings of an existing job. Use
reset to overwrite all settings.
tags:
- Jobs
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- job_id
properties:
job_id:
type: integer
format: int64
description: The canonical identifier of the job to update.
new_settings:
$ref: '#/components/schemas/JobSettings'
fields_to_remove:
type: array
items:
type: string
description: >-
A list of fields to remove from the job settings.
examples:
UpdatejobRequestExample:
summary: Default updateJob request
x-microcks-default: true
value:
job_id: '500123'
new_settings:
name: Example Title
tasks:
- {}
job_clusters:
- {}
email_notifications:
on_start: {}
on_success: {}
on_failure: {}
on_duration_warning_threshold_exceeded: {}
no_alert_for_skipped_runs: true
webhook_notifications:
on_start: {}
on_success: {}
on_failure: {}
on_duration_warning_threshold_exceeded: {}
timeout_seconds: 10
schedule: