-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
storage.json
762 lines (762 loc) · 24.8 KB
/
storage.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
{
"swagger": "2.0",
"info": {
"title": "StorageManagementClient",
"version": "2015-05-01-preview"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json",
"text/json"
],
"produces": [
"application/json",
"text/json"
],
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability": {
"post": {
"tags": [
"StorageAccounts"
],
"operationId": "StorageAccounts_CheckNameAvailability",
"description": "Checks that account name is valid and is not in use.",
"parameters": [
{
"name": "accountName",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/StorageAccountCheckNameAvailabilityParameters"
},
"description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. "
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/CheckNameAvailabilityResult"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}": {
"put": {
"tags": [
"StorageAccounts"
],
"operationId": "StorageAccounts_Create",
"description": "Asynchronously creates a new storage account with the specified parameters. Existing accounts cannot be updated with this API and should instead use the Update Storage Account API. If an account is already created and subsequent PUT request is issued with exact same set of properties, then HTTP 200 would be returned. ",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group within the user’s subscription."
},
{
"name": "accountName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. "
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/StorageAccountCreateParameters"
},
"description": "The parameters to provide for the created account."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/StorageAccount"
}
},
"202": {
"description": ""
}
},
"x-ms-long-running-operation": true
},
"delete": {
"tags": [
"StorageAccounts"
],
"operationId": "StorageAccounts_Delete",
"description": "Deletes a storage account in Microsoft Azure.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group within the user’s subscription."
},
{
"name": "accountName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. "
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": ""
},
"204": {
"description": ""
}
}
},
"get": {
"tags": [
"StorageAccounts"
],
"operationId": "StorageAccounts_GetProperties",
"description": "Returns the properties for the specified storage account including but not limited to name, account type, location, and account status. The ListKeys operation should be used to retrieve storage keys.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group within the user’s subscription."
},
{
"name": "accountName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. "
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/StorageAccount"
}
}
}
},
"patch": {
"tags": [
"StorageAccounts"
],
"operationId": "StorageAccounts_Update",
"description": "Updates the account type or tags for a storage account. It can also be used to add a custom domain (note that custom domains cannot be added via the Create operation). Only one custom domain is supported per storage account. This API can only be used to update one of tags, accountType, or customDomain per call. To update multiple of these properties, call the API multiple times with one change per call. This call does not change the storage keys for the account. If you want to change storage account keys, use the RegenerateKey operation. The location and name of the storage account cannot be changed after creation.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group within the user’s subscription."
},
{
"name": "accountName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. "
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/StorageAccountUpdateParameters"
},
"description": "The parameters to update on the account. Note that only one property can be changed at a time using this API. "
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/StorageAccount"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys": {
"post": {
"tags": [
"StorageAccounts"
],
"operationId": "StorageAccounts_ListKeys",
"description": "Lists the access keys for the specified storage account.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "accountName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the storage account."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/StorageAccountKeys"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts": {
"get": {
"tags": [
"StorageAccounts"
],
"operationId": "StorageAccounts_List",
"description": "Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/StorageAccountListResult"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts": {
"get": {
"tags": [
"StorageAccounts"
],
"operationId": "StorageAccounts_ListByResourceGroup",
"description": "Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group within the user’s subscription."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/StorageAccountListResult"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey": {
"post": {
"tags": [
"StorageAccounts"
],
"operationId": "StorageAccounts_RegenerateKey",
"description": "Regenerates the access keys for the specified storage account.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group within the user’s subscription."
},
{
"name": "accountName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. "
},
{
"name": "regenerateKey",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/StorageAccountRegenerateKeyParameters"
},
"description": "Specifies name of the key which should be regenerated."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/StorageAccountKeys"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages": {
"get": {
"tags": [
"Usage"
],
"operationId": "Usage_List",
"description": "Gets the current usage count and the limit for the resources under the subscription.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/UsageListResult"
}
}
}
}
}
},
"definitions": {
"StorageAccountCheckNameAvailabilityParameters": {
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"CheckNameAvailabilityResult": {
"properties": {
"nameAvailable": {
"type": "boolean",
"description": "Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used."
},
"reason": {
"type": "string",
"description": "Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false.",
"enum": [
"AccountNameInvalid",
"AlreadyExists"
],
"x-ms-enum": "Reason"
},
"message": {
"type": "string",
"description": "Gets an error message explaining the Reason value in more detail."
}
},
"description": "The CheckNameAvailability operation response."
},
"StorageAccountPropertiesCreateParameters": {
"properties": {
"accountType": {
"type": "string",
"description": "Gets or sets the account type.",
"enum": [
"Standard_LRS",
"Standard_ZRS",
"Standard_GRS",
"Standard_RAGRS",
"Premium_LRS"
],
"x-ms-enum": "AccountType"
}
}
},
"StorageAccountCreateParameters": {
"properties": {
"properties": {
"$ref": "#/definitions/StorageAccountPropertiesCreateParameters"
}
},
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "The parameters to provide for the account."
},
"Endpoints": {
"properties": {
"blob": {
"type": "string",
"description": "Gets the blob endpoint."
},
"queue": {
"type": "string",
"description": "Gets the queue endpoint."
},
"table": {
"type": "string",
"description": "Gets the table endpoint."
}
},
"description": "The URIs that are used to perform a retrieval of a public blob, queue or table object."
},
"CustomDomain": {
"properties": {
"name": {
"type": "string",
"description": "Gets or sets the custom domain name. Name is the CNAME source."
},
"useSubDomain": {
"type": "boolean",
"description": "Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates"
}
},
"description": "The custom domain assigned to this storage account. This can be set via Update."
},
"StorageAccountProperties": {
"properties": {
"provisioningState": {
"type": "string",
"description": "Gets the status of the storage account at the time the operation was called.",
"enum": [
"Creating",
"ResolvingDns",
"Succeeded"
],
"x-ms-enum": "ProvisioningState"
},
"accountType": {
"type": "string",
"description": "Gets the type of the storage account.",
"enum": [
"Standard_LRS",
"Standard_ZRS",
"Standard_GRS",
"Standard_RAGRS",
"Premium_LRS"
],
"x-ms-enum": "AccountType"
},
"primaryEndpoints": {
"$ref": "#/definitions/Endpoints",
"description": "Gets the URLs that are used to perform a retrieval of a public blob, queue or table object.Note that StandardZRS and PremiumLRS accounts only return the blob endpoint."
},
"primaryLocation": {
"type": "string",
"description": "Gets the location of the primary for the storage account."
},
"statusOfPrimary": {
"type": "string",
"description": "Gets the status indicating whether the primary location of the storage account is available or unavailable.",
"enum": [
"Available",
"Unavailable"
],
"x-ms-enum": "AccountStatus"
},
"lastGeoFailoverTime": {
"type": "string",
"format": "date-time",
"description": "Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS."
},
"secondaryLocation": {
"type": "string",
"description": "Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS."
},
"statusOfSecondary": {
"type": "string",
"description": "Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS.",
"enum": [
"Available",
"Unavailable"
],
"x-ms-enum": "AccountStatus"
},
"creationTime": {
"type": "string",
"format": "date-time",
"description": "Gets the creation date and time of the storage account in UTC."
},
"customDomain": {
"$ref": "#/definitions/CustomDomain",
"description": "Gets the user assigned custom domain assigned to this storage account."
},
"secondaryEndpoints": {
"$ref": "#/definitions/Endpoints",
"description": "Gets the URLs that are used to perform a retrieval of a public blob, queue or table object from the secondary location of the storage account. Only available if the accountType is StandardRAGRS."
}
}
},
"StorageAccount": {
"properties": {
"properties": {
"$ref": "#/definitions/StorageAccountProperties"
}
},
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "The storage account."
},
"StorageAccountKeys": {
"properties": {
"key1": {
"type": "string",
"description": "Gets the value of key 1."
},
"key2": {
"type": "string",
"description": "Gets the value of key 2."
}
},
"description": "The access keys for the storage account."
},
"StorageAccountListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/StorageAccount"
},
"description": "Gets the list of storage accounts and their properties."
}
},
"description": "The list storage accounts operation response."
},
"StorageAccountPropertiesUpdateParameters": {
"properties": {
"accountType": {
"type": "string",
"description": "Gets or sets the account type. Note that StandardZRS and PremiumLRS accounts cannot be changed to other account types, and other account types cannot be changed to StandardZRS or PremiumLRS.",
"enum": [
"Standard_LRS",
"Standard_ZRS",
"Standard_GRS",
"Standard_RAGRS",
"Premium_LRS"
],
"x-ms-enum": "AccountType"
},
"customDomain": {
"$ref": "#/definitions/CustomDomain",
"description": "User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property."
}
}
},
"StorageAccountUpdateParameters": {
"properties": {
"properties": {
"$ref": "#/definitions/StorageAccountPropertiesUpdateParameters"
}
},
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "The parameters to update on the account."
},
"StorageAccountRegenerateKeyParameters": {
"properties": {
"keyName": {
"type": "string",
"enum": [
"key1",
"key2"
],
"x-ms-enum": "KeyName"
}
}
},
"UsageName": {
"properties": {
"value": {
"type": "string",
"description": "Gets a string describing the resource name."
},
"localizedValue": {
"type": "string",
"description": "Gets a localized string describing the resource name."
}
},
"description": "The Usage Names."
},
"Usage": {
"properties": {
"unit": {
"type": "string",
"description": "Gets the unit of measurement.",
"enum": [
"Count",
"Bytes",
"Seconds",
"Percent",
"CountsPerSecond",
"BytesPerSecond"
],
"x-ms-enum": "UsageUnit"
},
"currentValue": {
"type": "integer",
"format": "int32",
"description": "Gets the current count of the allocated resources in the subscription."
},
"limit": {
"type": "integer",
"format": "int32",
"description": "Gets the maximum count of the resources that can be allocated in the subscription."
},
"name": {
"$ref": "#/definitions/UsageName",
"description": "Gets the name of the type of usage."
}
},
"description": "Describes Storage Resource Usage."
},
"UsageListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Usage"
},
"description": "Gets or sets the list Storage Resource Usages."
}
},
"description": "The List Usages operation response."
},
"Resource": {
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "Resource Id"
},
"name": {
"readOnly": true,
"type": "string",
"description": "Resource name"
},
"type": {
"readOnly": true,
"type": "string",
"description": "Resource type"
},
"location": {
"type": "string",
"description": "Resource location"
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Resource tags"
}
},
"required": [
"location"
],
"x-ms-external": true
},
"SubResource": {
"properties": {
"id": {
"type": "string",
"description": "Resource Id"
}
},
"x-ms-external": true
}
},
"parameters": {
"SubscriptionIdParameter": {
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string",
"description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call."
},
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Client Api Version."
}
}
}