Skip to content

Commit 0d3ffc7

Browse files
authored
Add 2 new POST APIs on VirtualNetworkGateway and VirtualWan resources. (#37028)
1 parent 8070fb8 commit 0d3ffc7

File tree

4 files changed

+174
-0
lines changed

4 files changed

+174
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-10-01",
4+
"subscriptionId": "72f988bf-86f1-41af-91ab-2d7cd0dddd4",
5+
"resourceGroupName": "rg1",
6+
"virtualNetworkGatewayName": "vpngw"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"radiusServerAddress": "1.1.1.1",
14+
"radiusServerSecret": "abc123"
15+
},
16+
{
17+
"radiusServerAddress": "2.2.2.2",
18+
"radiusServerSecret": "mnop1234"
19+
}
20+
]
21+
}
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-10-01",
4+
"subscriptionId": "72f988bf-86f1-41af-91ab-2d7cd0dddd4",
5+
"resourceGroupName": "rg1",
6+
"vpnServerConfigurationName": "vpnserverconfig"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"radiusServerAddress": "1.1.1.1",
14+
"radiusServerSecret": "abc1234"
15+
},
16+
{
17+
"radiusServerAddress": "2.2.2.2",
18+
"radiusServerSecret": "mnop12345"
19+
}
20+
]
21+
}
22+
}
23+
}
24+
}

specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/virtualNetworkGateway.json

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,52 @@
796796
}
797797
}
798798
},
799+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/listRadiusSecrets": {
800+
"post": {
801+
"tags": [
802+
"VirtualNetworkGateways"
803+
],
804+
"operationId": "VirtualNetworkGateways_ListRadiusSecrets",
805+
"description": "List all Radius servers with respective radius secrets from virtual network gateway VpnClientConfiguration.",
806+
"parameters": [
807+
{
808+
"$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter"
809+
},
810+
{
811+
"name": "virtualNetworkGatewayName",
812+
"in": "path",
813+
"required": true,
814+
"type": "string",
815+
"description": "The name of the virtual network gateway."
816+
},
817+
{
818+
"$ref": "./network.json#/parameters/ApiVersionParameter"
819+
},
820+
{
821+
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
822+
}
823+
],
824+
"responses": {
825+
"200": {
826+
"description": "List all Radius servers with respective radius secrets from virtual network gateway VpnClientConfiguration.",
827+
"schema": {
828+
"$ref": "#/definitions/RadiusAuthServerListResult"
829+
}
830+
},
831+
"default": {
832+
"description": "Error response describing why the operation failed.",
833+
"schema": {
834+
"$ref": "./network.json#/definitions/CloudError"
835+
}
836+
}
837+
},
838+
"x-ms-examples": {
839+
"ListAllVirtualNetworkGatewayRadiusServerSecrets": {
840+
"$ref": "./examples/AllVirtualNetworkGatewayRadiusServerSecretsList.json"
841+
}
842+
}
843+
}
844+
},
799845
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes": {
800846
"post": {
801847
"tags": [
@@ -4194,6 +4240,39 @@
41944240
},
41954241
"description": "List of virtual network gateway routes."
41964242
},
4243+
"RadiusAuthServer": {
4244+
"type": "object",
4245+
"properties": {
4246+
"radiusServerAddress": {
4247+
"type": "string",
4248+
"description": "Radius server IPAddress"
4249+
},
4250+
"radiusServerSecret": {
4251+
"type": "string",
4252+
"x-ms-secret": true,
4253+
"description": "Radius server secret"
4254+
}
4255+
},
4256+
"description": "Gateway or VpnServerConfiguration Radius server with radius secret details"
4257+
},
4258+
"RadiusAuthServerListResult": {
4259+
"type": "object",
4260+
"properties": {
4261+
"value": {
4262+
"type": "array",
4263+
"items": {
4264+
"$ref": "#/definitions/RadiusAuthServer"
4265+
},
4266+
"description": "List of Radius servers with respective radius secrets.",
4267+
"x-ms-identifiers": []
4268+
},
4269+
"nextLink": {
4270+
"type": "string",
4271+
"description": "URL to get the next set of operation list results if there are any."
4272+
}
4273+
},
4274+
"description": "List of Radius servers with respective radius secrets."
4275+
},
41974276
"GatewayResiliencyInformation": {
41984277
"type": "object",
41994278
"properties": {

specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/virtualWan.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,53 @@
13761376
}
13771377
}
13781378
},
1379+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/listRadiusSecrets": {
1380+
"post": {
1381+
"tags": [
1382+
"vpnServerConfigurations"
1383+
],
1384+
"operationId": "vpnServerConfigurations_ListRadiusSecrets",
1385+
"description": "List all Radius servers with respective radius secrets from VpnServerConfiguration.",
1386+
"parameters": [
1387+
{
1388+
"$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter"
1389+
},
1390+
{
1391+
"name": "vpnServerConfigurationName",
1392+
"in": "path",
1393+
"required": true,
1394+
"type": "string",
1395+
"pattern": "^[A-Za-z0-9_]+",
1396+
"description": "The name of the VpnServerConfiguration."
1397+
},
1398+
{
1399+
"$ref": "./network.json#/parameters/ApiVersionParameter"
1400+
},
1401+
{
1402+
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
1403+
}
1404+
],
1405+
"responses": {
1406+
"200": {
1407+
"description": "List all Radius servers with respective radius secrets from VpnServerConfiguration.",
1408+
"schema": {
1409+
"$ref": "./virtualNetworkGateway.json#/definitions/RadiusAuthServerListResult"
1410+
}
1411+
},
1412+
"default": {
1413+
"description": "Error response describing why the operation failed.",
1414+
"schema": {
1415+
"$ref": "./network.json#/definitions/CloudError"
1416+
}
1417+
}
1418+
},
1419+
"x-ms-examples": {
1420+
"ListAllVpnServerConfigurationRadiusServerSecrets": {
1421+
"$ref": "./examples/AllVpnServerConfigurationRadiusServerSecretsList.json"
1422+
}
1423+
}
1424+
}
1425+
},
13791426
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}": {
13801427
"get": {
13811428
"operationId": "VirtualHubs_Get",

0 commit comments

Comments
 (0)