forked from MLogdberg/APIManagementARMTemplateCreator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
json1.json
198 lines (198 loc) · 9.83 KB
/
json1.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"service_ibizmalo_name": {
"type": "string",
"defaultValue": "ibizmalo"
},
"api_order_name": {
"type": "string",
"defaultValue": "order"
},
"order_apiRevision": {
"type": "string",
"defaultValue": "1"
},
"order_serviceUrl": {
"type": "string",
"defaultValue": "https://prod-48.westeurope.logic.azure.com/workflows/bc406236bfff482a836ca4f6caabbb17/triggers"
},
"operations_59a6b4730d691205f068a8be_name": {
"type": "string",
"defaultValue": "59a6b4730d691205f068a8be"
},
"policy_policy_name": {
"type": "string",
"defaultValue": "policy"
},
"logicApp_INT001-GetOrderInfo_resourcegroup": {
"type": "string",
"defaultValue": "PreDemoTest"
},
"logicApp_INT001-GetOrderInfo_name": {
"type": "string",
"defaultValue": "INT001-GetOrderInfo"
},
"logicApp_INT001-GetOrderInfo_trigger": {
"type": "string",
"defaultValue": "request"
},
"group_5836deeb0647c01104435b5c_name": {
"type": "string",
"defaultValue": "5836deeb0647c01104435b5c"
},
"property_59a6b478285385ab3dfbb752_name": {
"type": "string",
"defaultValue": "59a6b478285385ab3dfbb752"
}
},
"variables": {},
"resources": [
{
"comments": "Generated for resource /subscriptions/c107df29-a4af-4bc9-a733-f88f0eaa4296/resourceGroups/PreDemoTest/providers/Microsoft.ApiManagement/service/ibizmalo/apis/order",
"type": "Microsoft.ApiManagement/service/apis",
"name": "[concat(parameters('service_ibizmalo_name'), '/' ,parameters('api_order_name'))]",
"apiVersion": "2017-03-01",
"properties": {
"displayName": "Order",
"apiRevision": "[parameters('order_apiRevision')]",
"description": "Azure Logic App.",
"serviceUrl": "[parameters('order_serviceUrl')]",
"path": "api/v1/order",
"protocols": [
"https"
],
"authenticationSettings": {
"oAuth2": null,
"openid": null
},
"subscriptionKeyParameterNames": {
"header": "Ocp-Apim-Subscription-Key",
"query": "subscription-key"
},
"isCurrent": true
},
"resources": [
{
"comments": "Generated for resource /subscriptions/c107df29-a4af-4bc9-a733-f88f0eaa4296/resourceGroups/PreDemoTest/providers/Microsoft.ApiManagement/service/ibizmalo/apis/order/operations/59a6b4730d691205f068a8be",
"type": "Microsoft.ApiManagement/service/apis/operations",
"name": "[concat(parameters('service_ibizmalo_name'), '/' ,parameters('api_order_name'), '/' ,parameters('operations_59a6b4730d691205f068a8be_name'))]",
"apiVersion": "2017-03-01",
"properties": {
"displayName": "request-invoke",
"method": "POST",
"urlTemplate": "/request/paths/invoke",
"templateParameters": [],
"description": "Utlös en körning av logikappen.",
"request": {
"description": "Begärantexten.",
"queryParameters": [],
"headers": [
{
"name": "Content-Type",
"description": "",
"type": "string",
"defaultValue": "application/json",
"required": true,
"values": [
"application/json"
]
}
],
"representations": [
{
"contentType": "application/json",
"sample": null,
"typeName": "request-request",
"schemaId": null
}
]
},
"responses": [
{
"statusCode": 200,
"description": "Logikapp-reponsen.",
"representations": [
{
"contentType": "application/json",
"sample": null,
"typeName": "RequestPathsInvokePost200ApplicationJsonResponse",
"schemaId": null
}
],
"headers": []
}
],
"policies": null
},
"resources": [
{
"comments": "Generated for resource /subscriptions/c107df29-a4af-4bc9-a733-f88f0eaa4296/resourceGroups/PreDemoTest/providers/Microsoft.ApiManagement/service/ibizmalo/apis/order/operations/59a6b4730d691205f068a8be/policies/policy",
"type": "Microsoft.ApiManagement/service/apis/operations/policies",
"name": "[concat(parameters('service_ibizmalo_name'), '/' ,parameters('api_order_name'), '/' ,parameters('operations_59a6b4730d691205f068a8be_name'), '/' ,parameters('policy_policy_name'))]",
"apiVersion": "2017-03-01",
"properties": {
"policyContent": "[Concat('<policies>\r\n <inbound>\r\n <rewrite-uri id=\"apim-generated-policy\" template=\"?api-version=2016-06-01&sp=/triggers/request/run&{{orderrequest59a6b4783fb21a7984df42ae}}\" />\r\n <set-backend-service id=\"apim-generated-policy\" base-url=\"',listCallbackUrl(resourceId(parameters('logicApp_INT001-GetOrderInfo_resourcegroup'),'Microsoft.Logic/workflows/triggers', parameters('logicApp_INT001-GetOrderInfo_name'),parameters('logicApp_INT001-GetOrderInfo_trigger')), providers('Microsoft.Logic', 'workflows').apiVersions[0]).basePath,'\" />\r\n <base />\r\n <set-header name=\"Ocp-Apim-Subscription-Key\" exists-action=\"delete\" />\r\n </inbound>\r\n <outbound>\r\n <base />\r\n </outbound>\r\n <backend>\r\n <base />\r\n <!-- { \"azureResource\": { \"type\": \"logicapp\", \"id\": \"/subscriptions/c107df29-a4af-4bc9-a733-f88f0eaa4296/resourceGroups/PreDemoTest/providers/Microsoft.Logic/workflows/INT001-GetOrderInfo/triggers/request\" } } -->\r\n </backend>\r\n</policies>')]"
},
"resources": [],
"dependsOn": [
"[resourceId('Microsoft.ApiManagement/service/apis', parameters('service_ibizmalo_name') ,parameters('api_order_name'))]",
"[resourceId('Microsoft.ApiManagement/service/apis/operations', parameters('service_ibizmalo_name'), parameters('api_order_name'), parameters('operations_59a6b4730d691205f068a8be_name'))]"
]
}
],
"dependsOn": [
"[resourceId('Microsoft.ApiManagement/service/apis', parameters('service_ibizmalo_name'), parameters('api_order_name'))]"
]
},
{
"comments": "Generated for resource /subscriptions/c107df29-a4af-4bc9-a733-f88f0eaa4296/resourceGroups/PreDemoTest/providers/Microsoft.ApiManagement/service/ibizmalo/apis/order/policies/policy",
"type": "Microsoft.ApiManagement/service/apis/policies",
"name": "[concat(parameters('service_ibizmalo_name'), '/' ,parameters('api_order_name'), '/' ,parameters('policy_policy_name'))]",
"apiVersion": "2017-03-01",
"properties": {
"policyContent": "<policies>\r\n <inbound>\r\n <base />\r\n </inbound>\r\n <outbound>\r\n <base />\r\n </outbound>\r\n <backend>\r\n <base />\r\n <!-- { \"azureResource\": { \"type\": \"logicapp\", \"id\": \"/subscriptions/c107df29-a4af-4bc9-a733-f88f0eaa4296/resourceGroups/PreDemoTest/providers/Microsoft.Logic/workflows/INT001-GetOrderInfo\" } } -->\r\n </backend>\r\n</policies>"
},
"resources": [],
"dependsOn": [
"[resourceId('Microsoft.ApiManagement/service/apis', parameters('service_ibizmalo_name') ,parameters('api_order_name'))]"
]
}
],
"dependsOn": [
"[resourceId('Microsoft.ApiManagement/service/properties', parameters('service_ibizmalo_name'),parameters('property_59a6b478285385ab3dfbb752_name'))]"
]
},
{
"comments": "Generated for resource /subscriptions/c107df29-a4af-4bc9-a733-f88f0eaa4296/resourceGroups/PreDemoTest/providers/Microsoft.ApiManagement/service/ibizmalo/groups/5836deeb0647c01104435b5c",
"type": "Microsoft.ApiManagement/service/groups",
"name": "[concat(parameters('service_ibizmalo_name'), '/' ,parameters('group_5836deeb0647c01104435b5c_name'))]",
"apiVersion": "2017-03-01",
"properties": {
"displayName": "TEST",
"description": null,
"builtIn": false,
"type": "custom",
"externalId": null
},
"resources": [],
"dependsOn": []
},
{
"comments": "Generated for resource /subscriptions/c107df29-a4af-4bc9-a733-f88f0eaa4296/resourceGroups/PreDemoTest/providers/Microsoft.ApiManagement/service/ibizmalo/properties/59a6b478285385ab3dfbb752",
"type": "Microsoft.ApiManagement/service/properties",
"name": "[concat(parameters('service_ibizmalo_name'), '/' ,parameters('property_59a6b478285385ab3dfbb752_name'))]",
"apiVersion": "2017-03-01",
"properties": {
"displayName": "orderrequest59a6b4783fb21a7984df42ae",
"value": "[concat('sv=',listCallbackUrl(resourceId(parameters('logicApp_INT001-GetOrderInfo_resourcegroup'),'Microsoft.Logic/workflows/triggers', parameters('logicApp_INT001-GetOrderInfo_name'),parameters('logicApp_INT001-GetOrderInfo_trigger')), providers('Microsoft.Logic', 'workflows').apiVersions[0]).queries.sv,'&sig=',listCallbackUrl(resourceId(parameters('logicApp_INT001-GetOrderInfo_resourcegroup'),'Microsoft.Logic/workflows/triggers', parameters('logicApp_INT001-GetOrderInfo_name'),parameters('logicApp_INT001-GetOrderInfo_trigger')), providers('Microsoft.Logic', 'workflows').apiVersions[0]).queries.sig)]",
"tags": [],
"secret": true
},
"resources": [],
"dependsOn": []
}
],
"outputs": {}
}