Skip to content

Commit

Permalink
Add Local and Virtual Gateway Examples (#2833)
Browse files Browse the repository at this point in the history
* Add Local and Virtual Gateway Examples

* Added missing lines from 2018-02-01 to virtualNetworkGateway
  • Loading branch information
markjbrown authored and sergey-shandar committed Apr 10, 2018
1 parent 8a4e351 commit 3b0a560
Show file tree
Hide file tree
Showing 25 changed files with 1,071 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"parameters": {
"api-version": "2018-02-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"localNetworkGatewayName" : "localgw",
"parameters": {
"properties": {
"localNetworkAddressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"gatewayIpAddress": "x.x.x.x"
},
"location": "Central US"
}
},
"responses" : {
"201" : {
"body" : {
"name": "localgw",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/localNetworkGateways",
"location": "centralus",
"properties": {
"provisioningState": "Updating",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"localNetworkAddressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"gatewayIpAddress": "x.x.x.x"
}
}
},
"200" : {
"body" : {
"name": "localgw",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/localNetworkGateways",
"location": "centralus",
"properties": {
"provisioningState": "Updating",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"localNetworkAddressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"gatewayIpAddress": "x.x.x.x"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2018-02-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"localNetworkGatewayName" : "localgw"
},
"responses" : {
"202" : {
"body" : {

}
},
"200" : {
"body" : {

}
},
"204" : {
"body" : {

}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"api-version": "2018-02-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"localNetworkGatewayName" : "localgw"
},
"responses" : {
"200" : {
"body" : {
"name": "localgw",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/localNetworkGateways",
"location": "centralus",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"localNetworkAddressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"gatewayIpAddress": "x.x.x.x"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"api-version": "2018-02-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1"
},
"responses" : {
"200" : {
"body" : {
"value": [
{
"name": "localgw1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw1",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/localNetworkGateways",
"location": "centralus",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"localNetworkAddressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"gatewayIpAddress": "x.x.x.x"
}
},
{
"name": "localgw2",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw2",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/localNetworkGateways",
"location": "eastus",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"localNetworkAddressSpace": {
"addressPrefixes": [
"10.2.0.0/16"
]
},
"gatewayIpAddress": "x.x.x.x"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
{
"parameters": {
"api-version": "2018-02-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"virtualNetworkGatewayConnectionName" : "connS2S",
"parameters": {
"properties": {
"virtualNetworkGateway1": {
"properties": {
"ipConfigurations": [
{
"properties": {
"privateIPAllocationMethod": "Dynamic",
"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",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1"
}
],
"gatewayType": "Vpn",
"vpnType": "RouteBased",
"enableBgp": false,
"activeActive": false,
"sku": {
"name": "VpnGw1",
"tier": "VpnGw1",
"capacity": 2
},
"bgpSettings": {
"asn": 65514,
"bgpPeeringAddress": "10.0.1.30",
"peerWeight": 0
},
"resourceGuid": "00000000-0000-0000-0000-000000000000"
},
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw",
"location": "centralus",
"tags": {}
},
"localNetworkGateway2": {
"properties": {
"localNetworkAddressSpace": {
"addressPrefixes": [
"10.1.0.0/16"
]
},
"gatewayIpAddress": "x.x.x.x",
"resourceGuid": "00000000-0000-0000-0000-000000000000"
},
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw",
"location": "centralus",
"tags": {}
},
"connectionType": "IPsec",
"routingWeight": 0,
"sharedKey": "Abc123",
"enableBgp": false,
"usePolicyBasedTrafficSelectors": false,
"ipsecPolicies": []
},
"location": "centralus"
}
},
"responses" : {
"201" : {
"body" : {
"name": "connS2S",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/connections/connS2S",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/connections",
"location": "centralus",
"properties": {
"provisioningState": "Updating",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"virtualNetworkGateway1": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw"
},
"localNetworkGateway2": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw"
},
"connectionType": "IPsec",
"routingWeight": 0,
"sharedKey": "Abc123",
"enableBgp": false,
"usePolicyBasedTrafficSelectors": false,
"ipsecPolicies": [],
"ingressBytesTransferred": 0,
"egressBytesTransferred": 0
}
}
},
"200" : {
"body" : {
"name": "connS2S",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/connections/connS2S",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/connections",
"location": "centralus",
"properties": {
"provisioningState": "Updating",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"virtualNetworkGateway1": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw"
},
"localNetworkGateway2": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw"
},
"connectionType": "IPsec",
"routingWeight": 0,
"sharedKey": "Abc123",
"enableBgp": false,
"usePolicyBasedTrafficSelectors": false,
"ipsecPolicies": [],
"ingressBytesTransferred": 0,
"egressBytesTransferred": 0
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2018-02-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"virtualNetworkGatewayConnectionName" : "conn1"
},
"responses" : {
"202" : {
"body" : {

}
},
"200" : {
"body" : {

}
},
"204" : {
"body" : {

}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2018-02-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"virtualNetworkGatewayConnectionName" : "connS2S"
},
"responses" : {
"200" : {
"body" : {
"name": "connS2S",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/connections/connS2S",
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
"type": "Microsoft.Network/connections",
"location": "centralus",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"virtualNetworkGateway1": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw"
},
"localNetworkGateway2": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw"
},
"connectionType": "IPsec",
"routingWeight": 0,
"sharedKey": "Abc123",
"enableBgp": false,
"usePolicyBasedTrafficSelectors": false,
"ipsecPolicies": [],
"connectionStatus": "Connecting",
"ingressBytesTransferred": 0,
"egressBytesTransferred": 0
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2018-02-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"virtualNetworkGatewayConnectionName" : "connS2S"
},
"responses" : {
"200" : {
"body" : {
"properties": {
"value": "AzureAbc123"
}
}
}
}
}
Loading

0 comments on commit 3b0a560

Please sign in to comment.