-
Notifications
You must be signed in to change notification settings - Fork 514
/
Microsoft.Storage.json
255 lines (255 loc) · 8.52 KB
/
Microsoft.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
{
"id": "https://schema.management.azure.com/schemas/2016-01-01/Microsoft.Storage.json#",
"title": "Microsoft.Storage",
"description": "Microsoft Storage Resource Types",
"$schema": "http://json-schema.org/draft-04/schema#",
"resourceDefinitions": {
"storageAccounts": {
"description": "Microsoft.Storage/storageAccounts",
"properties": {
"apiVersion": {
"enum": [
"2016-01-01"
],
"type": "string"
},
"kind": {
"description": "Required. Indicates the type of storage account.",
"oneOf": [
{
"enum": [
"Storage",
"BlobStorage"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"location": {
"description": "Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed.",
"type": "string"
},
"name": {
"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.",
"maxLength": 24,
"minLength": 3,
"type": "string"
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/StorageAccountPropertiesCreateParameters"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"sku": {
"description": "Required. Gets or sets the sku name.",
"oneOf": [
{
"$ref": "#/definitions/Sku"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"tags": {
"description": "Gets or sets a list of key value pairs that describe the resource. These tags can be used for 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 with a length no greater than 128 characters and a value with a length no greater than 256 characters.",
"oneOf": [
{
"additionalProperties": {
"type": "string"
},
"properties": {},
"type": "object"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.Storage/storageAccounts"
],
"type": "string"
}
},
"required": [
"name",
"apiVersion",
"type"
],
"type": "object"
}
},
"definitions": {
"CustomDomain": {
"description": "The custom domain assigned to this storage account. This can be set via Update.",
"properties": {
"name": {
"description": "Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.",
"type": "string"
},
"useSubDomainName": {
"description": "Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.",
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"required": [
"name"
],
"type": "object"
},
"Encryption": {
"description": "The encryption settings on the storage account.",
"properties": {
"keySource": {
"description": "The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage",
"oneOf": [
{
"enum": [
"Microsoft.Storage"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"services": {
"description": "List of services which support encryption.",
"oneOf": [
{
"$ref": "#/definitions/EncryptionServices"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"required": [
"keySource"
],
"type": "object"
},
"EncryptionService": {
"description": "A service that allows server-side encryption to be used.",
"properties": {
"enabled": {
"description": "A boolean indicating whether or not the service encrypts the data as it is stored.",
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"EncryptionServices": {
"description": "A list of services that support encryption.",
"properties": {
"blob": {
"description": "The encryption function of the blob storage service.",
"oneOf": [
{
"$ref": "#/definitions/EncryptionService"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"Sku": {
"description": "The SKU of the storage account.",
"properties": {
"name": {
"description": "Gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType.",
"oneOf": [
{
"enum": [
"Standard_LRS",
"Standard_GRS",
"Standard_RAGRS",
"Standard_ZRS",
"Premium_LRS"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"required": [
"name"
],
"type": "object"
},
"StorageAccountPropertiesCreateParameters": {
"properties": {
"accessTier": {
"description": "Required for storage accounts where kind = BlobStorage. The access tier used for billing.",
"oneOf": [
{
"enum": [
"Hot",
"Cool"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"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.",
"oneOf": [
{
"$ref": "#/definitions/CustomDomain"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"encryption": {
"description": "Provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted.",
"oneOf": [
{
"$ref": "#/definitions/Encryption"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
}
}
}