-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ExpressRoute gateway resource (#3776)
* Initial version * Refactor connections. * Update API version * Add enum values. * Addressed all comments.
- Loading branch information
1 parent
3b1d5ec
commit 57fc3df
Showing
15 changed files
with
1,037 additions
and
56 deletions.
There are no files selected for viewing
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
104 changes: 52 additions & 52 deletions
104
...e-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringGet.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 |
---|---|---|
@@ -1,55 +1,55 @@ | ||
{ | ||
"parameters": { | ||
"circuitName": "circuitName", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2018-08-01", | ||
"subscriptionId": "subid", | ||
"peeringName": "MicrosoftPeering" | ||
}, | ||
"responses": { | ||
"200": { | ||
"name": "MicrosoftPeering", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", | ||
"etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"peeringType": "MicrosoftPeering", | ||
"azureASN": 12076, | ||
"peerASN": 100, | ||
"primaryPeerAddressPrefix": "123.0.0.0/30", | ||
"secondaryPeerAddressPrefix": "123.0.0.4/30", | ||
"primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", | ||
"secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", | ||
"state": "Enabled", | ||
"vlanId": 300, | ||
"gatewayManagerEtag": "103", | ||
"lastModifiedBy": "Customer", | ||
"microsoftPeeringConfig": { | ||
"advertisedPublicPrefixes": [ | ||
"123.1.0.0/24" | ||
], | ||
"advertisedCommunities": [], | ||
"advertisedPublicPrefixesState": "ValidationNeeded", | ||
"customerASN": 23, | ||
"legacyMode": 0, | ||
"routingRegistryName": "ARIN" | ||
}, | ||
"ipv6PeeringConfig": { | ||
"primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", | ||
"secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", | ||
"state": "Enabled", | ||
"microsoftPeeringConfig": { | ||
"advertisedPublicPrefixes": [ | ||
"3FFE:FFFF:0:CD31::/120" | ||
], | ||
"advertisedCommunities": [], | ||
"advertisedPublicPrefixesState": "ValidationNeeded", | ||
"customerASN": 23, | ||
"legacyMode": 0, | ||
"routingRegistryName": "ARIN" | ||
} | ||
"parameters": { | ||
"circuitName": "circuitName", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2018-08-01", | ||
"subscriptionId": "subid", | ||
"peeringName": "MicrosoftPeering" | ||
}, | ||
"responses": { | ||
"200": { | ||
"name": "MicrosoftPeering", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", | ||
"etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"peeringType": "MicrosoftPeering", | ||
"azureASN": 12076, | ||
"peerASN": 100, | ||
"primaryPeerAddressPrefix": "123.0.0.0/30", | ||
"secondaryPeerAddressPrefix": "123.0.0.4/30", | ||
"primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", | ||
"secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", | ||
"state": "Enabled", | ||
"vlanId": 300, | ||
"gatewayManagerEtag": "103", | ||
"lastModifiedBy": "Customer", | ||
"microsoftPeeringConfig": { | ||
"advertisedPublicPrefixes": [ | ||
"123.1.0.0/24" | ||
], | ||
"advertisedCommunities": [], | ||
"advertisedPublicPrefixesState": "ValidationNeeded", | ||
"customerASN": 23, | ||
"legacyMode": 0, | ||
"routingRegistryName": "ARIN" | ||
}, | ||
"ipv6PeeringConfig": { | ||
"primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", | ||
"secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", | ||
"state": "Enabled", | ||
"microsoftPeeringConfig": { | ||
"advertisedPublicPrefixes": [ | ||
"3FFE:FFFF:0:CD31::/120" | ||
], | ||
"advertisedCommunities": [], | ||
"advertisedPublicPrefixesState": "ValidationNeeded", | ||
"customerASN": 23, | ||
"legacyMode": 0, | ||
"routingRegistryName": "ARIN" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
50 changes: 50 additions & 0 deletions
50
...ce-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteConnectionCreate.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,50 @@ | ||
{ | ||
"parameters": { | ||
"expressRouteGatewayName": "expressRouteGatewayName", | ||
"resourceGroupName": "resourceGroupName", | ||
"api-version": "2018-08-01", | ||
"subscriptionId": "subid", | ||
"connectionName": "connectionName", | ||
"putExpressRouteConnectionParameters": { | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName", | ||
"name": "connectionName", | ||
"properties": { | ||
"routingWeight": 2, | ||
"authorizationKey": "authorizationKey", | ||
"expressRouteCircuitPeering": { | ||
"id": "/subscriptions/subid2/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "connectionName", | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName", | ||
"properties": { | ||
"provisioningState": "Provisioned", | ||
"expressRouteCircuitPeering": { | ||
"id": "/subscriptions/subid2/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" | ||
}, | ||
"authorizationKey": "authorizationKey", | ||
"routingWeight": 2 | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "connectionName", | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName", | ||
"properties": { | ||
"provisioningState": "Provisioned", | ||
"expressRouteCircuitPeering": { | ||
"id": "/subscriptions/subid2/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" | ||
}, | ||
"authorizationKey": "authorizationKey", | ||
"routingWeight": 2 | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ce-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteConnectionDelete.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,14 @@ | ||
{ | ||
"parameters": { | ||
"expressRouteGatewayName": "expressRouteGatewayName", | ||
"resourceGroupName": "resourceGroupName", | ||
"connectionName": "connectionName", | ||
"api-version": "2018-08-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"202": {}, | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...ource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteConnectionGet.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,25 @@ | ||
{ | ||
"parameters": { | ||
"expressRouteGatewayName": "expressRouteGatewayName", | ||
"resourceGroupName": "resourceGroupName", | ||
"api-version": "2018-08-01", | ||
"subscriptionId": "subid", | ||
"connectionName": "connectionName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "connectionName", | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName", | ||
"properties": { | ||
"provisioningState": "Provisioned", | ||
"expressRouteCircuitPeering": { | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" | ||
}, | ||
"authorizationKey": "authorizationKey", | ||
"routingWeight": 1 | ||
} | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...urce-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteConnectionList.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,28 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-08-01", | ||
"resourceGroupName": "resourceGroupName", | ||
"expressRouteGatewayName": "expressRouteGatewayName", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "connectionName", | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName", | ||
"properties": { | ||
"provisioningState": "Provisioned", | ||
"expressRouteCircuitPeering": { | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" | ||
}, | ||
"authorizationKey": "authorizationKey", | ||
"routingWeight": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
...ource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteGatewayCreate.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,65 @@ | ||
{ | ||
"parameters": { | ||
"expressRouteGatewayName": "gateway-2", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "resourceGroupName", | ||
"api-version": "2018-08-01", | ||
"putExpressRouteGatewayParameters": { | ||
"name": "gateway-2", | ||
"type": "Microsoft.Network/expressRouteGateways", | ||
"location": "westus", | ||
"properties": { | ||
"virtualHub": { | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupId/providers/Microsoft.Network/virtualHubs/virtualHubName" | ||
}, | ||
"autoScaleConfiguration": { | ||
"bounds": { | ||
"min": 3 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"name": "gateway-2", | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"location": "westus", | ||
"type": "Microsoft.Network/expressRouteGateways", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"virtualHub": { | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/virtualHubName" | ||
}, | ||
"autoScaleConfiguration": { | ||
"bounds": { | ||
"min": 3 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "gateway-2", | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"location": "westus", | ||
"type": "Microsoft.Network/expressRouteGateways", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"virtualHub": { | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/virtualHubName" | ||
}, | ||
"autoScaleConfiguration": { | ||
"bounds": { | ||
"min": 3 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteGatewayDelete.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,13 @@ | ||
{ | ||
"parameters": { | ||
"expressRouteGatewayName": "expressRouteGatewayName", | ||
"resourceGroupName": "resourceGroupName", | ||
"api-version": "2018-08-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"202": {}, | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteGatewayGet.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,26 @@ | ||
{ | ||
"parameters": { | ||
"expressRouteGatewayName": "expressRouteGatewayName", | ||
"resourceGroupName": "resourceGroupName", | ||
"api-version": "2018-08-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "expressRouteGatewayName", | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"location": "westus", | ||
"type": "Microsoft.Network/expressRouteGateways", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"virtualHub": { | ||
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/virtualHubName" | ||
} | ||
} | ||
} | ||
}, | ||
"404": {} | ||
} | ||
} |
Oops, something went wrong.