-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
assignmentOperation.json
341 lines (341 loc) · 10.2 KB
/
assignmentOperation.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
{
"swagger": "2.0",
"info": {
"title": "BlueprintClient",
"description": "Azure Blueprints Client provides access to blueprint definitions, assignments, and artifacts, and related blueprint operations.",
"version": "2018-11-01-preview"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"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"
}
}
},
"paths": {
"/{resourceScope}/providers/Microsoft.Blueprint/blueprintAssignments/{assignmentName}/assignmentOperations": {
"get": {
"tags": [
"AssignmentOperations"
],
"operationId": "AssignmentOperations_List",
"description": "List operations for given blueprint assignment within a subscription or a management group.",
"x-ms-examples": {
"Assignment at subscription scope": {
"$ref": "./examples/subscriptionBPAssignment/BlueprintAssignmentOperation_List.json"
},
"Assignment at management group scope": {
"$ref": "./examples/managementGroupBPAssignment/BlueprintAssignmentOperation_List.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ScopeParameter"
},
{
"$ref": "#/parameters/AssignmentNameParameter"
}
],
"responses": {
"200": {
"description": "OK -- all blueprint assignment operations retrieved.",
"schema": {
"$ref": "#/definitions/AssignmentOperationList"
}
},
"default": {
"description": "Blueprints error response.",
"schema": {
"$ref": "blueprintDefinition.json#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/{resourceScope}/providers/Microsoft.Blueprint/blueprintAssignments/{assignmentName}/assignmentOperations/{assignmentOperationName}": {
"get": {
"tags": [
"AssignmentOperations"
],
"operationId": "AssignmentOperations_Get",
"description": "Get a blueprint assignment operation.",
"x-ms-examples": {
"Assignment at subscription scope": {
"$ref": "./examples/subscriptionBPAssignment/BlueprintAssignmentOperation_Get.json"
},
"Assignment at management group scope": {
"$ref": "./examples/managementGroupBPAssignment/BlueprintAssignmentOperation_Get.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ScopeParameter"
},
{
"$ref": "#/parameters/AssignmentNameParameter"
},
{
"$ref": "#/parameters/AssignmentOperationNameParameter"
}
],
"responses": {
"200": {
"description": "OK -- blueprint assignment operation retrieved.",
"schema": {
"$ref": "#/definitions/AssignmentOperation"
}
},
"default": {
"description": "Blueprints error response.",
"schema": {
"$ref": "blueprintDefinition.json#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
"AssignmentOperation": {
"type": "object",
"description": "Represents underlying deployment detail for each update to the blueprint assignment.",
"allOf": [
{
"$ref": "#/definitions/AzureResourceBase"
}
],
"properties": {
"properties": {
"description": "Properties for AssignmentOperation.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/AssignmentOperationProperties"
}
}
},
"AssignmentOperationList": {
"type": "object",
"description": "List of AssignmentOperation.",
"properties": {
"value": {
"type": "array",
"description": "List of AssignmentOperation.",
"items": {
"$ref": "#/definitions/AssignmentOperation"
}
},
"nextLink": {
"type": "string",
"readOnly": true,
"description": "Link to the next page of results."
}
}
},
"AssignmentOperationProperties": {
"type": "object",
"description": "Properties of AssignmentOperation.",
"properties": {
"blueprintVersion": {
"type": "string",
"description": "The published version of the blueprint definition used for the blueprint assignment operation."
},
"assignmentState": {
"type": "string",
"description": "State of this blueprint assignment operation."
},
"timeCreated": {
"type": "string",
"description": "Create time of this blueprint assignment operation."
},
"timeStarted": {
"type": "string",
"description": "Start time of the underlying deployment."
},
"timeFinished": {
"type": "string",
"description": "Finish time of the overall underlying deployments."
},
"deployments": {
"type": "array",
"description": "List of jobs in this blueprint assignment operation.",
"items": {
"$ref": "#/definitions/AssignmentDeploymentJob"
}
}
}
},
"AssignmentDeploymentJob": {
"type": "object",
"description": "Represents individual job in given blueprint assignment operation.",
"properties": {
"kind": {
"type": "string",
"description": "Kind of job."
},
"action": {
"type": "string",
"description": "Name of the action performed in this job."
},
"jobId": {
"type": "string",
"description": "Id of this job."
},
"jobState": {
"type": "string",
"description": "State of this job."
},
"result": {
"description": "Deployment job result.",
"$ref": "#/definitions/AssignmentDeploymentJobResult"
},
"history": {
"type": "array",
"description": "Result of this deployment job for each retry.",
"items": {
"$ref": "#/definitions/AssignmentDeploymentJobResult"
}
},
"requestUri": {
"type": "string",
"description": "Reference to deployment job resource id."
}
}
},
"AssignmentDeploymentJobResult": {
"type": "object",
"description": "Result of each individual deployment in a blueprint assignment.",
"properties": {
"error": {
"description": "Contains error details if deployment job failed.",
"$ref": "#/definitions/AzureResourceManagerError"
},
"resources": {
"type": "array",
"description": "Resources created as result of the deployment job.",
"items": {
"$ref": "#/definitions/AssignmentJobCreatedResource"
}
}
}
},
"AssignmentJobCreatedResource": {
"type": "object",
"description": "Azure resource created from deployment job.",
"properties": {
"properties": {
"type": "object",
"description": "Additional properties in a dictionary.",
"additionalProperties": {
"type": "string",
"description": "property value"
}
}
},
"allOf": [
{
"$ref": "#/definitions/AzureResourceBase"
}
]
},
"AzureResourceBase": {
"description": "Common properties for all Azure resources.",
"type": "object",
"x-ms-azure-resource": true,
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "String Id used to locate any resource on Azure."
},
"type": {
"readOnly": true,
"type": "string",
"description": "Type of this resource."
},
"name": {
"readOnly": true,
"type": "string",
"description": "Name of this resource."
}
}
},
"AzureResourceManagerError": {
"type": "object",
"description": "Error code and message",
"properties": {
"code": {
"type": "string",
"description": "Error code."
},
"message": {
"type": "string",
"description": "Error message."
}
}
}
},
"parameters": {
"ScopeParameter": {
"name": "resourceScope",
"in": "path",
"required": true,
"type": "string",
"description": "The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').",
"x-ms-parameter-location": "method",
"x-ms-skip-url-encoding": true
},
"AssignmentNameParameter": {
"name": "assignmentName",
"in": "path",
"required": true,
"type": "string",
"x-ms-parameter-location": "method",
"description": "Name of the blueprint assignment."
},
"AssignmentOperationNameParameter": {
"name": "assignmentOperationName",
"in": "path",
"required": true,
"type": "string",
"x-ms-parameter-location": "method",
"description": "Name of the blueprint assignment operation."
},
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"x-ms-parameter-location": "client",
"description": "Client API Version."
}
}
}