From b33a959dd4552e5265fb965a7d5c685411016154 Mon Sep 17 00:00:00 2001 From: yanfa317 <53584318+yanfa317@users.noreply.github.com> Date: Wed, 4 May 2022 14:19:28 -0700 Subject: [PATCH 1/8] Base New Version --- ...rActiveConnectivityConfigurationsList.json | 60 + ...rkManagerActiveSecurityAdminRulesList.json | 74 ++ ...orkManagerActiveSecurityUserRulesList.json | 71 ++ ...tworkManagerAdminRuleCollectionDelete.json | 14 + .../NetworkManagerAdminRuleCollectionGet.json | 36 + ...NetworkManagerAdminRuleCollectionList.json | 40 + .../NetworkManagerAdminRuleCollectionPut.json | 70 ++ .../NetworkManagerAdminRuleDelete.json | 15 + .../examples/NetworkManagerAdminRuleGet.json | 55 + .../examples/NetworkManagerAdminRuleList.json | 59 + .../examples/NetworkManagerAdminRulePut.json | 125 ++ .../examples/NetworkManagerCommitPost.json | 32 + ...anagerConnectionManagementGroupDelete.json | 12 + ...rkManagerConnectionManagementGroupGet.json | 33 + ...kManagerConnectionManagementGroupList.json | 37 + ...rkManagerConnectionManagementGroupPut.json | 61 + ...rkManagerConnectionSubscriptionDelete.json | 12 + ...tworkManagerConnectionSubscriptionGet.json | 33 + ...workManagerConnectionSubscriptionList.json | 37 + ...tworkManagerConnectionSubscriptionPut.json | 61 + ...anagerConnectivityConfigurationDelete.json | 14 + ...rkManagerConnectivityConfigurationGet.json | 48 + ...kManagerConnectivityConfigurationList.json | 52 + ...rkManagerConnectivityConfigurationPut.json | 106 ++ .../NetworkManagerDefaultAdminRuleGet.json | 56 + .../NetworkManagerDefaultAdminRulePut.json | 105 ++ .../NetworkManagerDefaultUserRuleGet.json | 54 + .../NetworkManagerDefaultUserRulePut.json | 101 ++ .../examples/NetworkManagerDelete.json | 13 + .../NetworkManagerDeploymentStatusList.json | 51 + ...fectiveConnectivityConfigurationsList.json | 55 + ...anagerEffectiveSecurityAdminRulesList.json | 69 ++ ...rkManagerEffectiveVirtualNetworksList.json | 27 + ...veVirtualNetworksListByNetworkManager.json | 27 + .../examples/NetworkManagerGet.json | 39 + .../examples/NetworkManagerGroupDelete.json | 14 + .../examples/NetworkManagerGroupGet.json | 32 + .../examples/NetworkManagerGroupList.json | 36 + .../examples/NetworkManagerGroupPut.json | 64 + .../examples/NetworkManagerList.json | 44 + .../examples/NetworkManagerListAll.json | 43 + .../examples/NetworkManagerPatch.json | 51 + .../examples/NetworkManagerPut.json | 89 ++ .../NetworkManagerScopeConnectionDelete.json | 14 + .../NetworkManagerScopeConnectionGet.json | 36 + .../NetworkManagerScopeConnectionList.json | 40 + .../NetworkManagerScopeConnectionPut.json | 66 + ...nagerSecurityAdminConfigurationDelete.json | 13 + ...kManagerSecurityAdminConfigurationGet.json | 33 + ...ManagerSecurityAdminConfigurationList.json | 37 + ...kManagerSecurityAdminConfigurationPut.json | 63 + ...anagerSecurityUserConfigurationDelete.json | 13 + ...rkManagerSecurityUserConfigurationGet.json | 31 + ...kManagerSecurityUserConfigurationList.json | 35 + ...rkManagerSecurityUserConfigurationPut.json | 57 + .../NetworkManagerStaticMemberDelete.json | 15 + .../NetworkManagerStaticMemberGet.json | 31 + .../NetworkManagerStaticMemberList.json | 35 + .../NetworkManagerStaticMemberPut.json | 60 + ...etworkManagerUserRuleCollectionDelete.json | 14 + .../NetworkManagerUserRuleCollectionGet.json | 36 + .../NetworkManagerUserRuleCollectionList.json | 40 + .../NetworkManagerUserRuleCollectionPut.json | 70 ++ .../NetworkManagerUserRuleDelete.json | 15 + .../examples/NetworkManagerUserRuleGet.json | 53 + .../examples/NetworkManagerUserRuleList.json | 57 + .../examples/NetworkManagerUserRulePut.json | 119 ++ .../preview/2022-04-01-preview/network.json | 439 +++++++ .../2022-04-01-preview/networkManager.json | 779 ++++++++++++ .../networkManagerActiveConfiguration.json | 490 ++++++++ .../networkManagerConnection.json | 426 +++++++ ...tworkManagerConnectivityConfiguration.json | 440 +++++++ .../networkManagerEffectiveConfiguration.json | 320 +++++ .../networkManagerGroup.json | 677 ++++++++++ .../networkManagerScopeConnection.json | 297 +++++ ...workManagerSecurityAdminConfiguration.json | 1098 +++++++++++++++++ ...tworkManagerSecurityUserConfiguration.json | 991 +++++++++++++++ 77 files changed, 9067 insertions(+) create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRulePut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerCommitPost.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRulePut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRuleGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRulePut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDeploymentStatusList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveSecurityAdminRulesList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerListAll.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPatch.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionPut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleList.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRulePut.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/network.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerActiveConfiguration.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnection.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerEffectiveConfiguration.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json new file mode 100644 index 000000000000..3a79672f5c65 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json @@ -0,0 +1,60 @@ +{ + "title": "Get Azure Virtual Network Manager Active Connectivity Configuration", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "networkManagerName": "testNetworkManager", + "parameters": { + "regions": [ + "westus" + ], + "skipToken": "fakeSkipTokenCode" + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "region": "westus", + "commitTime": "2020-07-10T18:03:22.2578238+05:30", + "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", + "properties": { + "description": "Sample Configuration", + "connectivityTopology": "HubAndSpoke", + "hubs": [ + { + "resourceId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myTestConnectivityConfig", + "resourceType": "Microsoft.Network/virtualNetworks" + } + ], + "isGlobal": "True", + "deleteExistingPeering": "True", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/groups/group1", + "useHubGateway": "True", + "groupConnectivity": "None", + "isGlobal": "False" + } + ], + "provisioningState": "Succeeded" + }, + "configurationGroups": [ + { + "id": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", + "properties": { + "description": "A group for all test Virtual Networks", + "memberType": "Microsoft.Network/virtualNetworks", + "provisioningState": "Succeeded" + } + } + ] + } + ], + "skipToken": "FakeSkipTokenCode" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json new file mode 100644 index 000000000000..6d4ca6845911 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json @@ -0,0 +1,74 @@ +{ + "title": "Get Azure Virtual Network Manager Active Security Admin Rules", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "networkManagerName": "testNetworkManager", + "parameters": { + "regions": [ + "westus" + ], + "skipToken": "fakeSkipTokenCode" + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "region": "westus", + "commitTime": "2020-07-10T18:03:22.2578238+05:30", + "id": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule", + "configurationDescription": "SampleDescription", + "ruleCollectionDescription": "SampleRuleCollectionDescription", + "ruleCollectionAppliesToGroups": [ + { + "networkGroupId": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1" + } + ], + "kind": "Default", + "properties": { + "description": "Sample Admin Rule", + "flag": "AllowVnetInbound", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "direction": "Inbound", + "access": "Deny", + "priority": 1, + "provisioningState": "Succeeded" + }, + "ruleGroups": [ + { + "id": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", + "properties": { + "description": "A group for all test Virtual Networks", + "memberType": "Microsoft.Network/virtualNetworks", + "provisioningState": "Succeeded" + } + } + ] + } + ], + "skipToken": "FakeSkipTokenCode" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.json new file mode 100644 index 000000000000..20468937fbe4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.json @@ -0,0 +1,71 @@ +{ + "title": "Get Azure Virtual Network Manager Active Security User Rules", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "networkManagerName": "testNetworkManager", + "parameters": { + "regions": [ + "westus" + ], + "skipToken": "fakeSkipTokenCode" + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "region": "westus", + "commitTime": "2020-07-10T18:03:22.2578238+05:30", + "id": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleUserRule", + "configurationDescription": "SampleDescription", + "ruleCollectionDescription": "SampleRuleCollectionDescription", + "ruleCollectionAppliesToGroups": [ + { + "networkGroupId": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1" + } + ], + "kind": "Custom", + "properties": { + "description": "Sample User Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "direction": "Inbound", + "provisioningState": "Succeeded" + }, + "ruleGroups": [ + { + "id": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", + "properties": { + "description": "A group for all test Virtual Networks", + "memberType": "Microsoft.Network/virtualNetworks", + "provisioningState": "Succeeded" + } + } + ] + } + ], + "skipToken": "FakeSkipTokenCode" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json new file mode 100644 index 000000000000..e6650a61bc0e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json new file mode 100644 index 000000000000..c5b9c54df98d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/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", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionList.json new file mode 100644 index 000000000000..9e7cab430648 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subId/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", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + ], + "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections?api-version=2021-05-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json new file mode 100644 index 000000000000..51124b09a15e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection", + "ruleCollection": { + "properties": { + "description": "A sample policy", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/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", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subId/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/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleDelete.json new file mode 100644 index 000000000000..1e237aeb1b03 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleAdminRule" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleGet.json new file mode 100644 index 000000000000..b6b84faa8180 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleGet.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleAdminRule" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/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" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleList.json new file mode 100644 index 000000000000..3d222b24c4d4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleList.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subId/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" + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkManagers/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules?api-version=2021-05-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRulePut.json new file mode 100644 index 000000000000..007cbe3c534f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRulePut.json @@ -0,0 +1,125 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "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/subId/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" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/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" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerCommitPost.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerCommitPost.json new file mode 100644 index 000000000000..512a5af37919 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerCommitPost.json @@ -0,0 +1,32 @@ +{ + "title": "Post Azure Virtual Network Manager Commit", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "resoureGroupSample", + "networkManagerName": "testNetworkManager", + "parameters": { + "targetLocations": [ + "useast" + ], + "configurationIds": [ + "/subscriptions/subscriptionC/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig" + ], + "commitType": "SecurityAdmin" + } + }, + "responses": { + "202": { + "body": { + "commitId": "testCommitId", + "targetLocations": [ + "useast" + ], + "configurationIds": [ + "/subscriptions/subscriptionC/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig" + ], + "commitType": "SecurityAdmin" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupDelete.json new file mode 100644 index 000000000000..aab8e230b990 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupDelete.json @@ -0,0 +1,12 @@ +{ + "title": "Delete Management Group Connection to Azure Virtual Network Manager", + "parameters": { + "api-version": "2022-02-01-preview", + "managementGroupId": "managementGroupA", + "networkManagerConnectionName": "TestNMConnection" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupGet.json new file mode 100644 index 000000000000..674d785e71eb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupGet.json @@ -0,0 +1,33 @@ +{ + "title": "Get Management Group Azure Virtual Network Manager Connection", + "parameters": { + "api-version": "2022-02-01-preview", + "managementGroupId": "managementGroupA", + "networkManagerConnectionName": "TestNMConnection" + }, + "responses": { + "200": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "id": "providers/Microsoft.Management/managementGroups/managementGroupA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", + "type": "Microsoft.Network/networkManagerConnections", + "name": "TestNMConnection", + "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": { + "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", + "connectionState": "Pending", + "description": "This is a network manager connection to testNetworkManager." + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupList.json new file mode 100644 index 000000000000..b354a2ab9473 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupList.json @@ -0,0 +1,37 @@ +{ + "title": "List Management Group Azure Virtual Network Manager Connections", + "parameters": { + "api-version": "2022-02-01-preview", + "managementGroupId": "managementGroupA" + }, + "responses": { + "200": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "value": [ + { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", + "type": "Microsoft.Network/networkManagerConnections", + "name": "TestNMConnection", + "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": { + "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", + "connectionState": "Pending", + "description": "This is a network manager connection to testNetworkManager." + } + } + ], + "nextLink": "{baseurl}/managementGroups/subscriptionA/providers/Microsoft.Network/networkManagerConnections?api-version=2021-02-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupPut.json new file mode 100644 index 000000000000..9fb650c76e45 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupPut.json @@ -0,0 +1,61 @@ +{ + "title": "Create/Update Management Group Azure Virtual Network Manager Connection", + "parameters": { + "api-version": "2022-02-01-preview", + "managementGroupId": "managementGroupA", + "networkManagerConnectionName": "TestNMConnection", + "parameters": { + "properties": { + "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager" + } + } + }, + "responses": { + "200": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", + "type": "Microsoft.Network/networkManagerConnections", + "name": "TestNMConnection", + "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": { + "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", + "connectionState": "Pending", + "description": "This is a network manager connection to testNetworkManager." + } + } + }, + "201": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "id": "/managementGroups/managementGroupA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", + "type": "Microsoft.Network/networkManagerConnections", + "name": "TestMConnection", + "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": { + "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", + "connectionState": "Pending", + "description": "This is a network manager connection to testNetworkManager." + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionDelete.json new file mode 100644 index 000000000000..e1ba6c24a5cb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionDelete.json @@ -0,0 +1,12 @@ +{ + "title": "Delete Subscription Connection to Azure Virtual Network Manager", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA", + "networkManagerConnectionName": "TestNMConnection" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionGet.json new file mode 100644 index 000000000000..a41b5835c636 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionGet.json @@ -0,0 +1,33 @@ +{ + "title": "Get Subscription Azure Virtual Network Manager Connection", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA", + "networkManagerConnectionName": "TestNMConnection" + }, + "responses": { + "200": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "id": "/subscriptions/subscriptionA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", + "type": "Microsoft.Network/networkManagerConnections", + "name": "TestNMConnection", + "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": { + "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", + "connectionState": "Pending", + "description": "This is a network manager connection to testNetworkManager." + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionList.json new file mode 100644 index 000000000000..fb76030d1ef5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionList.json @@ -0,0 +1,37 @@ +{ + "title": "List Subscription Azure Virtual Network Manager Connections", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA" + }, + "responses": { + "200": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", + "type": "Microsoft.Network/networkManagerConnections", + "name": "TestNMConnection", + "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": { + "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", + "connectionState": "Pending", + "description": "This is a network manager connection to testNetworkManager." + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionA/providers/Microsoft.Network/networkManagerConnections?api-version=2021-02-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionPut.json new file mode 100644 index 000000000000..7725207981cd --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionPut.json @@ -0,0 +1,61 @@ +{ + "title": "Create/Update Subscription Azure Virtual Network Manager Connection", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA", + "networkManagerConnectionName": "TestNMConnection", + "parameters": { + "properties": { + "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager" + } + } + }, + "responses": { + "200": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "id": "/subscriptions/subscriptionA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", + "type": "Microsoft.Network/networkManagerConnections", + "name": "TestNMConnection", + "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": { + "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", + "connectionState": "Pending", + "description": "This is a network manager connection to testNetworkManager." + } + } + }, + "201": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "id": "/subscriptions/subscriptionA/providers/Microsoft.Network/networkManagerConnections/TestNMConnection", + "type": "Microsoft.Network/networkManagerConnections", + "name": "TestMConnection", + "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": { + "networkManagerId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager", + "connectionState": "Pending", + "description": "This is a network manager connection to testNetworkManager." + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.json new file mode 100644 index 000000000000..abf16f7f8acd --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.json @@ -0,0 +1,14 @@ +{ + "title": "Get Azure Virtual Network Manager Connectivity Configuration", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestConnectivityConfig" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationGet.json new file mode 100644 index 000000000000..470d527fbc64 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationGet.json @@ -0,0 +1,48 @@ +{ + "title": "Get Azure Virtual Network Manager Connectivity Configuration", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestConnectivityConfig" + }, + "responses": { + "200": { + "body": { + "name": "myTestConnectivityConfig", + "id": "/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", + "type": "Microsoft.Network/networkManagers/connectivityConfigurations", + "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": "Sample Configuration", + "connectivityTopology": "HubAndSpoke", + "hubs": [ + { + "resourceId": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet", + "resourceType": "Microsoft.Network/virtualNetworks" + } + ], + "isGlobal": "True", + "deleteExistingPeering": "True", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", + "useHubGateway": "True", + "groupConnectivity": "None", + "isGlobal": "False" + } + ], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationList.json new file mode 100644 index 000000000000..d85084c14e88 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationList.json @@ -0,0 +1,52 @@ +{ + "title": "Get Azure Virtual Network Manager Connecitivity Configuration List", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "networkManagerName": "testNetworkManager" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myTestConnectivityConfig", + "id": "subscription/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", + "type": "Microsoft.Network/networkManagers/connectivityConfigurations", + "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": "Sample Configuration", + "connectivityTopology": "HubAndSpoke", + "hubs": [ + { + "resourceId": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet", + "resourceType": "Microsoft.Network/virtualNetworks" + } + ], + "deleteExistingPeering": "True", + "isGlobal": "True", + "appliesToGroups": [ + { + "networkGroupId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/netwrokGroups/group1", + "useHubGateway": "True", + "groupConnectivity": "None", + "isGlobal": "False" + } + ], + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/managedNetworks/testNetworkManager/connectivityConfigurations?api-version=2021-05-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationPut.json new file mode 100644 index 000000000000..185dceaa89eb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationPut.json @@ -0,0 +1,106 @@ +{ + "title": "Create/Update Azure Virtual Network Manager Connectivity Configuration", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestConnectivityConfig", + "connectivityConfiguration": { + "properties": { + "description": "Sample Configuration", + "connectivityTopology": "HubAndSpoke", + "hubs": [ + { + "resourceId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myTestConnectivityConfig", + "resourceType": "Microsoft.Network/virtualNetworks" + } + ], + "deleteExistingPeering": "True", + "isGlobal": "True", + "appliesToGroups": [ + { + "networkGroupId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", + "useHubGateway": "True", + "groupConnectivity": "None", + "isGlobal": "False" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "myTestConnectivityConfig", + "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", + "type": "Microsoft.Network/networkManagers/connectivityConfigurations", + "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": "Sample Connectivity Configuration", + "connectivityTopology": "HubAndSpoke", + "hubs": [ + { + "resourceId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myTestConnectivityConfig", + "resourceType": "Microsoft.Network/virtualNetworks" + } + ], + "deleteExistingPeering": "True", + "isGlobal": "True", + "appliesToGroups": [ + { + "networkGroupId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/groups/group1", + "useHubGateway": "True", + "groupConnectivity": "None", + "isGlobal": "False" + } + ], + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "myTestConnectivityConfig", + "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", + "type": "Microsoft.Network/networkManagers/connectivityConfigurations", + "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": "Sample Configuration", + "connectivityTopology": "HubAndSpoke", + "hubs": [ + { + "resourceId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myTestConnectivityConfig", + "resourceType": "Microsoft.Network/virtualNetworks" + } + ], + "deleteExistingPeering": "True", + "isGlobal": "True", + "appliesToGroups": [ + { + "networkGroupId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", + "useHubGateway": "True", + "groupConnectivity": "None", + "isGlobal": "False" + } + ], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json new file mode 100644 index 000000000000..3f5de8bfe4cf --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleDefaultAdminRule" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/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" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRulePut.json new file mode 100644 index 000000000000..c768d2588cc6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRulePut.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleDefaultAdminRule", + "adminRule": { + "kind": "Default", + "properties": { + "flag": "AllowVnetInbound" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/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": "ServiceTag", + "addressPrefix": "Internet" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "access": "Deny", + "priority": 1, + "direction": "Inbound", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/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": "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/2022-04-01-preview/examples/NetworkManagerDefaultUserRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRuleGet.json new file mode 100644 index 000000000000..3281369e2d40 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRuleGet.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "ruleCollectionName": "testRuleCollection", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "ruleName": "SampleDefaultUserRule" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleDefaultUserRule", + "type": "Microsoft.Network/networkManagers/SecurityUserConfigurations/ruleCollections/rules", + "name": "SampleDefaultUserRule", + "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": "Sample Default User Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "direction": "Inbound", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRulePut.json new file mode 100644 index 000000000000..c2f0699a1a98 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRulePut.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleDefaultUserRule", + "userRule": { + "kind": "Default", + "properties": { + "flag": "AllowVnetInbound" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityUserConfigurations/Policy1/ruleCollections/testRuleCollection/rules/SampleUserRule", + "type": "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules", + "name": "SampleDefaultUserRule", + "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": "Sample Default User Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "direction": "Inbound", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleDefaultUserRule", + "type": "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules", + "name": "SampleDefaultUserRule", + "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": "Sample User Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "direction": "Inbound", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDelete.json new file mode 100644 index 000000000000..9aad20386817 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDelete.json @@ -0,0 +1,13 @@ +{ + "title": "Delete Azure Virtual Network Manager", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDeploymentStatusList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDeploymentStatusList.json new file mode 100644 index 000000000000..da74941a538d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDeploymentStatusList.json @@ -0,0 +1,51 @@ +{ + "title": "Post Azure Virtual Network Manager Deployment Status", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "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/2022-04-01-preview/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json new file mode 100644 index 000000000000..892178eecfd8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json @@ -0,0 +1,55 @@ +{ + "title": "List Azure Virtual Network Manager Effective Configuration", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "virtualNetworkName": "testVirtualNetwork", + "parameters": { + "skipToken": "FakeSkipTokenCode" + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", + "properties": { + "description": "Sample Configuration", + "connectivityTopology": "HubAndSpoke", + "hubs": [ + { + "resourceId": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet", + "resourceType": "Microsoft.Network/virtualNetworks" + } + ], + "isGlobal": "True", + "deleteExistingPeering": "True", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/groups/group1", + "useHubGateway": "True", + "groupConnectivity": "None", + "isGlobal": "False" + } + ], + "provisioningState": "Succeeded" + }, + "configurationGroups": [ + { + "id": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", + "properties": { + "description": "A group for all test Virtual Networks", + "memberType": "Microsoft.Network/virtualNetworks", + "provisioningState": "Succeeded" + } + } + ] + } + ], + "skipToken": "FakeSkipTokenCode" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveSecurityAdminRulesList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveSecurityAdminRulesList.json new file mode 100644 index 000000000000..d74b6e9877c4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveSecurityAdminRulesList.json @@ -0,0 +1,69 @@ +{ + "title": "List Azure Virtual Network Manager Effective Configuration", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "virtualNetworkName": "testVirtualNetwork", + "parameters": { + "skipToken": "FakeSkipTokenCode" + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule", + "configurationDescription": "SampleDescription", + "ruleCollectionDescription": "SampleRuleCollectionDescription", + "ruleCollectionAppliesToGroups": [ + { + "networkGroupId": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1" + } + ], + "kind": "Default", + "properties": { + "description": "Sample Admin Rule", + "flag": "AllowVnetInbound", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "direction": "Inbound", + "access": "Deny", + "priority": 1, + "provisioningState": "Succeeded" + }, + "ruleGroups": [ + { + "id": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", + "properties": { + "description": "A group for all test Virtual Networks", + "memberType": "VirtualNetwork", + "provisioningState": "Succeeded" + } + } + ] + } + ], + "skipToken": "FakeSkipTokenCode" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksList.json new file mode 100644 index 000000000000..6b825edf94e0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksList.json @@ -0,0 +1,27 @@ +{ + "title": "List Effective Virtual Networks List By Network Groups", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "networkGroupName": "TestNetworkGroup", + "parameters": { + "skipToken": "FakeSkipTokenCode" + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionC/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/testNetworkManager", + "location": "useast2", + "membershipType": "Static" + } + ], + "skipToken": "NextFakeSkipTokenCode" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json new file mode 100644 index 000000000000..4f880e1b889d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json @@ -0,0 +1,27 @@ +{ + "title": "List Effective Virtual Networks List By Network Groups", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "parameters": { + "conditionalMembers": "location='useast2'", + "skipToken": "FakeSkipTokenCode" + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionC/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/testNetworkManager", + "location": "useast2", + "membershipType": "Static" + } + ], + "skipToken": "NextFakeSkipTokenCode" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGet.json new file mode 100644 index 000000000000..37d902659928 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGet.json @@ -0,0 +1,39 @@ +{ + "title": "Get Azure Virtual Network Manager", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager" + }, + "responses": { + "200": { + "body": { + "name": "testNetworkManager", + "id": "/subscriptions/subscriptionC/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" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupDelete.json new file mode 100644 index 000000000000..4d5f7538c0d0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupDelete.json @@ -0,0 +1,14 @@ +{ + "title": "Delete Azure Virtual Network Manager Group", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "networkGroupName": "testNetworkGroup" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupGet.json new file mode 100644 index 000000000000..273852a42f07 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupGet.json @@ -0,0 +1,32 @@ +{ + "title": "Get Azure Virtual Network Manager Network Group", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "networkGroupName": "testNetworkGroup" + }, + "responses": { + "200": { + "body": { + "name": "testNetworkGroup", + "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup", + "type": "Microsoft.Network/networkManagers/networkGroups", + "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 group", + "memberType": "VirtualNetwork", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupList.json new file mode 100644 index 000000000000..c16b969837a6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupList.json @@ -0,0 +1,36 @@ +{ + "title": "List Azure Virtual Network Manager Network Groups", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testNetworkGroup", + "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup", + "type": "Microsoft.Network/networkManagers/networkGroups", + "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 group", + "memberType": "VirtualNetwork", + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups?api-version=2021-02-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupPut.json new file mode 100644 index 000000000000..953f874a14a1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupPut.json @@ -0,0 +1,64 @@ +{ + "title": "Create/Update Azure Virtual Network Manager Network Group", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "networkGroupName": "testNetworkGroup", + "parameters": { + "properties": { + "description": "A sample group", + "memberType": "VirtualNetwork" + } + } + }, + "responses": { + "200": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "name": "testNetworkGroup", + "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup", + "type": "Microsoft.Network/networkManagers/networkGroups", + "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 group", + "memberType": "VirtualNetwork", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "name": "testNetworkGroup", + "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup", + "type": "Microsoft.Network/networkManagers/networkGroups", + "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 group", + "memberType": "VirtualNetwork", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerList.json new file mode 100644 index 000000000000..962b98d00656 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerList.json @@ -0,0 +1,44 @@ +{ + "title": "List Azure Virtual Network Manager", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testNetworkManager", + "id": "/subscriptions/subscriptionC/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" + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers?api-version=2021-05-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerListAll.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerListAll.json new file mode 100644 index 000000000000..1fa10d54003f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerListAll.json @@ -0,0 +1,43 @@ +{ + "title": "List Azure Virtual Network Manager in Subscription", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testNetworkManager", + "id": "/subscriptions/subscriptionC/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" + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionC/providers/Microsoft.Network/networkManagers?api-version=2021-05-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPatch.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPatch.json new file mode 100644 index 000000000000..fad6360279e8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPatch.json @@ -0,0 +1,51 @@ +{ + "title": "Patch Managed Network Tags", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "testNetworkManager", + "id": "/subscriptions/subscriptionC/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" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPut.json new file mode 100644 index 000000000000..bb4cacd2bd35 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPut.json @@ -0,0 +1,89 @@ +{ + "title": "Create/Update Azure Virtual Network Manager", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "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/subscriptionC/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" + } + } + }, + "201": { + "body": { + "name": "TestNetworkManager", + "id": "/subscriptions/subscriptionC/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" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionDelete.json new file mode 100644 index 000000000000..e3944c04d54b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionDelete.json @@ -0,0 +1,14 @@ +{ + "title": "Delete Azure Virtual Network Manager Scope Connection", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "scopeConnectionName": "TestScopeConnection" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionGet.json new file mode 100644 index 000000000000..5deccb37f3c0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionGet.json @@ -0,0 +1,36 @@ +{ + "title": "Get Azure Virtual Network Manager Scope Connection", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "scopeConnectionName": "TestScopeConnection" + }, + "responses": { + "200": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/scopeConnections/TestScopeConnection", + "type": "Microsoft.Network/networkManagers/scopeConnections", + "name": "TestScopeConnection", + "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": { + "tenantId": "6babcaad-604b-40ac-a9d7-9fd97c0b779f", + "connectionState": "Pending", + "resourceId": "subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b", + "description": "This is a scope connection to a cross tenant subscription." + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionList.json new file mode 100644 index 000000000000..651bc733a49e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionList.json @@ -0,0 +1,40 @@ +{ + "title": "List Azure Virtual Network Manager Scope Connection", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager" + }, + "responses": { + "200": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/scopeConnections/TestScopeConnection", + "type": "Microsoft.Network/networkManagers/scopeConnections", + "name": "TestScopeConnection", + "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": { + "tenantId": "6babcaad-604b-40ac-a9d7-9fd97c0b779f", + "connectionState": "Pending", + "resourceId": "subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b", + "description": "This is a scope connection to a cross tenant subscription." + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/scopeConnections?api-version=2021-02-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionPut.json new file mode 100644 index 000000000000..84e50ab821a4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionPut.json @@ -0,0 +1,66 @@ +{ + "title": "Create/Update Azure Virtual Network Manager Scope Connection", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "scopeConnectionName": "TestScopeConnection", + "parameters": { + "properties": { + "tenantId": "6babcaad-604b-40ac-a9d7-9fd97c0b779f", + "resourceId": "subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b", + "description": "This is a scope connection to a cross tenant subscription." + } + } + }, + "responses": { + "200": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/scopeConnections/TestScopeConnection", + "type": "Microsoft.Network/networkManagers/scopeConnections", + "name": "TestScopeConnection", + "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": { + "tenantId": "6babcaad-604b-40ac-a9d7-9fd97c0b779f", + "connectionState": "Pending", + "resourceId": "subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b", + "description": "This is a scope connection to a cross tenant subscription." + } + } + }, + "201": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/scopeConnections/TestScopeConnection", + "type": "Microsoft.Network/networkManagers/scopeConnections", + "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": { + "tenantId": "6babcaad-604b-40ac-a9d7-9fd97c0b779f", + "connectionState": "Pending", + "resourceId": "subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b", + "description": "This is a scope connection to a cross tenant subscription." + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json new file mode 100644 index 000000000000..a447bb0a0ffd --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json new file mode 100644 index 000000000000..ff637f6ab7f9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/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", + "applyOnNetworkIntentPolicyBasedServices": [ + "None" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json new file mode 100644 index 000000000000..80ae908b28fc --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subId/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", + "applyOnNetworkIntentPolicyBasedServices": [ + "None" + ] + } + } + ], + "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations?api-version=2021-05-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json new file mode 100644 index 000000000000..9bd60f1e30aa --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "securityAdminConfiguration": { + "properties": { + "description": "A sample policy", + "applyOnNetworkIntentPolicyBasedServices": [ + "None" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/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", + "applyOnNetworkIntentPolicyBasedServices": [ + "None" + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subId/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", + "applyOnNetworkIntentPolicyBasedServices": [ + "None" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationDelete.json new file mode 100644 index 000000000000..a447bb0a0ffd --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationGet.json new file mode 100644 index 000000000000..b7e1c4e7df1e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig", + "name": "myTestSecurityConfig", + "type": "Microsoft.Network/networkManagers/securityUserConfigurations", + "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", + "deleteExistingNSGs": "True" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationList.json new file mode 100644 index 000000000000..aa34c2b27165 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig", + "name": "myTestSecurityConfig", + "type": "Microsoft.Network/networkManagers/securityUserConfigurations", + "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", + "deleteExistingNSGs": "True" + } + } + ], + "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations?api-version=2021-05-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationPut.json new file mode 100644 index 000000000000..ba14f16990f3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationPut.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "securityUserConfiguration": { + "properties": { + "description": "A sample policy", + "deleteExistingNSGs": "True" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityConfigurations/myTestSecurityConfig", + "name": "myTestSecurityConfig", + "type": "Microsoft.Network/networkManagers/securityConfigurations", + "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", + "deleteExistingNSGs": "True" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityConfigurations/myTestSecurityConfig", + "name": "myTestSecurityConfig", + "type": "Microsoft.Network/networkManagers/securityConfigurations", + "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", + "deleteExistingNSGs": "True" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberDelete.json new file mode 100644 index 000000000000..45113a3165bb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberDelete.json @@ -0,0 +1,15 @@ +{ + "title": "Delete Azure Virtual Network Manager Static Member", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "networkGroupName": "testNetworkGroup", + "staticMemberName": "testStaticMember" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberGet.json new file mode 100644 index 000000000000..2e89c9388ed3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberGet.json @@ -0,0 +1,31 @@ +{ + "title": "Get Azure Virtual Network Manager Static Member", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "networkGroupName": "testNetworkGroup", + "staticMemberName": "testStaticMember" + }, + "responses": { + "200": { + "body": { + "name": "testStaticMember", + "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup/staticMembers/testStaticMember", + "type": "Microsoft.Network/networkManagers/networkGroups/staticMembers", + "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": { + "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberList.json new file mode 100644 index 000000000000..249261b040ac --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberList.json @@ -0,0 +1,35 @@ +{ + "title": "List Azure Virtual Network Manager Static Members", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "networkGroupName": "testNetworkGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testStaticMember", + "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup/staticMembers/testStaticMember", + "type": "Microsoft.Network/networkManagers/networkGroups/staticMembers", + "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": { + "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1" + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup/staticMembers?api-version=2021-02-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberPut.json new file mode 100644 index 000000000000..8c91ace949a0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberPut.json @@ -0,0 +1,60 @@ +{ + "title": "Create/Update Azure Virtual Network Manager Static Member", + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "networkGroupName": "testNetworkGroup", + "staticMemberName": "testStaticMember", + "parameters": { + "properties": { + "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1" + } + } + }, + "responses": { + "200": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "name": "testStaticMember", + "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup/staticMembers/testStaticMember", + "type": "Microsoft.Network/networkManagers/networkGroups/staticMembers", + "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": { + "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1" + } + } + }, + "201": { + "headers": { + "ETag": "be3cfaa2-3d02-4624-92d7-a26766306c8b" + }, + "body": { + "name": "testStaticMember", + "id": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup/staticMembers/testStaticMember", + "type": "Microsoft.Network/networkManagers/networkGroups/staticMembers", + "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": { + "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionDelete.json new file mode 100644 index 000000000000..e6650a61bc0e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionGet.json new file mode 100644 index 000000000000..3eb55c2ceb5a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionGet.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", + "name": "testRuleCollection", + "type": "Microsoft.Network/networkManagers/securityUserConfigurations/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", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionList.json new file mode 100644 index 000000000000..98c1739afb99 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", + "name": "testRuleCollection", + "type": "Microsoft.Network/networkManagers/securityUserConfigurations/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", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + ], + "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections?api-version=2021-05-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionPut.json new file mode 100644 index 000000000000..0b4ae8589fd3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionPut.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "userRuleCollection": { + "properties": { + "description": "A sample policy", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", + "name": "myTestSecurityConfig", + "type": "Microsoft.Network/networkManagers/securityUserConfigurations/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", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityUserConfigurations/myTestSecurityConfig", + "name": "myTestSecurityConfig", + "type": "Microsoft.Network/networkManagers/securityUserConfigurations/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", + "appliesToGroups": [ + { + "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleDelete.json new file mode 100644 index 000000000000..de3d5eb04f80 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleUserRule" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleGet.json new file mode 100644 index 000000000000..29a4bff89627 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleGet.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "ruleCollectionName": "testRuleCollection", + "configurationName": "myTestSecurityConfig", + "networkManagerName": "testNetworkManager", + "ruleName": "SampleUserRule" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleUserRule", + "type": "Microsoft.Network/networkManagers/SecurityUserConfigurations/ruleCollections/rules", + "name": "SampleUserRule", + "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": "Sample User Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "direction": "Inbound", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleList.json new file mode 100644 index 000000000000..2cbdfb51d255 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleList.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "ruleCollectionName": "testRuleCollection", + "configurationName": "myTestSecurityConfig" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkmanagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleUserRule", + "type": "Microsoft.Network/networkManagers/securityConfigurations/ruleCollections/rules", + "name": "SampleUserRule", + "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": "Sample User Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "direction": "Inbound", + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules?api-version=2021-02-01-preview&$skipToken=10" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRulePut.json new file mode 100644 index 000000000000..c32cd3ac064e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRulePut.json @@ -0,0 +1,119 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleUserRule", + "userRule": { + "kind": "Custom", + "properties": { + "description": "Sample User Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "direction": "Inbound" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityUserConfigurations/Policy1/ruleCollections/testRuleCollection/rules/SampleUserRule", + "type": "Microsoft.Network/networkManagers/SecurityUserConfigurations/ruleCollections/rules", + "name": "SampleUserRule", + "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": "Sample User Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "direction": "Inbound", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleUserRule", + "type": "Microsoft.Network/networkManagers/SecurityUserConfigurations/ruleCollections/rules", + "name": "SampleUserRule", + "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": "Sample User Rule", + "protocol": "Tcp", + "sources": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "destinations": [ + { + "addressPrefixType": "IPPrefix", + "addressPrefix": "*" + } + ], + "sourcePortRanges": [ + "0-65535" + ], + "destinationPortRanges": [ + "22" + ], + "direction": "Inbound", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/network.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/network.json new file mode 100644 index 000000000000..6ca0a415fa6b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/network.json @@ -0,0 +1,439 @@ +{ + "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": "2022-02-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." + }, + "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." + }, + "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 + }, + "ProxyResource": { + "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/2022-04-01-preview/networkManager.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json new file mode 100644 index 000000000000..978132383402 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json @@ -0,0 +1,779 @@ +{ + "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": "2022-02-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." + }, + "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-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": { + "202": { + "description": "Accepted and the operation will complete asynchronously", + "schema": { + "$ref": "#/definitions/NetworkManagerCommit" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "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" + } + ], + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listEffectiveVirtualNetworks": { + "post": { + "tags": [ + "NetworkManagers" + ], + "operationId": "EffectiveVirtualNetworks_ListByNetworkManager", + "description": "List effective virtual networks in a network manager.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ListTopParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EffectiveVirtualNetworksParameter" + }, + "description": "Effective Virtual Networks Parameter." + } + ], + "responses": { + "200": { + "description": "OK - Returns a list of effective virtual networks.", + "schema": { + "$ref": "./networkManagerGroup.json#/definitions/EffectiveVirtualNetworksListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Effective Virtual Networks By Network Manager": { + "$ref": "./examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.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 scope assignment 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" + ], + "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", + "SecurityUser", + "Connectivity" + ], + "x-ms-enum": { + "name": "ConfigurationType", + "modelAsString": true + }, + "description": "Configuration Deployment Type." + }, + "EffectiveVirtualNetworksParameter": { + "type": "object", + "properties": { + "conditionalMembers": { + "type": "string", + "description": "Conditional Members." + }, + "skipToken": { + "description": "Continuation token for pagination, capturing the next page size and offset, as well as the context of the query.", + "type": "string" + } + }, + "description": "Effective Virtual Networks Parameter." + } + }, + "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", + "description": "The name of the network manager.", + "x-ms-parameter-location": "method" + }, + "ListTopParameter": { + "name": "$top", + "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", + "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/2022-04-01-preview/networkManagerActiveConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerActiveConfiguration.json new file mode 100644 index 000000000000..ca8d6dfbc2ba --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerActiveConfiguration.json @@ -0,0 +1,490 @@ +{ + "swagger": "2.0", + "info": { + "title": "NetworkManagerActiveConfiguration", + "description": "The Microsoft Azure Network Manager Active Configuration API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to list all active configuration by network manager.", + "version": "2022-02-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}/listActiveConnectivityConfigurations": { + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + } + ], + "post": { + "tags": [ + "NetworkManagerActiveConnectivityConfigurations" + ], + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActiveConfigurationParameter" + }, + "description": "Active Configuration Parameter." + } + ], + "operationId": "ListActiveConnectivityConfigurations", + "description": "Lists active connectivity configurations in a network manager.", + "responses": { + "200": { + "description": "Post successful. The operation returns the specified Managed Network active connectivity configuration resource.", + "schema": { + "$ref": "#/definitions/ActiveConnectivityConfigurationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Active Connectivity Configurations": { + "$ref": "./examples/NetworkManagerActiveConnectivityConfigurationsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveSecurityAdminRules": { + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + } + ], + "post": { + "tags": [ + "NetworkManagerActiveConfigurations" + ], + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActiveConfigurationParameter" + }, + "description": "Active Configuration Parameter." + } + ], + "operationId": "ListActiveSecurityAdminRules", + "description": "Lists active security admin rules in a network manager.", + "responses": { + "200": { + "description": "Post successful. The operation returns the specified Managed Network active security admin rules resource.", + "schema": { + "$ref": "#/definitions/ActiveSecurityAdminRulesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Active Security Admin Rules": { + "$ref": "./examples/NetworkManagerActiveSecurityAdminRulesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveSecurityUserRules": { + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + } + ], + "post": { + "tags": [ + "NetworkManagerActiveSecurityUserRules" + ], + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActiveConfigurationParameter" + }, + "description": "Active Configuration Parameter." + } + ], + "operationId": "ListActiveSecurityUserRules", + "description": "Lists Active Security User Rules in a network manager.", + "responses": { + "200": { + "description": "Post successful. The operation returns the specified Managed Network active security user rules resource.", + "schema": { + "$ref": "#/definitions/ActiveSecurityUserRulesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Active Security User Rules": { + "$ref": "./examples/NetworkManagerActiveSecurityUserRulesList.json" + } + } + } + } + }, + "definitions": { + "ActiveConfigurationParameter": { + "type": "object", + "properties": { + "regions": { + "type": "array", + "items": { + "type": "string", + "description": "region Name." + }, + "description": "List of regions." + }, + "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": "Effective Virtual Networks Parameter." + }, + "ActiveConnectivityConfiguration": { + "type": "object", + "properties": { + "commitTime": { + "type": "string", + "description": "Deployment time string.", + "format": "date-time" + }, + "region": { + "type": "string", + "description": "Deployment region." + } + }, + "allOf": [ + { + "$ref": "./networkManagerEffectiveConfiguration.json#/definitions/EffectiveConnectivityConfiguration" + } + ], + "description": "Active connectivity configuration." + }, + "ActiveConnectivityConfigurationsListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ActiveConnectivityConfiguration" + }, + "description": "Gets a page of active connectivity configurations." + }, + "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": "Result of the request to list active connectivity configurations. It contains a list of active connectivity configurations and a skiptoken to get the next set of results." + }, + "ActiveSecurityAdminRulesListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ActiveBaseSecurityAdminRule" + }, + "description": "Gets a page of active security admin rules." + }, + "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": "Result of the request to list active security admin rules. It contains a list of active security admin rules and a skiptoken to get the next set of results." + }, + "ActiveSecurityUserRulesListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ActiveBaseSecurityUserRule" + }, + "description": "Gets a page of active security user rules." + }, + "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": "Result of the request to list active security user rules. It contains a list of active security user rules and a skiptoken to get the next set of results." + }, + "ActiveBaseSecurityAdminRule": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + }, + "commitTime": { + "type": "string", + "description": "Deployment time string.", + "format": "date-time" + }, + "region": { + "type": "string", + "description": "Deployment region." + }, + "configurationDescription": { + "type": "string", + "description": "A description of the security admin configuration." + }, + "ruleCollectionDescription": { + "type": "string", + "description": "A description of the rule collection." + }, + "ruleCollectionAppliesToGroups": { + "type": "array", + "x-ms-identifiers": [], + "items": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/NetworkManagerSecurityGroupItem" + }, + "description": "Groups for rule collection" + }, + "ruleGroups": { + "type": "array", + "items": { + "$ref": "./networkManagerEffectiveConfiguration.json#/definitions/ConfigurationGroup" + }, + "description": "Effective configuration groups." + }, + "kind": { + "type": "string", + "description": "Whether the rule is custom or default.", + "enum": [ + "Custom", + "Default" + ], + "x-ms-enum": { + "name": "EffectiveAdminRuleKind", + "modelAsString": true + } + } + }, + "required": [ + "kind" + ], + "discriminator": "kind", + "description": "Network base admin rule." + }, + "ActiveSecurityAdminRule": { + "type": "object", + "properties": { + "properties": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/AdminPropertiesFormat", + "x-ms-client-flatten": true, + "description": "Indicates the properties of the security admin rule" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ActiveBaseSecurityAdminRule" + } + ], + "description": "Network admin rule.", + "x-ms-discriminator-value": "Custom" + }, + "ActiveDefaultSecurityAdminRule": { + "type": "object", + "properties": { + "properties": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/DefaultAdminPropertiesFormat", + "x-ms-client-flatten": true, + "description": "Indicates the properties of the default security admin rule" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ActiveBaseSecurityAdminRule" + } + ], + "description": "Network default admin rule.", + "x-ms-discriminator-value": "Default" + }, + "ActiveBaseSecurityUserRule": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + }, + "commitTime": { + "type": "string", + "description": "Deployment time string.", + "format": "date-time" + }, + "region": { + "type": "string", + "description": "Deployment region." + }, + "configurationDescription": { + "type": "string", + "description": "A description of the security user configuration." + }, + "ruleCollectionDescription": { + "type": "string", + "description": "A description of the rule collection." + }, + "ruleCollectionAppliesToGroups": { + "type": "array", + "x-ms-identifiers": [], + "items": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/NetworkManagerSecurityGroupItem" + }, + "description": "Groups for rule collection" + }, + "ruleGroups": { + "type": "array", + "items": { + "$ref": "./networkManagerEffectiveConfiguration.json#/definitions/ConfigurationGroup" + }, + "description": "Effective configuration groups." + }, + "kind": { + "type": "string", + "description": "Whether the rule is custom or default.", + "enum": [ + "Custom", + "Default" + ], + "x-ms-enum": { + "name": "EffectiveUserRuleKind", + "modelAsString": true + } + } + }, + "required": [ + "kind" + ], + "discriminator": "kind", + "description": "Network base rule." + }, + "ActiveSecurityUserRule": { + "type": "object", + "properties": { + "properties": { + "$ref": "./networkManagerSecurityUserConfiguration.json#/definitions/UserRulePropertiesFormat", + "x-ms-client-flatten": true, + "description": "Indicates the properties of the security user rule" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ActiveBaseSecurityUserRule" + } + ], + "description": "Network security user rule.", + "x-ms-discriminator-value": "Custom" + }, + "ActiveDefaultSecurityUserRule": { + "type": "object", + "properties": { + "properties": { + "$ref": "./networkManagerSecurityUserConfiguration.json#/definitions/DefaultUserRulePropertiesFormat", + "x-ms-client-flatten": true, + "description": "Indicates the properties of the security default user rule" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ActiveBaseSecurityUserRule" + } + ], + "description": "Network security default user rule.", + "x-ms-discriminator-value": "Default" + } + }, + "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", + "description": "The name of the network manager.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnection.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnection.json new file mode 100644 index 000000000000..c37975b0b491 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnection.json @@ -0,0 +1,426 @@ +{ + "swagger": "2.0", + "info": { + "title": "ScopeConnections", + "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": "2022-02-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}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/NetworkManagerConnectionNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "put": { + "tags": [ + "NetworkManagerConnections" + ], + "operationId": "SubscriptionNetworkManagerConnections_CreateOrUpdate", + "description": "Create a connection from this subscription to a cross tenant network manager.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkManagerConnection" + }, + "description": "Network manager connection to be created/updated." + } + ], + "responses": { + "200": { + "description": "Updated - Returns information about the connection.", + "schema": { + "$ref": "#/definitions/NetworkManagerConnection" + } + }, + "201": { + "description": "Created - Returns information about the connection.", + "schema": { + "$ref": "#/definitions/NetworkManagerConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create or Update Subscription Network Manager Connection": { + "$ref": "./examples/NetworkManagerConnectionSubscriptionPut.json" + } + } + }, + "get": { + "tags": [ + "NetworkManagerConnections" + ], + "operationId": "SubscriptionNetworkManagerConnections_Get", + "description": "Get a specified connection created by this subscription.", + "responses": { + "200": { + "description": "OK - Returns the connection.", + "schema": { + "$ref": "#/definitions/NetworkManagerConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Subscription Network Manager Connection": { + "$ref": "./examples/NetworkManagerConnectionSubscriptionGet.json" + } + } + }, + "delete": { + "tags": [ + "NetworkManagerConnections" + ], + "operationId": "SubscriptionNetworkManagerConnections_Delete", + "description": "Delete specified pending connection created by this subscription.", + "responses": { + "200": { + "description": "Delete Succeed." + }, + "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-examples": { + "Delete Subscription Network Manager Connection": { + "$ref": "./examples/NetworkManagerConnectionSubscriptionDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections": { + "get": { + "tags": [ + "NetworkManagerConnections" + ], + "operationId": "SubscriptionNetworkManagerConnections_List", + "description": "List all network manager connections created by this subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ListTopParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the network manager connection(s).", + "schema": { + "$ref": "#/definitions/NetworkManagerConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Subscription Network Manager Connection": { + "$ref": "./examples/NetworkManagerConnectionSubscriptionList.json" + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}": { + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/NetworkManagerConnectionNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "put": { + "tags": [ + "NetworkManagerConnections" + ], + "operationId": "ManagementGroupNetworkManagerConnections_CreateOrUpdate", + "description": "Create a connection to a cross tenant network manager.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkManagerConnection" + }, + "description": "Network manager connection to be created/updated." + } + ], + "responses": { + "200": { + "description": "Updated - Returns information about the connection.", + "schema": { + "$ref": "#/definitions/NetworkManagerConnection" + } + }, + "201": { + "description": "Created - Returns information about the connection.", + "schema": { + "$ref": "#/definitions/NetworkManagerConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create or Update Management Group Network Manager Connection": { + "$ref": "./examples/NetworkManagerConnectionManagementGroupPut.json" + } + } + }, + "get": { + "tags": [ + "NetworkManagerConnections" + ], + "operationId": "ManagementGroupNetworkManagerConnections_Get", + "description": "Get a specified connection created by this management group.", + "responses": { + "200": { + "description": "OK - Returns the connection.", + "schema": { + "$ref": "#/definitions/NetworkManagerConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Management Group Network Manager Connection": { + "$ref": "./examples/NetworkManagerConnectionManagementGroupGet.json" + } + } + }, + "delete": { + "tags": [ + "NetworkManagerConnections" + ], + "operationId": "ManagementGroupNetworkManagerConnections_Delete", + "description": "Delete specified pending connection created by this management group.", + "responses": { + "200": { + "description": "Delete Succeed." + }, + "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-examples": { + "Delete Management Group Network Manager Connection": { + "$ref": "./examples/NetworkManagerConnectionManagementGroupDelete.json" + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections": { + "get": { + "tags": [ + "NetworkManagerConnections" + ], + "operationId": "ManagementGroupNetworkManagerConnections_List", + "description": "List all network manager connections created by this management group.", + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ListTopParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the network manager connection(s).", + "schema": { + "$ref": "#/definitions/NetworkManagerConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Management Group Network Manager Connection": { + "$ref": "./examples/NetworkManagerConnectionManagementGroupList.json" + } + } + } + } + }, + "definitions": { + "NetworkManagerConnection": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkManagerConnectionProperties", + "description": "The scope connection 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/ProxyResource" + } + ], + "description": "The Network Manager Connection resource" + }, + "NetworkManagerConnectionProperties": { + "type": "object", + "properties": { + "networkManagerId": { + "type": "string", + "description": "Network Manager Id." + }, + "connectionState": { + "x-ms-client-flatten": true, + "$ref": "./networkManagerScopeConnection.json#/definitions/ConnectionState", + "description": "Connection state." + }, + "description": { + "type": "string", + "description": "A description of the scope connection." + } + }, + "description": "Information about the network manager connection." + }, + "NetworkManagerConnectionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkManagerConnection" + }, + "description": "List of network manager connections." + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next page of results." + } + }, + "description": "List of network manager connections." + } + }, + "parameters": { + "ManagementGroupIdParameter": { + "name": "managementGroupId", + "in": "path", + "required": true, + "type": "string", + "description": "The management group Id which uniquely identify the Microsoft Azure management group.", + "x-ms-parameter-location": "method" + }, + "NetworkManagerConnectionNameParameter": { + "name": "networkManagerConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "Name for the network manager connection.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json new file mode 100644 index 000000000000..02dc82456600 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json @@ -0,0 +1,440 @@ +{ + "swagger": "2.0", + "info": { + "title": "ConnectivityConfiguration", + "description": "The Microsoft Azure Virtual Network Manager Connectivity Configuration API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to manage your network resources.", + "version": "2022-02-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}/connectivityConfigurations/{configurationName}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/ConnectivityConfigurationNameParameter" + } + ], + "get": { + "tags": [ + "ConnectivityConfigurations" + ], + "operationId": "ConnectivityConfigurations_Get", + "description": "Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and connectivity Configuration name", + "responses": { + "200": { + "description": "Get successful. The operation returns the specified Managed Network Connectivity Configuration resource.", + "schema": { + "$ref": "#/definitions/ConnectivityConfiguration" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ConnectivityConfigurationsGet": { + "$ref": "./examples/NetworkManagerConnectivityConfigurationGet.json" + } + } + }, + "put": { + "tags": [ + "ConnectivityConfigurations" + ], + "operationId": "ConnectivityConfigurations_CreateOrUpdate", + "description": "Creates/Updates a new network manager connectivity configuration", + "parameters": [ + { + "name": "connectivityConfiguration", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConnectivityConfiguration" + }, + "description": "Parameters supplied to create/update a network manager connectivity configuration" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting network manager connectivity configuration.", + "schema": { + "$ref": "#/definitions/ConnectivityConfiguration" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting network manager connectivity configuration.", + "schema": { + "$ref": "#/definitions/ConnectivityConfiguration" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ConnectivityConfigurationsPut": { + "$ref": "./examples/NetworkManagerConnectivityConfigurationPut.json" + } + } + }, + "delete": { + "tags": [ + "ConnectivityConfigurations" + ], + "operationId": "ConnectivityConfigurations_Delete", + "description": "Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and connectivity configuration name", + "parameters": [ + { + "$ref": "#/parameters/ForceDeleteParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "204": { + "description": "Request successful. The resource does not exist." + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "ConnectivityConfigurationsDelete": { + "$ref": "./examples/NetworkManagerConnectivityConfigurationDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations": { + "get": { + "tags": [ + "ConnectivityConfigurations" + ], + "operationId": "ConnectivityConfigurations_List", + "description": "Lists all the network manager connectivity configuration in a specified network manager.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/ListTopParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "Get successful. The operation returns all network manager connectivity configuration resources in the specified network manager, in a paginated format", + "schema": { + "$ref": "#/definitions/ConnectivityConfigurationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ConnectivityConfigurationsList": { + "$ref": "./examples/NetworkManagerConnectivityConfigurationList.json" + } + } + } + } + }, + "definitions": { + "ConnectivityConfigurationListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectivityConfiguration" + }, + "description": "Gets a page of Connectivity Configurations" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next page of results." + } + }, + "description": "Result of the request to list network manager connectivity configurations. It contains a list of configurations and a link to get the next set of results." + }, + "ConnectivityConfiguration": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ConnectivityConfigurationProperties", + "description": "Properties of a network manager connectivity configuration" + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/ProxyResource" + } + ], + "description": "The network manager connectivity configuration resource" + }, + "ConnectivityConfigurationProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description of the connectivity configuration." + }, + "connectivityTopology": { + "type": "string", + "enum": [ + "HubAndSpoke", + "Mesh" + ], + "x-ms-enum": { + "name": "ConnectivityTopology", + "modelAsString": true + }, + "description": "Connectivity topology type." + }, + "hubs": { + "type": "array", + "x-ms-identifiers": [ + "resourceId" + ], + "items": { + "$ref": "#/definitions/Hub" + }, + "description": "List of hubItems" + }, + "isGlobal": { + "type": "string", + "enum": [ + "False", + "True" + ], + "x-ms-enum": { + "name": "IsGlobal", + "modelAsString": true + }, + "description": "Flag if global mesh is supported." + }, + "appliesToGroups": { + "type": "array", + "x-ms-identifiers": [ + "networkGroupId" + ], + "items": { + "$ref": "#/definitions/connectivityGroupItem" + }, + "description": "Groups for configuration" + }, + "provisioningState": { + "readOnly": true, + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the connectivity configuration resource." + }, + "deleteExistingPeering": { + "type": "string", + "enum": [ + "False", + "True" + ], + "x-ms-enum": { + "name": "DeleteExistingPeering", + "modelAsString": true + }, + "description": "Flag if need to remove current existing peerings." + } + }, + "required": [ + "connectivityTopology", + "appliesToGroups" + ], + "description": "Properties of network manager connectivity configuration" + }, + "Hub": { + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "description": "Resource Id." + }, + "resourceType": { + "type": "string", + "description": "Resource Type." + } + }, + "description": "Hub Item." + }, + "connectivityGroupItem": { + "type": "object", + "properties": { + "networkGroupId": { + "type": "string", + "description": "Network group Id." + }, + "useHubGateway": { + "type": "string", + "enum": [ + "False", + "True" + ], + "x-ms-enum": { + "name": "UseHubGateway", + "modelAsString": true + }, + "description": "Flag if need to use hub gateway." + }, + "isGlobal": { + "type": "string", + "enum": [ + "False", + "True" + ], + "x-ms-enum": { + "name": "IsGlobal", + "modelAsString": true + }, + "description": "Flag if global is supported." + }, + "groupConnectivity": { + "type": "string", + "enum": [ + "None", + "DirectlyConnected" + ], + "x-ms-enum": { + "name": "GroupConnectivity", + "modelAsString": true + }, + "description": "Group connectivity type." + } + }, + "description": "Connectivity group item.", + "required": [ + "networkGroupId", + "groupConnectivity" + ] + } + }, + "parameters": { + "ConnectivityConfigurationNameParameter": { + "name": "configurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network manager connectivity configuration.", + "x-ms-parameter-location": "method" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "NetworkManagerNameParameter": { + "name": "networkManagerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network manager.", + "x-ms-parameter-location": "method" + }, + "ListTopParameter": { + "name": "$top", + "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", + "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/2022-04-01-preview/networkManagerEffectiveConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerEffectiveConfiguration.json new file mode 100644 index 000000000000..16c28da51848 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerEffectiveConfiguration.json @@ -0,0 +1,320 @@ +{ + "swagger": "2.0", + "info": { + "title": "NetworkManagerEffectiveConfiguration", + "description": "The Microsoft Azure Network Manager effective configuration 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": "2022-02-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/virtualNetworks/{virtualNetworkName}/listNetworkManagerEffectiveConnectivityConfigurations": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/VirtualNetworkNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "post": { + "tags": [ + "NetworkManagerEffectiveConnectivityConfiguration" + ], + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./networkManagerGroup.json#/definitions/QueryRequestOptions" + }, + "description": "Parameters supplied to list correct page." + } + ], + "operationId": "ListNetworkManagerEffectiveConnectivityConfigurations", + "description": "List all effective connectivity configurations applied on a virtual network.", + "responses": { + "200": { + "description": "OK - Returns information about the configurations.", + "schema": { + "$ref": "#/definitions/NetworkManagerEffectiveConnectivityConfigurationListResult" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List effective connectivity configuration": { + "$ref": "./examples/NetworkManagerEffectiveConnectivityConfigurationsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listNetworkManagerEffectiveSecurityAdminRules": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/VirtualNetworkNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "post": { + "tags": [ + "NetworkManagerEffectiveSecurityAdminRules" + ], + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./networkManagerGroup.json#/definitions/QueryRequestOptions" + }, + "description": "Parameters supplied to list correct page." + } + ], + "operationId": "ListNetworkManagerEffectiveSecurityAdminRules", + "description": "List all effective security admin rules applied on a virtual network.", + "responses": { + "200": { + "description": "OK - Returns information about the configurations.", + "schema": { + "$ref": "#/definitions/NetworkManagerEffectiveSecurityAdminRulesListResult" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List effective security admin rules": { + "$ref": "./examples/NetworkManagerEffectiveSecurityAdminRulesList.json" + } + } + } + } + }, + "definitions": { + "NetworkManagerEffectiveConnectivityConfigurationListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EffectiveConnectivityConfiguration" + }, + "description": "Gets a page of NetworkManagerEffectiveConnectivityConfiguration" + }, + "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": "Result of the request to list networkManagerEffectiveConnectivityConfiguration. It contains a list of groups and a skiptoken to get the next set of results." + }, + "NetworkManagerEffectiveSecurityAdminRulesListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EffectiveBaseSecurityAdminRule" + }, + "description": "Gets a page of NetworkManagerEffectiveSecurityAdminRules" + }, + "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": "Result of the request to list networkManagerEffectiveSecurityAdminRules. It contains a list of groups and a skiptoken to get the next set of results." + }, + "EffectiveConnectivityConfiguration": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "./networkManagerConnectivityConfiguration.json#/definitions/ConnectivityConfigurationProperties", + "description": "Properties of a network manager connectivity configuration" + }, + "configurationGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/ConfigurationGroup" + }, + "description": "Effective configuration groups." + } + }, + "description": "The network manager effective connectivity configuration" + }, + "EffectiveBaseSecurityAdminRule": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + }, + "configurationDescription": { + "type": "string", + "description": "A description of the security admin configuration." + }, + "ruleCollectionDescription": { + "type": "string", + "description": "A description of the rule collection." + }, + "ruleCollectionAppliesToGroups": { + "type": "array", + "x-ms-identifiers": [ + "networkGroupId" + ], + "items": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/NetworkManagerSecurityGroupItem" + }, + "description": "Groups for rule collection" + }, + "ruleGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/ConfigurationGroup" + }, + "description": "Effective configuration groups." + }, + "kind": { + "type": "string", + "description": "Whether the rule is custom or default.", + "enum": [ + "Custom", + "Default" + ], + "x-ms-enum": { + "name": "EffectiveAdminRuleKind", + "modelAsString": true + } + } + }, + "required": [ + "kind" + ], + "discriminator": "kind", + "description": "Network base admin rule." + }, + "EffectiveSecurityAdminRule": { + "type": "object", + "properties": { + "properties": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/AdminPropertiesFormat", + "x-ms-client-flatten": true, + "description": "Indicates the properties of the security admin rule" + } + }, + "allOf": [ + { + "$ref": "#/definitions/EffectiveBaseSecurityAdminRule" + } + ], + "description": "Network admin rule.", + "x-ms-discriminator-value": "Custom" + }, + "EffectiveDefaultSecurityAdminRule": { + "type": "object", + "properties": { + "properties": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/DefaultAdminPropertiesFormat", + "x-ms-client-flatten": true, + "description": "Indicates the properties of the default security admin rule" + } + }, + "allOf": [ + { + "$ref": "#/definitions/EffectiveBaseSecurityAdminRule" + } + ], + "description": "Network default admin rule.", + "x-ms-discriminator-value": "Default" + }, + "ConfigurationGroup": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "./networkManagerGroup.json#/definitions/NetworkGroupProperties", + "description": "The network configuration group properties" + } + }, + "description": "The network configuration group resource" + } + }, + "parameters": { + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "VirtualNetworkNameParameter": { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json new file mode 100644 index 000000000000..a16349e0f5a1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json @@ -0,0 +1,677 @@ +{ + "swagger": "2.0", + "info": { + "title": "NetworkGroup", + "description": "The Microsoft Azure Network Group API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to manage your network resources.", + "version": "2022-02-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}/networkGroups/{networkGroupName}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/NetworkGroupNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "NetworkGroups" + ], + "operationId": "NetworkGroups_Get", + "description": "Gets the specified network group.", + "responses": { + "200": { + "description": "OK - Returns information about the network group.", + "schema": { + "$ref": "#/definitions/NetworkGroup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "NetworkGroupsGet": { + "$ref": "./examples/NetworkManagerGroupGet.json" + } + } + }, + "put": { + "tags": [ + "NetworkGroups" + ], + "operationId": "NetworkGroups_CreateOrUpdate", + "description": "Creates or updates a network group.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkGroup" + }, + "description": "Parameters supplied to the specify which network group need to create" + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch", + "description": "The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes." + } + ], + "responses": { + "200": { + "description": "Updated - Returns information about the network group.", + "schema": { + "$ref": "#/definitions/NetworkGroup" + }, + "headers": { + "ETag": { + "description": "The current entity tag.", + "type": "string" + } + } + }, + "201": { + "description": "Created - Returns information about the network group.", + "schema": { + "$ref": "#/definitions/NetworkGroup" + }, + "headers": { + "ETag": { + "description": "The current entity tag.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "NetworkGroupsPut": { + "$ref": "./examples/NetworkManagerGroupPut.json" + } + } + }, + "delete": { + "tags": [ + "NetworkGroups" + ], + "operationId": "NetworkGroups_Delete", + "description": "Deletes a network group.", + "parameters": [ + { + "$ref": "#/parameters/ForceDeleteParameter" + } + ], + "responses": { + "200": { + "description": "Delete Succeed." + }, + "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-examples": { + "NetworkGroupsDelete": { + "$ref": "./examples/NetworkManagerGroupDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups": { + "get": { + "tags": [ + "NetworkGroups" + ], + "operationId": "NetworkGroups_List", + "description": "Lists the specified network group.", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ListTopParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the network group.", + "schema": { + "$ref": "#/definitions/NetworkGroupListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "NetworkGroupsList": { + "$ref": "./examples/NetworkManagerGroupList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/listEffectiveVirtualNetworks": { + "post": { + "tags": [ + "NetworkGroups" + ], + "operationId": "ListEffectiveVirtualNetworks_ByNetworkGroup", + "description": "Lists all effective virtual networks by specified network group.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/NetworkGroupNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/QueryRequestOptions" + }, + "description": "Parameters supplied to list correct page." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the effective virtual networks.", + "schema": { + "$ref": "#/definitions/EffectiveVirtualNetworksListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "NetworkManagerEffectiveVirtualNetworksList": { + "$ref": "./examples/NetworkManagerEffectiveVirtualNetworksList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/NetworkGroupNameParameter" + }, + { + "$ref": "#/parameters/StaticMemberNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "StaticMembers" + ], + "operationId": "StaticMembers_Get", + "description": "Gets the specified static member.", + "responses": { + "200": { + "description": "OK - Returns information about the static member.", + "schema": { + "$ref": "#/definitions/StaticMember" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "StaticMembersGet": { + "$ref": "./examples/NetworkManagerStaticMemberGet.json" + } + } + }, + "put": { + "tags": [ + "StaticMembers" + ], + "operationId": "StaticMembers_CreateOrUpdate", + "description": "Creates or updates a static member.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/StaticMember" + }, + "description": "Parameters supplied to the specify the static member to create" + } + ], + "responses": { + "200": { + "description": "Updated - Returns information about the static member.", + "schema": { + "$ref": "#/definitions/StaticMember" + } + }, + "201": { + "description": "Created - Returns information about the static member.", + "schema": { + "$ref": "#/definitions/StaticMember" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "StaticMemberPut": { + "$ref": "./examples/NetworkManagerStaticMemberPut.json" + } + } + }, + "delete": { + "tags": [ + "StaticMembers" + ], + "operationId": "StaticMembers_Delete", + "description": "Deletes a static member.", + "responses": { + "200": { + "description": "Delete Succeed." + }, + "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-examples": { + "StaticMembersDelete": { + "$ref": "./examples/NetworkManagerStaticMemberDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers": { + "get": { + "tags": [ + "StaticMembers" + ], + "operationId": "StaticMembers_List", + "description": "Lists the specified static member.", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/NetworkGroupNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ListTopParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the static member.", + "schema": { + "$ref": "#/definitions/StaticMemberListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "StaticMembersList": { + "$ref": "./examples/NetworkManagerStaticMemberList.json" + } + } + } + } + }, + "definitions": { + "NetworkGroup": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkGroupProperties", + "description": "The Network Group properties" + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/ProxyResource" + } + ], + "description": "The network group resource" + }, + "NetworkGroupListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkGroup" + }, + "description": "Gets a page of NetworkGroup" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next set of results." + } + }, + "description": "Result of the request to list NetworkGroup. It contains a list of groups and a URL link to get the next set of results." + }, + "NetworkGroupProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description of the network group." + }, + "memberType": { + "type": "string", + "description": "Group member type." + }, + "provisioningState": { + "readOnly": true, + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the scope assignment resource." + } + }, + "required": [ + "memberType" + ], + "description": "Properties of network group" + }, + "StaticMember": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/StaticMemberProperties", + "description": "The Static Member properties" + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/ProxyResource" + } + ], + "description": "StaticMember Item." + }, + "StaticMemberListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticMember" + }, + "description": "Gets a page of StaticMember" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next set of results." + } + }, + "description": "Result of the request to list StaticMember. It contains a list of groups and a URL link to get the next set of results." + }, + "StaticMemberProperties": { + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "description": "Resource Id." + } + }, + "description": "Properties of static member." + }, + "QueryRequestOptions": { + "type": "object", + "properties": { + "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": "Query Request Options" + }, + "EffectiveVirtualNetworksListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EffectiveVirtualNetwork" + }, + "description": "Gets a page of EffectiveVirtualNetwork" + }, + "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": "Result of the request to list Effective Virtual Network. It contains a list of groups and a URL link to get the next set of results." + }, + "EffectiveVirtualNetwork": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Effective vnet Id." + }, + "location": { + "type": "string", + "description": "Location of vnet." + }, + "membershipType": { + "type": "string", + "description": "Membership Type.", + "enum": [ + "Static", + "Dynamic" + ], + "x-ms-enum": { + "name": "MembershipType", + "modelAsString": true + } + } + }, + "description": "Effective Virtual Network" + } + }, + "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", + "description": "The name of the network manager.", + "x-ms-parameter-location": "method" + }, + "NetworkGroupNameParameter": { + "name": "networkGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network group.", + "x-ms-parameter-location": "method" + }, + "StaticMemberNameParameter": { + "name": "staticMemberName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the static member.", + "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/2022-04-01-preview/networkManagerScopeConnection.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json new file mode 100644 index 000000000000..961d6fdf5a0a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json @@ -0,0 +1,297 @@ +{ + "swagger": "2.0", + "info": { + "title": "ScopeConnections", + "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": "2022-02-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}/scopeConnections/{scopeConnectionName}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/ScopeConnectionName" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "put": { + "tags": [ + "ScopeConnections" + ], + "operationId": "ScopeConnections_CreateOrUpdate", + "description": "Creates or updates scope connection from Network Manager", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ScopeConnection" + }, + "description": "Scope connection to be created/updated." + } + ], + "responses": { + "200": { + "description": "Updated - Returns information about the updates scope connection.", + "schema": { + "$ref": "#/definitions/ScopeConnection" + } + }, + "201": { + "description": "Created - Returns information about the new scope connection.", + "schema": { + "$ref": "#/definitions/ScopeConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create or Update Network Manager Scope Connection": { + "$ref": "./examples/NetworkManagerScopeConnectionPut.json" + } + } + }, + "get": { + "tags": [ + "ScopeConnections" + ], + "operationId": "ScopeConnections_Get", + "description": "Get specified scope connection created by this Network Manager.", + "responses": { + "200": { + "description": "OK - Returns the invitation", + "schema": { + "$ref": "#/definitions/ScopeConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Network Manager Scope Connection": { + "$ref": "./examples/NetworkManagerScopeConnectionGet.json" + } + } + }, + "delete": { + "tags": [ + "ScopeConnections" + ], + "operationId": "ScopeConnections_Delete", + "description": "Delete the pending scope connection created by this network manager.", + "responses": { + "200": { + "description": "Delete Succeed." + }, + "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-examples": { + "Delete Network Manager Scope Connection": { + "$ref": "./examples/NetworkManagerScopeConnectionDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections": { + "get": { + "tags": [ + "ScopeConnections" + ], + "operationId": "ScopeConnections_List", + "description": "List all scope connections created by this network manager.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ListTopParameter" + }, + { + "$ref": "./networkManager.json#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the scope connection(s).", + "schema": { + "$ref": "#/definitions/ScopeConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Network Manager Scope Connection": { + "$ref": "./examples/NetworkManagerScopeConnectionList.json" + } + } + } + } + }, + "definitions": { + "ScopeConnection": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ScopeConnectionProperties", + "description": "The scope connection 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/ProxyResource" + } + ], + "description": "The Scope Connections resource" + }, + "ScopeConnectionProperties": { + "type": "object", + "properties": { + "tenantId": { + "type": "string", + "description": "Tenant ID." + }, + "resourceId": { + "type": "string", + "description": "Resource ID." + }, + "connectionState": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ConnectionState", + "description": "Connection State" + }, + "description": { + "type": "string", + "description": "A description of the scope connection." + } + }, + "description": "Scope connection." + }, + "ScopeConnectionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ScopeConnection" + }, + "description": "List of scope connections." + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next page of results." + } + }, + "description": "List of scope connections." + }, + "ConnectionState": { + "type": "string", + "readOnly": true, + "description": "The current scope connection state.", + "enum": [ + "Connected", + "Pending", + "Conflict", + "Revoked", + "Rejected" + ], + "x-ms-enum": { + "name": "ScopeConnectionState", + "modelAsString": true + } + } + }, + "parameters": { + "ScopeConnectionName": { + "name": "scopeConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "Name for the cross-tenant connection.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json new file mode 100644 index 000000000000..3627bc1735e7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json @@ -0,0 +1,1098 @@ +{ + "swagger": "2.0", + "info": { + "title": "SecurityAdminConfiguration", + "version": "2022-02-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": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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/CloudError" + } + } + }, + "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": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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/CloudError" + } + } + }, + "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/CloudError" + } + } + }, + "x-ms-examples": { + "Create network manager security admin configuration": { + "$ref": "./examples/NetworkManagerSecurityAdminConfigurationPut.json" + } + } + }, + "delete": { + "tags": [ + "SecurityAdminConfigurations" + ], + "description": "Deletes a network manager security admin configuration.", + "operationId": "SecurityAdminConfigurations_Delete", + "parameters": [ + { + "$ref": "#/parameters/ForceDeleteParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "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": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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/CloudError" + } + } + }, + "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": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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/CloudError" + } + } + }, + "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/CloudError" + } + } + }, + "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" + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "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": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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/CloudError" + } + } + }, + "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": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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/CloudError" + } + } + }, + "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/CloudError" + } + } + }, + "x-ms-examples": { + "Create an admin rule": { + "$ref": "./examples/NetworkManagerAdminRulePut.json" + }, + "Create a default admin rule": { + "$ref": "./examples/NetworkManagerDefaultAdminRulePut.json" + } + } + }, + "delete": { + "tags": [ + "AdminRules" + ], + "description": "Deletes an admin rule.", + "operationId": "AdminRules_Delete", + "parameters": [ + { + "$ref": "#/parameters/ForceDeleteParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "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/ProxyResource" + } + ], + "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." + }, + "provisioningState": { + "readOnly": true, + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the 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/ProxyResource" + } + ], + "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": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the 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/ProxyResource" + } + ], + "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": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the 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": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the resource." + } + }, + "description": "Security default admin rule resource." + }, + "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" + ], + "x-ms-enum": { + "name": "AddressPrefixType", + "modelAsString": true + } + } + }, + "description": "Address prefix item." + }, + "NetworkIntentPolicyBasedService": { + "type": "string", + "description": "Network intent policy based services.", + "enum": [ + "None", + "All" + ], + "x-ms-enum": { + "name": "NetworkIntentPolicyBasedService", + "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" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "NetworkManagerNameParameter": { + "name": "networkManagerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network manager.", + "x-ms-parameter-location": "method" + }, + "ListTopParameter": { + "name": "$top", + "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", + "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/2022-04-01-preview/networkManagerSecurityUserConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json new file mode 100644 index 000000000000..8849480a29d9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json @@ -0,0 +1,991 @@ +{ + "swagger": "2.0", + "info": { + "title": "SecurityUserConfiguration", + "version": "2022-02-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}/securityUserConfigurations": { + "get": { + "tags": [ + "SecurityUserConfigurations" + ], + "operationId": "SecurityUserConfigurations_List", + "description": "Lists all the network manager security user configurations in a network manager, in a paginated format.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/ListTopParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "Get successful. The operation returns all security user configurations in the specified network manager, in a paginated format", + "schema": { + "$ref": "#/definitions/SecurityUserConfigurationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List security user configurations in a network manager": { + "$ref": "./examples/NetworkManagerSecurityUserConfigurationList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + } + ], + "get": { + "tags": [ + "SecurityUserConfigurations" + ], + "description": "Retrieves a network manager security user configuration.", + "operationId": "SecurityUserConfigurations_Get", + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/SecurityUserConfiguration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get security user configurations": { + "$ref": "./examples/NetworkManagerSecurityUserConfigurationGet.json" + } + } + }, + "put": { + "tags": [ + "SecurityUserConfigurations" + ], + "description": "Creates or updates a network manager security user configuration.", + "operationId": "SecurityUserConfigurations_CreateOrUpdate", + "parameters": [ + { + "name": "securityUserConfiguration", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SecurityUserConfiguration" + }, + "description": "The security user configuration to create or update" + } + ], + "responses": { + "200": { + "description": "Updated Configuration", + "schema": { + "$ref": "#/definitions/SecurityUserConfiguration" + } + }, + "201": { + "description": "Created Configuration", + "schema": { + "$ref": "#/definitions/SecurityUserConfiguration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create network manager security user configuration": { + "$ref": "./examples/NetworkManagerSecurityUserConfigurationPut.json" + } + } + }, + "delete": { + "tags": [ + "SecurityUserConfigurations" + ], + "description": "Deletes a network manager security user configuration.", + "operationId": "SecurityUserConfigurations_Delete", + "parameters": [ + { + "$ref": "#/parameters/ForceDeleteParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Delete network manager security user configuration": { + "$ref": "./examples/NetworkManagerSecurityUserConfigurationDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections": { + "get": { + "tags": [ + "UserRuleCollections" + ], + "operationId": "UserRuleCollections_List", + "description": "Lists all the user rule collections in a security configuration, in a paginated format.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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/UserRuleCollectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List rule collections in a security configuration": { + "$ref": "./examples/NetworkManagerUserRuleCollectionList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "#/parameters/RuleCollectionParameter" + } + ], + "get": { + "tags": [ + "RuleCollections" + ], + "description": "Gets a network manager security user configuration rule collection.", + "operationId": "UserRuleCollections_Get", + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/UserRuleCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Gets security user rule collection": { + "$ref": "./examples/NetworkManagerUserRuleCollectionGet.json" + } + } + }, + "put": { + "tags": [ + "UserRuleCollections" + ], + "description": "Creates or updates a user rule collection.", + "operationId": "UserRuleCollections_CreateOrUpdate", + "parameters": [ + { + "name": "userRuleCollection", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UserRuleCollection" + }, + "description": "The User Rule Collection to create or update" + } + ], + "responses": { + "200": { + "description": "Updated User Rule Collection", + "schema": { + "$ref": "#/definitions/UserRuleCollection" + } + }, + "201": { + "description": "Created User Rule Collection", + "schema": { + "$ref": "#/definitions/UserRuleCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create or Update a User Rule Collection": { + "$ref": "./examples/NetworkManagerUserRuleCollectionPut.json" + } + } + }, + "delete": { + "tags": [ + "UserRuleCollections" + ], + "description": "Deletes a user rule collection.", + "parameters": [ + { + "$ref": "#/parameters/ForceDeleteParameter" + } + ], + "operationId": "UserRuleCollections_Delete", + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Deletes a user rule collection": { + "$ref": "./examples/NetworkManagerUserRuleCollectionDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules": { + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "#/parameters/RuleCollectionParameter" + }, + { + "$ref": "#/parameters/ListTopParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "get": { + "tags": [ + "UserRules" + ], + "description": "Lists all user rules in a rule collection.", + "operationId": "UserRules_List", + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/UserRuleListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List security user rules": { + "$ref": "./examples/NetworkManagerUserRuleList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "#/parameters/RuleCollectionParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationsRuleParameter" + } + ], + "get": { + "tags": [ + "UserRules" + ], + "description": "Gets a user rule.", + "operationId": "UserRules_Get", + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/BaseUserRule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Gets a user rule": { + "$ref": "./examples/NetworkManagerUserRuleGet.json" + }, + "Gets a default user rule": { + "$ref": "./examples/NetworkManagerDefaultUserRuleGet.json" + } + } + }, + "put": { + "tags": [ + "UserRules" + ], + "description": "Creates or updates a user rule.", + "operationId": "UserRules_CreateOrUpdate", + "parameters": [ + { + "name": "userRule", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BaseUserRule" + }, + "description": "The user rule to create or update" + } + ], + "responses": { + "200": { + "description": "Updated rule", + "schema": { + "$ref": "#/definitions/BaseUserRule" + } + }, + "201": { + "description": "Created rule", + "schema": { + "$ref": "#/definitions/BaseUserRule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create a user rule": { + "$ref": "./examples/NetworkManagerUserRulePut.json" + }, + "Create a default user rule": { + "$ref": "./examples/NetworkManagerDefaultUserRulePut.json" + } + } + }, + "delete": { + "tags": [ + "UserRules" + ], + "description": "Deletes a user rule.", + "operationId": "UserRules_Delete", + "parameters": [ + { + "$ref": "#/parameters/ForceDeleteParameter" + } + ], + "responses": { + "200": { + "description": "Delete Succeed." + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Delete a user rule": { + "$ref": "./examples/NetworkManagerUserRuleDelete.json" + } + } + } + } + }, + "definitions": { + "SecurityUserConfiguration": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SecurityUserConfigurationPropertiesFormat", + "description": "Indicates the properties for the network manager security user configuration." + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/ProxyResource" + } + ], + "description": "Defines the security user configuration" + }, + "SecurityUserConfigurationPropertiesFormat": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description of the security user configuration." + }, + "deleteExistingNSGs": { + "type": "string", + "enum": [ + "False", + "True" + ], + "x-ms-enum": { + "name": "DeleteExistingNSGs", + "modelAsString": true + }, + "description": "Flag if need to delete existing network security groups." + }, + "provisioningState": { + "readOnly": true, + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the resource." + } + }, + "description": "Defines the security user configuration properties." + }, + "SecurityUserConfigurationListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityUserConfiguration" + }, + "description": "Gets a page of security user configurations" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next page of results." + } + }, + "description": "A list of network manager security user configurations" + }, + "UserRuleCollectionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/UserRuleCollection" + }, + "description": "A list of network manager security user configuration rule collections" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next set of results." + } + }, + "description": "Security user configuration rule collection list result." + }, + "UserRuleCollection": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/UserRuleCollectionPropertiesFormat", + "description": "Indicates the properties for the network manager user rule collection." + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/ProxyResource" + } + ], + "description": "Defines the user rule collection." + }, + "UserRuleCollectionPropertiesFormat": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description of the user rule collection." + }, + "appliesToGroups": { + "type": "array", + "x-ms-identifiers": [ + "networkGroupId" + ], + "items": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/NetworkManagerSecurityGroupItem" + }, + "description": "Groups for configuration" + }, + "provisioningState": { + "readOnly": true, + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the resource." + } + }, + "required": [ + "appliesToGroups" + ], + "description": "Defines the user rule collection properties." + }, + "BaseUserRule": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "description": "Whether the rule is custom or default.", + "enum": [ + "Custom", + "Default" + ], + "x-ms-enum": { + "name": "UserRuleKind", + "modelAsString": true + } + }, + "systemData": { + "readOnly": true, + "description": "The system metadata related to this resource.", + "$ref": "./network.json#/definitions/SystemData" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/ProxyResource" + } + ], + "required": [ + "kind" + ], + "discriminator": "kind", + "description": "Network base rule." + }, + "UserRuleListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/BaseUserRule" + }, + "description": "A list of user rules" + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "security user rule list result." + }, + "UserRule": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/UserRulePropertiesFormat", + "x-ms-client-flatten": true, + "description": "Indicates the properties of the security user rule" + } + }, + "allOf": [ + { + "$ref": "#/definitions/BaseUserRule" + } + ], + "description": "Network security user rule.", + "x-ms-discriminator-value": "Custom" + }, + "UserRulePropertiesFormat": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description for this rule." + }, + "protocol": { + "type": "string", + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/RuleProtocol", + "description": "Network protocol this rule applies to." + }, + "sources": { + "type": "array", + "x-ms-identifiers": [ + "addressPrefix" + ], + "items": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/AddressPrefixItem" + }, + "description": "The CIDR or source IP ranges." + }, + "destinations": { + "type": "array", + "x-ms-identifiers": [ + "addressPrefix" + ], + "items": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/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." + }, + "direction": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/SecurityConfigurationRuleDirection", + "description": "Indicates if the traffic matched against the rule in inbound or outbound." + }, + "provisioningState": { + "readOnly": true, + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the security configuration user rule resource." + } + }, + "required": [ + "protocol", + "direction" + ], + "description": "Security rule resource." + }, + "DefaultUserRule": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/DefaultUserRulePropertiesFormat", + "x-ms-client-flatten": true, + "description": "Indicates the properties of the security default user rule" + } + }, + "allOf": [ + { + "$ref": "#/definitions/BaseUserRule" + } + ], + "description": "Network security default user rule.", + "x-ms-discriminator-value": "Default" + }, + "DefaultUserRulePropertiesFormat": { + "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": "./networkManagerSecurityAdminConfiguration.json#/definitions/RuleProtocol", + "description": "Network protocol this rule applies to." + }, + "sources": { + "type": "array", + "x-ms-identifiers": [ + "addressPrefix" + ], + "readOnly": true, + "items": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/AddressPrefixItem" + }, + "description": "The CIDR or source IP ranges." + }, + "destinations": { + "type": "array", + "x-ms-identifiers": [ + "addressPrefix" + ], + "readOnly": true, + "items": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/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." + }, + "direction": { + "$ref": "./networkManagerSecurityAdminConfiguration.json#/definitions/SecurityConfigurationRuleDirection", + "readOnly": true, + "description": "Indicates if the traffic matched against the rule in inbound or outbound." + }, + "provisioningState": { + "readOnly": true, + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the security configuration user rule resource." + } + }, + "description": "Security default user rule resource." + } + }, + "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" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "NetworkManagerNameParameter": { + "name": "networkManagerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network manager.", + "x-ms-parameter-location": "method" + }, + "ListTopParameter": { + "name": "$top", + "description": "An optional query parameter which specifies the maximum number of records to be returned by the server.", + "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" + } + } +} From fead174db73563da01c409dd10ade7dd57755e92 Mon Sep 17 00:00:00 2001 From: yanfa317 <53584318+yanfa317@users.noreply.github.com> Date: Wed, 4 May 2022 14:23:26 -0700 Subject: [PATCH 2/8] Update version --- ...rActiveConnectivityConfigurationsList.json | 2 +- ...rkManagerActiveSecurityAdminRulesList.json | 2 +- ...orkManagerActiveSecurityUserRulesList.json | 2 +- ...tworkManagerAdminRuleCollectionDelete.json | 10 +- .../NetworkManagerAdminRuleCollectionGet.json | 2 +- ...NetworkManagerAdminRuleCollectionList.json | 4 +- ...AdminRuleCollectionOperationResultGet.json | 20 ++ .../NetworkManagerAdminRuleCollectionPut.json | 2 +- .../NetworkManagerAdminRuleDelete.json | 10 +- .../examples/NetworkManagerAdminRuleGet.json | 2 +- .../examples/NetworkManagerAdminRuleList.json | 4 +- ...orkManagerAdminRuleOperationResultGet.json | 21 ++ .../examples/NetworkManagerAdminRulePut.json | 2 +- .../examples/NetworkManagerCommitPost.json | 5 +- ...anagerConnectionManagementGroupDelete.json | 2 +- ...rkManagerConnectionManagementGroupGet.json | 2 +- ...kManagerConnectionManagementGroupList.json | 4 +- ...rkManagerConnectionManagementGroupPut.json | 2 +- ...rkManagerConnectionSubscriptionDelete.json | 2 +- ...tworkManagerConnectionSubscriptionGet.json | 2 +- ...workManagerConnectionSubscriptionList.json | 4 +- ...tworkManagerConnectionSubscriptionPut.json | 2 +- ...anagerConnectivityConfigurationDelete.json | 10 +- ...rkManagerConnectivityConfigurationGet.json | 2 +- ...kManagerConnectivityConfigurationList.json | 4 +- ...tivityConfigurationOperationResultGet.json | 19 ++ ...rkManagerConnectivityConfigurationPut.json | 2 +- .../NetworkManagerDefaultAdminRuleGet.json | 2 +- .../NetworkManagerDefaultAdminRulePut.json | 2 +- .../NetworkManagerDefaultUserRuleGet.json | 2 +- .../NetworkManagerDefaultUserRulePut.json | 2 +- .../examples/NetworkManagerDelete.json | 10 +- .../NetworkManagerDeploymentStatusList.json | 2 +- ...fectiveConnectivityConfigurationsList.json | 2 +- ...anagerEffectiveSecurityAdminRulesList.json | 2 +- ...rkManagerEffectiveVirtualNetworksList.json | 2 +- ...veVirtualNetworksListByNetworkManager.json | 2 +- .../examples/NetworkManagerGet.json | 2 +- .../examples/NetworkManagerGroupDelete.json | 10 +- .../examples/NetworkManagerGroupGet.json | 2 +- .../examples/NetworkManagerGroupList.json | 4 +- ...NetworkManagerGroupOperationResultGet.json | 19 ++ .../examples/NetworkManagerGroupPut.json | 2 +- .../examples/NetworkManagerList.json | 4 +- .../examples/NetworkManagerListAll.json | 4 +- .../NetworkManagerOperationResultGet.json | 18 ++ .../examples/NetworkManagerPatch.json | 2 +- .../examples/NetworkManagerPut.json | 2 +- .../NetworkManagerScopeConnectionDelete.json | 10 +- .../NetworkManagerScopeConnectionGet.json | 2 +- .../NetworkManagerScopeConnectionList.json | 2 +- .../NetworkManagerScopeConnectionPut.json | 2 +- ...nagerSecurityAdminConfigurationDelete.json | 10 +- ...kManagerSecurityAdminConfigurationGet.json | 2 +- ...ManagerSecurityAdminConfigurationList.json | 4 +- ...yAdminConfigurationOperationResultGet.json | 19 ++ ...kManagerSecurityAdminConfigurationPut.json | 2 +- ...anagerSecurityUserConfigurationDelete.json | 10 +- ...rkManagerSecurityUserConfigurationGet.json | 2 +- ...kManagerSecurityUserConfigurationList.json | 4 +- ...tyUserConfigurationOperationResultGet.json | 19 ++ ...rkManagerSecurityUserConfigurationPut.json | 2 +- .../NetworkManagerStaticMemberDelete.json | 16 +- .../NetworkManagerStaticMemberGet.json | 2 +- .../NetworkManagerStaticMemberList.json | 8 +- ...ManagerStaticMemberOperationResultGet.json | 20 ++ .../NetworkManagerStaticMemberPut.json | 10 +- ...etworkManagerUserRuleCollectionDelete.json | 10 +- .../NetworkManagerUserRuleCollectionGet.json | 6 +- .../NetworkManagerUserRuleCollectionList.json | 4 +- ...rUserRuleCollectionOperationResultGet.json | 20 ++ .../NetworkManagerUserRuleCollectionPut.json | 2 +- .../NetworkManagerUserRuleDelete.json | 10 +- .../examples/NetworkManagerUserRuleGet.json | 2 +- .../examples/NetworkManagerUserRuleList.json | 4 +- ...workManagerUserRuleOperationResultGet.json | 21 ++ .../examples/NetworkManagerUserRulePut.json | 2 +- .../preview/2022-04-01-preview/network.json | 2 +- .../2022-04-01-preview/networkManager.json | 85 ++++++- .../networkManagerActiveConfiguration.json | 2 +- .../networkManagerConnection.json | 2 +- ...tworkManagerConnectivityConfiguration.json | 70 +++++- .../networkManagerEffectiveConfiguration.json | 2 +- .../networkManagerGroup.json | 151 +++++++++++- .../networkManagerScopeConnection.json | 15 +- ...workManagerSecurityAdminConfiguration.json | 215 +++++++++++++++++- ...tworkManagerSecurityUserConfiguration.json | 215 +++++++++++++++++- .../network/resource-manager/readme.md | 68 ++++++ 88 files changed, 1188 insertions(+), 108 deletions(-) create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionOperationResultGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleOperationResultGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationOperationResultGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupOperationResultGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerOperationResultGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationOperationResultGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationOperationResultGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberOperationResultGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionOperationResultGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleOperationResultGet.json diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json index 3a79672f5c65..83e4ae4e9b83 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json @@ -1,7 +1,7 @@ { "title": "Get Azure Virtual Network Manager Active Connectivity Configuration", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA", "resourceGroupName": "myResourceGroup", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json index 6d4ca6845911..642005d94470 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json @@ -1,7 +1,7 @@ { "title": "Get Azure Virtual Network Manager Active Security Admin Rules", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA", "resourceGroupName": "myResourceGroup", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.json index 20468937fbe4..f5d43eb417fc 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.json @@ -1,7 +1,7 @@ { "title": "Get Azure Virtual Network Manager Active Security User Rules", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA", "resourceGroupName": "myResourceGroup", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json index e6650a61bc0e..5696e6b7a7d9 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json @@ -1,13 +1,19 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection" + "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=2022-04-01-preview" + } + }, "200": {}, "204": {} } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json index c5b9c54df98d..cebcf34488bb 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionList.json index 9e7cab430648..1de154637169 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", @@ -33,7 +33,7 @@ } } ], - "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections?api-version=2021-05-01-preview&$skipToken=10" + "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionOperationResultGet.json new file mode 100644 index 000000000000..dacf720e036d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionOperationResultGet.json @@ -0,0 +1,20 @@ +{ + "title": "Get Azure Virtual Network Manager admin configuration Operation Result", + "parameters": { + "api-version": "2022-04-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection", + "operationResultId": "00000000-0000-0000-0000-000000000000" + }, + "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=2022-04-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json index 51124b09a15e..1e89078dd3bc 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionPut.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleDelete.json index 1e237aeb1b03..2ddefa613277 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleDelete.json @@ -1,14 +1,20 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "configurationName": "myTestSecurityConfig", "networkManagerName": "testNetworkManager", "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleAdminRule" + "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=2022-04-01-preview" + } + }, "200": {}, "204": {} } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleGet.json index b6b84faa8180..76b6e868c6a4 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "configurationName": "myTestSecurityConfig", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleList.json index 3d222b24c4d4..c85be88857f3 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", @@ -52,7 +52,7 @@ } } ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkManagers/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules?api-version=2021-05-01-preview&$skipToken=10" + "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkManagers/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleOperationResultGet.json new file mode 100644 index 000000000000..6f0b71e17fc5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleOperationResultGet.json @@ -0,0 +1,21 @@ +{ + "title": "Get Azure Virtual Network Manager admin configuration Operation Result", + "parameters": { + "api-version": "2022-04-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleAdminRule", + "operationResultId": "00000000-0000-0000-0000-000000000000" + }, + "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=2022-04-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRulePut.json index 007cbe3c534f..d972d34db2fe 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRulePut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRulePut.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerCommitPost.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerCommitPost.json index 512a5af37919..65802d5baa0b 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerCommitPost.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerCommitPost.json @@ -1,7 +1,7 @@ { "title": "Post Azure Virtual Network Manager Commit", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "resoureGroupSample", "networkManagerName": "testNetworkManager", @@ -17,6 +17,9 @@ }, "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=2022-04-01-preview" + }, "body": { "commitId": "testCommitId", "targetLocations": [ diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupDelete.json index aab8e230b990..d46084d60437 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupDelete.json @@ -1,7 +1,7 @@ { "title": "Delete Management Group Connection to Azure Virtual Network Manager", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "managementGroupId": "managementGroupA", "networkManagerConnectionName": "TestNMConnection" }, diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupGet.json index 674d785e71eb..8bc0877a9b07 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupGet.json @@ -1,7 +1,7 @@ { "title": "Get Management Group Azure Virtual Network Manager Connection", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "managementGroupId": "managementGroupA", "networkManagerConnectionName": "TestNMConnection" }, diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupList.json index b354a2ab9473..2a0656b2cf6b 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupList.json @@ -1,7 +1,7 @@ { "title": "List Management Group Azure Virtual Network Manager Connections", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "managementGroupId": "managementGroupA" }, "responses": { @@ -30,7 +30,7 @@ } } ], - "nextLink": "{baseurl}/managementGroups/subscriptionA/providers/Microsoft.Network/networkManagerConnections?api-version=2021-02-01-preview&$skipToken=10" + "nextLink": "{baseurl}/managementGroups/subscriptionA/providers/Microsoft.Network/networkManagerConnections?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupPut.json index 9fb650c76e45..c88b27b27a2c 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupPut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionManagementGroupPut.json @@ -1,7 +1,7 @@ { "title": "Create/Update Management Group Azure Virtual Network Manager Connection", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "managementGroupId": "managementGroupA", "networkManagerConnectionName": "TestNMConnection", "parameters": { diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionDelete.json index e1ba6c24a5cb..fa8c1f70f642 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionDelete.json @@ -1,7 +1,7 @@ { "title": "Delete Subscription Connection to Azure Virtual Network Manager", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA", "networkManagerConnectionName": "TestNMConnection" }, diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionGet.json index a41b5835c636..aade32e50191 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionGet.json @@ -1,7 +1,7 @@ { "title": "Get Subscription Azure Virtual Network Manager Connection", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA", "networkManagerConnectionName": "TestNMConnection" }, diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionList.json index fb76030d1ef5..9b3719ed4f9e 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionList.json @@ -1,7 +1,7 @@ { "title": "List Subscription Azure Virtual Network Manager Connections", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA" }, "responses": { @@ -30,7 +30,7 @@ } } ], - "nextLink": "{baseurl}/subscriptions/subscriptionA/providers/Microsoft.Network/networkManagerConnections?api-version=2021-02-01-preview&$skipToken=10" + "nextLink": "{baseurl}/subscriptions/subscriptionA/providers/Microsoft.Network/networkManagerConnections?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionPut.json index 7725207981cd..2bef074ff019 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectionSubscriptionPut.json @@ -1,7 +1,7 @@ { "title": "Create/Update Subscription Azure Virtual Network Manager Connection", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA", "networkManagerConnectionName": "TestNMConnection", "parameters": { diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.json index abf16f7f8acd..233c0fb43aab 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.json @@ -1,13 +1,19 @@ { "title": "Get Azure Virtual Network Manager Connectivity Configuration", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA", "resourceGroupName": "myResourceGroup", "networkManagerName": "testNetworkManager", - "configurationName": "myTestConnectivityConfig" + "configurationName": "myTestConnectivityConfig", + "force": false }, "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/connectivityConfigurations/myTestConnectivityConfig/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, "200": {}, "204": {} } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationGet.json index 470d527fbc64..8a7453abd00e 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationGet.json @@ -1,7 +1,7 @@ { "title": "Get Azure Virtual Network Manager Connectivity Configuration", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA", "resourceGroupName": "myResourceGroup", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationList.json index d85084c14e88..887071706205 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationList.json @@ -1,7 +1,7 @@ { "title": "Get Azure Virtual Network Manager Connecitivity Configuration List", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA", "resourceGroupName": "myResourceGroup", "networkManagerName": "testNetworkManager" @@ -45,7 +45,7 @@ } } ], - "nextLink": "{baseurl}/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/managedNetworks/testNetworkManager/connectivityConfigurations?api-version=2021-05-01-preview&$skipToken=10" + "nextLink": "{baseurl}/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/managedNetworks/testNetworkManager/connectivityConfigurations?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationOperationResultGet.json new file mode 100644 index 000000000000..2f1414267ffa --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationOperationResultGet.json @@ -0,0 +1,19 @@ +{ + "title": "Get Azure Virtual Network Manager Group Operation Result", + "parameters": { + "api-version": "2022-04-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestConnectivityConfig", + "operationResultId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/connectivityConfigurations/myTestConnectivityConfig/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationPut.json index 185dceaa89eb..ca8688bbf888 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationPut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationPut.json @@ -1,7 +1,7 @@ { "title": "Create/Update Azure Virtual Network Manager Connectivity Configuration", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA", "resourceGroupName": "myResourceGroup", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json index 3f5de8bfe4cf..a4646298a651 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRuleGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "configurationName": "myTestSecurityConfig", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRulePut.json index c768d2588cc6..b59fe4c5a0f0 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRulePut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultAdminRulePut.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRuleGet.json index 3281369e2d40..acefd227c452 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRuleGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "ruleCollectionName": "testRuleCollection", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRulePut.json index c2f0699a1a98..a4ef3491a7e7 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRulePut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDefaultUserRulePut.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDelete.json index 9aad20386817..53ce339452dd 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDelete.json @@ -1,12 +1,18 @@ { "title": "Delete Azure Virtual Network Manager", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subid", "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager" + "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=2022-04-01-preview" + } + }, "200": {}, "204": {} } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDeploymentStatusList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDeploymentStatusList.json index da74941a538d..a2afc1625adc 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDeploymentStatusList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerDeploymentStatusList.json @@ -1,7 +1,7 @@ { "title": "Post Azure Virtual Network Manager Deployment Status", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "resoureGroupSample", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json index 892178eecfd8..a9a12912bcc5 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json @@ -1,7 +1,7 @@ { "title": "List Azure Virtual Network Manager Effective Configuration", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA", "resourceGroupName": "myResourceGroup", "virtualNetworkName": "testVirtualNetwork", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveSecurityAdminRulesList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveSecurityAdminRulesList.json index d74b6e9877c4..8f0ef17d1b51 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveSecurityAdminRulesList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveSecurityAdminRulesList.json @@ -1,7 +1,7 @@ { "title": "List Azure Virtual Network Manager Effective Configuration", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionA", "resourceGroupName": "myResourceGroup", "virtualNetworkName": "testVirtualNetwork", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksList.json index 6b825edf94e0..159eadcee035 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksList.json @@ -1,7 +1,7 @@ { "title": "List Effective Virtual Networks List By Network Groups", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json index 4f880e1b889d..797d68cd5676 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerEffectiveVirtualNetworksListByNetworkManager.json @@ -1,7 +1,7 @@ { "title": "List Effective Virtual Networks List By Network Groups", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGet.json index 37d902659928..9aefd64bb5b2 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGet.json @@ -1,7 +1,7 @@ { "title": "Get Azure Virtual Network Manager", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager" diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupDelete.json index 4d5f7538c0d0..aff779e77bab 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupDelete.json @@ -1,13 +1,19 @@ { "title": "Delete Azure Virtual Network Manager Group", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subid", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", - "networkGroupName": "testNetworkGroup" + "networkGroupName": "testNetworkGroup", + "force": false }, "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/networkGroups/testNetworkGroup/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, "200": {}, "204": {} } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupGet.json index 273852a42f07..ee00f0299738 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupGet.json @@ -1,7 +1,7 @@ { "title": "Get Azure Virtual Network Manager Network Group", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupList.json index c16b969837a6..39ee33171eba 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupList.json @@ -1,7 +1,7 @@ { "title": "List Azure Virtual Network Manager Network Groups", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager" @@ -29,7 +29,7 @@ } } ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups?api-version=2021-02-01-preview&$skipToken=10" + "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupOperationResultGet.json new file mode 100644 index 000000000000..7c3ae50d637e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupOperationResultGet.json @@ -0,0 +1,19 @@ +{ + "title": "Get Azure Virtual Network Manager Group Operation Result", + "parameters": { + "api-version": "2022-04-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "networkGroupName": "testNetworkGroup", + "operationResultId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/networkGroups/testNetworkGroup/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupPut.json index 953f874a14a1..cfca5da9709a 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupPut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupPut.json @@ -1,7 +1,7 @@ { "title": "Create/Update Azure Virtual Network Manager Network Group", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerList.json index 962b98d00656..baec8f2d6234 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerList.json @@ -1,7 +1,7 @@ { "title": "List Azure Virtual Network Manager", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1" }, @@ -37,7 +37,7 @@ } } ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers?api-version=2021-05-01-preview&$skipToken=10" + "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerListAll.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerListAll.json index 1fa10d54003f..d349c19d1c83 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerListAll.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerListAll.json @@ -1,7 +1,7 @@ { "title": "List Azure Virtual Network Manager in Subscription", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC" }, "responses": { @@ -36,7 +36,7 @@ } } ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/providers/Microsoft.Network/networkManagers?api-version=2021-05-01-preview&$skipToken=10" + "nextLink": "{baseurl}/subscriptions/subscriptionC/providers/Microsoft.Network/networkManagers?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerOperationResultGet.json new file mode 100644 index 000000000000..ba9d71bd12db --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerOperationResultGet.json @@ -0,0 +1,18 @@ +{ + "title": "Get Azure Virtual Network Manager Operation Result", + "parameters": { + "api-version": "2022-04-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "operationResultId": "00000000-0000-0000-0000-000000000000" + }, + "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=2022-04-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPatch.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPatch.json index fad6360279e8..d03bb4f0a638 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPatch.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPatch.json @@ -1,7 +1,7 @@ { "title": "Patch Managed Network Tags", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPut.json index bb4cacd2bd35..dccfdf8787cc 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerPut.json @@ -1,7 +1,7 @@ { "title": "Create/Update Azure Virtual Network Manager", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "TestNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionDelete.json index e3944c04d54b..8a48a23c538d 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionDelete.json @@ -1,13 +1,19 @@ { "title": "Delete Azure Virtual Network Manager Scope Connection", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", - "scopeConnectionName": "TestScopeConnection" + "scopeConnectionName": "TestScopeConnection", + "force": false }, "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/scopeConnections/TestScopeConnection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, "200": {}, "204": {} } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionGet.json index 5deccb37f3c0..7fc50d72bf37 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionGet.json @@ -1,7 +1,7 @@ { "title": "Get Azure Virtual Network Manager Scope Connection", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionList.json index 651bc733a49e..8d9fb843e65e 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionList.json @@ -1,7 +1,7 @@ { "title": "List Azure Virtual Network Manager Scope Connection", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager" diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionPut.json index 84e50ab821a4..53aed9f2c58a 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionPut.json @@ -1,7 +1,7 @@ { "title": "Create/Update Azure Virtual Network Manager Scope Connection", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json index a447bb0a0ffd..11e1bbfd9095 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationDelete.json @@ -1,12 +1,18 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig" + "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=2022-04-01-preview" + } + }, "200": {}, "204": {} } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json index ff637f6ab7f9..8e743e9dafb7 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json index 80ae908b28fc..e095321f71e4 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager" @@ -30,7 +30,7 @@ } } ], - "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations?api-version=2021-05-01-preview&$skipToken=10" + "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationOperationResultGet.json new file mode 100644 index 000000000000..0c2c16c1a0a1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationOperationResultGet.json @@ -0,0 +1,19 @@ +{ + "title": "Get Azure Virtual Network Manager admin configuration Operation Result", + "parameters": { + "api-version": "2022-04-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "operationResultId": "00000000-0000-0000-0000-000000000000" + }, + "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=2022-04-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json index 9bd60f1e30aa..e48070b809ec 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationPut.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "configurationName": "myTestSecurityConfig", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationDelete.json index a447bb0a0ffd..6fc315b16239 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationDelete.json @@ -1,12 +1,18 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig" + "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/securityUserConfigurations/myTestSecurityConfig/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, "200": {}, "204": {} } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationGet.json index b7e1c4e7df1e..8dd47f8c11d7 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationList.json index aa34c2b27165..442dfff6ac57 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager" @@ -28,7 +28,7 @@ } } ], - "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations?api-version=2021-05-01-preview&$skipToken=10" + "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationOperationResultGet.json new file mode 100644 index 000000000000..6bb00d2e6436 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationOperationResultGet.json @@ -0,0 +1,19 @@ +{ + "title": "Get Azure Virtual Network Manager user configuration Operation Result", + "parameters": { + "api-version": "2022-04-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "operationResultId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationPut.json index ba14f16990f3..c801dbd74cc6 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationPut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationPut.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "configurationName": "myTestSecurityConfig", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberDelete.json index 45113a3165bb..d5fea5515f18 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberDelete.json @@ -1,15 +1,21 @@ { "title": "Delete Azure Virtual Network Manager Static Member", "parameters": { - "api-version": "2022-02-01-preview", - "subscriptionId": "subid", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", + "api-version": "2022-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "SampleRG", + "networkManagerName": "TestNM", "networkGroupName": "testNetworkGroup", - "staticMemberName": "testStaticMember" + "staticMemberName": "testStaticMember", + "force": false }, "responses": { "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/networkGroups/testNetworkGroup/staticMembers/testStaticMember/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, "204": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberGet.json index 2e89c9388ed3..e4c8e79d390c 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberGet.json @@ -1,7 +1,7 @@ { "title": "Get Azure Virtual Network Manager Static Member", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberList.json index 249261b040ac..3c5c1f33f4da 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberList.json @@ -1,7 +1,7 @@ { "title": "List Azure Virtual Network Manager Static Members", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", @@ -24,11 +24,13 @@ "lastModifiedAt": "2021-01-11T18:52:27Z" }, "properties": { - "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1" + "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1", + "region": "useast2", + "provisioningState": "Succeeded" } } ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup/staticMembers?api-version=2021-02-01-preview&$skipToken=10" + "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testNetworkGroup/staticMembers?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberOperationResultGet.json new file mode 100644 index 000000000000..cd3fa24b75a8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberOperationResultGet.json @@ -0,0 +1,20 @@ +{ + "title": "Get Azure Virtual Network Manager Static Member Operation Result", + "parameters": { + "api-version": "2022-04-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "networkGroupName": "testNetworkGroup", + "staticMemberName": "testStaticMember", + "operationResultId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/networkGroups/testNetworkGroup/staticMembers/testStaticMember/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberPut.json index 8c91ace949a0..d557c1e03194 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberPut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberPut.json @@ -1,7 +1,7 @@ { "title": "Create/Update Azure Virtual Network Manager Static Member", "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subscriptionC", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", @@ -31,7 +31,9 @@ "lastModifiedAt": "2021-01-11T18:52:27Z" }, "properties": { - "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1" + "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1", + "region": "useast2", + "provisioningState": "Succeeded" } } }, @@ -52,7 +54,9 @@ "lastModifiedAt": "2021-01-11T18:52:27Z" }, "properties": { - "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1" + "resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1", + "region": "useast2", + "provisioningState": "Succeeded" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionDelete.json index e6650a61bc0e..e506d0cce786 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionDelete.json @@ -1,13 +1,19 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection" + "ruleCollectionName": "testRuleCollection", + "force": false }, "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, "200": {}, "204": {} } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionGet.json index 3eb55c2ceb5a..a457ad4ff2d2 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", @@ -26,7 +26,9 @@ "provisioningState": "Succeeded", "appliesToGroups": [ { - "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup", + "region": "useast2", + "provisioningState": "Succeeded" } ] } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionList.json index 98c1739afb99..04a09c1d1a4c 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", @@ -33,7 +33,7 @@ } } ], - "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections?api-version=2021-05-01-preview&$skipToken=10" + "nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionOperationResultGet.json new file mode 100644 index 000000000000..606e975560ec --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionOperationResultGet.json @@ -0,0 +1,20 @@ +{ + "title": "Get Azure Virtual Network Manager user configuration Operation Result", + "parameters": { + "api-version": "2022-04-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection", + "operationResultId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionPut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionPut.json index 0b4ae8589fd3..cc81474823bf 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionPut.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "configurationName": "myTestSecurityConfig", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleDelete.json index de3d5eb04f80..2227c5776dc5 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleDelete.json @@ -1,14 +1,20 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "configurationName": "myTestSecurityConfig", "networkManagerName": "testNetworkManager", "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleUserRule" + "ruleName": "SampleUserRule", + "force": false }, "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleUserRule/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, "200": {}, "204": {} } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleGet.json index 29a4bff89627..36b1782710f5 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "ruleCollectionName": "testRuleCollection", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleList.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleList.json index 2cbdfb51d255..8196f7cb16ea 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleList.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", @@ -50,7 +50,7 @@ } } ], - "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules?api-version=2021-02-01-preview&$skipToken=10" + "nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules?api-version=2022-04-01-preview&$skipToken=10" } } } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleOperationResultGet.json new file mode 100644 index 000000000000..012ec2869d66 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleOperationResultGet.json @@ -0,0 +1,21 @@ +{ + "title": "Get Azure Virtual Network Manager user configuration Operation Result", + "parameters": { + "api-version": "2022-04-01-preview", + "subscriptionId": "subscriptionC", + "resourceGroupName": "rg1", + "networkManagerName": "testNetworkManager", + "configurationName": "myTestSecurityConfig", + "ruleCollectionName": "testRuleCollection", + "ruleName": "SampleAdminRule", + "operationResultId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleUserRule/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRulePut.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRulePut.json index c32cd3ac064e..f5f61205ee19 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRulePut.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRulePut.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-02-01-preview", + "api-version": "2022-04-01-preview", "subscriptionId": "subId", "resourceGroupName": "rg1", "networkManagerName": "testNetworkManager", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/network.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/network.json index 6ca0a415fa6b..6228a3345508 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/network.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/network.json @@ -3,7 +3,7 @@ "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": "2022-02-01-preview" + "version": "2022-04-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json index 978132383402..b2bd6c019deb 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json @@ -3,7 +3,7 @@ "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": "2022-02-01-preview" + "version": "2022-04-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -133,6 +133,15 @@ "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." }, @@ -143,6 +152,10 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "NetworkManagersDelete": { "$ref": "./examples/NetworkManagerDelete.json" @@ -187,6 +200,58 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/operationResults/{operationResultId}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/OperationResultIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "OperationResults" + ], + "summary": "Get a network manager operation result.", + "description": "Gets an operation result.", + "operationId": "NetworkManagerOperationResults_Get", + "responses": { + "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 operation does not exist or is completed." + }, + "default": { + "description": "The default error response.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "getNetworkManagerOperationResult": { + "$ref": "./examples/NetworkManagerOperationResultGet.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/commit": { "parameters": [ { @@ -222,6 +287,12 @@ "responses": { "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" } @@ -233,6 +304,10 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "NetworkManageCommitPost": { "$ref": "./examples/NetworkManagerCommitPost.json" @@ -748,6 +823,14 @@ "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.", diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerActiveConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerActiveConfiguration.json index ca8d6dfbc2ba..77ca5a0b6a93 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerActiveConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerActiveConfiguration.json @@ -3,7 +3,7 @@ "info": { "title": "NetworkManagerActiveConfiguration", "description": "The Microsoft Azure Network Manager Active Configuration API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to list all active configuration by network manager.", - "version": "2022-02-01-preview" + "version": "2022-04-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnection.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnection.json index c37975b0b491..23f65d3e5285 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnection.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnection.json @@ -3,7 +3,7 @@ "info": { "title": "ScopeConnections", "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": "2022-02-01-preview" + "version": "2022-04-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json index 02dc82456600..6f6c12c22c0b 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json @@ -3,7 +3,7 @@ "info": { "title": "ConnectivityConfiguration", "description": "The Microsoft Azure Virtual Network Manager Connectivity Configuration API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to manage your network resources.", - "version": "2022-02-01-preview" + "version": "2022-04-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -136,6 +136,15 @@ "200": { "description": "Delete successful." }, + "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." }, @@ -146,6 +155,10 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "ConnectivityConfigurationsDelete": { "$ref": "./examples/NetworkManagerConnectivityConfigurationDelete.json" @@ -203,6 +216,61 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations/{configurationName}/operationResults/{operationResultId}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/ConnectivityConfigurationNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "OperationResults" + ], + "summary": "Get a network manager connectivity configuration operation result.", + "description": "Returns an operation result.", + "operationId": "ConnectivityConfigurationOperationResults_Get", + "responses": { + "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 operation does not exist or is completed." + }, + "default": { + "description": "The default error response.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "getConnectivityConfigurationOperationResult": { + "$ref": "./examples/NetworkManagerConnectivityConfigurationOperationResultGet.json" + } + } + } } }, "definitions": { diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerEffectiveConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerEffectiveConfiguration.json index 16c28da51848..30860c237003 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerEffectiveConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerEffectiveConfiguration.json @@ -3,7 +3,7 @@ "info": { "title": "NetworkManagerEffectiveConfiguration", "description": "The Microsoft Azure Network Manager effective configuration 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": "2022-02-01-preview" + "version": "2022-04-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json index a16349e0f5a1..28644c9396dd 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json @@ -3,7 +3,7 @@ "info": { "title": "NetworkGroup", "description": "The Microsoft Azure Network Group API provides a RESTful set of web services that interact with Microsoft Azure Network Manager service to manage your network resources.", - "version": "2022-02-01-preview" + "version": "2022-04-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -156,6 +156,15 @@ "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." }, @@ -166,6 +175,10 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "NetworkGroupsDelete": { "$ref": "./examples/NetworkManagerGroupDelete.json" @@ -278,6 +291,61 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/operationResults/{operationResultId}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/NetworkGroupNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "OperationResults" + ], + "summary": "Get a network manager group operation result.", + "description": "Returns an operation result.", + "operationId": "NetworkManagerGroupOperationResults_Get", + "responses": { + "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 operation does not exist or is completed." + }, + "default": { + "description": "The default error response.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "getNetworkManagerGroupOperationResult": { + "$ref": "./examples/NetworkManagerGroupOperationResultGet.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}": { "parameters": [ { @@ -378,6 +446,15 @@ "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." }, @@ -388,6 +465,10 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "StaticMembersDelete": { "$ref": "./examples/NetworkManagerStaticMemberDelete.json" @@ -448,6 +529,64 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}/operationResults/{operationResultId}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/NetworkGroupNameParameter" + }, + { + "$ref": "#/parameters/StaticMemberNameParameter" + }, + { + "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "OperationResults" + ], + "summary": "Get a network manager static member operation result.", + "description": "Returns an operation result.", + "operationId": "StaticMemberOperationResults_Get", + "responses": { + "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 operation does not exist or is completed." + }, + "default": { + "description": "The default error response.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "getNetworkManagerStaticMemberOperationResult": { + "$ref": "./examples/NetworkManagerStaticMemberOperationResultGet.json" + } + } + } } }, "definitions": { @@ -555,6 +694,16 @@ "resourceId": { "type": "string", "description": "Resource Id." + }, + "region": { + "readOnly": true, + "type": "string", + "description": "Resource region." + }, + "provisioningState": { + "readOnly": true, + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the scope assignment resource." } }, "description": "Properties of static member." diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json index 961d6fdf5a0a..f504e8188b04 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json @@ -3,7 +3,7 @@ "info": { "title": "ScopeConnections", "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": "2022-02-01-preview" + "version": "2022-04-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -131,6 +131,15 @@ "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." }, @@ -141,6 +150,10 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "Delete Network Manager Scope Connection": { "$ref": "./examples/NetworkManagerScopeConnectionDelete.json" diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json index 3627bc1735e7..14b21a288a84 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "SecurityAdminConfiguration", - "version": "2022-02-01-preview" + "version": "2022-04-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -186,6 +186,15 @@ "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." }, @@ -196,6 +205,10 @@ } } }, + "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" @@ -203,6 +216,61 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/operationResults/{operationResultId}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "OperationResults" + ], + "summary": "Get a network manager security admin configuration operation result.", + "description": "Returns an operation result.", + "operationId": "SecurityAdminConfigurationOperationResults_Get", + "responses": { + "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 operation does not exist or is completed." + }, + "default": { + "description": "The default error response.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "getSecurityAdminConfigurationOperationResult": { + "$ref": "./examples/NetworkManagerSecurityAdminConfigurationOperationResultGet.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections": { "get": { "tags": [ @@ -362,6 +430,15 @@ "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." }, @@ -372,6 +449,10 @@ } } }, + "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" @@ -379,6 +460,64 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/operationResults/{operationResultId}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "#/parameters/RuleCollectionParameter" + }, + { + "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "OperationResults" + ], + "summary": "Get a network manager security admin rule collection operation result.", + "description": "Returns an operation result.", + "operationId": "SecurityAdminRuleCollectionOperationResults_Get", + "responses": { + "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 operation does not exist or is completed." + }, + "default": { + "description": "The default error response.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "getSecurityAdminRuleCollectionOperationResult": { + "$ref": "./examples/NetworkManagerAdminRuleCollectionOperationResultGet.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules": { "parameters": [ { @@ -550,6 +689,15 @@ "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." }, @@ -560,12 +708,77 @@ } } }, + "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" } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}/operationResults/{operationResultId}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "#/parameters/RuleCollectionParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationsRuleParameter" + }, + { + "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "OperationResults" + ], + "summary": "Get a network manager security admin rule operation result", + "description": "Returns an operation result.", + "operationId": "SecurityAdminRuleOperationResults_Get", + "responses": { + "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 operation does not exist or is completed." + }, + "default": { + "description": "The default error response.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "getSecurityAdminRuleOperationResult": { + "$ref": "./examples/NetworkManagerAdminRuleOperationResultGet.json" + } + } + } } }, "definitions": { diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json index 8849480a29d9..502a0e5ef6fe 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "SecurityUserConfiguration", - "version": "2022-02-01-preview" + "version": "2022-04-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -186,6 +186,15 @@ "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." }, @@ -196,6 +205,10 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "Delete network manager security user configuration": { "$ref": "./examples/NetworkManagerSecurityUserConfigurationDelete.json" @@ -203,6 +216,61 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/operationResults/{operationResultId}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "OperationResults" + ], + "summary": "Get a network manager security user configuration operation result.", + "description": "Returns an operation result.", + "operationId": "SecurityUserConfigurationOperationResults_Get", + "responses": { + "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 operation does not exist or is completed." + }, + "default": { + "description": "The default error response.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "getSecurityUserConfigurationOperationResult": { + "$ref": "./examples/NetworkManagerSecurityUserConfigurationOperationResultGet.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections": { "get": { "tags": [ @@ -362,6 +430,15 @@ "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." }, @@ -372,6 +449,10 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "Deletes a user rule collection": { "$ref": "./examples/NetworkManagerUserRuleCollectionDelete.json" @@ -379,6 +460,64 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/operationResults/{operationResultId}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "#/parameters/RuleCollectionParameter" + }, + { + "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "OperationResults" + ], + "summary": "Get a network manager security user rule collection operation result.", + "description": "Returns an operation result.", + "operationId": "SecurityUserRuleCollectionOperationResults_Get", + "responses": { + "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 operation does not exist or is completed." + }, + "default": { + "description": "The default error response.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "getSecurityUserRuleCollectionOperationResult": { + "$ref": "./examples/NetworkManagerUserRuleCollectionOperationResultGet.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules": { "parameters": [ { @@ -550,6 +689,15 @@ "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. Resource does not exist." }, @@ -560,12 +708,77 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, "x-ms-examples": { "Delete a user rule": { "$ref": "./examples/NetworkManagerUserRuleDelete.json" } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}/operationResults/{operationResultId}": { + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NetworkManagerNameParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationParameter" + }, + { + "$ref": "#/parameters/RuleCollectionParameter" + }, + { + "$ref": "#/parameters/SecurityConfigurationsRuleParameter" + }, + { + "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "OperationResults" + ], + "summary": "Get a network manager security user rule operation result.", + "description": "Returns an operation result.", + "operationId": "SecurityUserRuleOperationResults_Get", + "responses": { + "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 operation does not exist or is completed." + }, + "default": { + "description": "The default error response.", + "schema": { + "$ref": "./network.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "getSecurityUserRuleOperationResult": { + "$ref": "./examples/NetworkManagerUserRuleOperationResultGet.json" + } + } + } } }, "definitions": { diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 2113a4a98e40..d2a59a5bee75 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -31,6 +31,74 @@ openapi-type: arm tag: package-2021-08 ``` +### Tag: package-2022-04-preview + +These settings apply only when `--tag=2022-04-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2022-04-preview' +input-file: + - Microsoft.Network/preview/2022-04-01-preview/network.json + - Microsoft.Network/preview/2022-04-01-preview/networkManager.json + - Microsoft.Network/preview/2022-04-01-preview/networkManagerActiveConfiguration.json + - Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json + - Microsoft.Network/preview/2022-04-01-preview/networkManagerEffectiveConfiguration.json + - Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json + - Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json + - Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json + - Microsoft.Network/preview/2022-04-01-preview/networkManagerConnection.json + - Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json + - Microsoft.Network/stable/2021-08-01/applicationGateway.json + - Microsoft.Network/stable/2021-08-01/applicationSecurityGroup.json + - Microsoft.Network/stable/2021-08-01/availableDelegations.json + - Microsoft.Network/stable/2021-08-01/availableServiceAliases.json + - Microsoft.Network/stable/2021-08-01/azureFirewall.json + - Microsoft.Network/stable/2021-08-01/azureFirewallFqdnTag.json + - Microsoft.Network/stable/2021-08-01/azureWebCategory.json + - Microsoft.Network/stable/2021-08-01/bastionHost.json + - Microsoft.Network/stable/2021-08-01/checkDnsAvailability.json + - Microsoft.Network/stable/2021-08-01/cloudServiceNetworkInterface.json + - Microsoft.Network/stable/2021-08-01/cloudServicePublicIpAddress.json + - Microsoft.Network/stable/2021-08-01/customIpPrefix.json + - Microsoft.Network/stable/2021-08-01/ddosCustomPolicy.json + - Microsoft.Network/stable/2021-08-01/ddosProtectionPlan.json + - Microsoft.Network/stable/2021-08-01/dscpConfiguration.json + - Microsoft.Network/stable/2021-08-01/endpointService.json + - Microsoft.Network/stable/2021-08-01/expressRouteCircuit.json + - Microsoft.Network/stable/2021-08-01/expressRouteCrossConnection.json + - Microsoft.Network/stable/2021-08-01/expressRoutePort.json + - Microsoft.Network/stable/2021-08-01/firewallPolicy.json + - Microsoft.Network/stable/2021-08-01/ipAllocation.json + - Microsoft.Network/stable/2021-08-01/ipGroups.json + - Microsoft.Network/stable/2021-08-01/loadBalancer.json + - Microsoft.Network/stable/2021-08-01/natGateway.json + - Microsoft.Network/stable/2021-08-01/network.json + - Microsoft.Network/stable/2021-08-01/networkInterface.json + - Microsoft.Network/stable/2021-08-01/networkProfile.json + - Microsoft.Network/stable/2021-08-01/networkSecurityGroup.json + - Microsoft.Network/stable/2021-08-01/networkVirtualAppliance.json + - Microsoft.Network/stable/2021-08-01/networkWatcher.json + - Microsoft.Network/stable/2021-08-01/operation.json + - Microsoft.Network/stable/2021-08-01/privateEndpoint.json + - Microsoft.Network/stable/2021-08-01/privateLinkService.json + - Microsoft.Network/stable/2021-08-01/publicIpAddress.json + - Microsoft.Network/stable/2021-08-01/publicIpPrefix.json + - Microsoft.Network/stable/2021-08-01/routeFilter.json + - Microsoft.Network/stable/2021-08-01/routeTable.json + - Microsoft.Network/stable/2021-08-01/securityPartnerProvider.json + - Microsoft.Network/stable/2021-08-01/serviceCommunity.json + - Microsoft.Network/stable/2021-08-01/serviceEndpointPolicy.json + - Microsoft.Network/stable/2021-08-01/serviceTags.json + - Microsoft.Network/stable/2021-08-01/usage.json + - Microsoft.Network/stable/2021-08-01/virtualNetwork.json + - Microsoft.Network/stable/2021-08-01/virtualNetworkGateway.json + - Microsoft.Network/stable/2021-08-01/virtualNetworkTap.json + - Microsoft.Network/stable/2021-08-01/virtualRouter.json + - Microsoft.Network/stable/2021-08-01/virtualWan.json + - Microsoft.Network/stable/2021-08-01/vmssNetworkInterface.json + - Microsoft.Network/stable/2021-08-01/vmssPublicIpAddress.json + - Microsoft.Network/stable/2021-08-01/webapplicationfirewall.json + ``` + ### Tag: package-2022-02-preview These settings apply only when `--tag=2022-02-preview` is specified on the command line. From c9ab0366f40147f142e36c343706611c5963d7a6 Mon Sep 17 00:00:00 2001 From: yanfa317 <53584318+yanfa317@users.noreply.github.com> Date: Wed, 4 May 2022 16:00:44 -0700 Subject: [PATCH 3/8] fix scope connection --- .../examples/NetworkManagerScopeConnectionDelete.json | 5 ----- .../networkManagerScopeConnection.json | 9 --------- 2 files changed, 14 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionDelete.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionDelete.json index 8a48a23c538d..885e1bf6ad42 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerScopeConnectionDelete.json @@ -9,11 +9,6 @@ "force": false }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/scopeConnections/TestScopeConnection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" - } - }, "200": {}, "204": {} } diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json index f504e8188b04..8652df9812b1 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json @@ -131,15 +131,6 @@ "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." }, From a4f8b9c479ee0afb67bf34c0eedc231e8ad4b4a8 Mon Sep 17 00:00:00 2001 From: yanfa317 <53584318+yanfa317@users.noreply.github.com> Date: Wed, 4 May 2022 16:19:59 -0700 Subject: [PATCH 4/8] fix scope connection --- .../2022-04-01-preview/networkManagerScopeConnection.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json index 8652df9812b1..b084d2c46393 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerScopeConnection.json @@ -141,10 +141,6 @@ } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, "x-ms-examples": { "Delete Network Manager Scope Connection": { "$ref": "./examples/NetworkManagerScopeConnectionDelete.json" From fd55e6be2f0199bdc27d1955dd48baab6ab32ea8 Mon Sep 17 00:00:00 2001 From: yanfa317 <53584318+yanfa317@users.noreply.github.com> Date: Fri, 6 May 2022 10:16:27 -0700 Subject: [PATCH 5/8] fix bug --- .../examples/NetworkManagerUserRuleCollectionGet.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionGet.json index a457ad4ff2d2..1d0ead51e095 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionGet.json @@ -26,9 +26,7 @@ "provisioningState": "Succeeded", "appliesToGroups": [ { - "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup", - "region": "useast2", - "provisioningState": "Succeeded" + "networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" } ] } From 6c34bc9485d363a93800349fe5572653f5135758 Mon Sep 17 00:00:00 2001 From: yanfa317 <53584318+yanfa317@users.noreply.github.com> Date: Fri, 6 May 2022 10:39:36 -0700 Subject: [PATCH 6/8] fix bug --- .../networkManagerSecurityUserConfiguration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json index 502a0e5ef6fe..a573ef516d47 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json @@ -719,7 +719,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}/operationResults/{operationResultId}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}/operationResults/{operationResultId}": { "parameters": [ { "$ref": "./network.json#/parameters/SubscriptionIdParameter" From 7f872ee9018cca2a54d202d3898bdb33c91b2e78 Mon Sep 17 00:00:00 2001 From: yanfa317 <53584318+yanfa317@users.noreply.github.com> Date: Mon, 16 May 2022 16:53:35 -0700 Subject: [PATCH 7/8] remove operationstatus API --- ...AdminRuleCollectionOperationResultGet.json | 20 -- ...orkManagerAdminRuleOperationResultGet.json | 21 --- ...tivityConfigurationOperationResultGet.json | 19 -- ...NetworkManagerGroupOperationResultGet.json | 19 -- .../NetworkManagerOperationResultGet.json | 18 -- ...yAdminConfigurationOperationResultGet.json | 19 -- ...tyUserConfigurationOperationResultGet.json | 19 -- ...ManagerStaticMemberOperationResultGet.json | 20 -- ...rUserRuleCollectionOperationResultGet.json | 20 -- ...workManagerUserRuleOperationResultGet.json | 21 --- .../2022-04-01-preview/networkManager.json | 52 ------ ...tworkManagerConnectivityConfiguration.json | 55 ------ .../networkManagerGroup.json | 113 ------------ ...workManagerSecurityAdminConfiguration.json | 174 ------------------ ...tworkManagerSecurityUserConfiguration.json | 174 ------------------ 15 files changed, 764 deletions(-) delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionOperationResultGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleOperationResultGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationOperationResultGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupOperationResultGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerOperationResultGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationOperationResultGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationOperationResultGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberOperationResultGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionOperationResultGet.json delete mode 100644 specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleOperationResultGet.json diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionOperationResultGet.json deleted file mode 100644 index dacf720e036d..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionOperationResultGet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager admin configuration Operation Result", - "parameters": { - "api-version": "2022-04-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection", - "operationResultId": "00000000-0000-0000-0000-000000000000" - }, - "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=2022-04-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleOperationResultGet.json deleted file mode 100644 index 6f0b71e17fc5..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleOperationResultGet.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager admin configuration Operation Result", - "parameters": { - "api-version": "2022-04-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleAdminRule", - "operationResultId": "00000000-0000-0000-0000-000000000000" - }, - "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=2022-04-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationOperationResultGet.json deleted file mode 100644 index 2f1414267ffa..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerConnectivityConfigurationOperationResultGet.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Group Operation Result", - "parameters": { - "api-version": "2022-04-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestConnectivityConfig", - "operationResultId": "00000000-0000-0000-0000-000000000000" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/connectivityConfigurations/myTestConnectivityConfig/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupOperationResultGet.json deleted file mode 100644 index 7c3ae50d637e..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerGroupOperationResultGet.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Group Operation Result", - "parameters": { - "api-version": "2022-04-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "networkGroupName": "testNetworkGroup", - "operationResultId": "00000000-0000-0000-0000-000000000000" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/networkGroups/testNetworkGroup/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerOperationResultGet.json deleted file mode 100644 index ba9d71bd12db..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerOperationResultGet.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Operation Result", - "parameters": { - "api-version": "2022-04-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "operationResultId": "00000000-0000-0000-0000-000000000000" - }, - "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=2022-04-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationOperationResultGet.json deleted file mode 100644 index 0c2c16c1a0a1..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityAdminConfigurationOperationResultGet.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager admin configuration Operation Result", - "parameters": { - "api-version": "2022-04-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "operationResultId": "00000000-0000-0000-0000-000000000000" - }, - "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=2022-04-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationOperationResultGet.json deleted file mode 100644 index 6bb00d2e6436..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerSecurityUserConfigurationOperationResultGet.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager user configuration Operation Result", - "parameters": { - "api-version": "2022-04-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "operationResultId": "00000000-0000-0000-0000-000000000000" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberOperationResultGet.json deleted file mode 100644 index cd3fa24b75a8..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerStaticMemberOperationResultGet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager Static Member Operation Result", - "parameters": { - "api-version": "2022-04-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "networkGroupName": "testNetworkGroup", - "staticMemberName": "testStaticMember", - "operationResultId": "00000000-0000-0000-0000-000000000000" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/networkGroups/testNetworkGroup/staticMembers/testStaticMember/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionOperationResultGet.json deleted file mode 100644 index 606e975560ec..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleCollectionOperationResultGet.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager user configuration Operation Result", - "parameters": { - "api-version": "2022-04-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection", - "operationResultId": "00000000-0000-0000-0000-000000000000" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleOperationResultGet.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleOperationResultGet.json deleted file mode 100644 index 012ec2869d66..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerUserRuleOperationResultGet.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "Get Azure Virtual Network Manager user configuration Operation Result", - "parameters": { - "api-version": "2022-04-01-preview", - "subscriptionId": "subscriptionC", - "resourceGroupName": "rg1", - "networkManagerName": "testNetworkManager", - "configurationName": "myTestSecurityConfig", - "ruleCollectionName": "testRuleCollection", - "ruleName": "SampleAdminRule", - "operationResultId": "00000000-0000-0000-0000-000000000000" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityUserConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleUserRule/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json index b2bd6c019deb..d5d8618a41e1 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json @@ -200,58 +200,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/operationResults/{operationResultId}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/OperationResultIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "OperationResults" - ], - "summary": "Get a network manager operation result.", - "description": "Gets an operation result.", - "operationId": "NetworkManagerOperationResults_Get", - "responses": { - "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 operation does not exist or is completed." - }, - "default": { - "description": "The default error response.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "getNetworkManagerOperationResult": { - "$ref": "./examples/NetworkManagerOperationResultGet.json" - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/commit": { "parameters": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json index 6f6c12c22c0b..60a814099b18 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerConnectivityConfiguration.json @@ -216,61 +216,6 @@ } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations/{configurationName}/operationResults/{operationResultId}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/ConnectivityConfigurationNameParameter" - }, - { - "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "OperationResults" - ], - "summary": "Get a network manager connectivity configuration operation result.", - "description": "Returns an operation result.", - "operationId": "ConnectivityConfigurationOperationResults_Get", - "responses": { - "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 operation does not exist or is completed." - }, - "default": { - "description": "The default error response.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "getConnectivityConfigurationOperationResult": { - "$ref": "./examples/NetworkManagerConnectivityConfigurationOperationResultGet.json" - } - } - } } }, "definitions": { diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json index 28644c9396dd..01696bb0f611 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerGroup.json @@ -291,61 +291,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/operationResults/{operationResultId}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/NetworkGroupNameParameter" - }, - { - "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "OperationResults" - ], - "summary": "Get a network manager group operation result.", - "description": "Returns an operation result.", - "operationId": "NetworkManagerGroupOperationResults_Get", - "responses": { - "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 operation does not exist or is completed." - }, - "default": { - "description": "The default error response.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "getNetworkManagerGroupOperationResult": { - "$ref": "./examples/NetworkManagerGroupOperationResultGet.json" - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}": { "parameters": [ { @@ -529,64 +474,6 @@ } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}/operationResults/{operationResultId}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/NetworkGroupNameParameter" - }, - { - "$ref": "#/parameters/StaticMemberNameParameter" - }, - { - "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "OperationResults" - ], - "summary": "Get a network manager static member operation result.", - "description": "Returns an operation result.", - "operationId": "StaticMemberOperationResults_Get", - "responses": { - "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 operation does not exist or is completed." - }, - "default": { - "description": "The default error response.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "getNetworkManagerStaticMemberOperationResult": { - "$ref": "./examples/NetworkManagerStaticMemberOperationResultGet.json" - } - } - } } }, "definitions": { diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json index 14b21a288a84..8432298786a7 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityAdminConfiguration.json @@ -216,61 +216,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/operationResults/{operationResultId}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "OperationResults" - ], - "summary": "Get a network manager security admin configuration operation result.", - "description": "Returns an operation result.", - "operationId": "SecurityAdminConfigurationOperationResults_Get", - "responses": { - "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 operation does not exist or is completed." - }, - "default": { - "description": "The default error response.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "getSecurityAdminConfigurationOperationResult": { - "$ref": "./examples/NetworkManagerSecurityAdminConfigurationOperationResultGet.json" - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections": { "get": { "tags": [ @@ -460,64 +405,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/operationResults/{operationResultId}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "#/parameters/RuleCollectionParameter" - }, - { - "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "OperationResults" - ], - "summary": "Get a network manager security admin rule collection operation result.", - "description": "Returns an operation result.", - "operationId": "SecurityAdminRuleCollectionOperationResults_Get", - "responses": { - "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 operation does not exist or is completed." - }, - "default": { - "description": "The default error response.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "getSecurityAdminRuleCollectionOperationResult": { - "$ref": "./examples/NetworkManagerAdminRuleCollectionOperationResultGet.json" - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules": { "parameters": [ { @@ -718,67 +605,6 @@ } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}/operationResults/{operationResultId}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "#/parameters/RuleCollectionParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationsRuleParameter" - }, - { - "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "OperationResults" - ], - "summary": "Get a network manager security admin rule operation result", - "description": "Returns an operation result.", - "operationId": "SecurityAdminRuleOperationResults_Get", - "responses": { - "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 operation does not exist or is completed." - }, - "default": { - "description": "The default error response.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "getSecurityAdminRuleOperationResult": { - "$ref": "./examples/NetworkManagerAdminRuleOperationResultGet.json" - } - } - } } }, "definitions": { diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json index a573ef516d47..40391975fb36 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManagerSecurityUserConfiguration.json @@ -216,61 +216,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/operationResults/{operationResultId}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "OperationResults" - ], - "summary": "Get a network manager security user configuration operation result.", - "description": "Returns an operation result.", - "operationId": "SecurityUserConfigurationOperationResults_Get", - "responses": { - "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 operation does not exist or is completed." - }, - "default": { - "description": "The default error response.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "getSecurityUserConfigurationOperationResult": { - "$ref": "./examples/NetworkManagerSecurityUserConfigurationOperationResultGet.json" - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections": { "get": { "tags": [ @@ -460,64 +405,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/operationResults/{operationResultId}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "#/parameters/RuleCollectionParameter" - }, - { - "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "OperationResults" - ], - "summary": "Get a network manager security user rule collection operation result.", - "description": "Returns an operation result.", - "operationId": "SecurityUserRuleCollectionOperationResults_Get", - "responses": { - "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 operation does not exist or is completed." - }, - "default": { - "description": "The default error response.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "getSecurityUserRuleCollectionOperationResult": { - "$ref": "./examples/NetworkManagerUserRuleCollectionOperationResultGet.json" - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules": { "parameters": [ { @@ -718,67 +605,6 @@ } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}/operationResults/{operationResultId}": { - "parameters": [ - { - "$ref": "./network.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationParameter" - }, - { - "$ref": "#/parameters/RuleCollectionParameter" - }, - { - "$ref": "#/parameters/SecurityConfigurationsRuleParameter" - }, - { - "$ref": "./networkManager.json#/parameters/OperationResultIdParameter" - }, - { - "$ref": "./network.json#/parameters/ApiVersionParameter" - } - ], - "get": { - "tags": [ - "OperationResults" - ], - "summary": "Get a network manager security user rule operation result.", - "description": "Returns an operation result.", - "operationId": "SecurityUserRuleOperationResults_Get", - "responses": { - "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 operation does not exist or is completed." - }, - "default": { - "description": "The default error response.", - "schema": { - "$ref": "./network.json#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "getSecurityUserRuleOperationResult": { - "$ref": "./examples/NetworkManagerUserRuleOperationResultGet.json" - } - } - } } }, "definitions": { From 2776fa8c5ca0a70010ddb70784f7c0ee94c454f7 Mon Sep 17 00:00:00 2001 From: yanfa317 <53584318+yanfa317@users.noreply.github.com> Date: Mon, 16 May 2022 17:05:24 -0700 Subject: [PATCH 8/8] fix as comments --- .../examples/NetworkManagerCommitPost.json | 12 ++++++++++++ .../preview/2022-04-01-preview/networkManager.json | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerCommitPost.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerCommitPost.json index 65802d5baa0b..07e428e4d4a3 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerCommitPost.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/examples/NetworkManagerCommitPost.json @@ -16,6 +16,18 @@ } }, "responses": { + "200": { + "body": { + "commitId": "testCommitId", + "targetLocations": [ + "useast" + ], + "configurationIds": [ + "/subscriptions/subscriptionC/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=2022-04-01-preview" diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json index d5d8618a41e1..f7f73493047b 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2022-04-01-preview/networkManager.json @@ -233,6 +233,12 @@ } ], "responses": { + "200": { + "description": "Succeed.", + "schema": { + "$ref": "#/definitions/NetworkManagerCommit" + } + }, "202": { "description": "Accepted and the operation will complete asynchronously", "headers": {