-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
file.json
604 lines (604 loc) · 19.8 KB
/
file.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
{
"swagger": "2.0",
"info": {
"version": "2019-04-01",
"title": "StorageManagementClient",
"description": "The Azure Storage Management API."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices": {
"get": {
"tags": [
"FileService"
],
"operationId": "FileServices_List",
"x-ms-examples": {
"ListFileServices": {
"$ref": "./examples/FileServicesList.json"
}
},
"description": "List all file services in storage accounts",
"parameters": [
{
"$ref": "./storage.json#/parameters/ResourceGroupName"
},
{
"$ref": "./storage.json#/parameters/StorageAccountName"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK -- List file services operation completed successfully.",
"schema": {
"$ref": "#/definitions/FileServiceItems"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}": {
"put": {
"tags": [
"FileService"
],
"operationId": "FileServices_SetServiceProperties",
"x-ms-examples": {
"PutFileServices": {
"$ref": "./examples/FileServicesPut.json"
}
},
"description": "Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. ",
"parameters": [
{
"$ref": "./storage.json#/parameters/ResourceGroupName"
},
{
"$ref": "./storage.json#/parameters/StorageAccountName"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/FileServicesName"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/FileServiceProperties"
},
"description": "The properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules."
}
],
"responses": {
"200": {
"description": "OK -- Sets The properties of a storage account’s File service successfully.",
"schema": {
"$ref": "#/definitions/FileServiceProperties"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
},
"get": {
"tags": [
"FileService"
],
"operationId": "FileServices_GetServiceProperties",
"x-ms-examples": {
"GetFileServices": {
"$ref": "./examples/FileServicesGet.json"
}
},
"description": "Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.",
"parameters": [
{
"$ref": "./storage.json#/parameters/ResourceGroupName"
},
{
"$ref": "./storage.json#/parameters/StorageAccountName"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/FileServicesName"
}
],
"responses": {
"200": {
"description": "OK -- returned the properties of a storage account’s File service.",
"schema": {
"$ref": "#/definitions/FileServiceProperties"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares": {
"get": {
"tags": [
"FileShares"
],
"operationId": "FileShares_List",
"x-ms-examples": {
"ListShares": {
"$ref": "./examples/FileSharesList.json"
}
},
"description": "Lists all shares.",
"parameters": [
{
"$ref": "./storage.json#/parameters/ResourceGroupName"
},
{
"$ref": "./storage.json#/parameters/StorageAccountName"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"name": "$skipToken",
"in": "query",
"type": "string",
"description": "Optional. Continuation token for the list operation."
},
{
"name": "$maxpagesize",
"in": "query",
"type": "string",
"description": "Optional. Specified maximum number of shares that can be included in the list."
},
{
"name": "$filter",
"in": "query",
"type": "string",
"description": "Optional. When specified, only share names starting with the filter will be listed."
}
],
"responses": {
"200": {
"description": "OK -- List Shares operation completed successfully.",
"schema": {
"$ref": "#/definitions/FileShareItems"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}": {
"put": {
"tags": [
"FileShares"
],
"operationId": "FileShares_Create",
"x-ms-examples": {
"PutShares": {
"$ref": "./examples/FileSharesPut.json"
}
},
"description": "Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share. ",
"parameters": [
{
"$ref": "./storage.json#/parameters/ResourceGroupName"
},
{
"$ref": "./storage.json#/parameters/StorageAccountName"
},
{
"$ref": "#/parameters/ShareName"
},
{
"name": "fileShare",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/FileShare"
},
"description": "Properties of the file share to create."
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"201": {
"description": "Created -- Create Share operation completed successfully.",
"schema": {
"$ref": "#/definitions/FileShare"
}
},
"200": {
"description": "OK -- The Share is already created.",
"schema": {
"$ref": "#/definitions/FileShare"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
},
"patch": {
"tags": [
"FileShares"
],
"operationId": "FileShares_Update",
"x-ms-examples": {
"UpdateShares": {
"$ref": "./examples/FileSharesPatch.json"
}
},
"description": "Updates share properties as specified in request body. Properties not mentioned in the request will not be changed. Update fails if the specified share does not already exist. ",
"parameters": [
{
"$ref": "./storage.json#/parameters/ResourceGroupName"
},
{
"$ref": "./storage.json#/parameters/StorageAccountName"
},
{
"$ref": "#/parameters/ShareName"
},
{
"name": "fileShare",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/FileShare"
},
"description": "Properties to update for the file share."
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK -- Update Share operation completed successfully.",
"schema": {
"$ref": "#/definitions/FileShare",
"description": "Properties of the updated file share."
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
},
"get": {
"tags": [
"FileShares"
],
"operationId": "FileShares_Get",
"x-ms-examples": {
"GetShares": {
"$ref": "./examples/FileSharesGet.json"
}
},
"description": "Gets properties of a specified share.",
"parameters": [
{
"$ref": "./storage.json#/parameters/ResourceGroupName"
},
{
"$ref": "./storage.json#/parameters/StorageAccountName"
},
{
"$ref": "#/parameters/ShareName"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK -- Get Share operation completed successfully.",
"schema": {
"$ref": "#/definitions/FileShare"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
},
"delete": {
"tags": [
"FileShares"
],
"operationId": "FileShares_Delete",
"x-ms-examples": {
"DeleteShares": {
"$ref": "./examples/FileSharesDelete.json"
}
},
"description": "Deletes specified share under its account.",
"parameters": [
{
"$ref": "./storage.json#/parameters/ResourceGroupName"
},
{
"$ref": "./storage.json#/parameters/StorageAccountName"
},
{
"$ref": "#/parameters/ShareName"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK -- Delete Share operation completed successfully."
},
"204": {
"description": "No Content -- The Share not exist."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
"FileServiceItems": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/FileServiceProperties"
},
"description": "List of file services returned.",
"readOnly": true
}
}
},
"FileServiceProperties": {
"properties": {
"properties": {
"properties": {
"cors": {
"$ref": "../../../../../storage/resource-manager/Microsoft.Storage/stable/2019-04-01/blob.json#/definitions/CorsRules",
"description": "Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the File service."
}
},
"x-ms-client-flatten": true,
"x-ms-client-name": "FileServiceProperties",
"description": "The properties of File services in storage account."
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"description": "The properties of File services in storage account."
},
"FileShare": {
"properties": {
"properties": {
"$ref": "#/definitions/FileShareProperties",
"x-ms-client-flatten": true,
"x-ms-client-name": "FileShareProperties",
"description": "Properties of the file share."
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource"
}
],
"description": "Properties of the file share, including Id, resource name, resource type, Etag."
},
"FileShareItem": {
"properties": {
"properties": {
"$ref": "#/definitions/FileShareProperties",
"x-ms-client-flatten": true,
"description": "The file share properties be listed out."
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource"
}
],
"description": "The file share properties be listed out."
},
"FileShareItems": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/FileShareItem"
},
"description": "List of file shares returned.",
"readOnly": true
},
"nextLink": {
"type": "string",
"description": "Request URL that can be used to query next page of shares. Returned when total number of requested shares exceed maximum page size.",
"readOnly": true
}
},
"description": "Response schema. Contains list of shares returned, and if paging is requested or required, a URL to next page of shares."
},
"FileShareProperties": {
"properties": {
"lastModifiedTime": {
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "Returns the date and time the share was last modified."
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "A name-value pair to associate with the share as metadata."
},
"shareQuota": {
"type": "integer",
"minimum": 1,
"maximum": 5120,
"description": "The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120)."
}
},
"description": "The properties of the file share."
},
"ErrorResponse": {
"x-ms-external": true,
"properties": {
"error": {
"$ref": "#/definitions/ErrorResponseBody"
}
},
"description": "An error response from the Storage service."
},
"ErrorResponseBody": {
"x-ms-external": true,
"properties": {
"code": {
"type": "string",
"description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically."
},
"message": {
"type": "string",
"description": "A message describing the error, intended to be suitable for display in a user interface."
},
"target": {
"type": "string",
"description": "The target of the particular error. For example, the name of the property in error."
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/ErrorResponseBody"
},
"description": "A list of additional details about the error."
}
},
"description": "An error response from the Storage service."
}
},
"parameters": {
"FileServicesName": {
"name": "FileServicesName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the file Service within the specified storage account. File Service Name must be \"default\"",
"enum": [
"default"
],
"x-ms-parameter-location": "method"
},
"ShareName": {
"name": "shareName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.",
"maxLength": 63,
"minLength": 3,
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
]
}