-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathswagger.json
More file actions
984 lines (984 loc) · 35.2 KB
/
Copy pathswagger.json
File metadata and controls
984 lines (984 loc) · 35.2 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
{
"swagger": "2.0",
"info": {
"title": "Workload REST APIs",
"description": "APIs to be implemented by workloads for integration with Microsoft Fabric",
"version": "v1"
},
"schemes": [ "https" ],
"host": "workload.contoso.com",
"basePath": "/workload-api-path-placeholder",
"definitions": {
"ErrorSource": {
"description": "The source of the error.",
"type": "string",
"enum": [ "System", "User", "External" ]
},
"JobInvokeType": {
"description": "The job invoke type.",
"type": "string",
"enum": [ "UnknownFutureValue", "Scheduled", "Manual" ]
},
"JobInstanceStatus": {
"description": "The status of an item job instance.",
"type": "string",
"enum": [ "NotStarted", "InProgress", "Completed", "Failed", "Cancelled" ]
},
"NameValuePair": {
"description": "A name-value pair.",
"type": "object",
"additionalProperties": false,
"required": [ "name", "value" ],
"properties": {
"name": {
"description": "The name.",
"type": "string",
"readOnly": true
},
"value": {
"description": "The value.",
"type": "string",
"readOnly": true
}
}
},
"ErrorBasicInformation": {
"description": "The basic error information",
"type": "object",
"additionalProperties": false,
"required": [ "errorCode", "message" ],
"properties": {
"errorCode": {
"description": "The error code.",
"type": "string",
"readOnly": true
},
"message": {
"description": "The error message.",
"type": "string",
"readOnly": true
},
"messageParameters": {
"description": "A list of parameters for formatting a localized message.",
"type": "array",
"items": {
"type": "string",
"readOnly": true
},
"readOnly": true
}
}
},
"ErrorExtendedInformation": {
"description": "The extended error information.",
"type": "object",
"additionalProperties": false,
"required": [ "errorCode", "message" ],
"allOf": [
{
"$ref": "#/definitions/ErrorBasicInformation"
}
],
"properties": {
"additionalParameters": {
"description": "A list of additional parameters specific to the error.",
"type": "array",
"items": {
"$ref": "#/definitions/NameValuePair",
"readOnly": true
},
"readOnly": true
}
}
},
"ErrorDetails": {
"description": "The error details.",
"type": "object",
"additionalProperties": false,
"required": [ "errorCode", "message", "source" ],
"allOf": [
{
"$ref": "#/definitions/ErrorBasicInformation"
}
],
"properties": {
"source": {
"description": "The error source.",
"$ref": "#/definitions/ErrorSource",
"readOnly": true
},
"isPermanent": {
"description": "Indicates whether the error is permanent or the operation can be retried.",
"type": "boolean",
"readOnly": true
},
"moreDetails": {
"description": "A list of additional error details.",
"type": "array",
"items": {
"$ref": "#/definitions/ErrorExtendedInformation",
"readOnly": true
},
"readOnly": true
}
}
},
"ErrorResponse": {
"description": "The error response.",
"type": "object",
"additionalProperties": false,
"required": [ "errorCode", "message", "source" ],
"allOf": [
{
"$ref": "#/definitions/ErrorDetails"
}
]
},
"CreateItemPayload": {
"description": "Creation payload specific to the workload and item type. Fabric forwards this payload as-is to your backend system without storing or examining its contents.",
"type": "object",
"additionalProperties": true
},
"UpdateItemPayload": {
"description": "Update payload specific to the workload and item type.",
"type": "object",
"additionalProperties": true
},
"ItemPayload": {
"description": "Item payload specific to the workload and item type.",
"type": "object",
"additionalProperties": true
},
"CreateItemJobInstancePayload": {
"description": "Job instance creation payload specific to the workload, item and job type.",
"type": "object",
"additionalProperties": true
},
"CreateItemRequest": {
"description": "Create item request content.",
"type": "object",
"additionalProperties": false,
"required": [ "displayName" ],
"properties": {
"displayName": {
"description": "The item display name. Cannot exceed 256 characters.",
"type": "string",
"maxLength": 256,
"readOnly": false
},
"description": {
"description": "The item description.",
"type": "string",
"readOnly": false
},
"creationPayload": {
"description": "Creation payload specific to the workload and item type. Passed by the item editor or as Fabric automation API parameter.",
"$ref": "#/definitions/CreateItemPayload",
"readOnly": false
}
}
},
"UpdateItemRequest": {
"description": "Update item request content. This content has 'PATCH' semantics: for properties which are not provided (null) the item current values should be preserved.",
"type": "object",
"additionalProperties": false,
"properties": {
"displayName": {
"description": "The item display name. Cannot exceed 256 characters.",
"type": "string",
"maxLength": 256,
"readOnly": false
},
"description": {
"description": "The item description.",
"type": "string",
"readOnly": false
},
"updatePayload": {
"description": "Update payload specific to the workload and item type. Passed by the item editor or as Fabric automation API parameter.",
"$ref": "#/definitions/UpdateItemPayload",
"readOnly": false
}
}
},
"GetItemPayloadResponse": {
"description": "The item payload for the item editor.",
"type": "object",
"additionalProperties": false,
"properties": {
"itemPayload": {
"description": "Payload specific to the workload and item type.",
"$ref": "#/definitions/ItemPayload",
"readOnly": false
}
}
},
"CreateItemJobInstanceRequest": {
"description": "The parameters controlling the job instance execution.",
"type": "object",
"additionalProperties": false,
"required": [ "invokeType" ],
"properties": {
"invokeType": {
"description": "The item job invoke type.",
"$ref": "#/definitions/JobInvokeType",
"readOnly": false
},
"creationPayload": {
"description": "Creation payload specific to the workload, item and job type.",
"$ref": "#/definitions/CreateItemJobInstancePayload",
"readOnly": false
}
}
},
"ItemJobInstanceState": {
"description": "The job instance state.",
"type": "object",
"additionalProperties": false,
"required": [ "status" ],
"properties": {
"status": {
"description": "The status of the job instance.",
"$ref": "#/definitions/JobInstanceStatus",
"readOnly": true
},
"startTimeUtc": {
"description": "The job instance start time.",
"type": "string",
"format": "date-time",
"readOnly": true
},
"endTimeUtc": {
"description": "The job instance end time.",
"type": "string",
"format": "date-time",
"readOnly": true
},
"errorDetails": {
"description": "The error details in case of the job instance failure.",
"$ref": "#/definitions/ErrorDetails",
"readOnly": true
}
}
},
"EndpointResolutionContextPropertyName": {
"type": "string",
"enum": ["EndpointName", "TenantRegion", "WorkspaceRegion", "TenantId"],
"description": "The name of the property for endpoint resolution context."
},
"EndpointResolutionContextProperty": {
"type": "object",
"description": "Defines a context property used in endpoint resolution. This property must be specified in the workload manifest to ensure correct endpoint determination by Fabric.",
"required": ["name", "value"],
"properties": {
"name": {
"$ref": "#/definitions/EndpointResolutionContextPropertyName",
"description": "The name of the context property."
},
"value": {
"type": "string",
"description": "The value of the context property."
}
},
"additionalProperties": false
},
"EndpointResolutionRequest": {
"type": "object",
"required": ["context"],
"properties": {
"context": {
"type": "array",
"items": {
"$ref": "#/definitions/EndpointResolutionContextProperty"
},
"description": "Array of context properties for endpoint resolution."
}
},
"additionalProperties": false
},
"EndpointResolutionResponse": {
"type": "object",
"required": ["url", "ttlInMinutes"],
"properties": {
"url": {
"type": "string",
"description": "The resolved URL of the service."
},
"ttlInMinutes": {
"type": "integer",
"format": "int32",
"description": "Time to live in minutes for the resolved URL."
}
},
"additionalProperties": false
}
},
"responses": {
"StandardErrorResponse": {
"description": "For error conditions the workload should return an appropriate HTTP error status code (4xx, 5xx) with detailed error information in the response body.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"paths": {
"/workspaces/{workspaceId}/items/{itemType}/{itemId}": {
"post": {
"summary": "Called by Microsoft Fabric for creating a new item.",
"description": "Upon item creation Fabric performs basic validations, creates the item in a provisioning state and calls this API to notify the workload. The workload is expected to perform required validations, store the item metadata, allocate required resources, and update the Fabric item metadata cache with item relations and ETag.\n\nThis API should accept SubjectAndApp authentication.\n\n## Permissions\n\nPermissions are checked by Microsoft Fabric.",
"operationId": "ItemLifecycle_CreateItem",
"tags": [ "ItemLifecycle" ],
"consumes": [ "application/json" ],
"produces": [ "application/json" ],
"parameters": [
{
"in": "path",
"name": "workspaceId",
"description": "The workspace ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "path",
"name": "itemType",
"description": "The item type.",
"type": "string",
"required": true
},
{
"in": "path",
"name": "itemId",
"description": "The item ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "body",
"name": "createItemRequest",
"description": "The item creation request.",
"schema": {
"$ref": "#/definitions/CreateItemRequest"
},
"required": true
},
{
"in": "header",
"name": "ActivityId",
"description": "A unique ID for correlating the request with your system when a user interacts with your workload.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "RequestId",
"description": "A globally unique ID that helps Fabric correlate your request with our logs. Provide this ID when reporting an issue.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "Authorization",
"description": "A dual token authorization header that allows the workload to validate the request origin, provide user context, and call other services. This header has the following format: `SubjectAndAppToken1.0 subjectToken=\"delegated token\", appToken=\"S2S token\"`.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "x-ms-client-tenant-id",
"description": "The tenant ID of the client making the request.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successfully created."
},
"default": {
"$ref": "#/responses/StandardErrorResponse"
}
},
"x-ms-examples": {
"Create item example": {
"$ref": "./examples/CreateItem.json"
}
}
},
"patch": {
"summary": "Called by Microsoft Fabric for updating an existing item.",
"description": "Upon item update Fabric performs basic validations and calls this API to notify the workload. The workload is expected to perform required validations, store the item metadata, allocate and/or free resources, and update the Fabric item metadata cache with item relations and ETag.\n\nThis API should accept SubjectAndApp authentication.\n\n## Permissions\n\nPermissions are checked by Microsoft Fabric.",
"operationId": "ItemLifecycle_UpdateItem",
"tags": [ "ItemLifecycle" ],
"consumes": [ "application/json" ],
"produces": [ "application/json" ],
"parameters": [
{
"in": "path",
"name": "workspaceId",
"description": "The workspace ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "path",
"name": "itemType",
"description": "The item type.",
"type": "string",
"required": true
},
{
"in": "path",
"name": "itemId",
"description": "The item ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "body",
"name": "updateItemRequest",
"description": "The item update request.",
"schema": {
"$ref": "#/definitions/UpdateItemRequest"
},
"required": true
},
{
"in": "header",
"name": "ActivityId",
"description": "A unique ID for correlating the request with your system when a user interacts with your workload.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "RequestId",
"description": "A globally unique ID that helps Fabric correlate your request with our logs. Provide this ID when reporting an issue.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "Authorization",
"description": "A dual token authorization header that allows the workload to validate the request origin, provide user context, and call other services. This header has the following format: `SubjectAndAppToken1.0 subjectToken=\"delegated token\", appToken=\"S2S token\"`.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "x-ms-client-tenant-id",
"description": "The tenant ID of the client making the request.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successfully updated."
},
"default": {
"$ref": "#/responses/StandardErrorResponse"
}
},
"x-ms-examples": {
"Update item example": {
"$ref": "./examples/UpdateItem.json"
}
}
},
"delete": {
"summary": "Called by Microsoft Fabric for deleting an existing item.",
"description": "Upon item deletion Fabric performs basic validations and calls this API to notify the workload. The workload is expected to delete the item metadata and free resources. \n\nThis API should accept SubjectAndApp authentication. However, the subject token may be unavailable in some cases.\n\n## Permissions\n\nPermissions are checked by Microsoft Fabric.",
"operationId": "ItemLifecycle_DeleteItem",
"tags": [ "ItemLifecycle" ],
"produces": [ "application/json" ],
"parameters": [
{
"in": "path",
"name": "workspaceId",
"description": "The workspace ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "path",
"name": "itemType",
"description": "The item type.",
"type": "string",
"required": true
},
{
"in": "path",
"name": "itemId",
"description": "The item ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "header",
"name": "ActivityId",
"description": "A unique ID for correlating the request with your system when a user interacts with your workload.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "RequestId",
"description": "A globally unique ID that helps Fabric correlate your request with our logs. Provide this ID when reporting an issue.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "Authorization",
"description": "A dual token authorization header that allows the workload to validate the request origin, provide user context, and call other services. This header has the following format: `SubjectAndAppToken1.0 subjectToken=\"delegated token\", appToken=\"S2S token\"`.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "x-ms-client-tenant-id",
"description": "The tenant ID of the client making the request.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successfully deleted."
},
"default": {
"$ref": "#/responses/StandardErrorResponse"
}
},
"x-ms-examples": {
"Delete item example": {
"$ref": "./examples/DeleteItem.json"
}
}
}
},
"/workspaces/{workspaceId}/items/{itemType}/{itemId}/payload": {
"get": {
"summary": "Called by Microsoft Fabric for retrieving the workload payload for an item.",
"description": "When the item editor <iframe> requests an item, Fabric performs basic validations and calls this API to retrieve the payload from the workload.\n\nThis API accepts SubjectAndApp authentication.\n\n## Permissions\n\nPermissions are checked by Microsoft Fabric.",
"operationId": "ItemLifecycle_GetItemPayload",
"tags": [ "ItemLifecycle" ],
"produces": [ "application/json" ],
"parameters": [
{
"in": "path",
"name": "workspaceId",
"description": "The workspace ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "path",
"name": "itemType",
"description": "The item type.",
"type": "string",
"required": true
},
{
"in": "path",
"name": "itemId",
"description": "The item ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "header",
"name": "ActivityId",
"description": "A unique ID for correlating the request with your system when a user interacts with your workload.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "RequestId",
"description": "A globally unique ID that helps Fabric correlate your request with our logs. Provide this ID when reporting an issue.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "Authorization",
"description": "A dual token authorization header that allows the workload to validate the request origin, provide user context, and call other services. This header has the following format: `SubjectAndAppToken1.0 subjectToken=\"delegated token\", appToken=\"S2S token\"`.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "x-ms-client-tenant-id",
"description": "The tenant ID of the client making the request.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Completed successfully.",
"schema": {
"$ref": "#/definitions/GetItemPayloadResponse"
}
},
"default": {
"$ref": "#/responses/StandardErrorResponse"
}
},
"x-ms-examples": {
"Get item content example": {
"$ref": "./examples/GetItemPayload.json"
}
}
}
},
"/workspaces/{workspaceId}/items/{itemType}/{itemId}/jobTypes/{jobType}/instances/{jobInstanceId}": {
"post": {
"summary": "Called by Microsoft Fabric for starting a new job instance.",
"description": "Fabric performs basic validations and calls this API to start a new instance of the job in the workload.\n\nThis API should accept SubjectAndApp authentication.\n\n## Permissions\n\nPermissions are checked by Microsoft Fabric.",
"operationId": "Jobs_CreateItemJobInstance",
"tags": [ "Jobs" ],
"consumes": [ "application/json" ],
"produces": [ "application/json" ],
"parameters": [
{
"in": "path",
"name": "workspaceId",
"description": "The workspace ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "path",
"name": "itemType",
"description": "The item type.",
"type": "string",
"required": true
},
{
"in": "path",
"name": "itemId",
"description": "The item ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "path",
"name": "jobType",
"description": "The job type.",
"type": "string",
"required": true
},
{
"in": "path",
"name": "jobInstanceId",
"description": "The job instance ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "body",
"name": "createItemJobInstanceRequest",
"description": "The job instance properties.",
"schema": {
"$ref": "#/definitions/CreateItemJobInstanceRequest"
},
"required": true
},
{
"in": "header",
"name": "ActivityId",
"description": "A unique ID for correlating the request with your system when a user interacts with your workload.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "RequestId",
"description": "A globally unique ID that helps Fabric correlate your request with our logs. Provide this ID when reporting an issue.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "Authorization",
"description": "A dual token authorization header that allows the workload to validate the request origin, provide user context, and call other services. This header has the following format: `SubjectAndAppToken1.0 subjectToken=\"delegated token\", appToken=\"S2S token\"`.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "x-ms-client-tenant-id",
"description": "The tenant ID of the client making the request.",
"required": true,
"type": "string"
}
],
"responses": {
"202": {
"description": "Successfully scheduled."
},
"default": {
"$ref": "#/responses/StandardErrorResponse"
}
},
"x-ms-examples": {
"Create item job instance example": {
"$ref": "./examples/CreateItemJobInstance.json"
}
}
},
"get": {
"summary": "Called by Microsoft Fabric for retrieving a job instance state.",
"description": "Fabric performs basic validations and calls this API to retrieve the item job instance state in the workload.\n\nThis API should accept SubjectAndApp authentication.\n\n## Permissions\n\nPermissions are checked by Microsoft Fabric.",
"operationId": "Jobs_GetItemJobInstanceState",
"tags": [ "Jobs" ],
"produces": [ "application/json" ],
"parameters": [
{
"in": "path",
"name": "workspaceId",
"description": "The workspace ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "path",
"name": "itemType",
"description": "The item type.",
"type": "string",
"required": true
},
{
"in": "path",
"name": "itemId",
"description": "The item ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "path",
"name": "jobType",
"description": "The job type.",
"type": "string",
"required": true
},
{
"in": "path",
"name": "jobInstanceId",
"description": "The job instance ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "header",
"name": "ActivityId",
"description": "A unique ID for correlating the request with your system when a user interacts with your workload.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "RequestId",
"description": "A globally unique ID that helps Fabric correlate your request with our logs. Provide this ID when reporting an issue.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "Authorization",
"description": "A dual token authorization header that allows the workload to validate the request origin, provide user context, and call other services. This header has the following format: `SubjectAndAppToken1.0 subjectToken=\"delegated token\", appToken=\"S2S token\"`.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "x-ms-client-tenant-id",
"description": "The tenant ID of the client making the request.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Completed successfully.",
"schema": {
"$ref": "#/definitions/ItemJobInstanceState"
}
},
"default": {
"$ref": "#/responses/StandardErrorResponse"
}
},
"x-ms-examples": {
"Get item job instance state example": {
"$ref": "./examples/GetItemJobInstanceState.json"
}
}
}
},
"/workspaces/{workspaceId}/items/{itemType}/{itemId}/jobTypes/{jobType}/instances/{jobInstanceId}/cancel": {
"post": {
"summary": "Called by Microsoft Fabric for cancelling a job instance.",
"description": "Fabric performs basic validations and calls this API to cancel an item job instance in the workload.\n\nThis API should accept SubjectAndApp authentication.\n\n## Permissions\n\nPermissions are checked by Microsoft Fabric.",
"operationId": "Jobs_CancelItemJobInstance",
"tags": [ "Jobs" ],
"produces": [ "application/json" ],
"parameters": [
{
"in": "path",
"name": "workspaceId",
"description": "The workspace ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "path",
"name": "itemType",
"description": "The item type.",
"type": "string",
"required": true
},
{
"in": "path",
"name": "itemId",
"description": "The item ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "path",
"name": "jobType",
"description": "The job type.",
"type": "string",
"required": true
},
{
"in": "path",
"name": "jobInstanceId",
"description": "The job instance ID.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "header",
"name": "ActivityId",
"description": "A unique ID for correlating the request with your system when a user interacts with your workload.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "RequestId",
"description": "A globally unique ID that helps Fabric correlate your request with our logs. Provide this ID when reporting an issue.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "Authorization",
"description": "A dual token authorization header that allows the workload to validate the request origin, provide user context, and call other services. This header has the following format: `SubjectAndAppToken1.0 subjectToken=\"delegated token\", appToken=\"S2S token\"`.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "x-ms-client-tenant-id",
"description": "The tenant ID of the client making the request.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Completed successfully.",
"schema": {
"$ref": "#/definitions/ItemJobInstanceState"
}
},
"default": {
"$ref": "#/responses/StandardErrorResponse"
}
},
"x-ms-examples": {
"Cancel item job instance example": {
"$ref": "./examples/CancelItemJobInstance.json"
}
}
}
},
"/resolve-api-path-placeholder": {
"post": {
"summary": "Resolve an endpoint for a given service called by Microsoft Fabric",
"description": "Resolves the endpoint for a given service called by Microsoft Fabric based on the tenant's region and workspace region. Fabric provides a set of context properties and returns the appropriate service endpoint URL and its time-to-live (TTL).\n\nThe Endpoint Resolution API is crucial for services that require dynamic endpoint determination based on operational context. This allows for optimized routing and regional compliance.\n\nTo resolve an endpoint, Fabric will send a POST request with the required context properties in the request body. The response will contain the resolved URL and its TTL, which indicates how long the URL is considered valid.\n\nFor a sample implementation and usage examples, please refer to the [Endpoint Resolution Sample Code](https://github.com/microsoft/Microsoft-Fabric-workload-development-sample/blob/main/Backend/dotnet/src/Controllers/EndpointResolutionControllerImpl.cs).",
"operationId": "EndpointResolution_Resolve",
"tags": [ "EndpointResolution" ],
"consumes": [ "application/json" ],
"produces": [ "application/json" ],
"parameters": [
{
"in": "body",
"name": "body",
"description": "Endpoint resolution request payload",
"required": true,
"schema": {
"$ref": "#/definitions/EndpointResolutionRequest"
}
},
{
"in": "header",
"name": "ActivityId",
"description": "A unique ID for correlating the request with your system when a user interacts with your workload.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "RequestId",
"description": "A globally unique ID that helps Fabric correlate your request with our logs. Provide this ID when reporting an issue.",
"required": true,
"type": "string"
},
{
"in": "header",
"name": "Authorization",
"description": "A dual token authorization header that allows the workload to validate the request origin, provide user context, and call other services. This header has the following format: `SubjectAndAppToken1.0 subjectToken=\"delegated token\", appToken=\"S2S token\"`.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Endpoint resolution response",
"schema": {
"$ref": "#/definitions/EndpointResolutionResponse"
}
},
"default": {
"$ref": "#/responses/StandardErrorResponse"
}
}
}
}
},
"security": [],
"tags": []
}