Skip to content

Commit

Permalink
Route Server Integration feature swagger changes (#19215)
Browse files Browse the repository at this point in the history
* Route Server Integration feature swagger changes

* prettier run changes

* updating api version in examples file

* fixing test errors

* fixing test errors

* fixing modelvalidation errors

* fixing test errors

* fixing modelvalidation errors

* changes based on review comments

* fixing lintdiff failure

* updating examples
  • Loading branch information
anchalkpr authored Jun 8, 2022
1 parent 983df3b commit 915faee
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,60 @@
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}/learnedIPPrefixes": {
"post": {
"operationId": "AzureFirewalls_ListLearnedPrefixes",
"description": "Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "azureFirewallName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the azure firewall."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "List of learnt SNAT IP prefixes for no SNAT.",
"schema": {
"$ref": "#/definitions/IPPrefixesList"
}
},
"202": {
"description": "Accepted and the operation will complete asynchronously."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"AzureFirewallListLearnedPrefixes": {
"$ref": "./examples/AzureFirewallListLearnedIPPrefixes.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1081,6 +1135,19 @@
}
},
"description": "SKU of an Azure Firewall."
},
"IPPrefixesList": {
"type": "object",
"properties": {
"ipPrefixes": {
"type": "array",
"items": {
"type": "string"
},
"description": "IP Prefix value."
}
},
"description": "List of SNAT IP Prefixes learnt by firewall to not SNAT"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"api-version": "2022-01-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"azureFirewallName": "azureFirewall1"
},
"responses": {
"202": {},
"200": {
"body": {
"ipPrefixes": [
"10.101.0.0/16",
"10.102.0.0/16"
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1587,6 +1587,18 @@
"items": {
"type": "string"
}
},
"autoLearnPrivateRanges": {
"type": "string",
"description": "The operation mode for automatically learning private ranges to not be SNAT",
"enum": [
"Enabled",
"Disabled"
],
"x-ms-enum": {
"name": "AutoLearnPrivateRangesMode",
"modelAsString": true
}
}
}
},
Expand Down

0 comments on commit 915faee

Please sign in to comment.