From a27331a89180f80c0a848b7f60c59eb75f784577 Mon Sep 17 00:00:00 2001 From: Sonalli S Sharma Date: Fri, 13 Sep 2024 01:25:13 -0700 Subject: [PATCH 01/13] Add IPAM, VNV, update Security Admin and Vnet specs --- .../2024-05-01/examples/IpamPools_Create.json | 81 ++ .../2024-05-01/examples/IpamPools_Delete.json | 18 + .../2024-05-01/examples/IpamPools_Get.json | 40 + .../examples/IpamPools_GetPoolUsage.json | 67 + .../2024-05-01/examples/IpamPools_List.json | 44 + .../IpamPools_ListAssociatedResources.json | 32 + .../2024-05-01/examples/IpamPools_Update.json | 46 + .../examples/NetworkManagerAdminRulePut.json | 3 +- ...nagerAdminRulePut_NetworkGroupSource.json} | 53 +- ...minConfigurationPut_ManualAggregation.json | 57 + .../ReachabilityAnalysisIntentDelete.json | 14 + .../ReachabilityAnalysisIntentGet.json | 50 + .../ReachabilityAnalysisIntentList.json | 54 + .../ReachabilityAnalysisIntentPut.json | 112 ++ .../ReachabilityAnalysisRunDelete.json | 18 + .../examples/ReachabilityAnalysisRunGet.json | 55 + .../examples/ReachabilityAnalysisRunList.json | 57 + .../examples/ReachabilityAnalysisRunPut.json | 106 ++ .../examples/StaticCidrs_Create.json | 65 + .../examples/StaticCidrs_Delete.json | 19 + .../2024-05-01/examples/StaticCidrs_Get.json | 37 + .../2024-05-01/examples/StaticCidrs_List.json | 41 + .../examples/VerifierWorkspaceDelete.json | 17 + .../examples/VerifierWorkspaceGet.json | 36 + .../examples/VerifierWorkspaceList.json | 35 + .../examples/VerifierWorkspacePatch.json | 42 + .../examples/VerifierWorkspacePut.json | 60 + .../VirtualNetworkCreateWithIpamPool.json | 144 ++ .../stable/2024-05-01/ipAddressManager.json | 1119 +++++++++++++++ .../stable/2024-05-01/network.json | 144 +- .../stable/2024-05-01/networkManager.json | 2 +- ...workManagerSecurityAdminConfiguration.json | 130 +- .../stable/2024-05-01/networkVerifier.json | 1268 +++++++++++++++++ .../stable/2024-05-01/virtualNetwork.json | 48 +- .../network/resource-manager/readme.md | 2 + 35 files changed, 4040 insertions(+), 76 deletions(-) create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Create.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Delete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Get.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_GetPoolUsage.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_List.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_ListAssociatedResources.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Update.json rename specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/{NetworkManagerDefaultAdminRulePut.json => NetworkManagerAdminRulePut_NetworkGroupSource.json} (68%) create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Create.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Delete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Get.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_List.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspacePatch.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspacePut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreateWithIpamPool.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/ipAddressManager.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkVerifier.json diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Create.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Create.json new file mode 100644 index 000000000000..6d50fcad61d3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Create.json @@ -0,0 +1,81 @@ +{ + "title": "Create/Update the Pool resource", + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool", + "body": { + "location": "eastus", + "properties": { + "description": "Test description.", + "parentPoolName": "", + "addressPrefixes": [ + "10.0.0.0/24" + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "TestPool", + "type": "Microsoft.Network/networkManagers/ipamPools", + "properties": { + "description": "Test description.", + "ipAddressType": [ + "IPv4" + ], + "parentPoolName": "", + "addressPrefixes": [ + "10.0.0.0/24" + ], + "provisioningState": "Updating" + }, + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool", + "tags": {}, + "location": "eastus", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + } + } + }, + "201": { + "body": { + "name": "TestPool", + "type": "Microsoft.Network/networkManagers/ipamPools", + "properties": { + "description": "Test description.", + "ipAddressType": [ + "IPv4" + ], + "parentPoolName": "", + "addressPrefixes": [ + "10.0.0.0/24" + ], + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool", + "tags": {}, + "location": "eastus", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/locations/eastus/ipamPoolOperationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Delete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Delete.json new file mode 100644 index 000000000000..d6e0860f0c31 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Delete.json @@ -0,0 +1,18 @@ +{ + "title": "Delete the Pool resource", + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/locations/eastus/ipamPoolOperationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Get.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Get.json new file mode 100644 index 000000000000..1b1020b583d9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Get.json @@ -0,0 +1,40 @@ +{ + "title": "Gets the specific Pool resource", + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool" + }, + "responses": { + "200": { + "body": { + "name": "TestPool", + "type": "Microsoft.Network/networkManagers/ipamPools", + "properties": { + "description": "Test description.", + "ipAddressType": [ + "IPv4" + ], + "parentPoolName": "", + "addressPrefixes": [ + "10.0.0.0/24" + ], + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool", + "tags": {}, + "location": "eastus", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_GetPoolUsage.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_GetPoolUsage.json new file mode 100644 index 000000000000..18e2f9110d17 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_GetPoolUsage.json @@ -0,0 +1,67 @@ +{ + "title": "Get the Pool Usage", + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool" + }, + "responses": { + "200": { + "body": { + "addressPrefixes": [ + "10.0.0.0/8", + "192.0.0.0/8" + ], + "childPools": [ + { + "resourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool1", + "addressPrefixes": [ + "10.0.2.0/26" + ] + }, + { + "resourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool2", + "addressPrefixes": [ + "10.0.3.0/26" + ] + } + ], + "allocatedAddressPrefixes": [ + "10.0.2.0/26", + "10.0.3.0/26" + ], + "reservedAddressPrefixes": [ + "10.0.0.0/24" + ], + "availableAddressPrefixes": [ + "10.0.1.0/24", + "10.0.2.64/26", + "10.0.2.128/25", + "10.0.3.64/26", + "10.0.3.128/25", + "10.0.4.0/22", + "10.0.8.0/21", + "10.0.16.0/20", + "10.0.32.0/19", + "10.0.64.0/18", + "10.0.128.0/17", + "10.1.0.0/16", + "10.2.0.0/15", + "10.4.0.0/14", + "10.8.0.0/13", + "10.16.0.0/12", + "10.32.0.0/11", + "10.64.0.0/10", + "10.128.0.0/9", + "192.0.0.0/8" + ], + "totalNumberOfIPAddresses": "33554432", + "numberOfAllocatedIPAddresses": "128", + "numberOfReservedIPAddresses": "256", + "numberOfAvailableIPAddresses": "33554048" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_List.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_List.json new file mode 100644 index 000000000000..c4c191e57d36 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_List.json @@ -0,0 +1,44 @@ +{ + "title": "Gets list of Pool resources at Network Manager level", + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestPool", + "type": "Microsoft.Network/networkManagers/ipamPools", + "properties": { + "description": "Test description.", + "ipAddressType": [ + "IPv4" + ], + "parentPoolName": "", + "addressPrefixes": [ + "10.0.0.0/24" + ], + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool", + "tags": {}, + "location": "eastus", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + } + } + ], + "nextLink": "{baseurl}/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools?api-version=2024-05-01&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_ListAssociatedResources.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_ListAssociatedResources.json new file mode 100644 index 000000000000..ad3ca9396e27 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_ListAssociatedResources.json @@ -0,0 +1,32 @@ +{ + "title": "List Associated Resource in the Pool", + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/testVnet", + "poolId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool", + "description": "", + "addressPrefixes": [ + "10.0.0.0/24" + ], + "reservedPrefixes": [], + "totalNumberOfIPAddresses": "256", + "numberOfReservedIPAddresses": "0", + "createdAt": "2020-09-09T20:00:00.0000000Z", + "reservationExpiresAt": null + } + ], + "nextLink": "{baseurl}/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/listAssociatedResources?api-version=2024-05-01" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Update.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Update.json new file mode 100644 index 000000000000..649e86736c9d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Update.json @@ -0,0 +1,46 @@ +{ + "title": "Updates the specific Pool resource", + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool", + "parameters": { + "properties": { + "description": "Test description.", + "displayName": "TestPool" + } + } + }, + "responses": { + "200": { + "body": { + "name": "TestPool", + "type": "Microsoft.Network/networkManagers/ipamPools", + "properties": { + "description": "Test description.", + "ipAddressType": [ + "IPv4" + ], + "parentPoolName": "test-ipam-pool", + "addressPrefixes": [ + "10.0.0.0/24" + ], + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool", + "tags": {}, + "location": "eastus", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRulePut.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRulePut.json index b57fe0c15c45..8e9cab6dbc76 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRulePut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRulePut.json @@ -82,7 +82,7 @@ }, "201": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/rules/SampleAdminRule", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule", "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", "name": "SampleAdminRule", "kind": "Custom", @@ -125,4 +125,3 @@ } } } - diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerDefaultAdminRulePut.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRulePut_NetworkGroupSource.json similarity index 68% rename from specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerDefaultAdminRulePut.json rename to specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRulePut_NetworkGroupSource.json index 901694d040c0..be79789c4e20 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerDefaultAdminRulePut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRulePut_NetworkGroupSource.json @@ -6,21 +6,43 @@ "networkManagerName": "testNetworkManager", "configurationName": "myTestSecurityConfig", "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleDefaultAdminRule", + "ruleName": "SampleAdminRule", "adminRule": { - "kind": "Default", + "kind": "Custom", "properties": { - "flag": "AllowVnetInbound" + "description": "This is Sample Admin Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "ServiceTag", + "addressPrefix": "Internet" + } + ], + "destinations": [ + { + "addressPrefixType": "NetworkGroup", + "addressPrefix": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/ng1" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "access": "Deny", + "priority": 1, + "direction": "Inbound" } } }, "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleDefaultAdminRule", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule", "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", - "name": "SampleDefaultAdminRule", - "kind": "Default", + "name": "SampleAdminRule", + "kind": "Custom", "systemData": { "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", "createdByType": "User", @@ -30,8 +52,7 @@ "lastModifiedAt": "2021-01-11T18:52:27Z" }, "properties": { - "flag": "AllowVnetInbound", - "description": "This is Sample Default Admin Rule", + "description": "This is Sample Admin Rule using a network group as a source and destination.", "protocol": "Tcp", "sources": [ { @@ -54,17 +75,16 @@ "access": "Deny", "priority": 1, "direction": "Inbound", - "provisioningState": "Succeeded", - "resourceGuid": "00000000-0000-0000-0000-000000000000" + "provisioningState": "Succeeded" } } }, "201": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/rules/SampleDefaultAdminRule", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule", "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", - "name": "SampleDefaultAdminRule", - "kind": "Default", + "name": "SampleAdminRule", + "kind": "Custom", "systemData": { "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", "createdByType": "User", @@ -74,8 +94,7 @@ "lastModifiedAt": "2021-01-11T18:52:27Z" }, "properties": { - "flag": "AllowVnetInbound", - "description": "This is Sample Default Admin Rule", + "description": "This is Sample Admin Rule using a network group as a source and destination.", "protocol": "Tcp", "sources": [ { @@ -98,11 +117,9 @@ "access": "Deny", "priority": 1, "direction": "Inbound", - "provisioningState": "Succeeded", - "resourceGuid": "00000000-0000-0000-0000-000000000000" + "provisioningState": "Succeeded" } } } } } - diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json new file mode 100644 index 000000000000..3d112f3ea01c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "securityAdminConfiguration": { + "properties": { + "description": "A configuration which will update any network groups ip addresses at commit times.", + "networkGroupAddressSpaceAggregationOption": "Manual" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig", + "name": "myTestSecurityConfig", + "type": "Microsoft.Network/networkManagers/securityAdminConfigurations", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample policy", + "provisioningState": "Succeeded", + "networkGroupAddressSpaceAggregationOption": "Manual" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig", + "name": "myTestSecurityConfig", + "type": "Microsoft.Network/networkManagers/securityAdminConfigurations", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample policy", + "provisioningState": "Succeeded", + "networkGroupAddressSpaceAggregationOption": "Manual" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentDelete.json new file mode 100644 index 000000000000..e5449148f966 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "workspaceName": "testWorkspace", + "reachabilityAnalysisIntentName": "testAnalysisIntent" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentGet.json new file mode 100644 index 000000000000..7fe3792491ce --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentGet.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "workspaceName": "testWorkspace", + "reachabilityAnalysisIntentName": "testAnalysisIntentName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testWorkspace/reachabilityAnalysisIntents/testAnalysisIntentName", + "name": "testAnalysisIntentName", + "type": "Microsoft.Network/networkManagers/verifierWorkspaces/reachabilityAnalysisIntents", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample reachability analysis intent", + "provisioningState": "Succeeded", + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc", + "destinationResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest", + "ipTraffic": { + "sourceIps": [ + "10.4.0.0" + ], + "destinationIps": [ + "10.4.0.1" + ], + "sourcePorts": [ + "0" + ], + "destinationPorts": [ + "0" + ], + "protocols": [ + "Any" + ] + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentList.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentList.json new file mode 100644 index 000000000000..eb8fb451be4d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentList.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "workspaceName": "testVerifierWorkspace1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1/reachabilityAnalysisIntents/testReachabilityAnalysisIntenant1", + "name": "testReachabilityAnalysisIntenant1", + "type": "Microsoft.Network/networkManagers/verifierWorkspaces/reachabilityAnalysisIntents", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample reachability analysis intent", + "provisioningState": "Succeeded", + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc", + "destinationResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest", + "ipTraffic": { + "sourceIps": [ + "10.4.0.0" + ], + "destinationIps": [ + "10.4.0.1" + ], + "sourcePorts": [ + "0" + ], + "destinationPorts": [ + "0" + ], + "protocols": [ + "Any" + ] + } + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1/reachabilityAnalysisIntents?api-version=2024-05-01&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentPut.json new file mode 100644 index 000000000000..402e0f42294f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentPut.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "workspaceName": "testWorkspace", + "reachabilityAnalysisIntentName": "testAnalysisIntentName", + "body": { + "properties": { + "description": "A sample reachability analysis intent", + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc", + "destinationResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest", + "ipTraffic": { + "sourceIps": [ + "10.4.0.0" + ], + "destinationIps": [ + "10.4.0.1" + ], + "sourcePorts": [ + "0" + ], + "destinationPorts": [ + "0" + ], + "protocols": [ + "Any" + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testWorkspace/reachabilityAnalysisIntents/testAnalysisIntentName", + "name": "testAnalysisIntentName", + "type": "Microsoft.Network/networkManagers/verifierWorkspaces/reachabilityAnalysisIntents", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample reachability analysis intent", + "provisioningState": "Succeeded", + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc", + "destinationResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest", + "ipTraffic": { + "sourceIps": [ + "10.4.0.0" + ], + "destinationIps": [ + "10.4.0.1" + ], + "sourcePorts": [ + "0" + ], + "destinationPorts": [ + "0" + ], + "protocols": [ + "Any" + ] + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testWorkspace/reachabilityAnalysisIntents/testAnalysisIntentName", + "name": "testAnalysisIntentName", + "type": "Microsoft.Network/networkManagers/reachabilityAnalysisIntents", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample reachability analysis intent", + "provisioningState": "Succeeded", + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc", + "destinationResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest", + "ipTraffic": { + "sourceIps": [ + "10.4.0.0" + ], + "destinationIps": [ + "10.4.0.1" + ], + "sourcePorts": [ + "0" + ], + "destinationPorts": [ + "0" + ], + "protocols": [ + "Any" + ] + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json new file mode 100644 index 000000000000..caa69596ea47 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "workspaceName": "testWorkspace", + "reachabilityAnalysisRunName": "testAnalysisRun" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/verifierWorkspaceOperationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunGet.json new file mode 100644 index 000000000000..2a7c264271a0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunGet.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "workspaceName": "testWorkspace", + "reachabilityAnalysisRunName": "testAnalysisRunName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testWorkspace/reachabilityAnalysisRuns/testAnalysisRunName", + "name": "testAnalysisRunName", + "type": "Microsoft.Network/networkManagers/verifierWorkspaces/reachabilityAnalysisRuns", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample reachability analysis intent", + "intentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1/reachabilityAnalysisIntents/testReachabilityAnalysisIntenant1", + "provisioningState": "Succeeded", + "intentContent": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc", + "destinationResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest", + "ipTraffic": { + "sourceIps": [ + "10.4.0.0" + ], + "destinationIps": [ + "10.4.0.1" + ], + "sourcePorts": [ + "0" + ], + "destinationPorts": [ + "0" + ], + "protocols": [ + "Any" + ] + } + }, + "analysisResult": "{\"resultOutcome\":\"NoPacketsReached\",\"unreachedTrace\":\"[{\\\"name\\\":\\\"testVmSrc\\\",\\\"resourceId\\\":\\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc\\\",\\\"resourceType\\\":\\\"Microsoft.Compute/virtualMachines\\\",\\\"packet\\\":{\\\"destinationAddress\\\":\\\"10.1.0.4\\\",\\\"destinationPort\\\":\\\"0\\\",\\\"sourceAddress\\\":\\\"10.5.0.4\\\",\\\"sourcePort\\\":\\\"0\\\",\\\"protocol\\\":\\\"TCP\\\"},\\\"explanation\\\":{\\\"description\\\":\\\"Packet has source IP address matching one of the network interface IPs.\\\",\\\"explanationCode\\\":\\\"MATCHED_NETWORK_INTERFACE_IP_SOURCE\\\",\\\"matchedNetworkInterfaceAddress\\\":{\\\"networkInterface\\\":\\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface\\\",\\\"ipAddress\\\":\\\"10.5.0.4\\\"}}},{\\\"name\\\":\\\"testNetworkInterface\\\",\\\"resourceId\\\":\\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface\\\",\\\"resourceType\\\":\\\"Microsoft.Network/networkInterfaces\\\",\\\"packet\\\":{\\\"destinationAddress\\\":\\\"10.1.0.4\\\",\\\"destinationPort\\\":\\\"0\\\",\\\"sourceAddress\\\":\\\"10.5.0.4\\\",\\\"sourcePort\\\":\\\"0\\\",\\\"protocol\\\":\\\"TCP\\\"},\\\"explanation\\\":{\\\"description\\\":\\\"Packet has source IP address matching one of the network interface IPs.\\\",\\\"explanationCode\\\":\\\"MATCHED_NETWORK_INTERFACE_IP_SOURCE\\\",\\\"matchedNetworkInterfaceAddress\\\":{\\\"networkInterface\\\":\\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface\\\",\\\"ipAddress\\\":\\\"10.5.0.4\\\"}}},{\\\"name\\\":\\\"testNetworkManager\\\",\\\"resourceId\\\":\\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager\\\",\\\"resourceType\\\":\\\"Microsoft.Network/networkManagers\\\",\\\"packet\\\":{\\\"destinationAddress\\\":\\\"10.1.0.4\\\",\\\"destinationPort\\\":\\\"0\\\",\\\"sourceAddress\\\":\\\"10.5.0.4\\\",\\\"sourcePort\\\":\\\"0\\\",\\\"protocol\\\":\\\"TCP\\\"},\\\"explanation\\\":{\\\"description\\\":\\\"Packet matched an admin security rule.\\\",\\\"explanationCode\\\":\\\"MATCHED_ADMIN_SECURITY_RULE\\\",\\\"matchedSecurityRule\\\":{\\\"name\\\":\\\"AllowAllOutbound\\\",\\\"action\\\":\\\"Allow\\\",\\\"destinationAddress\\\":\\\"*\\\",\\\"sourceAddress\\\":\\\"*\\\",\\\"destinationPort\\\":\\\"1-65535\\\",\\\"sourcePort\\\":\\\"1-65535\\\",\\\"protocol\\\":\\\"Any\\\"}}},{\\\"name\\\":\\\"testnsg\\\",\\\"resourceId\\\":\\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg-eus2\\\",\\\"resourceType\\\":\\\"Microsoft.Network/networkSecurityGroups\\\",\\\"packet\\\":{\\\"destinationAddress\\\":\\\"10.1.0.4\\\",\\\"destinationPort\\\":\\\"0\\\",\\\"sourceAddress\\\":\\\"10.5.0.4\\\",\\\"sourcePort\\\":\\\"0\\\",\\\"protocol\\\":\\\"TCP\\\"},\\\"explanation\\\":{\\\"description\\\":\\\"Packet matched a network security rule.\\\",\\\"explanationCode\\\":\\\"MATCHED_NETWORK_SECURITY_RULE\\\",\\\"matchedSecurityRule\\\":{\\\"name\\\":\\\"defaultSecurityRules/AllowVnetOutBound\\\",\\\"action\\\":\\\"allow\\\",\\\"destinationAddress\\\":\\\"VirtualNetwork\\\",\\\"sourceAddress\\\":\\\"VirtualNetwork\\\",\\\"destinationPort\\\":\\\"0-65535\\\",\\\"sourcePort\\\":\\\"0-65535\\\",\\\"protocol\\\":\\\"All\\\"}}},{\\\"name\\\":\\\"default\\\",\\\"resourceId\\\":\\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/default\\\",\\\"resourceType\\\":\\\"Microsoft.Network/virtualNetworks/subnets\\\",\\\"packet\\\":{\\\"destinationAddress\\\":\\\"10.1.0.4\\\",\\\"destinationPort\\\":\\\"0\\\",\\\"sourceAddress\\\":\\\"10.5.0.4\\\",\\\"sourcePort\\\":\\\"0\\\",\\\"protocol\\\":\\\"TCP\\\"},\\\"explanation\\\":{\\\"description\\\":\\\"Packet matched a system route.\\\",\\\"explanationCode\\\":\\\"MATCHED_SYSTEM_ROUTE\\\",\\\"matchedSubnetRoute\\\":{\\\"source\\\":\\\"Default\\\",\\\"addressPrefix\\\":\\\"10.1.0.0/16\\\",\\\"nextHopIpAddress\\\":[],\\\"nextHopType\\\":\\\"ConnectedGroup\\\"}}},{\\\"name\\\":\\\"testvnet1\\\",\\\"resourceId\\\":\\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/testvnet1\\\",\\\"resourceType\\\":\\\"Microsoft.Network/virtualNetworks\\\",\\\"packet\\\":{\\\"destinationAddress\\\":\\\"10.1.0.4\\\",\\\"destinationPort\\\":\\\"0\\\",\\\"sourceAddress\\\":\\\"10.5.0.4\\\",\\\"sourcePort\\\":\\\"0\\\",\\\"protocol\\\":\\\"TCP\\\"},\\\"explanation\\\":{\\\"description\\\":\\\"Packet destination IP is destined to subnet prefix.\\\",\\\"explanationCode\\\":\\\"MATCHED_SUBNET_PREFIX\\\",\\\"matchedSubnetPrefix\\\":{\\\"subnet\\\":\\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/testvnet-1/subnets/default\\\",\\\"subnetPrefix\\\":\\\"10.1.0.0/24\\\"}}},{\\\"name\\\":\\\"default\\\",\\\"resourceId\\\":\\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/testvnet1/subnets/default\\\",\\\"resourceType\\\":\\\"Microsoft.Network/virtualNetworks/subnets\\\",\\\"packet\\\":{\\\"destinationAddress\\\":\\\"10.1.0.4\\\",\\\"destinationPort\\\":\\\"443\\\",\\\"sourceAddress\\\":\\\"10.5.0.4\\\",\\\"sourcePort\\\":\\\"0\\\"\\\"protocol\\\":\\\"TCP\\\"},\\\"explanation\\\":{\\\"description\\\":\\\"Packet denied due to VM not currently running.\\\",\\\"explanationCode\\\":\\\"VM_TURNED_OFF\\\"}}]\"}", + "errorMessage": "" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunList.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunList.json new file mode 100644 index 000000000000..41e7d3168c7d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunList.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "workspaceName": "testVerifierWorkspace1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1/reachabilityAnalysisRuns/testReachabilityAnalysisRun1", + "name": "testReachabilityAnalysisRun1", + "type": "Microsoft.Network/networkManagers/verifierWorkspaces/reachabilityAnalysisRuns", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample reachability analysis intent", + "intentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1/reachabilityAnalysisIntents/testReachabilityAnalysisIntenant1", + "provisioningState": "Succeeded", + "intentContent": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc", + "destinationResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest", + "ipTraffic": { + "sourceIps": [ + "10.4.0.0" + ], + "destinationIps": [ + "10.4.0.1" + ], + "sourcePorts": [ + "0" + ], + "destinationPorts": [ + "0" + ], + "protocols": [ + "Any" + ] + } + } + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1/reachabilityAnalysisRuns?api-version=2024-05-01&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunPut.json new file mode 100644 index 000000000000..2b1cd13a2a21 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunPut.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "workspaceName": "testWorkspace", + "reachabilityAnalysisRunName": "testAnalysisRunName", + "body": { + "properties": { + "description": "A sample reachability analysis run", + "intentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1/reachabilityAnalysisIntents/testReachabilityAnalysisIntenant1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testWorkspace/reachabilityAnalysisRuns/testAnalysisRunName", + "name": "testAnalysisRunName", + "type": "Microsoft.Network/networkManagers/verifierWorkspaces/reachabilityAnalysisRuns", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample reachability analysis intent", + "intentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1/reachabilityAnalysisIntents/testReachabilityAnalysisIntenant1", + "provisioningState": "Succeeded", + "intentContent": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc", + "destinationResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest", + "ipTraffic": { + "sourceIps": [ + "10.4.0.0" + ], + "destinationIps": [ + "10.4.0.1" + ], + "sourcePorts": [ + "0" + ], + "destinationPorts": [ + "0" + ], + "protocols": [ + "Any" + ] + } + } + } + }, + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/verifierWorkspaceOperationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01" + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/verifierWorkspaces/testWorkspace/reachabilityAnalysisRuns/testAnalysisRunName", + "name": "testAnalysisRunName", + "type": "Microsoft.Network/networkManagers/verifierWorkspaces/reachabilityAnalysisRuns", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample reachability analysis intent", + "intentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1/reachabilityAnalysisIntents/testReachabilityAnalysisIntenant1", + "provisioningState": "Succeeded", + "intentContent": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc", + "destinationResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest", + "ipTraffic": { + "sourceIps": [ + "10.4.0.0" + ], + "destinationIps": [ + "10.4.0.1" + ], + "sourcePorts": [ + "0" + ], + "destinationPorts": [ + "0" + ], + "protocols": [ + "Any" + ] + } + } + } + }, + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/verifierWorkspaceOperationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Create.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Create.json new file mode 100644 index 000000000000..ade26e8df1cf --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Create.json @@ -0,0 +1,65 @@ +{ + "title": "Create a StaticCidr Resource", + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool", + "staticCidrName": "TestStaticCidr", + "parameters": { + "description": "test description", + "addressPrefixes": [ + "10.0.0.0/24" + ] + } + }, + "responses": { + "200": { + "body": { + "name": "OnPremResources", + "type": "Microsoft.Network/networkManagers/ipamPools/TestStaticCidr", + "properties": { + "description": "test description", + "addressPrefixes": [ + "10.0.0.0/24" + ], + "numberOfIPAddressesToAllocate": "", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool/staticCidrs/TestStaticCidr", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + } + } + }, + "201": { + "body": { + "name": "OnPremResources", + "type": "Microsoft.Network/networkManagers/ipamPools/TestStaticCidr", + "properties": { + "description": "test description", + "addressPrefixes": [ + "10.0.0.0/24" + ], + "numberOfIPAddressesToAllocate": "", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool/staticCidrs/TestStaticCidr", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Delete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Delete.json new file mode 100644 index 000000000000..1f9b4ebead6b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Delete.json @@ -0,0 +1,19 @@ +{ + "title": "Delete the StaticCidr resource", + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool", + "staticCidrName": "TestStaticCidr" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/ipamPools/TestPool/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Get.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Get.json new file mode 100644 index 000000000000..c8de397da8d3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Get.json @@ -0,0 +1,37 @@ +{ + "title": "Gets the specific StaticCidr resource", + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool", + "staticCidrName": "TestStaticCidr" + }, + "responses": { + "200": { + "body": { + "name": "TestStaticCidr", + "type": "Microsoft.Network/networkManagers/ipamPools/staticCidrs", + "properties": { + "description": "test description", + "numberOfIPAddressesToAllocate": "", + "addressPrefixes": [ + "10.0.0.0/24" + ], + "totalNumberOfIPAddresses": "256", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool/staticCidrs/TestStaticCidr", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_List.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_List.json new file mode 100644 index 000000000000..e9edb38a1834 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_List.json @@ -0,0 +1,41 @@ +{ + "title": "Gets list of StaticCidr resources at Pool level", + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestStaticCidr", + "type": "Microsoft.Network/networkManagers/ipamPools/staticCidrs", + "properties": { + "description": "test description", + "numberOfIPAddressesToAllocate": "", + "addressPrefixes": [ + "10.0.0.0/24" + ], + "totalNumberOfIPAddresses": "256", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool/staticCidrs/TestStaticCidr", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools?api-version=2024-05-01&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceDelete.json new file mode 100644 index 000000000000..743aced3e724 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "workspaceName": "testWorkspace" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/verifierWorkspaceOperationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceGet.json new file mode 100644 index 000000000000..0a084767c58f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceGet.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "workspaceName": "testWorkspace", + "verifierWorkspace": { + "properties": { + "description": "A sample workspace" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testWorkspace", + "name": "testWorkspace", + "type": "Microsoft.Network/networkManagers/verifierWorkspaces", + "location": "eastus", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample workspace", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceList.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceList.json new file mode 100644 index 000000000000..bfb6f6882adb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1", + "name": "testVerifierWorkspace1", + "type": "Microsoft.Network/networkManagers/verifierWorkspaces", + "location": "eastus", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample verfier workspace", + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces?api-version=2024-04-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspacePatch.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspacePatch.json new file mode 100644 index 000000000000..83a9504bc890 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspacePatch.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "workspaceName": "testWorkspace", + "verifierWorkspace": { + "tags": { + "color": "blue" + }, + "properties": { + "description": "A sample workspace" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testWorkspace", + "name": "testWorkspace", + "type": "Microsoft.Network/networkManagers/verifierWorkspaces", + "location": "eastus", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "tags": { + "color": "blue" + }, + "properties": { + "description": "A sample workspace", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspacePut.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspacePut.json new file mode 100644 index 000000000000..1b1d7c561ec8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspacePut.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "workspaceName": "testWorkspace", + "body": { + "location": "eastus", + "properties": { + "description": "A sample workspace" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testWorkspace", + "name": "testWorkspace", + "type": "Microsoft.Network/networkManagers/verifierWorkspaces", + "location": "eastus", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample workspace", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testWorkspace", + "name": "testWorkspace", + "type": "Microsoft.Network/networkManagers/verifierWorkspaces", + "location": "eastus", + "systemData": { + "createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "createdByType": "User", + "createdAt": "2021-01-11T18:52:27Z", + "lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-11T18:52:27Z" + }, + "properties": { + "description": "A sample workspace", + "provisioningState": "Succeeded" + } + }, + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testWorkspace?api-version=2024-05-01" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreateWithIpamPool.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreateWithIpamPool.json new file mode 100644 index 000000000000..b6ac7310ecb0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreateWithIpamPool.json @@ -0,0 +1,144 @@ +{ + "parameters": { + "api-version": "2024-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet", + "parameters": { + "properties": { + "addressSpace": { + "ipamPoolPrefixAllocations": [ + { + "numberOfIpAddresses": "65536", + "pool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/nm1/ipamPools/testIpamPool" + } + } + ] + }, + "subnets": [ + { + "name": "test-1", + "properties": { + "ipamPoolPrefixAllocations": [ + { + "pool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/nm1/ipamPools/testIpamPool" + }, + "numberOfIpAddresses": "80" + } + ] + } + } + ] + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus2euap", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/22" + ], + "ipamPoolPrefixAllocations": [ + { + "numberOfIpAddresses": "800", + "pool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/nm1/ipamPools/testIpamPool" + }, + "allocatedAddressPrefixes": [ + "10.0.0.0/22" + ] + } + ] + }, + "subnets": [ + { + "name": "subnet1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1", + "properties": { + "provisioningState": "Updating", + "addressPrefixes": [ + "10.0.0.0/26", + "10.0.0.64/28" + ], + "ipamPoolPrefixAllocations": [ + { + "numberOfIpAddresses": "80", + "pool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/nm1/ipamPools/testIpamPool" + }, + "allocatedAddressPrefixes": [ + "10.0.0.0/26", + "10.0.0.64/28" + ] + } + ] + } + } + ] + } + } + }, + "201": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus2euap", + "properties": { + "provisioningState": "Updating", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/22" + ], + "ipamPoolPrefixAllocations": [ + { + "numberOfIpAddresses": "800", + "pool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/nm1/ipamPools/testIpamPool" + }, + "allocatedAddressPrefixes": [ + "10.0.0.0/22" + ] + } + ] + }, + "subnets": [ + { + "name": "subnet1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1", + "properties": { + "provisioningState": "Updating", + "addressPrefixes": [ + "10.0.0.0/26", + "10.0.0.64/28" + ], + "ipamPoolPrefixAllocations": [ + { + "numberOfIpAddresses": "80", + "pool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/nm1/ipamPools/testIpamPool" + }, + "allocatedAddressPrefixes": [ + "10.0.0.0/26", + "10.0.0.64/28" + ] + } + ] + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/ipAddressManager.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/ipAddressManager.json new file mode 100644 index 000000000000..0c8a18df59c0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/ipAddressManager.json @@ -0,0 +1,1119 @@ +{ + "swagger": "2.0", + "info": { + "title": "IPAddressManagerClient - Public Preview", + "version": "2024-05-01" + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools": { + "get": { + "tags": [ + "IpamPools" + ], + "summary": "Gets list of Pool resources at Network Manager level.", + "operationId": "IpamPools_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "query", + "name": "skipToken", + "description": "Optional skip token.", + "type": "string" + }, + { + "in": "query", + "name": "skip", + "description": "Optional num entries to skip.", + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "in": "query", + "name": "top", + "description": "Optional num entries to show.", + "type": "integer", + "format": "int32", + "default": 50 + }, + { + "in": "query", + "name": "sortKey", + "description": "Optional key by which to sort.", + "type": "string" + }, + { + "in": "query", + "name": "sortValue", + "description": "Optional sort value for pagination.", + "type": "string" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "List of IpamPools", + "schema": { + "$ref": "#/definitions/IpamPoolList" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "IpamPools_List": { + "$ref": "./examples/IpamPools_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}": { + "put": { + "tags": [ + "IpamPools" + ], + "summary": "Creates/Updates the Pool resource.", + "operationId": "IpamPools_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "poolName", + "description": "IP Address Manager Pool resource name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Pool resource object to create/update.", + "required": true, + "schema": { + "$ref": "#/definitions/IpamPool" + } + } + ], + "responses": { + "200": { + "description": "Pool was updated", + "schema": { + "$ref": "#/definitions/IpamPool" + } + }, + "201": { + "description": "Pool was created", + "schema": { + "$ref": "#/definitions/IpamPool" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string" + } + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "IpamPools_Create": { + "$ref": "./examples/IpamPools_Create.json" + } + } + }, + "patch": { + "tags": [ + "IpamPools" + ], + "summary": "Updates the specific Pool resource.", + "operationId": "IpamPools_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "poolName", + "description": "IP Address Manager Pool resource name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Pool resource object to update partially.", + "schema": { + "$ref": "#/definitions/IpamPoolUpdate" + } + } + ], + "responses": { + "200": { + "description": "Pool was updated", + "schema": { + "$ref": "#/definitions/IpamPool" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "IpamPools_Update": { + "$ref": "./examples/IpamPools_Update.json" + } + } + }, + "get": { + "tags": [ + "IpamPools" + ], + "summary": "Gets the specific Pool resource.", + "operationId": "IpamPools_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "poolName", + "description": "Pool resource name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "IpamPool", + "schema": { + "$ref": "#/definitions/IpamPool" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "IpamPools_Get": { + "$ref": "./examples/IpamPools_Get.json" + } + } + }, + "delete": { + "tags": [ + "IpamPools" + ], + "summary": "Delete the Pool resource.", + "operationId": "IpamPools_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "poolName", + "description": "Pool resource name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Pool delete request accepted and will complete asynchronously", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Pool delete request succeeded" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "IpamPools_Delete": { + "$ref": "./examples/IpamPools_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/getPoolUsage": { + "post": { + "tags": [ + "IpamPools" + ], + "summary": "Get the Pool Usage.", + "operationId": "IpamPools_GetPoolUsage", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "poolName", + "description": "Pool resource name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Show the summary of usage info of ipamPool", + "schema": { + "$ref": "#/definitions/PoolUsage" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "IpamPools_GetPoolUsage": { + "$ref": "./examples/IpamPools_GetPoolUsage.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/listAssociatedResources": { + "post": { + "tags": [ + "IpamPools" + ], + "summary": "List Associated Resource in the Pool.", + "operationId": "IpamPools_ListAssociatedResources", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "poolName", + "description": "Pool resource name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "List of PoolAssociation", + "schema": { + "$ref": "#/definitions/PoolAssociationList" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "IpamPools_ListAssociatedResources": { + "$ref": "./examples/IpamPools_ListAssociatedResources.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs": { + "get": { + "tags": [ + "StaticCidrs" + ], + "summary": "Gets list of Static CIDR resources at Network Manager level.", + "operationId": "StaticCidrs_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "poolName", + "description": "Pool resource name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "in": "query", + "name": "skipToken", + "description": "Optional skip token.", + "type": "string" + }, + { + "in": "query", + "name": "skip", + "description": "Optional num entries to skip.", + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "in": "query", + "name": "top", + "description": "Optional num entries to show.", + "type": "integer", + "format": "int32", + "default": 50 + }, + { + "in": "query", + "name": "sortKey", + "description": "Optional key by which to sort.", + "type": "string" + }, + { + "in": "query", + "name": "sortValue", + "description": "Optional sort value for pagination.", + "type": "string" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "List of StaticCidrs", + "schema": { + "$ref": "#/definitions/StaticCidrList" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "StaticCidrs_List": { + "$ref": "./examples/StaticCidrs_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}": { + "put": { + "tags": [ + "StaticCidrs" + ], + "summary": "Creates/Updates the Static CIDR resource.", + "operationId": "StaticCidrs_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "poolName", + "description": "IP Address Manager Pool resource name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "in": "path", + "name": "staticCidrName", + "description": "Static Cidr allocation name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "StaticCidr resource object to create/update.", + "schema": { + "$ref": "#/definitions/StaticCidr" + } + } + ], + "responses": { + "200": { + "description": "Static CIDR was updated", + "schema": { + "$ref": "#/definitions/StaticCidr" + } + }, + "201": { + "description": "Static CIDR was created", + "schema": { + "$ref": "#/definitions/StaticCidr" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "StaticCidrs_Create": { + "$ref": "./examples/StaticCidrs_Create.json" + } + } + }, + "get": { + "tags": [ + "StaticCidrs" + ], + "summary": "Gets the specific Static CIDR resource.", + "operationId": "StaticCidrs_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "poolName", + "description": "Pool resource name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "in": "path", + "name": "staticCidrName", + "description": "StaticCidr resource name to retrieve.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Static CIDR", + "schema": { + "$ref": "#/definitions/StaticCidr" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "StaticCidrs_Get": { + "$ref": "./examples/StaticCidrs_Get.json" + } + } + }, + "delete": { + "tags": [ + "StaticCidrs" + ], + "summary": "Delete the Static CIDR resource.", + "operationId": "StaticCidrs_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "poolName", + "description": "Pool resource name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "in": "path", + "name": "staticCidrName", + "description": "StaticCidr resource name to delete.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]*$" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Static CIDR delete request accepted and will complete asynchronously", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Static CIDR delete request succeeded" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "StaticCidrs_Delete": { + "$ref": "./examples/StaticCidrs_Delete.json" + } + } + } + } + }, + "definitions": { + "IpType": { + "description": "Enumeration to indicate the IP type.", + "enum": [ + "IPv4", + "IPv6" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "IpType" + } + }, + "IpamPool": { + "description": "Instance of Pool resource.", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/IpamPoolProperties" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/CommonTrackedResource" + } + ] + }, + "IpamPoolList": { + "description": "List of IpamPool", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/IpamPool" + } + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + } + }, + "IpamPoolProperties": { + "description": "Properties of IpamPool resource properties which are specific to the Pool resource.", + "required": [ + "addressPrefixes" + ], + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "displayName": { + "description": "String representing a friendly name for the resource.", + "type": "string" + }, + "ipAddressType": { + "description": "List of IP address type for the IpamPool.", + "type": "array", + "items": { + "$ref": "#/definitions/IpType" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "parentPoolName": { + "description": "String representing parent IpamPool resource name. If empty the IpamPool will be a root pool.", + "type": "string" + }, + "addressPrefixes": { + "description": "List of IP address prefixes of the resource.", + "type": "array", + "items": { + "type": "string" + } + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + } + } + }, + "IpamPoolUpdate": { + "description": "Represents the IpamPool update API request interface.", + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/IpamPoolUpdateProperties" + } + } + }, + "IpamPoolUpdateProperties": { + "description": "Represents the IpamPool update properties.", + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "displayName": { + "description": "String representing a friendly name for the resource.", + "type": "string" + } + } + }, + "PoolAssociation": { + "description": "IpamPool association information.", + "required": [ + "resourceId" + ], + "type": "object", + "properties": { + "resourceId": { + "format": "arm-id", + "description": "Resource id of the associated Azure resource.", + "type": "string" + }, + "poolId": { + "format": "arm-id", + "description": "IpamPool id for which the resource is associated to.", + "type": "string" + }, + "description": { + "type": "string" + }, + "addressPrefixes": { + "description": "List of assigned IP address prefixes in the IpamPool of the associated resource.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "reservedPrefixes": { + "description": "List of reserved IP address prefixes in the IpamPool of the associated resource.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "totalNumberOfIPAddresses": { + "description": "Total number of assigned IP addresses of the association.", + "type": "string", + "readOnly": true + }, + "numberOfReservedIPAddresses": { + "description": "Total number of reserved IP addresses of the association.", + "type": "string", + "readOnly": true + }, + "createdAt": { + "format": "date-time", + "description": "Creation time of the association.", + "type": "string", + "readOnly": true + }, + "reservationExpiresAt": { + "format": "date-time", + "description": "Expire time for IP addresses reserved.", + "type": "string", + "readOnly": true + } + } + }, + "PoolAssociationList": { + "description": "List of PoolAssociation", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PoolAssociation" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + } + }, + "PoolUsage": { + "description": "IpamPool usage information.", + "type": "object", + "properties": { + "addressPrefixes": { + "description": "List of IP address prefixes of the resource.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "childPools": { + "description": "List of IpamPool that are children of this IpamPool.", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceBasics" + }, + "readOnly": true, + "x-ms-identifiers": [ + "resourceId" + ] + }, + "allocatedAddressPrefixes": { + "description": "List of assigned IP address prefixes.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "reservedAddressPrefixes": { + "description": "List of reserved IP address prefixes. These IP addresses could be reclaimed if not assigned in the given time.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "availableAddressPrefixes": { + "description": "List of available IP address prefixes.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "totalNumberOfIPAddresses": { + "description": "Total number of IP addresses managed in the IpamPool.", + "type": "string", + "readOnly": true + }, + "numberOfAllocatedIPAddresses": { + "description": "Total number of assigned IP addresses in the IpamPool.", + "type": "string", + "readOnly": true + }, + "numberOfReservedIPAddresses": { + "description": "Total number of reserved IP addresses in the IpamPool.", + "type": "string", + "readOnly": true + }, + "numberOfAvailableIPAddresses": { + "description": "Total number of available IP addresses in the IpamPool.", + "type": "string", + "readOnly": true + } + } + }, + "ProvisioningState": { + "description": "Provisioning states of a resource.", + "enum": [ + "Failed", + "Succeeded", + "Canceled", + "Creating", + "Updating", + "Deleting" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "modelAsString": true, + "name": "ProvisioningState" + } + }, + "ResourceBasics": { + "description": "Representation of basic resource information.", + "type": "object", + "properties": { + "resourceId": { + "format": "arm-id", + "description": "ResourceId of the Azure resource.", + "type": "string" + }, + "addressPrefixes": { + "description": "List of IP address prefixes of the resource.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "StaticCidr": { + "description": "Instance of StaticCidr resource.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/StaticCidrProperties" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/CommonProxyResource" + } + ] + }, + "StaticCidrList": { + "description": "List of StaticCidr", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticCidr" + } + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + } + }, + "StaticCidrProperties": { + "description": "Properties of static CIDR resource.", + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "numberOfIPAddressesToAllocate": { + "description": "Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.", + "type": "string" + }, + "addressPrefixes": { + "description": "List of IP address prefixes of the resource.", + "type": "array", + "items": { + "type": "string" + } + }, + "totalNumberOfIPAddresses": { + "description": "Total number of IP addresses allocated for the static CIDR resource.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + } + } + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "description": "Azure Active Directory OAuth2 Flow." + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/network.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/network.json index 8cd081e1a854..c2d5032638e1 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/network.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/network.json @@ -80,6 +80,75 @@ }, "description": "Common error representation." }, + "CommonErrorDetail": { + "description": "The error detail.", + "type": "object", + "properties": { + "code": { + "readOnly": true, + "type": "string", + "description": "The error code." + }, + "message": { + "readOnly": true, + "type": "string", + "description": "The error message." + }, + "target": { + "readOnly": true, + "type": "string", + "description": "The error target." + }, + "details": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/CommonErrorDetail" + }, + "x-ms-identifiers": [ + "message", + "target" + ], + "description": "The error details." + }, + "additionalInfo": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/CommonErrorAdditionalInfo" + }, + "x-ms-identifiers": [], + "description": "The error additional info." + } + } + }, + "CommonErrorResponse": { + "title": "Error response", + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).", + "type": "object", + "properties": { + "error": { + "description": "The error object.", + "$ref": "#/definitions/CommonErrorDetail" + } + } + }, + "CommonErrorAdditionalInfo": { + "type": "object", + "properties": { + "type": { + "readOnly": true, + "type": "string", + "description": "The additional info type." + }, + "info": { + "readOnly": true, + "type": "object", + "description": "The additional info." + } + }, + "description": "The resource management error additional info." + }, "CloudError": { "x-ms-external": true, "properties": { @@ -137,6 +206,80 @@ }, "description": "The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure." }, + "CommonResource": { + "title": "Resource", + "description": "Common fields that are returned in the response for all Azure Resource Manager resources", + "type": "object", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "format": "arm-id", + "description": "Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"" + }, + "systemData": { + "readOnly": true, + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "$ref": "#/definitions/SystemData" + } + }, + "x-ms-azure-resource": true + }, + "CommonTrackedResource": { + "title": "Tracked Resource", + "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'", + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The geo-location where the resource lives" + } + }, + "required": [ + "location" + ], + "allOf": [ + { + "$ref": "#/definitions/CommonResource" + } + ] + }, + "CommonProxyResource": { + "title": "Proxy Resource", + "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CommonResource" + } + ] + }, "Resource": { "properties": { "id": { @@ -437,4 +580,3 @@ } } } - diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManager.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManager.json index b8aef6dee0bb..84ca2a6f96bd 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManager.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManager.json @@ -713,6 +713,7 @@ "in": "path", "required": true, "type": "string", + "pattern": "^[a-zA-Z0-9-]*$", "description": "The name of the network manager.", "x-ms-parameter-location": "method" }, @@ -753,4 +754,3 @@ } } } - diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManagerSecurityAdminConfiguration.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManagerSecurityAdminConfiguration.json index 7bf0704496af..d353780f7903 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManagerSecurityAdminConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManagerSecurityAdminConfiguration.json @@ -48,10 +48,10 @@ "$ref": "./network.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NetworkManagerNameParameter" + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" }, { "$ref": "#/parameters/ListTopParameter" @@ -70,7 +70,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./network.json#/definitions/CloudError" + "$ref": "./network.json#/definitions/CommonErrorResponse" } } }, @@ -93,10 +93,10 @@ "$ref": "./network.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NetworkManagerNameParameter" + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" }, { "$ref": "#/parameters/SecurityConfigurationParameter" @@ -118,7 +118,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./network.json#/definitions/CloudError" + "$ref": "./network.json#/definitions/CommonErrorResponse" } } }, @@ -161,13 +161,16 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./network.json#/definitions/CloudError" + "$ref": "./network.json#/definitions/CommonErrorResponse" } } }, "x-ms-examples": { "Create network manager security admin configuration": { "$ref": "./examples/NetworkManagerSecurityAdminConfigurationPut.json" + }, + "Create manual-mode security admin configuration": { + "$ref": "./examples/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json" } } }, @@ -201,7 +204,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./network.json#/definitions/CloudError" + "$ref": "./network.json#/definitions/CommonErrorResponse" } } }, @@ -231,10 +234,10 @@ "$ref": "./network.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NetworkManagerNameParameter" + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" }, { "$ref": "#/parameters/SecurityConfigurationParameter" @@ -256,7 +259,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./network.json#/definitions/CloudError" + "$ref": "./network.json#/definitions/CommonErrorResponse" } } }, @@ -279,10 +282,10 @@ "$ref": "./network.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NetworkManagerNameParameter" + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" }, { "$ref": "#/parameters/SecurityConfigurationParameter" @@ -307,7 +310,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./network.json#/definitions/CloudError" + "$ref": "./network.json#/definitions/CommonErrorResponse" } } }, @@ -350,7 +353,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./network.json#/definitions/CloudError" + "$ref": "./network.json#/definitions/CommonErrorResponse" } } }, @@ -390,7 +393,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./network.json#/definitions/CloudError" + "$ref": "./network.json#/definitions/CommonErrorResponse" } } }, @@ -414,10 +417,10 @@ "$ref": "./network.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NetworkManagerNameParameter" + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" }, { "$ref": "#/parameters/SecurityConfigurationParameter" @@ -448,7 +451,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./network.json#/definitions/CloudError" + "$ref": "./network.json#/definitions/CommonErrorResponse" } } }, @@ -471,10 +474,10 @@ "$ref": "./network.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/NetworkManagerNameParameter" + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" }, { "$ref": "#/parameters/SecurityConfigurationParameter" @@ -502,7 +505,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./network.json#/definitions/CloudError" + "$ref": "./network.json#/definitions/CommonErrorResponse" } } }, @@ -523,11 +526,11 @@ "operationId": "AdminRules_CreateOrUpdate", "parameters": [ { - "name": "adminRule", + "name": "adminRuleName", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/BaseAdminRule" + "$ref": "#/definitions/AdminRule" }, "description": "The admin rule to create or update" } @@ -548,7 +551,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./network.json#/definitions/CloudError" + "$ref": "./network.json#/definitions/CommonErrorResponse" } } }, @@ -556,8 +559,8 @@ "Create an admin rule": { "$ref": "./examples/NetworkManagerAdminRulePut.json" }, - "Create a default admin rule": { - "$ref": "./examples/NetworkManagerDefaultAdminRulePut.json" + "Create a admin rule with network group as source or destination": { + "$ref": "./examples/NetworkManagerAdminRulePut_NetworkGroupSource.json" } } }, @@ -591,7 +594,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./network.json#/definitions/CloudError" + "$ref": "./network.json#/definitions/CommonErrorResponse" } } }, @@ -624,7 +627,7 @@ }, "allOf": [ { - "$ref": "./network.json#/definitions/ChildResource" + "$ref": "./network.json#/definitions/CommonProxyResource" } ], "description": "Defines the security admin configuration" @@ -643,9 +646,14 @@ }, "description": "Enum list of network intent policy based services." }, + "networkGroupAddressSpaceAggregationOption": { + "type": "string", + "$ref": "#/definitions/AddressSpaceAggregationOption", + "description": "Determine update behavior for changes to network groups referenced within the rules in this configuration." + }, "provisioningState": { "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", + "$ref": "#/definitions/ProvisioningState", "description": "The provisioning state of the resource." }, "resourceGuid": { @@ -723,7 +731,7 @@ }, "allOf": [ { - "$ref": "./network.json#/definitions/ChildResource" + "$ref": "./network.json#/definitions/CommonProxyResource" } ], "description": "Defines the admin rule collection." @@ -747,7 +755,7 @@ }, "provisioningState": { "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", + "$ref": "#/definitions/ProvisioningState", "description": "The provisioning state of the resource." }, "resourceGuid": { @@ -784,7 +792,7 @@ }, "allOf": [ { - "$ref": "./network.json#/definitions/ChildResource" + "$ref": "./network.json#/definitions/CommonProxyResource" } ], "required": [ @@ -795,6 +803,9 @@ }, "AdminRule": { "type": "object", + "required": [ + "properties" + ], "properties": { "properties": { "$ref": "#/definitions/AdminPropertiesFormat", @@ -875,7 +886,7 @@ }, "provisioningState": { "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", + "$ref": "#/definitions/ProvisioningState", "description": "The provisioning state of the resource." }, "resourceGuid": { @@ -985,7 +996,7 @@ }, "provisioningState": { "readOnly": true, - "$ref": "./network.json#/definitions/ProvisioningState", + "$ref": "#/definitions/ProvisioningState", "description": "The provisioning state of the resource." }, "resourceGuid": { @@ -996,6 +1007,23 @@ }, "description": "Security default admin rule resource." }, + "ProvisioningState": { + "description": "Provisioning states of a resource.", + "enum": [ + "Failed", + "Succeeded", + "Canceled", + "Creating", + "Updating", + "Deleting" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "modelAsString": true, + "name": "ProvisioningState" + } + }, "SecurityConfigurationRuleAccess": { "type": "string", "description": "Whether network traffic is allowed or denied.", @@ -1062,7 +1090,8 @@ "description": "Address prefix type.", "enum": [ "IPPrefix", - "ServiceTag" + "ServiceTag", + "NetworkGroup" ], "x-ms-enum": { "name": "AddressPrefixType", @@ -1084,6 +1113,18 @@ "name": "NetworkIntentPolicyBasedService", "modelAsString": true } + }, + "AddressSpaceAggregationOption": { + "type": "string", + "description": "Option indicating the update behavior of a resource's address prefixes referenced within a network manager configuration.", + "enum": [ + "None", + "Manual" + ], + "x-ms-enum": { + "name": "AddressSpaceAggregationOption", + "modelAsString": true + } } }, "parameters": { @@ -1111,22 +1152,6 @@ "type": "string", "x-ms-parameter-location": "method" }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "NetworkManagerNameParameter": { - "name": "networkManagerName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the network manager.", - "x-ms-parameter-location": "method" - }, "ListTopParameter": { "name": "$top", "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", @@ -1156,4 +1181,3 @@ } } } - diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkVerifier.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkVerifier.json new file mode 100644 index 000000000000..7c94c73282db --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkVerifier.json @@ -0,0 +1,1268 @@ +{ + "swagger": "2.0", + "info": { + "title": "NetworkManagerVerifierManagementClient", + "version": "2024-05-01" + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents": { + "get": { + "tags": [ + "ReachabilityAnalysisIntents" + ], + "summary": "Gets list of Reachability Analysis Intents .", + "operationId": "ReachabilityAnalysisIntents_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "workspaceName", + "description": "Workspace name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + }, + { + "in": "query", + "name": "skipToken", + "description": "Optional skip token.", + "type": "string" + }, + { + "in": "query", + "name": "skip", + "description": "Optional num entries to skip.", + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "in": "query", + "name": "top", + "description": "Optional num entries to show.", + "type": "integer", + "format": "int32", + "default": 50 + }, + { + "in": "query", + "name": "sortKey", + "description": "Optional key by which to sort.", + "type": "string" + }, + { + "in": "query", + "name": "sortValue", + "description": "Optional sort value for pagination.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "List of ReachabilityAnalysisIntents", + "schema": { + "$ref": "#/definitions/ReachabilityAnalysisIntentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ReachabilityAnalysisIntentList": { + "$ref": "./examples/ReachabilityAnalysisIntentList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName}": { + "get": { + "tags": [ + "ReachabilityAnalysisIntents" + ], + "summary": "Get the Reachability Analysis Intent.", + "operationId": "ReachabilityAnalysisIntents_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "workspaceName", + "description": "Workspace name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + }, + { + "in": "path", + "name": "reachabilityAnalysisIntentName", + "description": "Reachability Analysis Intent name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + } + ], + "responses": { + "200": { + "description": "Get a reachabilityAnalysisIntent", + "schema": { + "$ref": "#/definitions/ReachabilityAnalysisIntent" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "ReachabilityAnalysisIntentGet": { + "$ref": "./examples/ReachabilityAnalysisIntentGet.json" + } + } + }, + "put": { + "tags": [ + "ReachabilityAnalysisIntents" + ], + "summary": "Creates Reachability Analysis Intent.", + "operationId": "ReachabilityAnalysisIntents_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "workspaceName", + "description": "Workspace name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + }, + { + "in": "path", + "name": "reachabilityAnalysisIntentName", + "description": "Reachability Analysis Intent name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + }, + { + "in": "body", + "name": "body", + "description": "Reachability Analysis Intent object to create/update.", + "required": true, + "schema": { + "$ref": "#/definitions/ReachabilityAnalysisIntent" + } + } + ], + "responses": { + "200": { + "description": "ReachabilityAnalysisIntent updated.", + "schema": { + "$ref": "#/definitions/ReachabilityAnalysisIntent" + } + }, + "201": { + "description": "ReachabilityAnalysisIntent created.", + "schema": { + "$ref": "#/definitions/ReachabilityAnalysisIntent" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "ReachabilityAnalysisIntentCreate": { + "$ref": "./examples/ReachabilityAnalysisIntentPut.json" + } + } + }, + "delete": { + "tags": [ + "ReachabilityAnalysisIntent" + ], + "summary": "Deletes Reachability Analysis Intent.", + "operationId": "ReachabilityAnalysisIntents_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "workspaceName", + "description": "Workspace name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + }, + { + "in": "path", + "name": "reachabilityAnalysisIntentName", + "description": "Reachability Analysis Intent name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + } + ], + "responses": { + "200": { + "description": "ReachabilityAnalysisIntent was deleted." + }, + "204": { + "description": "ReachabilityAnalysisIntent delete request succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "ReachabilityAnalysisIntentDelete": { + "$ref": "./examples/ReachabilityAnalysisIntentDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns": { + "get": { + "tags": [ + "ReachabilityAnalysisRuns" + ], + "summary": "Gets list of Reachability Analysis Runs.", + "operationId": "ReachabilityAnalysisRuns_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "workspaceName", + "description": "Workspace name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + }, + { + "in": "query", + "name": "skipToken", + "description": "Optional skip token.", + "type": "string" + }, + { + "in": "query", + "name": "skip", + "description": "Optional num entries to skip.", + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "in": "query", + "name": "top", + "description": "Optional num entries to show.", + "type": "integer", + "format": "int32", + "default": 50 + }, + { + "in": "query", + "name": "sortKey", + "description": "Optional key by which to sort.", + "type": "string" + }, + { + "in": "query", + "name": "sortValue", + "description": "Optional sort value for pagination.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "List of ReachabilityAnalysisRuns", + "schema": { + "$ref": "#/definitions/ReachabilityAnalysisRunListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ReachabilityAnalysisRunList": { + "$ref": "./examples/ReachabilityAnalysisRunList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName}": { + "get": { + "tags": [ + "ReachabilityAnalysisRuns" + ], + "summary": "Gets Reachability Analysis Run.", + "operationId": "ReachabilityAnalysisRuns_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "workspaceName", + "description": "Workspace name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + }, + { + "in": "path", + "name": "reachabilityAnalysisRunName", + "description": "Reachability Analysis Run name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + } + ], + "responses": { + "200": { + "description": "Get a reachabilityAnalysisRun", + "schema": { + "$ref": "#/definitions/ReachabilityAnalysisRun" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "ReachabilityAnalysisRunGet": { + "$ref": "./examples/ReachabilityAnalysisRunGet.json" + } + } + }, + "put": { + "tags": [ + "ReachabilityAnalysisRuns" + ], + "summary": "Creates Reachability Analysis Runs.", + "operationId": "ReachabilityAnalysisRuns_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "workspaceName", + "description": "Workspace name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + }, + { + "in": "path", + "name": "reachabilityAnalysisRunName", + "description": "Reachability Analysis Run name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + }, + { + "in": "body", + "name": "body", + "description": "Analysis Run resource object to create/update.", + "required": true, + "schema": { + "$ref": "#/definitions/ReachabilityAnalysisRun" + } + } + ], + "responses": { + "200": { + "description": "ReachabilityAnalysisRun updated.", + "schema": { + "$ref": "#/definitions/ReachabilityAnalysisRun" + } + }, + "201": { + "description": "ReachabilityAnalysisRun created and will complete asynchronously.", + "schema": { + "$ref": "#/definitions/ReachabilityAnalysisRun" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "ReachabilityAnalysisRunCreate": { + "$ref": "./examples/ReachabilityAnalysisRunPut.json" + } + } + }, + "delete": { + "tags": [ + "ReachabilityAnalysisRuns" + ], + "summary": "Deletes Reachability Analysis Run.", + "operationId": "ReachabilityAnalysisRuns_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "workspaceName", + "description": "Workspace name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + }, + { + "in": "path", + "name": "reachabilityAnalysisRunName", + "description": "Reachability Analysis Run name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + } + ], + "responses": { + "202": { + "description": "ReachabilityAnalysisRun delete request accepted and will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + } + } + }, + "204": { + "description": "ReachabilityAnalysisRun delete request succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "ReachabilityAnalysisRunDelete": { + "$ref": "./examples/ReachabilityAnalysisRunDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces": { + "get": { + "tags": [ + "VerifierWorkspaces" + ], + "summary": "Gets list of Verifier Workspaces.", + "operationId": "VerifierWorkspaces_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "query", + "name": "skipToken", + "description": "Optional skip token.", + "type": "string" + }, + { + "in": "query", + "name": "skip", + "description": "Optional num entries to skip.", + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "in": "query", + "name": "top", + "description": "Optional num entries to show.", + "type": "integer", + "format": "int32", + "default": 50 + }, + { + "in": "query", + "name": "sortKey", + "description": "Optional key by which to sort.", + "type": "string" + }, + { + "in": "query", + "name": "sortValue", + "description": "Optional sort value for pagination.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "List of VerifierWorkspaces.", + "schema": { + "$ref": "#/definitions/VerifierWorkspaceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "VerifierWorkspaceList": { + "$ref": "./examples/VerifierWorkspaceList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}": { + "get": { + "tags": [ + "VerifierWorkspaces" + ], + "summary": "Gets Verifier Workspace.", + "operationId": "VerifierWorkspaces_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "workspaceName", + "description": "Workspace name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + } + ], + "responses": { + "200": { + "description": "Get a VerifierWorkspace.", + "schema": { + "$ref": "#/definitions/VerifierWorkspace" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "VerifierWorkspaceGet": { + "$ref": "./examples/VerifierWorkspaceGet.json" + } + } + }, + "put": { + "tags": [ + "VerifierWorkspaces" + ], + "summary": "Creates Verifier Workspace.", + "operationId": "VerifierWorkspaces_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "workspaceName", + "description": "Workspace name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + }, + { + "in": "body", + "name": "body", + "description": "Verifier Workspace object to create/update.", + "required": true, + "schema": { + "$ref": "#/definitions/VerifierWorkspace" + } + } + ], + "responses": { + "200": { + "description": "VerifierWorkspace updated.", + "schema": { + "$ref": "#/definitions/VerifierWorkspace" + } + }, + "201": { + "description": "VerifierWorkspace created.", + "schema": { + "$ref": "#/definitions/VerifierWorkspace" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "VerifierWorkspaceCreate": { + "$ref": "./examples/VerifierWorkspacePut.json" + } + } + }, + "patch": { + "tags": [ + "VerifierWorkspaces" + ], + "summary": "Updates Verifier Workspace.", + "operationId": "VerifierWorkspaces_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "workspaceName", + "description": "Workspace name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + }, + { + "in": "body", + "name": "body", + "description": "Verifier Workspace object to create/update.", + "schema": { + "$ref": "#/definitions/VerifierWorkspaceUpdate" + } + } + ], + "responses": { + "200": { + "description": "VerifierWorkspace updated.", + "schema": { + "$ref": "#/definitions/VerifierWorkspace" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "VerifierWorkspacePatch": { + "$ref": "./examples/VerifierWorkspacePatch.json" + } + } + }, + "delete": { + "tags": [ + "VerifierWorkspaces" + ], + "summary": "Deletes Verifier Workspace.", + "operationId": "VerifierWorkspaces_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "in": "path", + "name": "workspaceName", + "description": "Workspace name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_.-]*$" + } + ], + "responses": { + "202": { + "description": "VerifierWorkspace delete request accepted and will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + } + } + }, + "204": { + "description": "VerifierWorkspace delete request succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "VerifierWorkspaceDelete": { + "$ref": "./examples/VerifierWorkspaceDelete.json" + } + } + } + } + }, + "definitions": { + "IPTraffic": { + "required": [ + "sourceIps", + "destinationIps", + "sourcePorts", + "destinationPorts", + "protocols" + ], + "description": "IP traffic information.", + "type": "object", + "properties": { + "sourceIps": { + "type": "array", + "items": { + "type": "string", + "description": "Source IP address of the traffic.." + }, + "description": "List of source IP addresses of the traffic.." + }, + "destinationIps": { + "type": "array", + "items": { + "type": "string", + "description": "Destination IP address of the traffic.." + }, + "description": "List of destination IP addresses of the traffic.." + }, + "sourcePorts": { + "type": "array", + "items": { + "type": "string", + "description": "The source port." + }, + "description": "The source ports of the traffic." + }, + "destinationPorts": { + "type": "array", + "items": { + "type": "string", + "description": "The destination port." + }, + "description": "The destination ports of the traffic." + }, + "protocols": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkProtocol", + "description": "Network protocol this resource applies to." + } + } + } + }, + "IntentContent": { + "required": [ + "destinationResourceId", + "ipTraffic", + "sourceResourceId" + ], + "description": "Intent information.", + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "sourceResourceId": { + "format": "arm-id", + "type": "string", + "description": "Source resource id of the intent." + }, + "destinationResourceId": { + "format": "arm-id", + "type": "string", + "description": "Destination resource id of the intent." + }, + "ipTraffic": { + "$ref": "#/definitions/IPTraffic", + "description": "IP traffic information." + } + } + }, + "NetworkProtocol": { + "enum": [ + "Any", + "TCP", + "UDP", + "ICMP" + ], + "x-ms-enum": { + "name": "NetworkProtocol", + "modelAsString": true + }, + "description": "Network Protocol.", + "type": "string" + }, + "ProvisioningState": { + "enum": [ + "Failed", + "Succeeded", + "Canceled", + "Creating", + "Updating", + "Deleting" + ], + "description": "Provisioning states of a resource.", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "type": "string", + "readOnly": true + }, + "ReachabilityAnalysisIntentListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ReachabilityAnalysisIntent" + }, + "description": "Gets a page of Reachability Analysis Intents" + }, + "nextLink": { + "description": "Gets the URL to get the next page of results.", + "type": "string" + } + }, + "description": "A list of Reachability Analysis Intents." + }, + "ReachabilityAnalysisIntent": { + "description": "Configuration information or intent on which to do the analysis on.", + "required": [ + "properties" + ], + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ReachabilityAnalysisIntentProperties" + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/CommonProxyResource" + } + ] + }, + "ReachabilityAnalysisIntentProperties": { + "required": [ + "destinationResourceId", + "ipTraffic", + "sourceResourceId" + ], + "description": "Represents the Reachability Analysis Intent properties.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "description": { + "type": "string" + }, + "sourceResourceId": { + "format": "arm-id", + "type": "string", + "description": "Source resource id to verify the reachability path of." + }, + "destinationResourceId": { + "format": "arm-id", + "type": "string", + "description": "Destination resource id to verify the reachability path of." + }, + "ipTraffic": { + "$ref": "#/definitions/IPTraffic", + "description": "IP traffic information." + } + } + }, + "ReachabilityAnalysisRunListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ReachabilityAnalysisRun" + }, + "description": "Gets a page of Reachability Analysis Runs." + }, + "nextLink": { + "description": "Gets the URL to get the next page of results.", + "type": "string" + } + }, + "description": "A list of Reachability Analysis Run" + }, + "ReachabilityAnalysisRun": { + "required": [ + "properties" + ], + "description": "Configuration information for analysis run.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ReachabilityAnalysisRunProperties" + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/CommonProxyResource" + } + ] + }, + "ReachabilityAnalysisRunProperties": { + "required": [ + "intentId" + ], + "description": "Represents the Reachability Analysis Run properties.", + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "intentId": { + "type": "string", + "description": "Id of the intent resource to run analysis on." + }, + "intentContent": { + "readOnly": true, + "$ref": "#/definitions/IntentContent", + "description": "Intent information." + }, + "analysisResult": { + "type": "string", + "readOnly": true + }, + "errorMessage": { + "type": "string", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + } + } + }, + "VerifierWorkspaceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VerifierWorkspace" + }, + "description": "Gets a page of Verifier Workspaces." + }, + "nextLink": { + "description": "Gets the URL to get the next page of results.", + "type": "string" + } + }, + "description": "A list of Verifier Workspace" + }, + "VerifierWorkspace": { + "description": "Instance of Verifier Workspace.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/VerifierWorkspaceProperties" + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/CommonTrackedResource" + } + ] + }, + "VerifierWorkspaceProperties": { + "type": "object", + "description": "Properties of Verifier Workspace resource.", + "properties": { + "description": { + "type": "string" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + } + } + }, + "VerifierWorkspaceUpdate": { + "type": "object", + "description": "Represents the VerifierWorkspace update API request interface.", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/VerifierWorkspaceUpdateProperties" + } + } + }, + "VerifierWorkspaceUpdateProperties": { + "type": "object", + "description": "Represents the VerifierWorkspace update properties.", + "properties": { + "description": { + "type": "string" + } + } + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "description": "Azure Active Directory OAuth2 Flow." + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/virtualNetwork.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/virtualNetwork.json index d75bd17f454e..b094a0b97336 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/virtualNetwork.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/virtualNetwork.json @@ -236,6 +236,9 @@ }, "Create virtual network with encryption": { "$ref": "./examples/VirtualNetworkCreateWithEncryption.json" + }, + "Create virtual network with ipamPool": { + "$ref": "./examples/VirtualNetworkCreateWithIpamPool.json" } } }, @@ -1677,6 +1680,13 @@ "defaultOutboundAccess": { "type": "boolean", "description": "Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet." + }, + "ipamPoolPrefixAllocations": { + "type": "array", + "items": { + "$ref": "#/definitions/IpamPoolPrefixAllocation" + }, + "description": "A list of IPAM Pools for allocating IP address prefixes." } }, "description": "Properties of the subnet." @@ -2078,6 +2088,13 @@ "type": "string" }, "description": "A list of address blocks reserved for this virtual network in CIDR notation." + }, + "ipamPoolPrefixAllocations": { + "type": "array", + "items": { + "$ref": "#/definitions/IpamPoolPrefixAllocation" + }, + "description": "A list of IPAM Pools allocating IP address prefixes." } }, "description": "AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network." @@ -2302,7 +2319,36 @@ } }, "description": "Response for GetVirtualNetworkDdosProtectionStatusOperation." + }, + "IpamPoolPrefixAllocation": { + "type": "object", + "properties": { + "pool": { + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "id": { + "type": "string", + "format": "arm-id", + "description": "Resource id of the associated Azure IpamPool resource.", + "minLength": 1 + } + } + }, + "numberOfIpAddresses": { + "type": "string", + "description": "Number of IP addresses to allocate." + }, + "allocatedAddressPrefixes": { + "description": "List of assigned IP address prefixes in the IpamPool of the associated resource.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + }, + "description": "IpamPool prefix allocation reference." } } } - diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index bcee8148b91d..9f4ee7350b49 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -60,6 +60,7 @@ input-file: - Microsoft.Network/stable/2024-05-01/expressRoutePort.json - Microsoft.Network/stable/2024-05-01/expressRouteProviderPort.json - Microsoft.Network/stable/2024-05-01/firewallPolicy.json + - Microsoft.Network/stable/2024-05-01/ipAddressManager.json - Microsoft.Network/stable/2024-05-01/ipAllocation.json - Microsoft.Network/stable/2024-05-01/ipGroups.json - Microsoft.Network/stable/2024-05-01/loadBalancer.json @@ -78,6 +79,7 @@ input-file: - Microsoft.Network/stable/2024-05-01/networkManagerSecurityUserConfiguration.json - Microsoft.Network/stable/2024-05-01/networkProfile.json - Microsoft.Network/stable/2024-05-01/networkSecurityGroup.json + - Microsoft.Network/stable/2024-05-01/networkVerifier.json - Microsoft.Network/stable/2024-05-01/networkVirtualAppliance.json - Microsoft.Network/stable/2024-05-01/networkWatcher.json - Microsoft.Network/stable/2024-05-01/operation.json From 6f94620b81c1568606644ddd11b0638312493509 Mon Sep 17 00:00:00 2001 From: Sonalli S Sharma Date: Fri, 13 Sep 2024 01:41:03 -0700 Subject: [PATCH 02/13] adminrule error --- .../networkManagerSecurityAdminConfiguration.json | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManagerSecurityAdminConfiguration.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManagerSecurityAdminConfiguration.json index d353780f7903..c8fd67aeaf2c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManagerSecurityAdminConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManagerSecurityAdminConfiguration.json @@ -526,11 +526,11 @@ "operationId": "AdminRules_CreateOrUpdate", "parameters": [ { - "name": "adminRuleName", + "name": "adminRule", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/AdminRule" + "$ref": "#/definitions/BaseAdminRule" }, "description": "The admin rule to create or update" } @@ -803,9 +803,6 @@ }, "AdminRule": { "type": "object", - "required": [ - "properties" - ], "properties": { "properties": { "$ref": "#/definitions/AdminPropertiesFormat", From 0b9379b24de8735bbb8eb798b0cca2c999327431 Mon Sep 17 00:00:00 2001 From: Sonalli S Sharma Date: Fri, 13 Sep 2024 02:10:40 -0700 Subject: [PATCH 03/13] adding suppressions --- specification/network/resource-manager/readme.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 9f4ee7350b49..7df3722ac2b5 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -102,6 +102,13 @@ input-file: - Microsoft.Network/stable/2024-05-01/vmssNetworkInterface.json - Microsoft.Network/stable/2024-05-01/vmssPublicIpAddress.json - Microsoft.Network/stable/2024-05-01/webapplicationfirewall.json + suppressions: + - code: SystemDataDefinitionsCommonTypes + from: networkVerifier.json + reason: False alarm for common type errors. + - code: MissingSegmentsInNestedResourceListOperation + from: ipAddressManager.json + reason: False alarm. ``` ### Tag: package-2024-03 From 9a57a68c2c7d980db2cdfdc01f5c0fac14d02259 Mon Sep 17 00:00:00 2001 From: Sonalli S Sharma Date: Fri, 13 Sep 2024 13:15:34 -0700 Subject: [PATCH 04/13] suppression spacing --- specification/network/resource-manager/readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 7df3722ac2b5..2d7cd7be73c1 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -102,10 +102,10 @@ input-file: - Microsoft.Network/stable/2024-05-01/vmssNetworkInterface.json - Microsoft.Network/stable/2024-05-01/vmssPublicIpAddress.json - Microsoft.Network/stable/2024-05-01/webapplicationfirewall.json - suppressions: + suppressions: - code: SystemDataDefinitionsCommonTypes - from: networkVerifier.json - reason: False alarm for common type errors. + from: networkVerifier.json + reason: False alarm for common type errors. - code: MissingSegmentsInNestedResourceListOperation from: ipAddressManager.json reason: False alarm. @@ -180,7 +180,7 @@ input-file: - Microsoft.Network/stable/2024-03-01/vmssNetworkInterface.json - Microsoft.Network/stable/2024-03-01/vmssPublicIpAddress.json - Microsoft.Network/stable/2024-03-01/webapplicationfirewall.json -suppressions: + suppressions: - code: PatchIdentityProperty from: networkWatcher.json reason: False alarm. From 53af87f26e213c8851ac861dfc9e5a0ddf896e5f Mon Sep 17 00:00:00 2001 From: Sonalli S Sharma Date: Fri, 13 Sep 2024 13:26:27 -0700 Subject: [PATCH 05/13] space issue --- specification/network/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 2d7cd7be73c1..bef61ac8a28a 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -102,7 +102,7 @@ input-file: - Microsoft.Network/stable/2024-05-01/vmssNetworkInterface.json - Microsoft.Network/stable/2024-05-01/vmssPublicIpAddress.json - Microsoft.Network/stable/2024-05-01/webapplicationfirewall.json - suppressions: +suppressions: - code: SystemDataDefinitionsCommonTypes from: networkVerifier.json reason: False alarm for common type errors. From eef90f9ac564ef6327c2009b2780aa56f633c743 Mon Sep 17 00:00:00 2001 From: Sonalli S Sharma Date: Fri, 13 Sep 2024 14:55:28 -0700 Subject: [PATCH 06/13] another space update --- specification/network/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index bef61ac8a28a..93bae19d32fc 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -180,6 +180,7 @@ input-file: - Microsoft.Network/stable/2024-03-01/vmssNetworkInterface.json - Microsoft.Network/stable/2024-03-01/vmssPublicIpAddress.json - Microsoft.Network/stable/2024-03-01/webapplicationfirewall.json + suppressions: - code: PatchIdentityProperty from: networkWatcher.json From 741c94058a1313b9eda2566345a6b1eb2e6254e5 Mon Sep 17 00:00:00 2001 From: Sonalli S Sharma Date: Fri, 13 Sep 2024 15:04:25 -0700 Subject: [PATCH 07/13] the issue was 2024-03 readme and not 2024-05 --- specification/network/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 93bae19d32fc..1de5dbb4525c 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -181,7 +181,7 @@ input-file: - Microsoft.Network/stable/2024-03-01/vmssPublicIpAddress.json - Microsoft.Network/stable/2024-03-01/webapplicationfirewall.json - suppressions: +suppressions: - code: PatchIdentityProperty from: networkWatcher.json reason: False alarm. From 081b88de069ee2cab59106a9669f84fa0134a7ca Mon Sep 17 00:00:00 2001 From: Sonalli S Sharma Date: Mon, 16 Sep 2024 13:31:27 -0700 Subject: [PATCH 08/13] adding suppressions --- specification/network/resource-manager/readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 1de5dbb4525c..a23f94ad9e91 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -106,6 +106,12 @@ suppressions: - code: SystemDataDefinitionsCommonTypes from: networkVerifier.json reason: False alarm for common type errors. + - code: SystemDataDefinitionsCommonTypes + from: network.json + reason: False alarm. + - code: MissingSegmentsInNestedResourceListOperation + from: networkVerifier.json + reason: False alarm. - code: MissingSegmentsInNestedResourceListOperation from: ipAddressManager.json reason: False alarm. From 6b006e5dcb49cf56aedf0b9f8b55a3f1fcc7aca1 Mon Sep 17 00:00:00 2001 From: Sonalli S Sharma Date: Mon, 16 Sep 2024 15:30:01 -0700 Subject: [PATCH 09/13] removing location headers --- .../ReachabilityAnalysisRunDelete.json | 6 +---- .../examples/ReachabilityAnalysisRunPut.json | 6 ----- .../stable/2024-05-01/networkVerifier.json | 25 ++----------------- 3 files changed, 3 insertions(+), 34 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json index caa69596ea47..e9e874540dd8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json @@ -8,11 +8,7 @@ "reachabilityAnalysisRunName": "testAnalysisRun" }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/verifierWorkspaceOperationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01" - } - }, + "202": {}, "204": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunPut.json index 2b1cd13a2a21..c401362223b9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunPut.json @@ -53,9 +53,6 @@ } } } - }, - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/verifierWorkspaceOperationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01" } }, "201": { @@ -97,9 +94,6 @@ } } } - }, - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/verifierWorkspaceOperationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkVerifier.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkVerifier.json index 7c94c73282db..df9a1f2e986f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkVerifier.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkVerifier.json @@ -514,9 +514,6 @@ } }, "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, "x-ms-examples": { "ReachabilityAnalysisRunCreate": { "$ref": "./examples/ReachabilityAnalysisRunPut.json" @@ -564,13 +561,7 @@ ], "responses": { "202": { - "description": "ReachabilityAnalysisRun delete request accepted and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - } + "description": "ReachabilityAnalysisRun delete request accepted and will complete asynchronously." }, "204": { "description": "ReachabilityAnalysisRun delete request succeeded." @@ -583,9 +574,6 @@ } }, "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, "x-ms-examples": { "ReachabilityAnalysisRunDelete": { "$ref": "./examples/ReachabilityAnalysisRunDelete.json" @@ -891,13 +879,7 @@ ], "responses": { "202": { - "description": "VerifierWorkspace delete request accepted and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - } - } + "description": "VerifierWorkspace delete request accepted and will complete asynchronously." }, "204": { "description": "VerifierWorkspace delete request succeeded." @@ -910,9 +892,6 @@ } }, "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, "x-ms-examples": { "VerifierWorkspaceDelete": { "$ref": "./examples/VerifierWorkspaceDelete.json" From a541b8c7f51a8c70abfedbabc5d9643ead73ad3a Mon Sep 17 00:00:00 2001 From: Sonalli S Sharma Date: Tue, 17 Sep 2024 19:45:58 -0700 Subject: [PATCH 10/13] reverting location header changes for delete --- .../ReachabilityAnalysisRunDelete.json | 6 ++++- .../stable/2024-05-01/networkVerifier.json | 23 ++++++++++++++++--- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json index e9e874540dd8..caa69596ea47 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json @@ -8,7 +8,11 @@ "reachabilityAnalysisRunName": "testAnalysisRun" }, "responses": { - "202": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/verifierWorkspaceOperationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01" + } + }, "204": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkVerifier.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkVerifier.json index df9a1f2e986f..096ea8b2653d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkVerifier.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkVerifier.json @@ -513,7 +513,6 @@ } } }, - "x-ms-long-running-operation": true, "x-ms-examples": { "ReachabilityAnalysisRunCreate": { "$ref": "./examples/ReachabilityAnalysisRunPut.json" @@ -561,7 +560,13 @@ ], "responses": { "202": { - "description": "ReachabilityAnalysisRun delete request accepted and will complete asynchronously." + "description": "ReachabilityAnalysisRun delete request accepted and will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + } + } }, "204": { "description": "ReachabilityAnalysisRun delete request succeeded." @@ -574,6 +579,9 @@ } }, "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "ReachabilityAnalysisRunDelete": { "$ref": "./examples/ReachabilityAnalysisRunDelete.json" @@ -879,7 +887,13 @@ ], "responses": { "202": { - "description": "VerifierWorkspace delete request accepted and will complete asynchronously." + "description": "VerifierWorkspace delete request accepted and will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + } + } }, "204": { "description": "VerifierWorkspace delete request succeeded." @@ -892,6 +906,9 @@ } }, "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "VerifierWorkspaceDelete": { "$ref": "./examples/VerifierWorkspaceDelete.json" From 615768d0877361f71b925be1ae45cc14f72c34a6 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Mon, 23 Sep 2024 16:59:37 +0800 Subject: [PATCH 11/13] Update sdk-suppressions.yaml --- .../network/resource-manager/sdk-suppressions.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/specification/network/resource-manager/sdk-suppressions.yaml b/specification/network/resource-manager/sdk-suppressions.yaml index f5f18097c539..6d52fdd62a4c 100644 --- a/specification/network/resource-manager/sdk-suppressions.yaml +++ b/specification/network/resource-manager/sdk-suppressions.yaml @@ -3,4 +3,12 @@ suppressions: - package: 'sdk/resourcemanager/network/armnetwork' breaking-changes: - Struct `FirewallPacketCaptureParametersFormat` has been removed - - Field `ID`, `Properties` of struct `FirewallPacketCaptureParameters` has been removed \ No newline at end of file + - Field `ID`, `Properties` of struct `FirewallPacketCaptureParameters` has been removed + azure-sdk-for-js: + - package: '@azure/arm-network' + breaking-changes: + - Interface AdminRuleCollection no longer has parameter systemData + - Interface BaseAdminRule no longer has parameter systemData + - Interface SecurityAdminConfiguration no longer has parameter systemData + + \ No newline at end of file From cb9fa347af7c45dd2f4081aa897b81710c824d5e Mon Sep 17 00:00:00 2001 From: Sonalli S Sharma Date: Mon, 23 Sep 2024 22:36:37 -0700 Subject: [PATCH 12/13] mark networkManagerScopeAccess as an optional property --- .../Microsoft.Network/stable/2024-05-01/networkManager.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManager.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManager.json index 84ca2a6f96bd..cc012f5c53a9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManager.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/networkManager.json @@ -519,8 +519,7 @@ } }, "required": [ - "networkManagerScopes", - "networkManagerScopeAccesses" + "networkManagerScopes" ], "description": "Properties of Managed Network" }, From 04c21fe3f2870bc33a397787dc377495f33b3d82 Mon Sep 17 00:00:00 2001 From: Chenjie Shi Date: Fri, 27 Sep 2024 10:52:52 +0800 Subject: [PATCH 13/13] update go breaking suppressions --- .../network/resource-manager/sdk-suppressions.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/specification/network/resource-manager/sdk-suppressions.yaml b/specification/network/resource-manager/sdk-suppressions.yaml index 6d52fdd62a4c..b4d94212e76d 100644 --- a/specification/network/resource-manager/sdk-suppressions.yaml +++ b/specification/network/resource-manager/sdk-suppressions.yaml @@ -2,8 +2,11 @@ suppressions: azure-sdk-for-go: - package: 'sdk/resourcemanager/network/armnetwork' breaking-changes: - - Struct `FirewallPacketCaptureParametersFormat` has been removed - - Field `ID`, `Properties` of struct `FirewallPacketCaptureParameters` has been removed + - Field `Etag` of struct `AdminRuleCollection` has been removed + - Field `Etag` of struct `AdminRule` has been removed + - Field `Etag` of struct `BaseAdminRule` has been removed + - Field `Etag` of struct `DefaultAdminRule` has been removed + - Field `Etag` of struct `SecurityAdminConfiguration` has been removed azure-sdk-for-js: - package: '@azure/arm-network' breaking-changes: @@ -11,4 +14,4 @@ suppressions: - Interface BaseAdminRule no longer has parameter systemData - Interface SecurityAdminConfiguration no longer has parameter systemData - \ No newline at end of file +