forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 8
/
storageactions.json
1098 lines (1098 loc) · 38.6 KB
/
storageactions.json
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
{
"swagger": "2.0",
"info": {
"title": "StorageActionsManagementClient",
"description": "The Azure Storage Actions Management API.",
"version": "2023-01-01"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/providers/Microsoft.StorageActions/operations": {
"get": {
"tags": [
"Storage Actions Operations"
],
"description": "Lists all of the available Storage Actions Rest API operations.",
"operationId": "Operations_List",
"x-ms-examples": {
"OperationsList": {
"$ref": "./examples/misc/OperationsList.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}": {
"put": {
"tags": [
"StorageTasks"
],
"description": "Asynchronously creates a new storage task resource with the specified parameters. If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated. If a storage task is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.",
"operationId": "StorageTasks_Create",
"x-ms-examples": {
"PutStorageTask": {
"$ref": "./examples/storageTasksCrud/PutStorageTask.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/StorageTaskName"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/StorageTask"
},
"description": "The parameters to create a Storage Task."
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK -- Update storage task with the same properties specified in the request body.",
"schema": {
"$ref": "#/definitions/StorageTask"
}
},
"201": {
"description": "OK -- Create storage task with the same properties specified in the request body.",
"schema": {
"$ref": "#/definitions/StorageTask"
}
},
"202": {
"description": "Accepted -- Create or update request accepted; operation will complete asynchronously.",
"headers": {
"Location": {
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
},
"delete": {
"tags": [
"StorageTasks"
],
"description": "Delete the storage task resource.",
"operationId": "StorageTasks_Delete",
"x-ms-examples": {
"DeleteStorageTask": {
"$ref": "./examples/storageTasksCrud/DeleteStorageTask.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/StorageTaskName"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"202": {
"description": "Accepted -- Delete request accepted; operation will complete asynchronously.",
"headers": {
"Location": {
"type": "string"
}
}
},
"204": {
"description": "NoContent -- specified storage task does not exist."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
},
"get": {
"tags": [
"StorageTasks"
],
"description": "Get the storage task properties",
"operationId": "StorageTasks_Get",
"x-ms-examples": {
"GetStorageTask": {
"$ref": "./examples/storageTasksCrud/GetStorageTask.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/StorageTaskName"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK -- properties retrieved successfully for the storage task.",
"schema": {
"$ref": "#/definitions/StorageTask"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
}
},
"patch": {
"tags": [
"StorageTasks"
],
"operationId": "StorageTasks_Update",
"description": "Update storage task properties",
"x-ms-examples": {
"PatchStorageTask": {
"$ref": "./examples/storageTasksCrud/PatchStorageTask.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/StorageTaskName"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/StorageTaskUpdateParameters"
},
"description": "The parameters to provide to update the storage task resource."
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK -- returned when the update request body had no changes.",
"schema": {
"$ref": "#/definitions/StorageTask"
}
},
"202": {
"description": "Accepted -- update request accepted; operation will complete asynchronously.",
"headers": {
"Location": {
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.StorageActions/storageTasks": {
"get": {
"tags": [
"StorageTasks"
],
"operationId": "StorageTasks_ListBySubscription",
"description": "Lists all the storage tasks available under the subscription.",
"x-ms-examples": {
"ListStorageTasksBySubscription": {
"$ref": "./examples/storageTasksList/ListStorageTasksBySubscription.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK -- List of storage tasks was retrieved and returned successfully.",
"schema": {
"$ref": "#/definitions/StorageTasksListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks": {
"get": {
"tags": [
"StorageTasks"
],
"operationId": "StorageTasks_ListByResourceGroup",
"description": "Lists all the storage tasks available under the given resource group.",
"x-ms-examples": {
"ListStorageTasksByResourceGroup": {
"$ref": "./examples/storageTasksList/ListStorageTasksByResourceGroup.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK -- List of storage tasks in the given resource group retrieved and returned successfully.",
"schema": {
"$ref": "#/definitions/StorageTasksListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}/storageTaskAssignments": {
"get": {
"tags": [
"StorageTasks"
],
"operationId": "StorageTaskAssignment_List",
"description": "Lists Resource IDs of the Storage Task Assignments associated with this Storage Task.",
"x-ms-examples": {
"ListStorageTaskAssignmentsByResourceGroup": {
"$ref": "./examples/storageTasksList/ListStorageTaskAssignmentIds.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/StorageTaskName"
},
{
"name": "$maxpagesize",
"in": "query",
"type": "integer",
"format": "int32",
"description": "Optional, specifies the maximum number of Storage Task Assignment Resource IDs to be included in the list response."
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK -- List of Storage Task Assignment Resource IDs retrieved and returned successfully.",
"schema": {
"$ref": "#/definitions/StorageTaskAssignmentsListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}/reports": {
"get": {
"tags": [
"StorageTasks"
],
"operationId": "StorageTasksReport_List",
"description": "Fetch the storage tasks run report summary for each assignment.",
"x-ms-examples": {
"ListStorageTasksByResourceGroup": {
"$ref": "./examples/storageTasksList/ListStorageTasksRunReportSummary.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/StorageTaskName"
},
{
"name": "$maxpagesize",
"in": "query",
"type": "integer",
"format": "int32",
"description": "Optional, specifies the maximum number of Storage Task Assignment Resource IDs to be included in the list response."
},
{
"name": "$filter",
"in": "query",
"type": "string",
"description": "Optional. When specified, it can be used to query using reporting properties."
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK -- Storage tasks run report summary retrieved and returned successfully.",
"schema": {
"$ref": "#/definitions/StorageTaskReportSummary"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.StorageActions/locations/{location}/previewActions": {
"post": {
"tags": [
"StorageTasks"
],
"operationId": "StorageTasks_PreviewActions",
"description": "Runs the input conditions against input object metadata properties and designates matched objects in response.",
"x-ms-examples": {
"PerformStorageTaskActionsPreview": {
"$ref": "./examples/misc/PerformStorageTaskActionsPreview.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The location to perform preview of the actions."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/StorageTaskPreviewAction"
},
"description": "The parameters to preview action condition."
}
],
"responses": {
"200": {
"description": "OK -- Storage tasks preview action was performed and returned successfully.",
"schema": {
"$ref": "#/definitions/StorageTaskPreviewAction"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
"StorageTask": {
"type": "object",
"properties": {
"identity": {
"$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity",
"description": "The managed service identity of the resource."
},
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/StorageTaskProperties",
"description": "Properties of the storage task."
}
},
"required": [
"identity",
"properties"
],
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource"
}
],
"description": "Represents Storage Task."
},
"StorageTaskUpdateParameters": {
"type": "object",
"properties": {
"identity": {
"$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity",
"description": "The identity of the resource."
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters."
},
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/StorageTaskProperties",
"description": "Properties of the storage task."
}
},
"description": "Parameters of the storage task update request"
},
"StorageTaskProperties": {
"type": "object",
"properties": {
"taskVersion": {
"readOnly": true,
"type": "integer",
"minimum": 1,
"maximum": 1,
"format": "int64",
"description": "Storage task version."
},
"enabled": {
"type": "boolean",
"description": "Storage Task is enabled when set to true and disabled when set to false"
},
"description": {
"type": "string",
"description": "Text that describes the purpose of the storage task"
},
"action": {
"$ref": "#/definitions/StorageTaskAction",
"description": "The storage task action that is executed"
},
"provisioningState": {
"readOnly": true,
"type": "string",
"description": "Represents the provisioning state of the storage task.",
"enum": [
"ValidateSubscriptionQuotaBegin",
"ValidateSubscriptionQuotaEnd",
"Creating",
"Succeeded",
"Deleting",
"Canceled",
"Failed"
],
"x-ms-enum": {
"name": "ProvisioningState",
"modelAsString": false
}
},
"creationTimeInUtc": {
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "The creation date and time of the storage task in UTC."
}
},
"required": [
"enabled",
"description",
"action"
],
"description": "Properties of the storage task."
},
"StorageTaskAction": {
"type": "object",
"properties": {
"if": {
"$ref": "#/definitions/IfCondition",
"description": "The if block of storage task operation"
},
"else": {
"$ref": "#/definitions/ElseCondition",
"description": "The else block of storage task operation"
}
},
"required": [
"if"
],
"description": "The storage task action represents conditional statements and operations to be performed on target objects."
},
"IfCondition": {
"type": "object",
"properties": {
"condition": {
"type": "string",
"description": "Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators."
},
"operations": {
"type": "array",
"items": {
"$ref": "#/definitions/StorageTaskOperation"
},
"x-ms-identifiers": [],
"description": "List of operations to execute when the condition predicate satisfies."
}
},
"required": [
"condition",
"operations"
],
"description": "The if block of storage task operation"
},
"ElseCondition": {
"type": "object",
"properties": {
"operations": {
"type": "array",
"items": {
"$ref": "#/definitions/StorageTaskOperation"
},
"x-ms-identifiers": [],
"description": "List of operations to execute in the else block"
}
},
"required": [
"operations"
],
"description": "The else block of storage task operation"
},
"StorageTaskOperation": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The operation to be performed on the object.",
"enum": [
"SetBlobTier",
"SetBlobTags",
"SetBlobImmutabilityPolicy",
"SetBlobLegalHold",
"SetBlobExpiry",
"DeleteBlob",
"UndeleteBlob"
],
"x-ms-enum": {
"name": "StorageTaskOperationName",
"modelAsString": true
}
},
"parameters": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Key-value parameters for the operation."
},
"onSuccess": {
"type": "string",
"description": "Action to be taken when the operation is successful for a object.",
"enum": [
"continue"
],
"x-ms-enum": {
"name": "onSuccess",
"modelAsString": false
}
},
"onFailure": {
"type": "string",
"description": "Action to be taken when the operation fails for a object.",
"enum": [
"break"
],
"x-ms-enum": {
"name": "onFailure",
"modelAsString": false
}
}
},
"required": [
"name"
],
"description": "Represents an operation to be performed on the object"
},
"StorageTasksListResult": {
"type": "object",
"properties": {
"value": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/StorageTask"
},
"x-ms-identifiers": [],
"description": "Gets the list of storage tasks and their properties."
},
"nextLink": {
"type": "string",
"description": "Request URL that can be used to query next page of storage tasks. Returned when total number of requested storage tasks exceed maximum page size.",
"readOnly": true
}
},
"description": "The response from the List Storage Task operation."
},
"StorageTaskAssignmentsListResult": {
"type": "object",
"properties": {
"value": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/StorageTaskAssignment"
},
"x-ms-identifiers": [],
"description": "List of Storage Task Assignment Resource IDs associated with this Storage Task."
},
"nextLink": {
"type": "string",
"description": "Request URL that can be used to query next page of Resource IDs. Returned when total number of requested Resource IDs exceed maximum page size.",
"readOnly": true
}
},
"description": "The response from the List Storage Tasks operation."
},
"StorageTaskAssignment": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "arm-id",
"description": "Resource ID of the Storage Task Assignment.",
"readOnly": true
}
},
"description": "Storage Task Assignment associated with this Storage Task."
},
"StorageTaskReportSummary": {
"type": "object",
"properties": {
"value": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/StorageTaskReportInstance"
},
"x-ms-identifiers": [],
"description": "Gets storage tasks run result summary."
},
"nextLink": {
"type": "string",
"description": "Request URL that can be used to query next page of storage task run results summary. Returned when the number of run instances and summary reports exceed maximum page size.",
"readOnly": true
}
},
"description": "Fetch Storage Tasks Run Summary."
},
"StorageTaskReportInstance": {
"type": "object",
"properties": {
"properties": {
"$ref": "#/definitions/StorageTaskReportProperties"
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
}
],
"description": "Storage Tasks run report instance"
},
"StorageTaskReportProperties": {
"type": "object",
"properties": {
"taskAssignmentId": {
"readOnly": true,
"type": "string",
"format": "arm-id",
"x-ms-arm-id-details": {
"allowedResources": [
{
"type": "Microsoft.Storage/storageAccounts/storageTaskAssignments"
}
]
},
"description": "Resource ID of the Storage Task Assignment associated with this reported run."
},
"storageAccountId": {
"readOnly": true,
"type": "string",
"format": "arm-id",
"x-ms-arm-id-details": {
"allowedResources": [
{
"type": "Microsoft.Storage/storageAccounts"
}
]
},
"description": "Resource ID of the Storage Account where this reported run executed."
},
"startTime": {
"readOnly": true,
"type": "string",
"description": "Start time of the run instance. Filter options such as startTime gt '2023-06-26T20:51:24.4494016Z' and other comparison operators can be used as described for DateTime properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators"
},
"finishTime": {
"readOnly": true,
"type": "string",
"description": "End time of the run instance. Filter options such as startTime gt '2023-06-26T20:51:24.4494016Z' and other comparison operators can be used as described for DateTime properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators"
},
"objectsTargetedCount": {
"readOnly": true,
"type": "string",
"description": "Total number of objects that meet the condition as defined in the storage task assignment execution context. Filter options such as objectsTargetedCount gt 50 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators"
},
"objectsOperatedOnCount": {
"readOnly": true,
"type": "string",
"description": "Total number of objects that meet the storage tasks condition and were operated upon. Filter options such as objectsOperatedOnCount ge 100 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators"
},
"objectFailedCount": {
"readOnly": true,
"type": "string",
"description": "Total number of objects where task operation failed when was attempted. Filter options such as objectFailedCount eq 0 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators"
},
"objectsSucceededCount": {
"readOnly": true,
"type": "string",
"description": "Total number of objects where task operation succeeded when was attempted.Filter options such as objectsSucceededCount gt 150 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators"
},
"runStatusError": {
"readOnly": true,
"type": "string",
"description": "Well known Azure Storage error code that represents the error encountered during execution of the run instance."
},
"runStatusEnum": {
"readOnly": true,
"type": "string",
"enum": [
"InProgress",
"Finished"
],
"x-ms-enum": {
"name": "RunStatusEnum",
"modelAsString": true
},
"description": "Represents the status of the execution."
},
"summaryReportPath": {
"readOnly": true,
"type": "string",
"description": "Full path to the verbose report stored in the reporting container as specified in the assignment execution context for the storage account. "
},
"taskId": {
"readOnly": true,
"type": "string",
"format": "arm-id",
"x-ms-arm-id-details": {
"allowedResources": [
{
"type": "Microsoft.StorageActions/storageTasks"
}
]
},
"description": "Resource ID of the Storage Task applied during this run."
},
"taskVersion": {
"readOnly": true,
"type": "string",
"description": "Storage Task Version"
},
"runResult": {
"readOnly": true,
"type": "string",
"enum": [
"Succeeded",
"Failed"
],
"x-ms-enum": {
"name": "RunResult",
"modelAsString": true
},
"description": "Represents the overall result of the execution for the run instance"
}
},
"description": "Storage task execution report for a run instance."
},
"StorageTaskPreviewAction": {
"type": "object",
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/StorageTaskPreviewActionProperties",
"description": "Properties of the storage task preview."
}
},
"required": [
"properties"
],
"description": "Storage Task Preview Action."
},
"StorageTaskPreviewActionProperties": {
"type": "object",
"properties": {
"container": {
"type": "object",
"$ref": "#/definitions/StorageTaskPreviewContainerProperties",
"description": "Properties of a sample container to test for a match with the preview action."
},
"blobs": {
"type": "array",
"items": {
"$ref": "#/definitions/StorageTaskPreviewBlobProperties"
},
"x-ms-identifiers": [],
"description": "Properties of some sample blobs in the container to test for matches with the preview action."
},
"action": {
"type": "object",
"$ref": "#/definitions/StorageTaskPreviewActionCondition",
"description": "Preview action to test"
}
},
"required": [
"container",
"blobs",
"action"
],
"description": "Storage task preview action properties."
},
"StorageTaskPreviewActionCondition": {
"type": "object",
"properties": {
"if": {
"$ref": "#/definitions/StorageTaskPreviewActionIfCondition",
"description": "The condition to be tested for a match with container and blob properties."
},
"elseBlockExists": {
"type": "boolean",
"description": "Specify whether the else block is present in the condition."
}
},
"required": [
"if",
"elseBlockExists"
],
"description": "Represents the storage task conditions to be tested for a match with container and blob properties."
},
"StorageTaskPreviewActionIfCondition": {
"type": "object",
"properties": {
"condition": {
"type": "string",
"description": "Storage task condition to bes tested for a match."
}