-
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 Local and Virtual Gateway Examples (#2833)
* Add Local and Virtual Gateway Examples * Added missing lines from 2018-02-01 to virtualNetworkGateway
- Loading branch information
1 parent
8a4e351
commit 3b0a560
Showing
25 changed files
with
1,071 additions
and
4 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
...ource-manager/Microsoft.Network/stable/2018-02-01/examples/LocalNetworkGatewayCreate.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,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" | ||
} | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...ource-manager/Microsoft.Network/stable/2018-02-01/examples/LocalNetworkGatewayDelete.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": { | ||
"api-version": "2018-02-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"localNetworkGatewayName" : "localgw" | ||
}, | ||
"responses" : { | ||
"202" : { | ||
"body" : { | ||
|
||
} | ||
}, | ||
"200" : { | ||
"body" : { | ||
|
||
} | ||
}, | ||
"204" : { | ||
"body" : { | ||
|
||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...resource-manager/Microsoft.Network/stable/2018-02-01/examples/LocalNetworkGatewayGet.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,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" | ||
} | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...esource-manager/Microsoft.Network/stable/2018-02-01/examples/LocalNetworkGatewayList.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,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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
129 changes: 129 additions & 0 deletions
129
...r/Microsoft.Network/stable/2018-02-01/examples/VirtualNetworkGatewayConnectionCreate.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,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 | ||
} | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...r/Microsoft.Network/stable/2018-02-01/examples/VirtualNetworkGatewayConnectionDelete.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": { | ||
"api-version": "2018-02-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"virtualNetworkGatewayConnectionName" : "conn1" | ||
}, | ||
"responses" : { | ||
"202" : { | ||
"body" : { | ||
|
||
} | ||
}, | ||
"200" : { | ||
"body" : { | ||
|
||
} | ||
}, | ||
"204" : { | ||
"body" : { | ||
|
||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...ager/Microsoft.Network/stable/2018-02-01/examples/VirtualNetworkGatewayConnectionGet.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,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 | ||
} | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...osoft.Network/stable/2018-02-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.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,17 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-02-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"virtualNetworkGatewayConnectionName" : "connS2S" | ||
}, | ||
"responses" : { | ||
"200" : { | ||
"body" : { | ||
"properties": { | ||
"value": "AzureAbc123" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.