Skip to content

Commit 633d12d

Browse files
sai-manoj-kumarMikhailTryakhov
authored andcommitted
Application Gateway - Adds Rewrite rule set for Header CRUD (#4331)
* Adds base for updating Microsoft.Network from version stable/2018-08-01 to version 2018-10-01 * Updates readme * Updates API version in new specs and examples * Adds Rewrite rule set for Header CRUD Adds the structure of rewriteRuleSets in the applicationGatewayProperties. Adds recursively the sub structures in the rewriteRuleSet. Adds the reference to rewriteRuleSet in the requestRoutingRule for both Basic rule and Path based rule. * Adds examples for the Header CRUD in application gateway * Fix the examples; replacing rules with rewriteRules. * Fixing the properties of application Gateway rewriteRule * Revert "Fixing the properties of application Gateway rewriteRule" This reverts commit 05c9c91. * Fixing the properties of application Gateway rewriteRule * Mark the provisioning state as readOnly * Mark etag as readOnly
1 parent 5ea0c7b commit 633d12d

File tree

3 files changed

+513
-3
lines changed

3 files changed

+513
-3
lines changed

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

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,10 @@
12751275
"$ref": "./network.json#/definitions/SubResource",
12761276
"description": "Redirect configuration resource of URL path map path rule."
12771277
},
1278+
"rewriteRuleSet": {
1279+
"$ref": "./network.json#/definitions/SubResource",
1280+
"description": "Rewrite rule set resource of URL path map path rule."
1281+
},
12781282
"provisioningState": {
12791283
"type": "string",
12801284
"description": "Path rule of URL path map resource. Possible values are: 'Updating', 'Deleting', and 'Failed'."
@@ -1437,6 +1441,10 @@
14371441
"$ref": "./network.json#/definitions/SubResource",
14381442
"description": "URL path map resource of the application gateway."
14391443
},
1444+
"rewriteRuleSet": {
1445+
"$ref": "./network.json#/definitions/SubResource",
1446+
"description": "Rewrite Rule Set resource in Basic rule of the application gateway."
1447+
},
14401448
"redirectConfiguration": {
14411449
"$ref": "./network.json#/definitions/SubResource",
14421450
"description": "Redirect configuration resource of the application gateway."
@@ -1474,6 +1482,88 @@
14741482
],
14751483
"description": "Request routing rule of an application gateway."
14761484
},
1485+
"ApplicationGatewayRewriteRuleSet": {
1486+
"properties": {
1487+
"properties": {
1488+
"x-ms-client-flatten": true,
1489+
"$ref": "#/definitions/ApplicationGatewayRewriteRuleSetPropertiesFormat"
1490+
},
1491+
"name": {
1492+
"type": "string",
1493+
"description": "Name of the rewrite rule set that is unique within an Application Gateway."
1494+
},
1495+
"etag": {
1496+
"readOnly": true,
1497+
"type": "string",
1498+
"description": "A unique read-only string that changes whenever the resource is updated."
1499+
}
1500+
},
1501+
"allOf": [
1502+
{
1503+
"$ref": "./network.json#/definitions/SubResource"
1504+
}
1505+
],
1506+
"description": "Rewrite rule set of an application gateway."
1507+
},
1508+
"ApplicationGatewayRewriteRuleSetPropertiesFormat": {
1509+
"properties": {
1510+
"rewriteRules": {
1511+
"type": "array",
1512+
"items": {
1513+
"$ref": "#/definitions/ApplicationGatewayRewriteRule"
1514+
},
1515+
"description": "Rewrite rules in the rewrite rule set."
1516+
},
1517+
"provisioningState": {
1518+
"readOnly": true,
1519+
"type": "string",
1520+
"description": "Provisioning state of the rewrite rule set resource. Possible values are: 'Updating', 'Deleting', and 'Failed'."
1521+
}
1522+
},
1523+
"description": "Properties of rewrite rule set of the application gateway."
1524+
},
1525+
"ApplicationGatewayRewriteRule": {
1526+
"properties": {
1527+
"name": {
1528+
"type": "string",
1529+
"description": "Name of the rewrite rule that is unique within an Application Gateway."
1530+
},
1531+
"actionSet": {
1532+
"type": "object",
1533+
"$ref": "#/definitions/ApplicationGatewayRewriteRuleActionSet",
1534+
"description": "Set of actions to be done as part of the rewrite Rule."
1535+
}
1536+
},
1537+
"description": "Rewrite rule of an application gateway."
1538+
},
1539+
"ApplicationGatewayRewriteRuleActionSet": {
1540+
"properties": {
1541+
"requestHeaderConfigurations": {
1542+
"type": "array",
1543+
"$ref": "#/definitions/ApplicationGatewayHeaderConfiguration",
1544+
"description": "Request Header Actions in the Action Set"
1545+
},
1546+
"responseHeaderConfigurations": {
1547+
"type": "array",
1548+
"$ref": "#/definitions/ApplicationGatewayHeaderConfiguration",
1549+
"description": "Response Header Actions in the Action Set"
1550+
}
1551+
},
1552+
"description": "Set of actions in the Rewrite Rule in Application Gateway."
1553+
},
1554+
"ApplicationGatewayHeaderConfiguration": {
1555+
"properties": {
1556+
"headerName": {
1557+
"type": "string",
1558+
"description": "Header name of the header configuration"
1559+
},
1560+
"headerValue": {
1561+
"type": "string",
1562+
"description": "Header value of the header configuration"
1563+
}
1564+
},
1565+
"description": "Header configuration of the Actions set in Application Gateway."
1566+
},
14771567
"ApplicationGatewayRedirectConfigurationPropertiesFormat": {
14781568
"properties": {
14791569
"redirectType": {
@@ -1660,6 +1750,13 @@
16601750
},
16611751
"description": "Request routing rules of the application gateway resource."
16621752
},
1753+
"rewriteRuleSets": {
1754+
"type": "array",
1755+
"items": {
1756+
"$ref": "#/definitions/ApplicationGatewayRewriteRuleSet"
1757+
},
1758+
"description": "Rewrite rules for the application gateway resource."
1759+
},
16631760
"redirectConfigurations": {
16641761
"type": "array",
16651762
"items": {
@@ -1752,6 +1849,10 @@
17521849
"$ref": "./network.json#/definitions/SubResource",
17531850
"description": "Default backend http settings resource of URL path map."
17541851
},
1852+
"defaultRewriteRuleSet": {
1853+
"$ref": "./network.json#/definitions/SubResource",
1854+
"description": "Default Rewrite rule set resource of URL path map."
1855+
},
17551856
"defaultRedirectConfiguration": {
17561857
"$ref": "./network.json#/definitions/SubResource",
17571858
"description": "Default redirect configuration resource of URL path map."

0 commit comments

Comments
 (0)