Skip to content

Commit

Permalink
appgw swagger examples (#2503)
Browse files Browse the repository at this point in the history
* appgw examples #2

* ssl options example

* waf examples
  • Loading branch information
akshaysngupta authored and olydis committed Feb 16, 2018
1 parent cef9b24 commit b1bd518
Show file tree
Hide file tree
Showing 13 changed files with 1,128 additions and 112 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,34 @@
"subscriptionId": "subid"
},
"responses": {
"200": { }
"200": {
"body": {
"name": "default",
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default",
"type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions",
"properties": {
"predefinedPolicies": [
{
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501"
},
{
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401"
},
{
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401S"
}
],
"defaultPolicy": "AppGwSslPolicy20150501",
"availableCipherSuites": [
"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"
],
"availableProtocols": [
"TLSv1_0",
"TLSv1_1",
"TLSv1_2"
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,43 @@
"subscriptionId": "subid"
},
"responses": {
"200": { }
"200": {
"body": {
"value": [
[
{
"name": "AppGwSslPolicy20150501",
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501",
"properties": {
"cipherSuites": [
"TLS_RSA_WITH_AES_128_CBC_SHA"
],
"minProtocolVersion": "TLSv1_0"
}
},
{
"name": "AppGwSslPolicy20170401",
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401",
"properties": {
"cipherSuites": [
"TLS_RSA_WITH_AES_128_CBC_SHA"
],
"minProtocolVersion": "TLSv1_1"
}
},
{
"name": "AppGwSslPolicy20170401S",
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401S",
"properties": {
"cipherSuites": [
"TLS_RSA_WITH_AES_128_CBC_SHA"
],
"minProtocolVersion": "TLSv1_2"
}
}
]
]
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
"predefinedPolicyName": "AppGwSslPolicy20150501"
},
"responses": {
"200": { }
"200": {
"body": {
"name": "AppGwSslPolicy20150501",
"id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501",
"properties": {
"cipherSuites": [
"TLS_RSA_WITH_AES_128_CBC_SHA"
],
"minProtocolVersion": "TLSv1_0"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2018-01-01",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "OWASP_3.0",
"id": "/subscriptions//resourceGroups//providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets/",
"type": "Microsoft.Network/applicationGatewayAvailableWafRuleSets",
"properties": {
"provisioningState": "Succeeded",
"ruleSetType": "OWASP",
"ruleSetVersion": "3.0",
"ruleGroups": [
{
"ruleGroupName": "General",
"description": "",
"rules": [
{
"ruleId": 200004,
"description": "Possible Multipart Unmatched Boundary."
}
]
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"parameters": {
"api-version": "2018-01-01",
"subscriptionId": "subid",
"resourceGroupName": "appgw",
"applicationGatewayName": "appgw"
},
"responses": {
"200": {
"body": {
"backendAddressPools": [
{
"backendAddressPool": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFAnalyticsPool"
},
"backendHttpSettingsCollection": [
{
"backendHttpSettings": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings"
},
"servers": [
{
"address": "10.220.1.8",
"health": "Up"
}
]
}
]
},
{
"backendAddressPool": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFPool"
},
"backendHttpSettingsCollection": [
{
"backendHttpSettings": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings"
},
"servers": [
{
"address": "10.220.1.4",
"health": "Up"
},
{
"address": "10.220.1.5",
"health": "Up"
}
]
}
]
}
]
}
},
"202": {}
}
}
Loading

0 comments on commit b1bd518

Please sign in to comment.