-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes related to setting VpnClient AAD authentication options to Virtual network gateway resource & Advertising virtual Wan 2 released APIs. #5935
Changes from 3 commits
4a5675c
4ed319e
f973b03
63f3518
672b878
7b6a060
5b11ebc
d2cef1a
9f2f978
bfeb347
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"parameters": { | ||
"gatewayName": "p2sVpnGateway1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2019-04-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "p2sVpnGateway1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"location": "West US", | ||
"type": "Microsoft.Network/p2sVpnGateways", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"virtualHub": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" | ||
}, | ||
"p2SVpnServerConfiguration": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" | ||
}, | ||
"vpnClientAddressPool": { | ||
"addressPrefixes": [ | ||
"101.3.0.0/16" | ||
] | ||
}, | ||
"customRoutes": { | ||
"addressPrefixes": [ | ||
"101.168.0.6/32" | ||
] | ||
}, | ||
"vpnGatewayScaleUnit": 1, | ||
"vpnClientConnectionHealth": { | ||
"vpnClientConnectionsCount": 2, | ||
"allocatedIpAddresses": [ | ||
"1.1.1.1", | ||
"2.2.2.2" | ||
], | ||
"totalIngressBytesTransferred":2000, | ||
"totalEgressBytesTransferred":3000 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,16 @@ | |
"vpnType": "RouteBased", | ||
"enableBgp": false, | ||
"activeActive": false, | ||
"vpnClientConfiguration": { | ||
"vpnClientProtocols": [ | ||
"OpenVPN" | ||
], | ||
"vpnClientRootCertificates": [], | ||
"vpnClientRevokedCertificates": [], | ||
"aadTenant": "https://login.microsoftonline.com/99163270-c9ab-4279-bb12-5353ed9bf6e1", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor, code style: please keep TAB/space consistency over the files There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
"aadAudience": "fd11706c-e78c-4828-8be7-ac7dcefd4b17", | ||
"aadIssuer": "https://sts.windows.net/99163270-c9ab-4279-bb12-5353ed9bf6e1/" | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor, code style: please remove trailing spaces There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
"bgpSettings": { | ||
"asn": 65514, | ||
"bgpPeeringAddress": "10.0.1.30", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"parameters": { | ||
"gatewayName": "vpngw", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2019-04-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"202" : { }, | ||
"200": { | ||
"body": { | ||
"name": "vpngw", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/vpngw", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"location": "West US", | ||
"type": "Microsoft.Network/vpnGateways", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"virtualHub": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" | ||
}, | ||
"connections": [ | ||
{ | ||
"name": "vpnConnection1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/vpngw/vpnConnections/vpnConnection1", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"remoteVpnSite": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" | ||
}, | ||
"connectionStatus": "Connected", | ||
"ingressBytesTransferred": 0, | ||
"egressBytesTransferred": 0, | ||
"routingWeight": 0, | ||
"connectionBandwidth": 100, | ||
"sharedKey": "key", | ||
"enableBgp": false, | ||
"useLocalAzureIpAddress": false, | ||
"ipsecPolicies": [ ] | ||
} | ||
} | ||
], | ||
"bgpSettings": { | ||
"asn": 65514, | ||
"bgpPeeringAddress": "10.0.1.30", | ||
"peerWeight": 0 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -1390,6 +1390,55 @@ | |||||
} | ||||||
} | ||||||
}, | ||||||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/reset": { | ||||||
"post": { | ||||||
"tags": [ | ||||||
"vpnGateways" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||||||
], | ||||||
"operationId": "vpnGateways_Reset", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. basing on other operations format
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||||||
"description": "Resets the primary of the vpn gateway in the specified resource group.", | ||||||
"parameters": [ | ||||||
{ | ||||||
"name": "resourceGroupName", | ||||||
"in": "path", | ||||||
"required": true, | ||||||
"type": "string", | ||||||
"description": "The resource group name of the VpnGateway." | ||||||
}, | ||||||
{ | ||||||
"name": "gatewayName", | ||||||
"in": "path", | ||||||
"required": true, | ||||||
"type": "string", | ||||||
"description": "The name of the gateway." | ||||||
}, | ||||||
{ | ||||||
"$ref": "./network.json#/parameters/ApiVersionParameter" | ||||||
}, | ||||||
{ | ||||||
"$ref": "./network.json#/parameters/SubscriptionIdParameter" | ||||||
} | ||||||
], | ||||||
"responses": { | ||||||
"202": { | ||||||
"description": "Accepted and the operation will complete asynchronously." | ||||||
}, | ||||||
"200": { | ||||||
"description": "Request successful. The operation reset the primary of the VpnGateway.", | ||||||
"schema": { | ||||||
"$ref": "#/definitions/VpnGateway" | ||||||
} | ||||||
} | ||||||
}, | ||||||
"x-ms-examples": { | ||||||
"ResetVpnGateway": { "$ref": "./examples/VpnGatewayReset.json" } | ||||||
}, | ||||||
"x-ms-long-running-operation": true, | ||||||
"x-ms-long-running-operation-options": { | ||||||
"final-state-via": "location" | ||||||
} | ||||||
} | ||||||
}, | ||||||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways": { | ||||||
"get": { | ||||||
"operationId": "VpnGateways_ListByResourceGroup", | ||||||
|
@@ -2300,7 +2349,56 @@ | |||||
"final-state-via": "location" | ||||||
} | ||||||
} | ||||||
} | ||||||
}, | ||||||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getp2svpnconnectionhealth": { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||||||
"post": { | ||||||
"tags": [ | ||||||
"P2SVpnGateways" | ||||||
], | ||||||
"operationId": "P2sVpnGateways_GetP2sVpnConnectionHealth", | ||||||
"description": "Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group.", | ||||||
"parameters": [ | ||||||
{ | ||||||
"name": "resourceGroupName", | ||||||
"in": "path", | ||||||
"required": true, | ||||||
"type": "string", | ||||||
"description": "The name of the resource group." | ||||||
}, | ||||||
{ | ||||||
"name": "gatewayName", | ||||||
"in": "path", | ||||||
"required": true, | ||||||
"type": "string", | ||||||
"description": "The name of the P2SVpnGateway." | ||||||
}, | ||||||
{ | ||||||
"$ref": "./network.json#/parameters/ApiVersionParameter" | ||||||
}, | ||||||
{ | ||||||
"$ref": "./network.json#/parameters/SubscriptionIdParameter" | ||||||
} | ||||||
], | ||||||
"responses": { | ||||||
"200": { | ||||||
"description": "P2S Vpn Gateway with P2S connection health details.", | ||||||
"schema": { | ||||||
"$ref": "#/definitions/P2SVpnGateway" | ||||||
} | ||||||
}, | ||||||
"202": { | ||||||
"description": "Accepted and the operation will complete asynchronously." | ||||||
} | ||||||
}, | ||||||
"x-ms-examples": { | ||||||
"P2SVpnGatewayGetConnectionHealth": { "$ref": "./examples/P2SVpnGatewayGetConnectionHealth.json" } | ||||||
}, | ||||||
"x-ms-long-running-operation": true, | ||||||
"x-ms-long-running-operation-options": { | ||||||
"final-state-via": "location" | ||||||
} | ||||||
} | ||||||
} | ||||||
}, | ||||||
"definitions": { | ||||||
"VirtualWanProperties": { | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add entry for 202 response code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.