Skip to content

Commit b1bd518

Browse files
akshaysnguptaolydis
authored andcommitted
appgw swagger examples (#2503)
* appgw examples #2 * ssl options example * waf examples
1 parent cef9b24 commit b1bd518

13 files changed

Lines changed: 1128 additions & 112 deletions

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

Lines changed: 159 additions & 106 deletions
Large diffs are not rendered by default.

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

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,34 @@
44
"subscriptionId": "subid"
55
},
66
"responses": {
7-
"200": { }
7+
"200": {
8+
"body": {
9+
"name": "default",
10+
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default",
11+
"type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions",
12+
"properties": {
13+
"predefinedPolicies": [
14+
{
15+
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501"
16+
},
17+
{
18+
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401"
19+
},
20+
{
21+
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401S"
22+
}
23+
],
24+
"defaultPolicy": "AppGwSslPolicy20150501",
25+
"availableCipherSuites": [
26+
"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"
27+
],
28+
"availableProtocols": [
29+
"TLSv1_0",
30+
"TLSv1_1",
31+
"TLSv1_2"
32+
]
33+
}
34+
}
35+
}
836
}
9-
}
37+
}

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

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,43 @@
44
"subscriptionId": "subid"
55
},
66
"responses": {
7-
"200": { }
7+
"200": {
8+
"body": {
9+
"value": [
10+
[
11+
{
12+
"name": "AppGwSslPolicy20150501",
13+
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501",
14+
"properties": {
15+
"cipherSuites": [
16+
"TLS_RSA_WITH_AES_128_CBC_SHA"
17+
],
18+
"minProtocolVersion": "TLSv1_0"
19+
}
20+
},
21+
{
22+
"name": "AppGwSslPolicy20170401",
23+
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401",
24+
"properties": {
25+
"cipherSuites": [
26+
"TLS_RSA_WITH_AES_128_CBC_SHA"
27+
],
28+
"minProtocolVersion": "TLSv1_1"
29+
}
30+
},
31+
{
32+
"name": "AppGwSslPolicy20170401S",
33+
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401S",
34+
"properties": {
35+
"cipherSuites": [
36+
"TLS_RSA_WITH_AES_128_CBC_SHA"
37+
],
38+
"minProtocolVersion": "TLSv1_2"
39+
}
40+
}
41+
]
42+
]
43+
}
44+
}
845
}
9-
}
46+
}

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55
"predefinedPolicyName": "AppGwSslPolicy20150501"
66
},
77
"responses": {
8-
"200": { }
8+
"200": {
9+
"body": {
10+
"name": "AppGwSslPolicy20150501",
11+
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501",
12+
"properties": {
13+
"cipherSuites": [
14+
"TLS_RSA_WITH_AES_128_CBC_SHA"
15+
],
16+
"minProtocolVersion": "TLSv1_0"
17+
}
18+
}
19+
}
920
}
10-
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-01-01",
4+
"subscriptionId": "subid"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"name": "OWASP_3.0",
12+
"id": "/subscriptions//resourceGroups//providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets/",
13+
"type": "Microsoft.Network/applicationGatewayAvailableWafRuleSets",
14+
"properties": {
15+
"provisioningState": "Succeeded",
16+
"ruleSetType": "OWASP",
17+
"ruleSetVersion": "3.0",
18+
"ruleGroups": [
19+
{
20+
"ruleGroupName": "General",
21+
"description": "",
22+
"rules": [
23+
{
24+
"ruleId": 200004,
25+
"description": "Possible Multipart Unmatched Boundary."
26+
}
27+
]
28+
}
29+
]
30+
}
31+
}
32+
]
33+
}
34+
}
35+
}
36+
}
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)