-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove discriminator from ActiveConfiguration and split activeconfigu…
…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
Showing
20 changed files
with
995 additions
and
774 deletions.
There are no files selected for viewing
205 changes: 0 additions & 205 deletions
205
...ft.Network/preview/2021-02-01-preview/examples/NetworkManagerActiveConfigurationList.json
This file was deleted.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
...eview/2021-02-01-preview/examples/NetworkManagerActiveConnectivityConfigurationsList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
...twork/preview/2021-02-01-preview/examples/NetworkManagerActiveSecurityAdminRulesList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.