Skip to content

Commit

Permalink
Remove discriminator from ActiveConfiguration and split activeconfigu…
Browse files Browse the repository at this point in the history
…raiton APIs to config level (#15282)

* Add ResourceGuid to NetworkManager

* add list by config

* Revert "Add ResourceGuid to NetworkManager"

This reverts commit 4e07577.

* resourceGuid

* [NetworkManager] Remove discriminator from ActiveConfiguration

* revert change

* fix format

* Fix as commnets

* fix test

* Update Example

* Split current APIs

* Fix lintdiff

* fix as commnets
  • Loading branch information
yanfa317 authored Aug 6, 2021
1 parent 8570821 commit 129f4e5
Show file tree
Hide file tree
Showing 20 changed files with 995 additions and 774 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"title": "Get Azure Virtual Network Manager Active Connectivity Configuration",
"parameters": {
"api-version": "2021-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": {
"displayName": "myTestConnectivityConfig",
"description": "Sample Configuration",
"connectivityTopology": "HubAndSpoke",
"hubId": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet",
"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": {
"displayName": "My Network Group",
"description": "A group for all test Virtual Networks",
"memberType": "VirtualNetwork",
"groupMembers": [
{
"vnetId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetwork/vnet1"
}
],
"conditionalMembership": "",
"provisioningState": "Succeeded"
}
}
]
}
],
"$skipToken": "FakeSkipTokenCode"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"title": "Get Azure Virtual Network Manager Active Security Admin Rules",
"parameters": {
"api-version": "2021-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",
"configurationDisplayName": "SampleConfig",
"configurationDescription": "SampleDescription",
"ruleCollectionDisplayName": "SampleRuleCollection",
"ruleCollectionDescription": "SampleRuleCollectionDescription",
"ruleCollectionAppliesToGroups": [
{
"networkGroupId": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1"
}
],
"kind": "Default",
"properties": {
"displayName": "SampleAdminRule",
"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": {
"displayName": "My Network Group",
"description": "A group for all test Virtual Networks",
"memberType": "VirtualNetwork",
"groupMembers": [
{
"vnetId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetwork/vnet1"
}
],
"conditionalMembership": "",
"provisioningState": "Succeeded"
}
}
]
}
],
"$skipToken": "FakeSkipTokenCode"
}
}
}
}
Loading

0 comments on commit 129f4e5

Please sign in to comment.