From e6b80f3227c40a69f8291c510d18bc39e5880e56 Mon Sep 17 00:00:00 2001 From: "nilamd@microsoft.com" Date: Fri, 29 Aug 2025 02:02:49 -0700 Subject: [PATCH] Add 2 new POST APIs on VirtualNetworkGateway and VirtualWan resources. --- ...NetworkGatewayRadiusServerSecretsList.json | 24 ++++++ ...rConfigurationRadiusServerSecretsList.json | 24 ++++++ .../2024-10-01/virtualNetworkGateway.json | 79 +++++++++++++++++++ .../stable/2024-10-01/virtualWan.json | 47 +++++++++++ 4 files changed, 174 insertions(+) create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/examples/AllVirtualNetworkGatewayRadiusServerSecretsList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/examples/AllVpnServerConfigurationRadiusServerSecretsList.json diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/examples/AllVirtualNetworkGatewayRadiusServerSecretsList.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/examples/AllVirtualNetworkGatewayRadiusServerSecretsList.json new file mode 100644 index 000000000000..94d736190bd2 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/examples/AllVirtualNetworkGatewayRadiusServerSecretsList.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2024-10-01", + "subscriptionId": "72f988bf-86f1-41af-91ab-2d7cd0dddd4", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "radiusServerAddress": "1.1.1.1", + "radiusServerSecret": "abc123" + }, + { + "radiusServerAddress": "2.2.2.2", + "radiusServerSecret": "mnop1234" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/examples/AllVpnServerConfigurationRadiusServerSecretsList.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/examples/AllVpnServerConfigurationRadiusServerSecretsList.json new file mode 100644 index 000000000000..cb035e54cb67 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/examples/AllVpnServerConfigurationRadiusServerSecretsList.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2024-10-01", + "subscriptionId": "72f988bf-86f1-41af-91ab-2d7cd0dddd4", + "resourceGroupName": "rg1", + "vpnServerConfigurationName": "vpnserverconfig" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "radiusServerAddress": "1.1.1.1", + "radiusServerSecret": "abc1234" + }, + { + "radiusServerAddress": "2.2.2.2", + "radiusServerSecret": "mnop12345" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/virtualNetworkGateway.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/virtualNetworkGateway.json index dceda137bde5..8e7f5a604f03 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/virtualNetworkGateway.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/virtualNetworkGateway.json @@ -796,6 +796,52 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/listRadiusSecrets": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_ListRadiusSecrets", + "description": "List all Radius servers with respective radius secrets from virtual network gateway VpnClientConfiguration.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "List all Radius servers with respective radius secrets from virtual network gateway VpnClientConfiguration.", + "schema": { + "$ref": "#/definitions/RadiusAuthServerListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ListAllVirtualNetworkGatewayRadiusServerSecrets": { + "$ref": "./examples/AllVirtualNetworkGatewayRadiusServerSecretsList.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes": { "post": { "tags": [ @@ -4192,6 +4238,39 @@ }, "description": "List of virtual network gateway routes." }, + "RadiusAuthServer": { + "type": "object", + "properties": { + "radiusServerAddress": { + "type": "string", + "description": "Radius server IPAddress" + }, + "radiusServerSecret": { + "type": "string", + "x-ms-secret": true, + "description": "Radius server secret" + } + }, + "description": "Gateway or VpnServerConfiguration Radius server with radius secret details" + }, + "RadiusAuthServerListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RadiusAuthServer" + }, + "description": "List of Radius servers with respective radius secrets.", + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + }, + "description": "List of Radius servers with respective radius secrets." + }, "GatewayResiliencyInformation": { "type": "object", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/virtualWan.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/virtualWan.json index 7e31a3387de8..453f2269f2c5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/virtualWan.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-10-01/virtualWan.json @@ -1376,6 +1376,53 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/listRadiusSecrets": { + "post": { + "tags": [ + "vpnServerConfigurations" + ], + "operationId": "vpnServerConfigurations_ListRadiusSecrets", + "description": "List all Radius servers with respective radius secrets from VpnServerConfiguration.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "vpnServerConfigurationName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[A-Za-z0-9_]+", + "description": "The name of the VpnServerConfiguration." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "List all Radius servers with respective radius secrets from VpnServerConfiguration.", + "schema": { + "$ref": "./virtualNetworkGateway.json#/definitions/RadiusAuthServerListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ListAllVpnServerConfigurationRadiusServerSecrets": { + "$ref": "./examples/AllVpnServerConfigurationRadiusServerSecretsList.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}": { "get": { "operationId": "VirtualHubs_Get",