Skip to content

Commit 9ecb5a5

Browse files
committed
appgw examples Azure#2
1 parent 29c68f3 commit 9ecb5a5

9 files changed

Lines changed: 875 additions & 0 deletions

specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/applicationGateway.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
"ApplicationGateways"
4141
],
4242
"operationId": "ApplicationGateways_Delete",
43+
"x-ms-examples": {
44+
"Delete ApplicationGateway": { "$ref": "./examples/ApplicationGatewayDelete.json" }
45+
},
4346
"description": "Deletes the specified application gateway.",
4447
"parameters": [
4548
{
@@ -81,6 +84,9 @@
8184
"ApplicationGateways"
8285
],
8386
"operationId": "ApplicationGateways_Get",
87+
"x-ms-examples": {
88+
"Get ApplicationGateway": { "$ref": "./examples/ApplicationGatewayGet.json" }
89+
},
8490
"description": "Gets the specified application gateway.",
8591
"parameters": [
8692
{
@@ -118,6 +124,9 @@
118124
"ApplicationGateways"
119125
],
120126
"operationId": "ApplicationGateways_CreateOrUpdate",
127+
"x-ms-examples": {
128+
"Create Application Gateway": { "$ref": "./examples/ApplicationGatewayCreate.json" }
129+
},
121130
"description": "Creates or updates the specified application gateway.",
122131
"parameters": [
123132
{
@@ -223,6 +232,9 @@
223232
"ApplicationGateways"
224233
],
225234
"operationId": "ApplicationGateways_List",
235+
"x-ms-examples": {
236+
"Lists all application gateways in a resource group": { "$ref": "./examples/ApplicationGatewayList.json" }
237+
},
226238
"description": "Lists all application gateways in a resource group.",
227239
"parameters": [
228240
{
@@ -258,6 +270,9 @@
258270
"ApplicationGateways"
259271
],
260272
"operationId": "ApplicationGateways_ListAll",
273+
"x-ms-examples": {
274+
"Lists all application gateways in a subscription": { "$ref": "./examples/ApplicationGatewayListAll.json" }
275+
},
261276
"description": "Gets all the application gateways in a subscription.",
262277
"parameters": [
263278
{
@@ -286,6 +301,9 @@
286301
"ApplicationGateways"
287302
],
288303
"operationId": "ApplicationGateways_Start",
304+
"x-ms-examples": {
305+
"Start Application Gateway": { "$ref": "./examples/ApplicationGatewayStart.json" }
306+
},
289307
"description": "Starts the specified application gateway.",
290308
"parameters": [
291309
{
@@ -326,6 +344,9 @@
326344
"ApplicationGateways"
327345
],
328346
"operationId": "ApplicationGateways_Stop",
347+
"x-ms-examples": {
348+
"Stop Application Gateway": { "$ref": "./examples/ApplicationGatewayStop.json" }
349+
},
329350
"description": "Stops the specified application gateway in a resource group.",
330351
"parameters": [
331352
{
@@ -367,6 +388,9 @@
367388
],
368389
"operationId": "ApplicationGateways_BackendHealth",
369390
"description": "Gets the backend health of the specified application gateway in a resource group.",
391+
"x-ms-examples": {
392+
"Get Backend Health": { "$ref": "./examples/ApplicationGatewayBackendHealthGet.json" }
393+
},
370394
"parameters": [
371395
{
372396
"name": "resourceGroupName",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-01-01",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "appgw",
6+
"applicationGatewayName": "appgw"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"backendAddressPools": [
12+
{
13+
"backendAddressPool": {
14+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFAnalyticsPool"
15+
},
16+
"backendHttpSettingsCollection": [
17+
{
18+
"backendHttpSettings": {
19+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings"
20+
},
21+
"servers": [
22+
{
23+
"address": "10.220.1.8",
24+
"health": "Up"
25+
}
26+
]
27+
}
28+
]
29+
},
30+
{
31+
"backendAddressPool": {
32+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFPool"
33+
},
34+
"backendHttpSettingsCollection": [
35+
{
36+
"backendHttpSettings": {
37+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings"
38+
},
39+
"servers": [
40+
{
41+
"address": "10.220.1.4",
42+
"health": "Up"
43+
},
44+
{
45+
"address": "10.220.1.5",
46+
"health": "Up"
47+
}
48+
]
49+
}
50+
]
51+
}
52+
]
53+
}
54+
},
55+
"202": {}
56+
}
57+
}

0 commit comments

Comments
 (0)