-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathopenapi.json
444 lines (444 loc) · 12.8 KB
/
openapi.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
{
"swagger": "2.0",
"schemes": [
"https"
],
"host": "management.azure.com",
"info": {
"title": "ComputeManagementConvenienceClient",
"version": "2015-11-01",
"x-apisguru-categories": [
"cloud"
],
"x-logo": {
"url": "https://api.apis.guru/v2/cache/logo/https_assets.onestore.ms_cdnfiles_onestorerolling-1606-01000_shell_v3_images_logo_microsoft.png"
},
"x-origin": [
{
"format": "swagger",
"url": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/compute/quickstart-templates/swagger.json",
"version": "2.0"
}
],
"x-preferred": true,
"x-providerName": "azure.com",
"x-serviceName": "compute-swagger",
"x-tags": [
"Azure",
"Microsoft"
],
"x-datafire": {
"name": "azure_compute_swagger",
"type": "openapi"
}
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"securityDefinitions": {
"azure_auth": {
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"description": "Azure Active Directory OAuth2 Flow",
"flow": "implicit",
"scopes": {
"user_impersonation": "impersonate your user account"
},
"type": "oauth2"
}
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"parameters": {
"ApiVersionParameter": {
"description": "Client Api Version.",
"in": "query",
"name": "api-version",
"required": true,
"type": "string"
},
"SubscriptionIdParameter": {
"description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
"in": "path",
"name": "subscriptionId",
"required": true,
"type": "string"
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}": {
"put": {
"description": "Create a named template deployment using a template.",
"operationId": "VirtualMachines_QuickCreate",
"parameters": [
{
"description": "The name of the resource group. The name is case insensitive.",
"in": "path",
"name": "resourceGroupName",
"pattern": "^[-\\w\\._]+$",
"required": true,
"type": "string"
},
{
"description": "The name of the deployment.",
"in": "path",
"name": "deploymentName",
"required": true,
"type": "string"
},
{
"description": "Additional parameters supplied to the operation.",
"in": "body",
"name": "parameters",
"required": false,
"schema": {
"$ref": "#/definitions/Deployment"
}
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/DeploymentExtended"
}
},
"201": {
"description": "",
"schema": {
"$ref": "#/definitions/DeploymentExtended"
}
}
},
"tags": [
"Deployments"
],
"x-ms-long-running-operation": true
}
}
},
"definitions": {
"BasicDependency": {
"description": "Deployment dependency information.",
"properties": {
"id": {
"description": "Gets or sets the ID of the dependency.",
"type": "string"
},
"resourceName": {
"description": "Gets or sets the dependency resource name.",
"type": "string"
},
"resourceType": {
"description": "Gets or sets the dependency resource type.",
"type": "string"
}
}
},
"Dependency": {
"description": "Deployment dependency information.",
"properties": {
"dependsOn": {
"description": "Gets the list of dependencies.",
"items": {
"$ref": "#/definitions/BasicDependency"
},
"type": "array"
},
"id": {
"description": "Gets or sets the ID of the dependency.",
"type": "string"
},
"resourceName": {
"description": "Gets or sets the dependency resource name.",
"type": "string"
},
"resourceType": {
"description": "Gets or sets the dependency resource type.",
"type": "string"
}
}
},
"Deployment": {
"description": "Deployment operation parameters.",
"properties": {
"properties": {
"$ref": "#/definitions/DeploymentProperties",
"description": "Gets or sets the deployment properties.",
"x-ms-client-flatten": true
}
}
},
"DeploymentExtended": {
"description": "Deployment information.",
"properties": {
"id": {
"description": "Gets or sets the ID of the deployment.",
"type": "string"
},
"name": {
"description": "Gets or sets the name of the deployment.",
"type": "string"
},
"properties": {
"$ref": "#/definitions/DeploymentPropertiesExtended",
"description": "Gets or sets deployment properties."
}
},
"required": [
"name"
]
},
"DeploymentParameters": {
"properties": {
"adminPassword": {
"properties": {
"value": {
"description": "Password for the Virtual Machine.",
"format": "password",
"type": "string"
}
},
"required": [
"value"
],
"type": "object",
"x-ms-client-flatten": true
},
"adminUsername": {
"properties": {
"value": {
"description": "Username for the Virtual Machine.",
"type": "string"
}
},
"required": [
"value"
],
"type": "object",
"x-ms-client-flatten": true
},
"dnsLabelPrefix": {
"properties": {
"value": {
"description": "Unique DNS Name for the Public IP used to access the Virtual Machine.",
"type": "string"
}
},
"required": [
"value"
],
"type": "object",
"x-ms-client-flatten": true
},
"osVersion": {
"description": "Deployment operation parameters.",
"properties": {
"value": {
"default": "14.04.2-LTS",
"description": "The OS version for the VM. This will pick a fully patched image of this given OS version.",
"enum": [
"12.04.5-LTS",
"14.04.2-LTS",
"15.10"
],
"type": "string"
}
},
"required": [
"value"
],
"type": "object",
"x-ms-client-flatten": true
}
}
},
"DeploymentProperties": {
"description": "Deployment properties.",
"properties": {
"mode": {
"description": "Gets or sets the deployment mode.",
"enum": [
"Incremental"
],
"type": "string"
},
"parameters": {
"$ref": "#/definitions/DeploymentParameters",
"description": "Deployment parameters. Use only one of Parameters or ParametersLink.",
"x-ms-client-flatten": true
},
"templateLink": {
"$ref": "#/definitions/TemplateLink",
"description": "Gets or sets the URI referencing the template. Use only one of Template or TemplateLink."
}
},
"required": [
"templateLink",
"mode"
]
},
"DeploymentPropertiesExtended": {
"description": "Deployment properties with additional details.",
"properties": {
"correlationId": {
"description": "Gets or sets the correlation ID of the deployment.",
"type": "string"
},
"dependencies": {
"description": "Gets the list of deployment dependencies.",
"items": {
"$ref": "#/definitions/Dependency"
},
"type": "array"
},
"mode": {
"description": "Gets or sets the deployment mode.",
"enum": [
"Incremental",
"Complete"
],
"type": "string",
"x-ms-enum": {
"modelAsString": false,
"name": "DeploymentMode"
}
},
"outputs": {
"description": "Gets or sets key/value pairs that represent deployment output.",
"type": "object"
},
"parameters": {
"description": "Deployment parameters. Use only one of Parameters or ParametersLink.",
"type": "object"
},
"parametersLink": {
"$ref": "#/definitions/ParametersLink",
"description": "Gets or sets the URI referencing the parameters. Use only one of Parameters or ParametersLink."
},
"providers": {
"description": "Gets the list of resource providers needed for the deployment.",
"items": {
"$ref": "#/definitions/Provider"
},
"type": "array"
},
"provisioningState": {
"description": "Gets or sets the state of the provisioning.",
"type": "string"
},
"template": {
"description": "Gets or sets the template content. Use only one of Template or TemplateLink.",
"type": "object"
},
"templateLink": {
"$ref": "#/definitions/TemplateLink",
"description": "Gets or sets the URI referencing the template. Use only one of Template or TemplateLink."
},
"timestamp": {
"description": "Gets or sets the timestamp of the template deployment.",
"format": "date-time",
"type": "string"
}
}
},
"ParametersLink": {
"description": "Entity representing the reference to the deployment parameters.",
"properties": {
"contentVersion": {
"description": "If included it must match the ContentVersion in the template.",
"type": "string"
},
"uri": {
"description": "URI referencing the template.",
"type": "string"
}
},
"required": [
"uri"
]
},
"Provider": {
"description": "Resource provider information.",
"properties": {
"id": {
"description": "Gets or sets the provider id.",
"type": "string"
},
"namespace": {
"description": "Gets or sets the namespace of the provider.",
"type": "string"
},
"registrationState": {
"description": "Gets or sets the registration state of the provider.",
"type": "string"
},
"resourceTypes": {
"description": "Gets or sets the collection of provider resource types.",
"items": {
"$ref": "#/definitions/ProviderResourceType"
},
"type": "array"
}
}
},
"ProviderResourceType": {
"description": "Resource type managed by the resource provider.",
"properties": {
"apiVersions": {
"description": "Gets or sets the api version.",
"items": {
"type": "string"
},
"type": "array"
},
"locations": {
"description": "Gets or sets the collection of locations where this resource type can be created in.",
"items": {
"type": "string"
},
"type": "array"
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "Gets or sets the properties.",
"type": "object"
},
"resourceType": {
"description": "Gets or sets the resource type.",
"type": "string"
}
}
},
"TemplateLink": {
"description": "Entity representing the reference to the template.",
"properties": {
"uri": {
"description": "URI referencing the template.",
"enum": [
"https://raw.githubusercontent.com/stankovski/azure-rest-api-specs/master/arm-compute/quickstart-templates/vm-simple-linux.json"
],
"type": "string"
}
},
"required": [
"uri"
]
}
}
}