From 9778042723206fbc582306dcb407bddbd73df005 Mon Sep 17 00:00:00 2001 From: sssharma24 <107450300+sssharma24@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:22:35 -0700 Subject: [PATCH] [Reviewed in priv repo] adding ipam, vnv and sec admin for 2024-01-01 preview (#29998) * adding ipam, vnv and sec admin for 2024-01-01 preview. already reviewed in priv repo * updating readme with the newest stable 2024-01-01 * BodyTopLevelProperties suppression * typo for ipaddress in suppression * update package tag * update readme (PR comments) and update to use common types (a copy of the models from common-types v5 folder) and update networkManagerName to include - in regex * Change default tag to package-2024-01 * updating systemdata to commonsystemdata * removing commonsystemdata property * reverting all systemdata changes and adding suppression for the same --------- Co-authored-by: GuptaVertika <149072034+GuptaVertika@users.noreply.github.com> Co-authored-by: Arjun Patel (from Dev Box) --- .../examples/IpamPools_Create.json | 77 + .../examples/IpamPools_Delete.json | 18 + .../examples/IpamPools_Get.json | 40 + .../examples/IpamPools_GetPoolUsage.json | 67 + .../examples/IpamPools_List.json | 44 + .../IpamPools_ListAssociatedResources.json | 32 + .../examples/IpamPools_Update.json | 49 + ...tworkManagerAdminRuleCollectionDelete.json | 20 + .../NetworkManagerAdminRuleCollectionGet.json | 37 + ...NetworkManagerAdminRuleCollectionList.json | 41 + .../NetworkManagerAdminRuleCollectionPut.json | 71 + .../NetworkManagerAdminRuleDelete.json | 21 + .../examples/NetworkManagerAdminRuleGet.json | 56 + .../examples/NetworkManagerAdminRuleList.json | 60 + .../examples/NetworkManagerAdminRulePut.json | 127 ++ ...anagerAdminRulePut_NetworkGroupSource.json | 125 ++ .../examples/NetworkManagerCommitPost.json | 47 + .../NetworkManagerDefaultAdminRuleGet.json | 57 + .../examples/NetworkManagerDelete.json | 19 + .../NetworkManagerDeploymentStatusList.json | 51 + .../examples/NetworkManagerGet.json | 40 + .../examples/NetworkManagerList.json | 45 + .../examples/NetworkManagerListAll.json | 44 + .../examples/NetworkManagerPatch.json | 52 + .../examples/NetworkManagerPut.json | 91 ++ ...nagerSecurityAdminConfigurationDelete.json | 19 + ...kManagerSecurityAdminConfigurationGet.json | 34 + ...ManagerSecurityAdminConfigurationList.json | 38 + ...kManagerSecurityAdminConfigurationPut.json | 65 + ...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 + .../examples/StaticCidrs_Get.json | 37 + .../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 + .../2024-01-01-preview/ipAddressManager.json | 1106 ++++++++++++++ .../preview/2024-01-01-preview/network.json | 582 ++++++++ .../2024-01-01-preview/networkManager.json | 754 ++++++++++ ...workManagerSecurityAdminConfiguration.json | 1180 +++++++++++++++ .../2024-01-01-preview/networkVerifier.json | 1281 +++++++++++++++++ .../network/resource-manager/readme.md | 111 +- 53 files changed, 7375 insertions(+), 1 deletion(-) create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Create.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Delete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Get.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_GetPoolUsage.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_List.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_ListAssociatedResources.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Update.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRulePut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRulePut_NetworkGroupSource.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerCommitPost.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerDeploymentStatusList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerListAll.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerPatch.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_Create.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_Delete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_Get.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_List.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspaceDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspaceGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspaceList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspacePatch.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspacePut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/ipAddressManager.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/network.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/networkManager.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/networkManagerSecurityAdminConfiguration.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/networkVerifier.json diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Create.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Create.json new file mode 100644 index 000000000000..3a0d3a303ab4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Create.json @@ -0,0 +1,77 @@ +{ + "title": "Create/Update the Pool resource", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool", + "parameters": { + "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" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Delete.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Delete.json new file mode 100644 index 000000000000..9413db05cf44 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Delete.json @@ -0,0 +1,18 @@ +{ + "title": "Delete the Pool resource", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool" + }, + "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-01-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Get.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Get.json new file mode 100644 index 000000000000..46e35e90000d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Get.json @@ -0,0 +1,40 @@ +{ + "title": "Gets the specific Pool resource", + "parameters": { + "api-version": "2024-01-01-preview", + "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/preview/2024-01-01-preview/examples/IpamPools_GetPoolUsage.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_GetPoolUsage.json new file mode 100644 index 000000000000..90712aaa390e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_GetPoolUsage.json @@ -0,0 +1,67 @@ +{ + "title": "Get the Pool Usage", + "parameters": { + "api-version": "2024-01-01-preview", + "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/preview/2024-01-01-preview/examples/IpamPools_List.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_List.json new file mode 100644 index 000000000000..1aada0638f12 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_List.json @@ -0,0 +1,44 @@ +{ + "title": "Gets list of Pool resources at Network Manager level", + "parameters": { + "api-version": "2024-01-01-preview", + "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-01-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_ListAssociatedResources.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_ListAssociatedResources.json new file mode 100644 index 000000000000..13a66ddd0627 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_ListAssociatedResources.json @@ -0,0 +1,32 @@ +{ + "title": "List Associated Resource in the Pool", + "parameters": { + "api-version": "2024-01-01-preview", + "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-01-01-preview" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Update.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Update.json new file mode 100644 index 000000000000..7d69aeada232 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/IpamPools_Update.json @@ -0,0 +1,49 @@ +{ + "title": "Updates the specific Pool resource", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "poolName": "TestPool", + "parameters": { + "properties": { + "description": "Test description.", + "parentPoolName": "test-ipam-pool", + "addressPrefixes": [ + "10.0.0.0/24" + ] + } + } + }, + "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/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json new file mode 100644 index 000000000000..10be98aa6979 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection", + "force": false + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json new file mode 100644 index 000000000000..96dc66cf1c0a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", + "name": "testRuleCollection", + "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections", + "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 rule collection", + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionList.json new file mode 100644 index 000000000000..1d61eb7d2237 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionList.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", + "name": "testRuleCollection", + "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections", + "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 rule collection", + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + ], + "nextLink": "{baseurl}/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections?api-version=2023-09-01&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json new file mode 100644 index 000000000000..461164be1484 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection", + "ruleCollection": { + "properties": { + "description": "A sample policy", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", + "name": "myTestSecurityConfig", + "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections", + "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", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityConfigurations/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", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleDelete.json new file mode 100644 index 000000000000..608ad262700d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleDelete.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleAdminRule", + "force": false + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleGet.json new file mode 100644 index 000000000000..067d7be988b7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleGet.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleAdminRule" + }, + "responses": { + "200": { + "body": { + "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", + "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": "This is Sample Admin Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "access": "Deny", + "priority": 1, + "direction": "Inbound", + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleList.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleList.json new file mode 100644 index 000000000000..545b8886f41a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRuleList.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "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", + "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" + }, + "kind": "Custom", + "properties": { + "description": "This is Sample Admin Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "access": "Deny", + "priority": 1, + "direction": "Inbound", + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkManagers/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules?api-version=2023-09-01&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRulePut.json new file mode 100644 index 000000000000..bcc51575b710 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRulePut.json @@ -0,0 +1,127 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleAdminRule", + "adminRule": { + "kind": "Custom", + "properties": { + "description": "This is Sample Admin Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "ServiceTag", + "addressPrefix": "Internet" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "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/SampleAdminRule", + "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", + "name": "SampleAdminRule", + "kind": "Custom", + "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": "This is Sample Admin Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "ServiceTag", + "addressPrefix": "Internet" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "access": "Deny", + "priority": 1, + "direction": "Inbound", + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + }, + "201": { + "body": { + "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", + "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": "This is Sample Admin Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "ServiceTag", + "addressPrefix": "Internet" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "access": "Deny", + "priority": 1, + "direction": "Inbound", + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRulePut_NetworkGroupSource.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRulePut_NetworkGroupSource.json new file mode 100644 index 000000000000..055adbf2237c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerAdminRulePut_NetworkGroupSource.json @@ -0,0 +1,125 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleAdminRule", + "adminRule": { + "kind": "Custom", + "properties": { + "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/SampleAdminRule", + "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", + "name": "SampleAdminRule", + "kind": "Custom", + "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": "This is Sample Admin Rule using a network group as a source and destination.", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "ServiceTag", + "addressPrefix": "Internet" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "access": "Deny", + "priority": 1, + "direction": "Inbound", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "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", + "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": "This is Sample Admin Rule using a network group as a source and destination.", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "ServiceTag", + "addressPrefix": "Internet" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "access": "Deny", + "priority": 1, + "direction": "Inbound", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerCommitPost.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerCommitPost.json new file mode 100644 index 000000000000..d3ba14ef7360 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerCommitPost.json @@ -0,0 +1,47 @@ +{ + "title": "Post Azure Virtual Network Manager Commit", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resoureGroupSample", + "networkManagerName": "testNetworkManager", + "parameters": { + "targetLocations": [ + "useast" + ], + "configurationIds": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig" + ], + "commitType": "SecurityAdmin" + } + }, + "responses": { + "200": { + "body": { + "commitId": "testCommitId", + "targetLocations": [ + "useast" + ], + "configurationIds": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig" + ], + "commitType": "SecurityAdmin" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-01-01-preview" + }, + "body": { + "commitId": "testCommitId", + "targetLocations": [ + "useast" + ], + "configurationIds": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig" + ], + "commitType": "SecurityAdmin" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json new file mode 100644 index 000000000000..47bb13ca1737 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleDefaultAdminRule" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleDefaultAdminRule", + "type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules", + "name": "SampleDefaultAdminRule", + "kind": "Default", + "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": { + "flag": "AllowVnetInbound", + "description": "This is Sample Default Admin Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "access": "Deny", + "priority": 1, + "direction": "Inbound", + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerDelete.json new file mode 100644 index 000000000000..ac94125b6e32 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerDelete.json @@ -0,0 +1,19 @@ +{ + "title": "Delete Azure Virtual Network Manager", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "force": false + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-01-01-preview" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerDeploymentStatusList.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerDeploymentStatusList.json new file mode 100644 index 000000000000..6b425cf1c76a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerDeploymentStatusList.json @@ -0,0 +1,51 @@ +{ + "title": "Post Azure Virtual Network Manager Deployment Status", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resoureGroupSample", + "networkManagerName": "testNetworkManager", + "parameters": { + "regions": [ + "eastus", + "westus" + ], + "deploymentTypes": [ + "Connectivity", + "AdminPolicy" + ], + "skipToken": "FakeSkipTokenCode" + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "deploymentType": "AdminPolicy", + "configurationIds": [ + "SecConfig1", + "SecConfig2" + ], + "commitTime": "2021-01-26T06:58:50.883Z", + "region": "eastus", + "deploymentStatus": "Deploying", + "errorMessage": "" + }, + { + "deploymentType": "Connectivity", + "configurationIds": [ + "ConnConfig1", + "ConnConfig2" + ], + "commitTime": "2021-01-26T06:58:50.883Z", + "region": "eastus", + "deploymentStatus": "Deployed", + "errorMessage": "" + } + ], + "skipToken": "NextFakeSkipTokenCode" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerGet.json new file mode 100644 index 000000000000..dfeff9b6c9c2 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerGet.json @@ -0,0 +1,40 @@ +{ + "title": "Get Azure Virtual Network Manager", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager" + }, + "responses": { + "200": { + "body": { + "name": "testNetworkManager", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", + "type": "Microsoft.Network/networkManagers", + "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": "My Test Network Manager", + "networkManagerScopes": { + "managementGroups": [], + "subscriptions": [ + "/subscriptions/00000000-0000-0000-0000-000000000000" + ] + }, + "networkManagerScopeAccesses": [ + "SecurityUser" + ], + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerList.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerList.json new file mode 100644 index 000000000000..da8d1bbe6a87 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerList.json @@ -0,0 +1,45 @@ +{ + "title": "List Azure Virtual Network Manager", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testNetworkManager", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", + "type": "Microsoft.Network/networkManagers", + "etag": "sadf-asdf-asdf-asdf", + "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": "My Test Network Manager", + "networkManagerScopes": { + "managementGroups": [], + "subscriptions": [ + "/subscriptions/00000000-0000-0000-0000-000000000000" + ] + }, + "networkManagerScopeAccesses": [ + "Connectivity" + ], + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + ], + "nextLink": "{baseurl}/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/networkManagers?api-version=2023-11-01&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerListAll.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerListAll.json new file mode 100644 index 000000000000..d57ca2bb0ae9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerListAll.json @@ -0,0 +1,44 @@ +{ + "title": "List Azure Virtual Network Manager in Subscription", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testNetworkManager", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", + "type": "Microsoft.Network/networkManagers", + "etag": "sadf-asdf-asdf-asdf", + "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": "My Test Network Manager", + "networkManagerScopes": { + "managementGroups": [], + "subscriptions": [ + "/subscriptions/00000000-0000-0000-0000-000000000000" + ] + }, + "networkManagerScopeAccesses": [ + "SecurityUser" + ], + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + ], + "nextLink": "{baseurl}/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/networkManagers?api-version=2024-01-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerPatch.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerPatch.json new file mode 100644 index 000000000000..3ad4298c42cf --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerPatch.json @@ -0,0 +1,52 @@ +{ + "title": "Patch Managed Network Tags", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "testNetworkManager", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", + "type": "Microsoft.Network/networkManager", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "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": "My Test Network Manager", + "networkManagerScopes": { + "managementGroups": [], + "subscriptions": [ + "/subscriptions/00000000-0000-0000-0000-000000000001" + ] + }, + "networkManagerScopeAccesses": [ + "Connectivity" + ], + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerPut.json new file mode 100644 index 000000000000..67b845935e91 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerPut.json @@ -0,0 +1,91 @@ +{ + "title": "Create/Update Azure Virtual Network Manager", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "TestNetworkManager", + "parameters": { + "properties": { + "description": "My Test Network Manager", + "networkManagerScopes": { + "managementGroups": [ + "/Microsoft.Management/testmg" + ], + "subscriptions": [ + "/subscriptions/00000000-0000-0000-0000-000000000000" + ] + }, + "networkManagerScopeAccesses": [ + "Connectivity" + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "TestNetworkManager", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager", + "type": "Microsoft.Network/networkManagers", + "etag": "sadf-asdf-asdf-asdf", + "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": "My Test Network Manager", + "networkManagerScopes": { + "managementGroups": [ + "Microsoft.Management/managementGroups/testMg" + ], + "subscriptions": [ + "/subscriptions/00000000-0000-0000-0000-000000000000" + ] + }, + "networkManagerScopeAccesses": [ + "Connectivity" + ], + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + }, + "201": { + "body": { + "name": "TestNetworkManager", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager", + "type": "Microsoft.Network/networkManagers", + "etag": "sadf-asdf-asdf-asdf", + "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": "My Test Network Manager", + "networkManagerScopes": { + "managementGroups": [ + "Microsoft.Management/managementGroups/testMg" + ], + "subscriptions": [ + "/subscriptions/00000000-0000-0000-0000-000000000000" + ] + }, + "networkManagerScopeAccesses": [ + "Connectivity" + ], + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json new file mode 100644 index 000000000000..c3a7a5ab49d2 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "force": false + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json new file mode 100644 index 000000000000..25285cb35e59 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/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", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "applyOnNetworkIntentPolicyBasedServices": [ + "None" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json new file mode 100644 index 000000000000..84eef12b97df --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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/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", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "applyOnNetworkIntentPolicyBasedServices": [ + "None" + ] + } + } + ], + "nextLink": "{baseurl}/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations?api-version=2023-09-01&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json new file mode 100644 index 000000000000..0e71e5c701de --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "securityAdminConfiguration": { + "properties": { + "description": "A sample policy", + "applyOnNetworkIntentPolicyBasedServices": [ + "None" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/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", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "applyOnNetworkIntentPolicyBasedServices": [ + "None" + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/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", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "applyOnNetworkIntentPolicyBasedServices": [ + "None" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json new file mode 100644 index 000000000000..36e03047c34a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentDelete.json new file mode 100644 index 000000000000..b0111818ae62 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentGet.json new file mode 100644 index 000000000000..b97930b65075 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentGet.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentList.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentList.json new file mode 100644 index 000000000000..a2d1bfebf952 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentList.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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-01-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentPut.json new file mode 100644 index 000000000000..b861656cc488 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisIntentPut.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunDelete.json new file mode 100644 index 000000000000..be4026c0b5bf --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunDelete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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-01-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunGet.json new file mode 100644 index 000000000000..c083cb10fbb2 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunGet.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunList.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunList.json new file mode 100644 index 000000000000..5904d1800aca --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunList.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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-01-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunPut.json new file mode 100644 index 000000000000..0b4f37693839 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/ReachabilityAnalysisRunPut.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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-01-01-preview" + } + }, + "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-01-01-preview" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_Create.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_Create.json new file mode 100644 index 000000000000..90acf5192e10 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_Create.json @@ -0,0 +1,65 @@ +{ + "title": "Create a StaticCidr Resource", + "parameters": { + "api-version": "2024-01-01-preview", + "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/preview/2024-01-01-preview/examples/StaticCidrs_Delete.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_Delete.json new file mode 100644 index 000000000000..001e7fa03220 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_Delete.json @@ -0,0 +1,19 @@ +{ + "title": "Delete the StaticCidr resource", + "parameters": { + "api-version": "2024-01-01-preview", + "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-01-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_Get.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_Get.json new file mode 100644 index 000000000000..f522da7846be --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_Get.json @@ -0,0 +1,37 @@ +{ + "title": "Gets the specific StaticCidr resource", + "parameters": { + "api-version": "2024-01-01-preview", + "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/preview/2024-01-01-preview/examples/StaticCidrs_List.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_List.json new file mode 100644 index 000000000000..952e92ee43a3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/StaticCidrs_List.json @@ -0,0 +1,41 @@ +{ + "title": "Gets list of StaticCidr resources at Pool level", + "parameters": { + "api-version": "2024-01-01-preview", + "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-01-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspaceDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspaceDelete.json new file mode 100644 index 000000000000..add06d0fd3cc --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspaceDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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-01-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspaceGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspaceGet.json new file mode 100644 index 000000000000..798321685f9a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspaceGet.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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/preview/2024-01-01-preview/examples/VerifierWorkspaceList.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspaceList.json new file mode 100644 index 000000000000..3da9aa221e20 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspaceList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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/preview/2024-01-01-preview/examples/VerifierWorkspacePatch.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspacePatch.json new file mode 100644 index 000000000000..412cb880bef0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspacePatch.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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/preview/2024-01-01-preview/examples/VerifierWorkspacePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspacePut.json new file mode 100644 index 000000000000..38737337f754 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/examples/VerifierWorkspacePut.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2024-01-01-preview", + "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-01-01-preview" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/ipAddressManager.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/ipAddressManager.json new file mode 100644 index 000000000000..a8671d8dc658 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/ipAddressManager.json @@ -0,0 +1,1106 @@ +{ + "swagger": "2.0", + "info": { + "title": "IPAddressManagerClient - Public Preview", + "version": "2024-01-01-preview" + }, + "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.", + "schema": { + "$ref": "#/definitions/IpamPool" + } + } + ], + "responses": { + "200": { + "description": "Pool was updated", + "schema": { + "$ref": "#/definitions/IpamPool" + } + }, + "201": { + "description": "Pool was created", + "schema": { + "$ref": "#/definitions/IpamPool" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "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", + "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/preview/2024-01-01-preview/network.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/network.json new file mode 100644 index 000000000000..324ecd8b18e5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/network.json @@ -0,0 +1,582 @@ +{ + "swagger": "2.0", + "info": { + "title": "NetworkManagementClient", + "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.", + "version": "2024-01-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": {}, + "definitions": { + "ErrorDetails": { + "properties": { + "code": { + "type": "string", + "description": "Error code." + }, + "target": { + "type": "string", + "description": "Error target." + }, + "message": { + "type": "string", + "description": "Error message." + } + }, + "description": "Common error details representation." + }, + "Error": { + "properties": { + "code": { + "type": "string", + "description": "Error code." + }, + "message": { + "type": "string", + "description": "Error message." + }, + "target": { + "type": "string", + "description": "Error target." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + }, + "description": "Error details." + }, + "innerError": { + "type": "string", + "description": "Inner error message." + } + }, + "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": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Cloud error body." + } + }, + "description": "An error response from the service." + }, + "CloudErrorBody": { + "x-ms-external": true, + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from the service." + }, + "AzureAsyncOperationResult": { + "properties": { + "status": { + "type": "string", + "description": "Status of the Azure async operation.", + "enum": [ + "InProgress", + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "NetworkOperationStatus", + "modelAsString": true + } + }, + "error": { + "$ref": "#/definitions/Error", + "description": "Details of the error occurred during specified asynchronous operation." + } + }, + "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": { + "type": "string", + "description": "Resource ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Common resource representation.", + "x-ms-azure-resource": true + }, + "ChildResource": { + "type": "object", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "description": "Proxy resource representation.", + "x-ms-azure-resource": true + }, + "SubResource": { + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + } + }, + "description": "Reference to another subresource.", + "x-ms-azure-resource": true + }, + "TagsObject": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Tags object for patch operations." + }, + "SystemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "readOnly": true, + "properties": { + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "type": "string", + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)." + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "type": "string", + "description": "The type of identity that last modified the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The type of identity that last modified the resource." + } + } + }, + "ManagedServiceIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of the system assigned identity. This property will only be provided for a system assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of the system assigned identity. This property will only be provided for a system assigned identity." + }, + "type": { + "type": "string", + "description": "The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of user assigned identity." + } + } + }, + "description": "The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "ProvisioningState": { + "type": "string", + "readOnly": true, + "description": "The current provisioning state.", + "enum": [ + "Succeeded", + "Updating", + "Deleting", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "Access": { + "type": "string", + "description": "Access to be allowed or denied.", + "enum": [ + "Allow", + "Deny" + ], + "x-ms-enum": { + "name": "Access", + "modelAsString": true + } + }, + "AuthenticationMethod": { + "type": "string", + "description": "VPN client authentication method.", + "enum": [ + "EAPTLS", + "EAPMSCHAPv2" + ], + "x-ms-enum": { + "name": "AuthenticationMethod", + "modelAsString": true + } + }, + "IPAllocationMethod": { + "type": "string", + "description": "IP address allocation method.", + "enum": [ + "Static", + "Dynamic" + ], + "x-ms-enum": { + "name": "IPAllocationMethod", + "modelAsString": true + } + }, + "IPVersion": { + "type": "string", + "description": "IP address version.", + "enum": [ + "IPv4", + "IPv6" + ], + "x-ms-enum": { + "name": "IPVersion", + "modelAsString": true + } + }, + "ExtendedLocationType": { + "type": "string", + "description": "The supported ExtendedLocation types. Currently only EdgeZone is supported in Microsoft.Network resources.", + "enum": [ + "EdgeZone" + ], + "x-ms-enum": { + "name": "ExtendedLocationTypes", + "modelAsString": true + } + }, + "ExtendedLocation": { + "description": "ExtendedLocation complex type.", + "properties": { + "name": { + "type": "string", + "description": "The name of the extended location." + }, + "type": { + "$ref": "#/definitions/ExtendedLocationType", + "description": "The type of the extended location." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API version." + }, + "ApiVersionVmssParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "enum": [ + "2017-03-30" + ], + "x-ms-enum": { + "name": "ApiVersion", + "modelAsString": true + }, + "description": "Client API version." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/networkManager.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/networkManager.json new file mode 100644 index 000000000000..40521b656642 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/networkManager.json @@ -0,0 +1,754 @@ +{ + "swagger": "2.0", + "info": { + "title": "NetworkManager", + "description": "The Microsoft Azure Virtual Network Manager API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to manage your network resources.", + "version": "2024-01-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "NetworkManagers" + ], + "operationId": "NetworkManagers_Get", + "description": "Gets the specified Network Manager.", + "responses": { + "200": { + "description": "OK - Returns information about the network manager.", + "schema": { + "$ref": "#/definitions/NetworkManager" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "NetworkManagersGet": { + "$ref": "./examples/NetworkManagerGet.json" + } + } + }, + "put": { + "tags": [ + "NetworkManagers" + ], + "operationId": "NetworkManagers_CreateOrUpdate", + "description": "Creates or updates a Network Manager.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkManager" + }, + "description": "Parameters supplied to specify which network manager is." + } + ], + "responses": { + "200": { + "description": "Updated - Returns information about the network manager.", + "schema": { + "$ref": "#/definitions/NetworkManager" + } + }, + "201": { + "description": "Created - Returns information about the network manager.", + "schema": { + "$ref": "#/definitions/NetworkManager" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Put Network Manager": { + "$ref": "./examples/NetworkManagerPut.json" + } + } + }, + "delete": { + "tags": [ + "NetworkManagers" + ], + "operationId": "NetworkManagers_Delete", + "parameters": [ + { + "$ref": "#/parameters/ForceDeleteParameter" + } + ], + "description": "Deletes a network manager.", + "responses": { + "200": { + "description": "Delete Succeed." + }, + "202": { + "description": "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": "Request successful. The resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "NetworkManagersDelete": { + "$ref": "./examples/NetworkManagerDelete.json" + } + } + }, + "patch": { + "tags": [ + "NetworkManagers" + ], + "operationId": "NetworkManagers_Patch", + "description": "Patch NetworkManager.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PatchObject" + }, + "description": "Parameters supplied to specify which network manager is." + } + ], + "responses": { + "200": { + "description": "Updated - Returns information about the network manager.", + "schema": { + "$ref": "#/definitions/NetworkManager" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "NetworkManagesPatch": { + "$ref": "./examples/NetworkManagerPatch.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/commit": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "post": { + "tags": [ + "NetworkManagers" + ], + "operationId": "NetworkManagerCommits_Post", + "description": "Post a Network Manager Commit.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkManagerCommit" + }, + "description": "Parameters supplied to specify which Managed Network commit is." + } + ], + "responses": { + "200": { + "description": "Succeed.", + "schema": { + "$ref": "#/definitions/NetworkManagerCommit" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/NetworkManagerCommit" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "NetworkManageCommitPost": { + "$ref": "./examples/NetworkManagerCommitPost.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listDeploymentStatus": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ListTopParameter" + } + ], + "post": { + "tags": [ + "NetworkManagers" + ], + "operationId": "NetworkManagerDeploymentStatus_List", + "description": "Post to List of Network Manager Deployment Status.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkManagerDeploymentStatusParameter" + }, + "description": "Parameters supplied to specify which Managed Network deployment status is." + } + ], + "responses": { + "200": { + "description": "OK - Returns a list of deployment status.", + "schema": { + "$ref": "#/definitions/NetworkManagerDeploymentStatusListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "NetworkManagerDeploymentStatusList": { + "$ref": "./examples/NetworkManagerDeploymentStatusList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagers": { + "get": { + "tags": [ + "NetworkManagers" + ], + "operationId": "NetworkManagers_ListBySubscription", + "description": "List all network managers in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ListTopParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the network managers.", + "schema": { + "$ref": "#/definitions/NetworkManagerListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "NetworkManagersList": { + "$ref": "./examples/NetworkManagerListAll.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers": { + "get": { + "tags": [ + "NetworkManagers" + ], + "operationId": "NetworkManagers_List", + "description": "List network managers in a resource group.", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ListTopParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns a list of network managers.", + "schema": { + "$ref": "#/definitions/NetworkManagerListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Network Manager": { + "$ref": "./examples/NetworkManagerList.json" + } + } + } + } + }, + "definitions": { + "NetworkManager": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkManagerProperties", + "description": "The network manager properties" + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "The Managed Network resource" + }, + "NetworkManagerListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkManager" + }, + "description": "Gets a page of NetworkManager" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next page of results." + } + }, + "description": "Result of the request to list NetworkManager. It contains a list of network managers and a URL link to get the next set of results." + }, + "NetworkManagerProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description of the network manager." + }, + "networkManagerScopes": { + "type": "object", + "properties": { + "managementGroups": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of management groups." + }, + "subscriptions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of subscriptions." + }, + "crossTenantScopes": { + "readOnly": true, + "type": "array", + "x-ms-identifiers": [], + "items": { + "$ref": "#/definitions/CrossTenantScopes" + }, + "description": "List of cross tenant scopes." + } + }, + "description": "Scope of Network Manager." + }, + "networkManagerScopeAccesses": { + "type": "array", + "items": { + "type": "string", + "$ref": "#/definitions/ConfigurationType" + }, + "description": "Scope Access." + }, + "provisioningState": { + "readOnly": true, + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the network manager resource." + }, + "resourceGuid": { + "type": "string", + "readOnly": true, + "description": "Unique identifier for this resource." + } + }, + "required": [ + "networkManagerScopes", + "networkManagerScopeAccesses" + ], + "description": "Properties of Managed Network" + }, + "CrossTenantScopes": { + "type": "object", + "properties": { + "tenantId": { + "readOnly": true, + "type": "string", + "description": "Tenant ID." + }, + "managementGroups": { + "type": "array", + "readOnly": true, + "items": { + "type": "string" + }, + "description": "List of management groups." + }, + "subscriptions": { + "type": "array", + "readOnly": true, + "items": { + "type": "string" + }, + "description": "List of subscriptions." + } + }, + "description": "Cross tenant scopes." + }, + "NetworkManagerCommit": { + "type": "object", + "properties": { + "commitId": { + "type": "string", + "readOnly": true, + "description": "Commit Id." + }, + "targetLocations": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of target locations." + }, + "configurationIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of configuration ids." + }, + "commitType": { + "type": "string", + "$ref": "#/definitions/ConfigurationType", + "description": "Commit Type." + } + }, + "required": [ + "targetLocations", + "commitType" + ], + "description": "Network Manager Commit." + }, + "PatchObject": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Object for patch operations." + }, + "NetworkManagerDeploymentStatusParameter": { + "type": "object", + "properties": { + "regions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of locations." + }, + "deploymentTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/ConfigurationType" + }, + "description": "List of deployment types." + }, + "skipToken": { + "description": "Continuation token for pagination, capturing the next page size and offset, as well as the context of the query.", + "type": "string" + } + }, + "description": "Network Manager Deployment Status Parameter." + }, + "NetworkManagerDeploymentStatusListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "x-ms-identifiers": [], + "items": { + "$ref": "#/definitions/NetworkManagerDeploymentStatus" + }, + "description": "Gets a page of Network Manager Deployment Status" + }, + "skipToken": { + "description": "When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.", + "type": "string" + } + }, + "description": "A list of Network Manager Deployment Status" + }, + "NetworkManagerDeploymentStatus": { + "type": "object", + "properties": { + "commitTime": { + "type": "string", + "format": "date-time", + "description": "Commit Time." + }, + "region": { + "type": "string", + "description": "Region Name." + }, + "deploymentStatus": { + "type": "string", + "enum": [ + "NotStarted", + "Deploying", + "Deployed", + "Failed" + ], + "x-ms-enum": { + "name": "DeploymentStatus", + "modelAsString": true + }, + "description": "Deployment Status." + }, + "configurationIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of configuration ids." + }, + "deploymentType": { + "type": "string", + "$ref": "#/definitions/ConfigurationType" + }, + "errorMessage": { + "type": "string", + "description": "Error Message." + } + }, + "description": "Network Manager Deployment Status." + }, + "ConfigurationType": { + "type": "string", + "enum": [ + "SecurityAdmin", + "Connectivity" + ], + "x-ms-enum": { + "name": "ConfigurationType", + "modelAsString": true + }, + "description": "Configuration Deployment Type." + } + }, + "parameters": { + "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", + "pattern": "^[a-zA-Z0-9-]*$", + "description": "The name of the network manager.", + "x-ms-parameter-location": "method" + }, + "OperationResultIdParameter": { + "name": "operationResultId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of operation Result.", + "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.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 20, + "x-ms-parameter-location": "method" + }, + "ListSkipTokenParameter": { + "name": "$skipToken", + "description": "SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ForceDeleteParameter": { + "name": "force", + "in": "query", + "required": false, + "type": "boolean", + "description": "Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/networkManagerSecurityAdminConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/networkManagerSecurityAdminConfiguration.json new file mode 100644 index 000000000000..c46c7bb32fa7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/networkManagerSecurityAdminConfiguration.json @@ -0,0 +1,1180 @@ +{ + "swagger": "2.0", + "info": { + "title": "SecurityAdminConfiguration", + "version": "2024-01-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations": { + "get": { + "tags": [ + "SecurityAdminConfigurations" + ], + "operationId": "SecurityAdminConfigurations_List", + "description": "Lists all the network manager security admin configurations in a network manager, in a paginated format.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/ListTopParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "Get successful. The operation returns all security admin configuration resources in the specified network manager, in a paginated format", + "schema": { + "$ref": "#/definitions/SecurityAdminConfigurationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List security admin configurations in a network manager": { + "$ref": "./examples/NetworkManagerSecurityAdminConfigurationList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + } + ], + "get": { + "tags": [ + "SecurityAdminConfigurations" + ], + "description": "Retrieves a network manager security admin configuration.", + "operationId": "SecurityAdminConfigurations_Get", + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/SecurityAdminConfiguration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "Get security admin configurations": { + "$ref": "./examples/NetworkManagerSecurityAdminConfigurationGet.json" + } + } + }, + "put": { + "tags": [ + "SecurityAdminConfigurations" + ], + "description": "Creates or updates a network manager security admin configuration.", + "operationId": "SecurityAdminConfigurations_CreateOrUpdate", + "parameters": [ + { + "name": "securityAdminConfiguration", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SecurityAdminConfiguration" + }, + "description": "The security admin configuration to create or update" + } + ], + "responses": { + "200": { + "description": "Updated Admin Configuration", + "schema": { + "$ref": "#/definitions/SecurityAdminConfiguration" + } + }, + "201": { + "description": "Created Admin Configuration", + "schema": { + "$ref": "#/definitions/SecurityAdminConfiguration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$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" + } + } + }, + "delete": { + "tags": [ + "SecurityAdminConfigurations" + ], + "description": "Deletes a network manager security admin configuration.", + "operationId": "SecurityAdminConfigurations_Delete", + "parameters": [ + { + "$ref": "#/parameters/ForceDeleteParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "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": "Request successful. Resource does not exist." + }, + "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": { + "Delete network manager security admin configuration": { + "$ref": "./examples/NetworkManagerSecurityAdminConfigurationDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections": { + "get": { + "tags": [ + "AdminRuleCollections" + ], + "operationId": "AdminRuleCollections_List", + "description": "Lists all the rule collections in a security admin configuration, in a paginated format.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "#/parameters/ListTopParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "Get successful. The operation returns all ruleCollections in the specified security configuration, in a paginated format", + "schema": { + "$ref": "#/definitions/AdminRuleCollectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List security admin rule collections": { + "$ref": "./examples/NetworkManagerAdminRuleCollectionList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "#/parameters/RuleCollectionParameter" + } + ], + "get": { + "tags": [ + "AdminRuleCollections" + ], + "description": "Gets a network manager security admin configuration rule collection.", + "operationId": "AdminRuleCollections_Get", + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/AdminRuleCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets security admin rule collection": { + "$ref": "./examples/NetworkManagerAdminRuleCollectionGet.json" + } + } + }, + "put": { + "tags": [ + "AdminRuleCollections" + ], + "description": "Creates or updates an admin rule collection.", + "operationId": "AdminRuleCollections_CreateOrUpdate", + "parameters": [ + { + "name": "ruleCollection", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminRuleCollection" + }, + "description": "The Rule Collection to create or update" + } + ], + "responses": { + "200": { + "description": "Updated Rule Collection", + "schema": { + "$ref": "#/definitions/AdminRuleCollection" + } + }, + "201": { + "description": "Created Rule Collection", + "schema": { + "$ref": "#/definitions/AdminRuleCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update an admin rule collection": { + "$ref": "./examples/NetworkManagerAdminRuleCollectionPut.json" + } + } + }, + "delete": { + "tags": [ + "AdminRuleCollections" + ], + "description": "Deletes an admin rule collection.", + "operationId": "AdminRuleCollections_Delete", + "parameters": [ + { + "$ref": "#/parameters/ForceDeleteParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "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": "Request successful. Resource does not exist." + }, + "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": { + "Deletes an admin rule collection": { + "$ref": "./examples/NetworkManagerAdminRuleCollectionDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules": { + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "#/parameters/RuleCollectionParameter" + }, + { + "$ref": "#/parameters/ListTopParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "get": { + "tags": [ + "AdminRules" + ], + "description": "List all network manager security configuration admin rules.", + "operationId": "AdminRules_List", + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/AdminRuleListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "List security admin rules": { + "$ref": "./examples/NetworkManagerAdminRuleList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "#/parameters/RuleCollectionParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationsRuleParameter" + } + ], + "get": { + "tags": [ + "AdminRules" + ], + "description": "Gets a network manager security configuration admin rule.", + "operationId": "AdminRules_Get", + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/BaseAdminRule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets security admin rule": { + "$ref": "./examples/NetworkManagerAdminRuleGet.json" + }, + "Gets security default admin rule": { + "$ref": "./examples/NetworkManagerDefaultAdminRuleGet.json" + } + } + }, + "put": { + "tags": [ + "AdminRules" + ], + "description": "Creates or updates an admin rule.", + "operationId": "AdminRules_CreateOrUpdate", + "parameters": [ + { + "name": "adminRule", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BaseAdminRule" + }, + "description": "The admin rule to create or update" + } + ], + "responses": { + "200": { + "description": "Updated rule", + "schema": { + "$ref": "#/definitions/BaseAdminRule" + } + }, + "201": { + "description": "Created rule", + "schema": { + "$ref": "#/definitions/BaseAdminRule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CommonErrorResponse" + } + } + }, + "x-ms-examples": { + "Create an admin rule": { + "$ref": "./examples/NetworkManagerAdminRulePut.json" + }, + "Create a admin rule with network group as source or destination": { + "$ref": "./examples/NetworkManagerAdminRulePut_NetworkGroupSource.json" + } + } + }, + "delete": { + "tags": [ + "AdminRules" + ], + "description": "Deletes an admin rule.", + "operationId": "AdminRules_Delete", + "parameters": [ + { + "$ref": "#/parameters/ForceDeleteParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "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": "Request successful. Resource does not exist." + }, + "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": { + "Deletes an admin rule": { + "$ref": "./examples/NetworkManagerAdminRuleDelete.json" + } + } + } + } + }, + "definitions": { + "SecurityAdminConfiguration": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SecurityAdminConfigurationPropertiesFormat", + "description": "Indicates the properties for the network manager security admin configuration." + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/CommonProxyResource" + } + ], + "description": "Defines the security admin configuration" + }, + "SecurityAdminConfigurationPropertiesFormat": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description of the security configuration." + }, + "applyOnNetworkIntentPolicyBasedServices": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkIntentPolicyBasedService" + }, + "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": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource." + }, + "resourceGuid": { + "type": "string", + "readOnly": true, + "description": "Unique identifier for this resource." + } + }, + "description": "Defines the security admin configuration properties." + }, + "SecurityAdminConfigurationListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityAdminConfiguration" + }, + "description": "Gets a page of security admin configurations" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next page of results." + } + }, + "description": "A list of network manager security admin configurations" + }, + "AdminRuleListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/BaseAdminRule" + }, + "description": "A list of admin rules" + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "security configuration admin rule list result." + }, + "AdminRuleCollectionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AdminRuleCollection" + }, + "description": "A list of network manager security admin configuration rule collections" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next set of results." + } + }, + "description": "Security admin configuration rule collection list result." + }, + "AdminRuleCollection": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AdminRuleCollectionPropertiesFormat", + "description": "Indicates the properties for the network manager admin rule collection." + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/CommonProxyResource" + } + ], + "description": "Defines the admin rule collection." + }, + "AdminRuleCollectionPropertiesFormat": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description of the admin rule collection." + }, + "appliesToGroups": { + "type": "array", + "x-ms-identifiers": [ + "networkGroupId" + ], + "items": { + "$ref": "#/definitions/NetworkManagerSecurityGroupItem" + }, + "description": "Groups for configuration" + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource." + }, + "resourceGuid": { + "type": "string", + "readOnly": true, + "description": "Unique identifier for this resource." + } + }, + "required": [ + "appliesToGroups" + ], + "description": "Defines the admin rule collection properties." + }, + "BaseAdminRule": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "description": "Whether the rule is custom or default.", + "enum": [ + "Custom", + "Default" + ], + "x-ms-enum": { + "name": "AdminRuleKind", + "modelAsString": true + } + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/CommonProxyResource" + } + ], + "required": [ + "kind" + ], + "discriminator": "kind", + "description": "Network base admin rule." + }, + "AdminRule": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/AdminPropertiesFormat", + "x-ms-client-flatten": true, + "description": "Indicates the properties of the security admin rule" + } + }, + "allOf": [ + { + "$ref": "#/definitions/BaseAdminRule" + } + ], + "description": "Network admin rule.", + "x-ms-discriminator-value": "Custom" + }, + "AdminPropertiesFormat": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description for this rule. Restricted to 140 chars." + }, + "protocol": { + "type": "string", + "$ref": "#/definitions/RuleProtocol", + "description": "Network protocol this rule applies to." + }, + "sources": { + "type": "array", + "x-ms-identifiers": [ + "addressPrefix" + ], + "items": { + "$ref": "#/definitions/AddressPrefixItem" + }, + "description": "The CIDR or source IP ranges." + }, + "destinations": { + "type": "array", + "x-ms-identifiers": [ + "addressPrefix" + ], + "items": { + "$ref": "#/definitions/AddressPrefixItem" + }, + "description": "The destination address prefixes. CIDR or destination IP ranges." + }, + "sourcePortRanges": { + "type": "array", + "items": { + "type": "string", + "description": "The source port." + }, + "description": "The source port ranges." + }, + "destinationPortRanges": { + "type": "array", + "items": { + "type": "string", + "description": "The destination port." + }, + "description": "The destination port ranges." + }, + "access": { + "$ref": "#/definitions/SecurityConfigurationRuleAccess", + "description": "Indicates the access allowed for this particular rule" + }, + "priority": { + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 4096, + "description": "The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule." + }, + "direction": { + "$ref": "#/definitions/SecurityConfigurationRuleDirection", + "description": "Indicates if the traffic matched against the rule in inbound or outbound." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource." + }, + "resourceGuid": { + "type": "string", + "readOnly": true, + "description": "Unique identifier for this resource." + } + }, + "required": [ + "protocol", + "access", + "direction", + "priority" + ], + "description": "Security admin rule resource." + }, + "DefaultAdminRule": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/DefaultAdminPropertiesFormat", + "x-ms-client-flatten": true, + "description": "Indicates the properties of the security admin rule" + } + }, + "allOf": [ + { + "$ref": "#/definitions/BaseAdminRule" + } + ], + "description": "Network default admin rule.", + "x-ms-discriminator-value": "Default" + }, + "DefaultAdminPropertiesFormat": { + "type": "object", + "properties": { + "description": { + "type": "string", + "readOnly": true, + "description": "A description for this rule. Restricted to 140 chars." + }, + "flag": { + "type": "string", + "description": "Default rule flag." + }, + "protocol": { + "type": "string", + "readOnly": true, + "$ref": "#/definitions/RuleProtocol", + "description": "Network protocol this rule applies to." + }, + "sources": { + "type": "array", + "x-ms-identifiers": [ + "addressPrefix" + ], + "readOnly": true, + "items": { + "$ref": "#/definitions/AddressPrefixItem" + }, + "description": "The CIDR or source IP ranges." + }, + "destinations": { + "type": "array", + "x-ms-identifiers": [ + "addressPrefix" + ], + "readOnly": true, + "items": { + "$ref": "#/definitions/AddressPrefixItem" + }, + "description": "The destination address prefixes. CIDR or destination IP ranges." + }, + "sourcePortRanges": { + "type": "array", + "readOnly": true, + "items": { + "type": "string", + "description": "The source port." + }, + "description": "The source port ranges." + }, + "destinationPortRanges": { + "type": "array", + "readOnly": true, + "items": { + "type": "string", + "description": "The destination port." + }, + "description": "The destination port ranges." + }, + "access": { + "$ref": "#/definitions/SecurityConfigurationRuleAccess", + "readOnly": true, + "description": "Indicates the access allowed for this particular rule" + }, + "priority": { + "type": "integer", + "format": "int32", + "readOnly": true, + "description": "The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule." + }, + "direction": { + "$ref": "#/definitions/SecurityConfigurationRuleDirection", + "readOnly": true, + "description": "Indicates if the traffic matched against the rule in inbound or outbound." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource." + }, + "resourceGuid": { + "type": "string", + "readOnly": true, + "description": "Unique identifier for this resource." + } + }, + "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.", + "enum": [ + "Allow", + "Deny", + "AlwaysAllow" + ], + "x-ms-enum": { + "name": "SecurityConfigurationRuleAccess", + "modelAsString": true + } + }, + "SecurityConfigurationRuleDirection": { + "type": "string", + "description": "The direction of the rule. The direction specifies if the rule will be evaluated on incoming or outgoing traffic.", + "enum": [ + "Inbound", + "Outbound" + ], + "x-ms-enum": { + "name": "SecurityConfigurationRuleDirection", + "modelAsString": true + } + }, + "RuleProtocol": { + "type": "string", + "description": "Network protocol this rule applies to.", + "enum": [ + "Tcp", + "Udp", + "Icmp", + "Esp", + "Any", + "Ah" + ], + "x-ms-enum": { + "name": "SecurityConfigurationRuleProtocol", + "modelAsString": true + } + }, + "NetworkManagerSecurityGroupItem": { + "type": "object", + "properties": { + "networkGroupId": { + "type": "string", + "description": "Network manager group Id." + } + }, + "required": [ + "networkGroupId" + ], + "description": "Network manager security group item." + }, + "AddressPrefixItem": { + "type": "object", + "properties": { + "addressPrefix": { + "type": "string", + "description": "Address prefix." + }, + "addressPrefixType": { + "type": "string", + "description": "Address prefix type.", + "enum": [ + "IPPrefix", + "ServiceTag", + "NetworkGroup" + ], + "x-ms-enum": { + "name": "AddressPrefixType", + "modelAsString": true + } + } + }, + "description": "Address prefix item." + }, + "NetworkIntentPolicyBasedService": { + "type": "string", + "description": "Network intent policy based services.", + "enum": [ + "None", + "All", + "AllowRulesOnly" + ], + "x-ms-enum": { + "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": { + "SecurityConfigurationParameter": { + "name": "configurationName", + "in": "path", + "description": "The name of the network manager Security Configuration.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "RuleCollectionParameter": { + "name": "ruleCollectionName", + "in": "path", + "description": "The name of the network manager security Configuration rule collection.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "SecurityConfigurationsRuleParameter": { + "name": "ruleName", + "in": "path", + "description": "The name of the rule.", + "required": true, + "type": "string", + "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.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 20, + "x-ms-parameter-location": "method" + }, + "ListSkipTokenParameter": { + "name": "$skipToken", + "description": "SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ForceDeleteParameter": { + "name": "force", + "in": "query", + "required": false, + "type": "boolean", + "description": "Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/networkVerifier.json b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/networkVerifier.json new file mode 100644 index 000000000000..2aa040db1d2e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/networkVerifier.json @@ -0,0 +1,1281 @@ +{ + "swagger": "2.0", + "info": { + "title": "NetworkManagerVerifierManagementClient", + "version": "2024-01-01-preview" + }, + "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" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "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/readme.md b/specification/network/resource-manager/readme.md index e7b06187b7da..a476df5c3bb5 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -31,6 +31,115 @@ openapi-type: arm tag: package-2024-01 ``` +### Tag: package-2024-01-preview + +These settings apply only when `--tag=package-2024-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2024-01-preview' +input-file: + - Microsoft.Network/preview/2024-01-01-preview/networkManagerSecurityAdminConfiguration.json + - Microsoft.Network/preview/2024-01-01-preview/networkVerifier.json + - Microsoft.Network/preview/2024-01-01-preview/ipAddressManager.json + - Microsoft.Network/preview/2024-01-01-preview/network.json + - Microsoft.Network/preview/2024-01-01-preview/networkManager.json + - Microsoft.Network/stable/2024-01-01/applicationGateway.json + - Microsoft.Network/stable/2024-01-01/applicationGatewayWafDynamicManifests.json + - Microsoft.Network/stable/2024-01-01/applicationSecurityGroup.json + - Microsoft.Network/stable/2024-01-01/availableDelegations.json + - Microsoft.Network/stable/2024-01-01/availableServiceAliases.json + - Microsoft.Network/stable/2024-01-01/azureFirewall.json + - Microsoft.Network/stable/2024-01-01/azureFirewallFqdnTag.json + - Microsoft.Network/stable/2024-01-01/azureWebCategory.json + - Microsoft.Network/stable/2024-01-01/bastionHost.json + - Microsoft.Network/stable/2024-01-01/checkDnsAvailability.json + - Microsoft.Network/stable/2024-01-01/cloudServiceNetworkInterface.json + - Microsoft.Network/stable/2024-01-01/cloudServicePublicIpAddress.json + - Microsoft.Network/stable/2024-01-01/cloudServiceSwap.json + - Microsoft.Network/stable/2024-01-01/customIpPrefix.json + - Microsoft.Network/stable/2024-01-01/ddosCustomPolicy.json + - Microsoft.Network/stable/2024-01-01/ddosProtectionPlan.json + - Microsoft.Network/stable/2024-01-01/dscpConfiguration.json + - Microsoft.Network/stable/2024-01-01/endpointService.json + - Microsoft.Network/stable/2024-01-01/expressRouteCircuit.json + - Microsoft.Network/stable/2024-01-01/expressRouteCrossConnection.json + - Microsoft.Network/stable/2024-01-01/expressRoutePort.json + - Microsoft.Network/stable/2024-01-01/expressRouteProviderPort.json + - Microsoft.Network/stable/2024-01-01/firewallPolicy.json + - Microsoft.Network/stable/2024-01-01/ipAllocation.json + - Microsoft.Network/stable/2024-01-01/ipGroups.json + - Microsoft.Network/stable/2024-01-01/loadBalancer.json + - Microsoft.Network/stable/2024-01-01/natGateway.json + - Microsoft.Network/stable/2024-01-01/network.json + - Microsoft.Network/stable/2024-01-01/networkInterface.json + - Microsoft.Network/stable/2024-01-01/networkManagerActiveConfiguration.json + - Microsoft.Network/stable/2024-01-01/networkManagerConnection.json + - Microsoft.Network/stable/2024-01-01/networkManagerConnectivityConfiguration.json + - Microsoft.Network/stable/2024-01-01/networkManagerEffectiveConfiguration.json + - Microsoft.Network/stable/2024-01-01/networkManagerGroup.json + - Microsoft.Network/stable/2024-01-01/networkManagerScopeConnection.json + - Microsoft.Network/stable/2024-01-01/networkProfile.json + - Microsoft.Network/stable/2024-01-01/networkSecurityGroup.json + - Microsoft.Network/stable/2024-01-01/networkVirtualAppliance.json + - Microsoft.Network/stable/2024-01-01/networkWatcher.json + - Microsoft.Network/stable/2024-01-01/operation.json + - Microsoft.Network/stable/2024-01-01/privateEndpoint.json + - Microsoft.Network/stable/2024-01-01/privateLinkService.json + - Microsoft.Network/stable/2024-01-01/publicIpAddress.json + - Microsoft.Network/stable/2024-01-01/publicIpPrefix.json + - Microsoft.Network/stable/2024-01-01/routeFilter.json + - Microsoft.Network/stable/2024-01-01/routeTable.json + - Microsoft.Network/stable/2024-01-01/securityPartnerProvider.json + - Microsoft.Network/stable/2024-01-01/serviceCommunity.json + - Microsoft.Network/stable/2024-01-01/serviceEndpointPolicy.json + - Microsoft.Network/stable/2024-01-01/serviceTags.json + - Microsoft.Network/stable/2024-01-01/usage.json + - Microsoft.Network/stable/2024-01-01/virtualNetwork.json + - Microsoft.Network/stable/2024-01-01/virtualNetworkGateway.json + - Microsoft.Network/stable/2024-01-01/virtualNetworkTap.json + - Microsoft.Network/stable/2024-01-01/virtualRouter.json + - Microsoft.Network/stable/2024-01-01/virtualWan.json + - Microsoft.Network/stable/2024-01-01/vmssNetworkInterface.json + - Microsoft.Network/stable/2024-01-01/vmssPublicIpAddress.json + - Microsoft.Network/stable/2024-01-01/webapplicationfirewall.json + +suppressions: + - code: ImplementPrivateEndpointAPIs + from: networkVerifier.json + reason: False alarm. + - code: ImplementPrivateEndpointAPIs + from: ipAddressManager.json + reason: False alarm. + - code: ImplementPrivateEndpointAPIs + from: networkManagerSecurityAdminConfiguration.json + reason: False alarm. + - code: MissingSegmentsInNestedResourceListOperation + from: networkVerifier.json + reason: False alarm. + - code: MissingSegmentsInNestedResourceListOperation + from: ipAddressManager.json + reason: False alarm. + - code: MissingSegmentsInNestedResourceListOperation + from: networkManagerSecurityAdminConfiguration.json + reason: False alarm. + - code: PatchIdentityProperty + reason: False alarm. + - code: BodyTopLevelProperties + from: networkVerifier.json + reason: Bug. + - code: BodyTopLevelProperties + from: ipAddressManager.json + reason: Bug. + - code: BodyTopLevelProperties + from: networkManagerSecurityAdminConfiguration.json + reason: Bug. + - code: SystemDataDefinitionsCommonTypes + from: networkVerifier.json + reason: False alarm for common type errors. + - code: SystemDataDefinitionsCommonTypes + from: network.json + reason: False alarm for common type errors. +``` + ### Tag: package-2024-01 These settings apply only when `--tag=package-2024-01` is specified on the command line. @@ -3538,4 +3647,4 @@ See configuration in [readme.go.md](./readme.go.md) ## Java -See configuration in [readme.java.md](./readme.java.md) +See configuration in [readme.java.md](./readme.java.md) \ No newline at end of file