-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aneeshakella/scalable gateway swagger changes (#25107)
* Added additional scalable gateway changes * small formatting change * made documents prettier * prettier changes * added references to fix avocado * testing a fix * another test * added new test * new changes * removed update * new changes * updated specs * updated specs
- Loading branch information
1 parent
08e237f
commit af6f9b1
Showing
3 changed files
with
406 additions
and
0 deletions.
There are no files selected for viewing
106 changes: 106 additions & 0 deletions
106
...anager/Microsoft.Network/stable/2023-05-01/examples/VirtualNetworkScalableGatewayGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-05-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"virtualNetworkGatewayName": "ergw" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "ergw", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw", | ||
"etag": "W/\"00000000-0000-0000-0000-000000000000\"", | ||
"type": "Microsoft.Network/virtualNetworkGateways", | ||
"location": "centralus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceGuid": "00000000-0000-0000-0000-000000000000", | ||
"ipConfigurations": [ | ||
{ | ||
"name": "gwipconfig1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/ipConfigurations/default", | ||
"etag": "W/\"00000000-0000-0000-0000-000000000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"privateIPAllocationMethod": "Static", | ||
"publicIPAddress": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip" | ||
}, | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet" | ||
} | ||
} | ||
} | ||
], | ||
"natRules": [ | ||
{ | ||
"name": "natRule1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule1", | ||
"etag": "W/\"00ae2b69-88e7-4b3a-b66a-cfa2244e0801\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"type": "Static", | ||
"mode": "EgressSnat", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "10.10.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "50.0.0.0/24" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "natRule2", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule2", | ||
"etag": "W/\"00ae2b69-88e7-4b3a-b66a-cfa2244e0801\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"type": "Static", | ||
"mode": "IngressSnat", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "20.10.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "30.0.0.0/24" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"enableBgpRouteTranslationForNat": false, | ||
"sku": { | ||
"name": "ErGwScale", | ||
"tier": "ErGwScale", | ||
"capacity": 2 | ||
}, | ||
"autoScaleConfiguration": { | ||
"bounds": { | ||
"min": 2, | ||
"max": 3 | ||
} | ||
}, | ||
"gatewayType": "ExpressRoute", | ||
"vpnType": "PolicyBased", | ||
"vpnGatewayGeneration": "None", | ||
"enableBgp": false, | ||
"enablePrivateIpAddress": false, | ||
"activeActive": false, | ||
"disableIPSecReplayProtection": false, | ||
"vpnClientConfiguration": null, | ||
"bgpSettings": null, | ||
"customRoutes": null, | ||
"allowVirtualWanTraffic": false, | ||
"allowRemoteVnetTraffic": false | ||
} | ||
} | ||
} | ||
} | ||
} |
269 changes: 269 additions & 0 deletions
269
...ger/Microsoft.Network/stable/2023-05-01/examples/VirtualNetworkScalableGatewayUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,269 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-05-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"virtualNetworkGatewayName": "ergw", | ||
"parameters": { | ||
"properties": { | ||
"ipConfigurations": [ | ||
{ | ||
"properties": { | ||
"privateIPAllocationMethod": "Static", | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet" | ||
}, | ||
"publicIPAddress": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip" | ||
} | ||
}, | ||
"name": "gwipconfig1" | ||
} | ||
], | ||
"gatewayType": "ExpressRoute", | ||
"vpnType": "PolicyBased", | ||
"enableBgp": false, | ||
"activeActive": false, | ||
"disableIPSecReplayProtection": false, | ||
"natRules": [ | ||
{ | ||
"name": "natRule1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule1", | ||
"properties": { | ||
"type": "Static", | ||
"mode": "EgressSnat", | ||
"ipConfigurationId": "", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "10.10.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "50.0.0.0/24" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "natRule2", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule2", | ||
"properties": { | ||
"type": "Static", | ||
"mode": "IngressSnat", | ||
"ipConfigurationId": "", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "20.10.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "30.0.0.0/24" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"enableBgpRouteTranslationForNat": false, | ||
"sku": { | ||
"name": "ErGwScale", | ||
"tier": "ErGwScale" | ||
}, | ||
"vpnClientConfiguration": null, | ||
"bgpSettings": null, | ||
"allowVirtualWanTraffic": false, | ||
"allowRemoteVnetTraffic": false | ||
}, | ||
"location": "centralus" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "ergw", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw", | ||
"etag": "W/\"00000000-0000-0000-0000-000000000000\"", | ||
"type": "Microsoft.Network/virtualNetworkGateways", | ||
"location": "centralus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceGuid": "00000000-0000-0000-0000-000000000000", | ||
"ipConfigurations": [ | ||
{ | ||
"name": "gwipconfig1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/ipConfigurations/default", | ||
"etag": "W/\"00000000-0000-0000-0000-000000000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"privateIPAllocationMethod": "Dynamic", | ||
"publicIPAddress": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip" | ||
}, | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet" | ||
} | ||
} | ||
} | ||
], | ||
"natRules": [ | ||
{ | ||
"name": "natRule1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule1", | ||
"properties": { | ||
"type": "Static", | ||
"mode": "EgressSnat", | ||
"ipConfigurationId": "", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "10.10.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "50.0.0.0/24" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "natRule2", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule2", | ||
"properties": { | ||
"type": "Static", | ||
"mode": "IngressSnat", | ||
"ipConfigurationId": "", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "20.10.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "30.0.0.0/24" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"enableBgpRouteTranslationForNat": false, | ||
"sku": { | ||
"name": "ErGwScale", | ||
"tier": "ErGwScale", | ||
"capacity": 0 | ||
}, | ||
"autoScaleConfiguration": { | ||
"bounds": { | ||
"min": 2, | ||
"max": 3 | ||
} | ||
}, | ||
"gatewayType": "ExpressRoute", | ||
"vpnType": "PolicyBased", | ||
"vpnGatewayGeneration": "None", | ||
"enableBgp": false, | ||
"activeActive": false, | ||
"disableIPSecReplayProtection": false, | ||
"vpnClientConfiguration": null, | ||
"bgpSettings": null, | ||
"customRoutes": null, | ||
"allowVirtualWanTraffic": false, | ||
"allowRemoteVnetTraffic": false | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "ergw", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw", | ||
"etag": "W/\"00000000-0000-0000-0000-000000000000\"", | ||
"type": "Microsoft.Network/virtualNetworkGateways", | ||
"location": "centralus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceGuid": "00000000-0000-0000-0000-000000000000", | ||
"ipConfigurations": [ | ||
{ | ||
"name": "gwipconfig1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/ipConfigurations/default", | ||
"etag": "W/\"00000000-0000-0000-0000-000000000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"privateIPAllocationMethod": "Static", | ||
"publicIPAddress": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip" | ||
}, | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet" | ||
} | ||
} | ||
} | ||
], | ||
"natRules": [ | ||
{ | ||
"name": "natRule1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule1", | ||
"properties": { | ||
"type": "Static", | ||
"mode": "EgressSnat", | ||
"ipConfigurationId": "", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "10.10.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "50.0.0.0/24" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "natRule2", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule2", | ||
"properties": { | ||
"type": "Static", | ||
"mode": "IngressSnat", | ||
"ipConfigurationId": "", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "20.10.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "30.0.0.0/24" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"enableBgpRouteTranslationForNat": false, | ||
"sku": { | ||
"name": "ErGwScale", | ||
"tier": "ErGwScale", | ||
"capacity": 2 | ||
}, | ||
"autoScaleConfiguration": { | ||
"bounds": { | ||
"min": 2, | ||
"max": 3 | ||
} | ||
}, | ||
"gatewayType": "ExpressRoute", | ||
"vpnType": "PolicyBased", | ||
"enableBgp": false, | ||
"activeActive": false, | ||
"disableIPSecReplayProtection": false, | ||
"enablePrivateIpAddress": false, | ||
"vpnClientConfiguration": null, | ||
"bgpSettings": null, | ||
"customRoutes": null, | ||
"allowVirtualWanTraffic": false, | ||
"allowRemoteVnetTraffic": false | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.