forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add New Resource NetworkManager (Azure#12441)
* Add New Resource NetworkManager * fix prettie * Fix bug * add customwords * fix bugs * add patch api * Fix bug * add deployment status apis * fix bugs * Fix bugs * fix bug * add vnetapi * Fix bug * Fix bug * prettycheck * fix bug * fix as commnets * fix example * fix buyg * Fix as commit * fix bug * move to preview folder * Fix bug * fix bug * Fix description * Fix bug * fix bug * fix rules * fix spell * Remove tags and add systemtags * Fix bug * remove location * fix as discussed * Fix bug * Fix version * fix as commnets * Fix format * fix format * fix bug * Add patch nm * Fix bug * fix validation * update tag * Fix as commnets * fix bug * Fix Bug Issue * Fix Bug Issue * Fix dup * Fix dup * New fix * add systemdata * add systemdata * Change as comments * fix as comments * try unchange tag * change tag
- Loading branch information
Showing
44 changed files
with
5,443 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -1182,6 +1182,7 @@ nowcasts | |
nsdname | ||
nsku | ||
nsxt | ||
NSGs | ||
ntext | ||
ntfs | ||
ntlm | ||
|
66 changes: 66 additions & 0 deletions
66
...ft.Network/preview/2021-02-01-preview/examples/NetworkManagerActiveConfigurationList.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,66 @@ | ||
{ | ||
"title": "Get Azure Virtual Network Manager Active Configuration", | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subscriptionA", | ||
"resourceGroupName": "myResourceGroup", | ||
"networkManagerName": "testNetworkManager" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"configType": "Connectivity", | ||
"connectivityConfiguration": { | ||
"name": "myTestConnectivityConfig", | ||
"id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig", | ||
"type": "Microsoft.Network/networkManagers/connectivityConfigurations", | ||
"properties": { | ||
"displayName": "myTestConnectivityConfig", | ||
"description": "Sample Configuration", | ||
"connectivityTopology": "HubAndSpokeTopology", | ||
"hubId": "subscriptions/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet", | ||
"deleteExistingPeering": true, | ||
"isGlobal": true, | ||
"appliesToGroups": [ | ||
{ | ||
"networkGroupId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/groups/group1", | ||
"useHubGateway": true, | ||
"groupConnectivity": "Transitive", | ||
"isGlobal": false | ||
} | ||
], | ||
"provisioningState": "Succeeded" | ||
} | ||
}, | ||
"securityAdminRule": null, | ||
"securityUserRule": null, | ||
"configurationGroups": [ | ||
{ | ||
"name": "group1", | ||
"id": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", | ||
"type": "Microsoft.Network/networkManagers/networkGroups", | ||
"properties": { | ||
"displayName": "My Network Group", | ||
"description": "A group for all test Virtual Networks", | ||
"memberType": "VirtualNetwork", | ||
"groupMembers": [ | ||
{ | ||
"resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetwork/vnet1" | ||
} | ||
], | ||
"conditionalMembership": "", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
], | ||
"region": "westus", | ||
"commitTime": "2020-07-10T18:03:22.2578238+05:30" | ||
} | ||
], | ||
"nextLink": "{baseurl}/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/activeConfigurations?api-version=22021-02-01-preview&$skipToken=10" | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
.../Microsoft.Network/preview/2021-02-01-preview/examples/NetworkManagerAdminRuleDelete.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,14 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rg1", | ||
"configurationName": "myTestSecurityConfig", | ||
"networkManagerName": "testNetworkManager", | ||
"ruleName": "SampleAdminRule" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...ger/Microsoft.Network/preview/2021-02-01-preview/examples/NetworkManagerAdminRuleGet.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,59 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rg1", | ||
"configurationName": "myTestSecurityConfig", | ||
"networkManagerName": "testNetworkManager", | ||
"ruleName": "SampleAdminRule" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityConfigurations/myTestSecurityConfig/adminRules/SampleAdminRule", | ||
"type": "Microsoft.Network/networkManagers/securityConfigurations/AdminRules", | ||
"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" | ||
}, | ||
"properties": { | ||
"displayName": "SampleAdminRule", | ||
"description": "This is Sample Admin Rule", | ||
"protocol": "Tcp", | ||
"source": [ | ||
{ | ||
"addressPrefixType": "IPPrefix", | ||
"addressPrefix": "*" | ||
} | ||
], | ||
"destination": [ | ||
{ | ||
"addressPrefixType": "IPPrefix", | ||
"addressPrefix": "*" | ||
} | ||
], | ||
"sourcePortRanges": [ | ||
"0-65535" | ||
], | ||
"destinationPortRanges": [ | ||
"22" | ||
], | ||
"access": "Deny", | ||
"priority": 1, | ||
"direction": "Inbound", | ||
"appliesToGroups": [ | ||
{ | ||
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkmanagers/testNetworkManager/networkGroups/testGroup" | ||
} | ||
], | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
136 changes: 136 additions & 0 deletions
136
...ger/Microsoft.Network/preview/2021-02-01-preview/examples/NetworkManagerAdminRulePut.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,136 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rg1", | ||
"networkManagerName": "testNetworkManager", | ||
"configurationName": "myTestSecurityConfig", | ||
"ruleName": "SampleAdminRule", | ||
"adminRule": { | ||
"properties": { | ||
"description": "This is Sample Admin Rule", | ||
"protocol": "Tcp", | ||
"source": [ | ||
{ | ||
"addressPrefixType": "ServiceTag", | ||
"addressPrefix": "Internet" | ||
} | ||
], | ||
"destination": [ | ||
{ | ||
"addressPrefixType": "IPPrefix", | ||
"addressPrefix": "*" | ||
} | ||
], | ||
"sourcePortRanges": [ | ||
"0-65535" | ||
], | ||
"destinationPortRanges": [ | ||
"22" | ||
], | ||
"access": "Deny", | ||
"priority": 1, | ||
"direction": "Inbound", | ||
"appliesToGroups": [ | ||
{ | ||
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityConfigurations/myTestSecurityConfig/adminRules/SampleAdminRule", | ||
"type": "Microsoft.Network/networkManagers/securityConfigurations/AdminRules", | ||
"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" | ||
}, | ||
"properties": { | ||
"description": "This is Sample Admin Rule", | ||
"protocol": "Tcp", | ||
"source": [ | ||
{ | ||
"addressPrefixType": "ServiceTag", | ||
"addressPrefix": "Internet" | ||
} | ||
], | ||
"destination": [ | ||
{ | ||
"addressPrefixType": "IPPrefix", | ||
"addressPrefix": "*" | ||
} | ||
], | ||
"sourcePortRanges": [ | ||
"0-65535" | ||
], | ||
"destinationPortRanges": [ | ||
"22" | ||
], | ||
"access": "Deny", | ||
"priority": 1, | ||
"direction": "Inbound", | ||
"appliesToGroups": [ | ||
{ | ||
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" | ||
} | ||
], | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityConfigurations/myTestSecurityConfig/adminRules/SampleAdminRule", | ||
"type": "Microsoft.Network/networkManagers/securityConfigurations/AdminRules", | ||
"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" | ||
}, | ||
"properties": { | ||
"description": "This is Sample Admin Rule", | ||
"protocol": "Tcp", | ||
"source": [ | ||
{ | ||
"addressPrefixType": "ServiceTag", | ||
"addressPrefix": "Internet" | ||
} | ||
], | ||
"destination": [ | ||
{ | ||
"addressPrefixType": "IPPrefix", | ||
"addressPrefix": "*" | ||
} | ||
], | ||
"sourcePortRanges": [ | ||
"0-65535" | ||
], | ||
"destinationPortRanges": [ | ||
"22" | ||
], | ||
"access": "Deny", | ||
"priority": 1, | ||
"direction": "Inbound", | ||
"appliesToGroups": [ | ||
{ | ||
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" | ||
} | ||
], | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...r/Microsoft.Network/preview/2021-02-01-preview/examples/NetworkManagerAdminRulesList.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,62 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-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/securityConfigurations/myTestSecurityConfig/adminRules/SampleAdminRule", | ||
"type": "Microsoft.Network/networkManagers/securityConfigurations/AdminRules", | ||
"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" | ||
}, | ||
"properties": { | ||
"description": "This is Sample Admin Rule", | ||
"protocol": "Tcp", | ||
"source": [ | ||
{ | ||
"addressPrefixType": "IPPrefix", | ||
"addressPrefix": "*" | ||
} | ||
], | ||
"destination": [ | ||
{ | ||
"addressPrefixType": "IPPrefix", | ||
"addressPrefix": "*" | ||
} | ||
], | ||
"sourcePortRanges": [ | ||
"0-65535" | ||
], | ||
"destinationPortRanges": [ | ||
"22" | ||
], | ||
"access": "Deny", | ||
"priority": 1, | ||
"direction": "Inbound", | ||
"appliesToGroups": [ | ||
{ | ||
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkmanagers/testNetworkManager/networkGroups/testGroup" | ||
} | ||
], | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
], | ||
"nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkManagers/myTestSecurityConfig/adminRules?api-version=2021-02-01-preview&$skipToken=10" | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...nager/Microsoft.Network/preview/2021-02-01-preview/examples/NetworkManagerCommitPost.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,21 @@ | ||
{ | ||
"title": "Post Azure Virtual Network Manager Commit", | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subscriptionC", | ||
"resourceGroupName": "resoureGroupSample", | ||
"networkManagerName": "testNetworkManager", | ||
"parameters": { | ||
"targetLocations": [ | ||
"usest" | ||
], | ||
"configurationIds": [ | ||
"/subscriptions/subscriptionC/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityConfigurations/SampleSecurityConfig" | ||
], | ||
"commitType": "AdminPolicy" | ||
} | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...rk/preview/2021-02-01-preview/examples/NetworkManagerConnectivityConfigurationDelete.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,14 @@ | ||
{ | ||
"title": "Get Azure Virtual Network Manager Connectivity Configuration", | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subscriptionA", | ||
"resourceGroupName": "myResourceGroup", | ||
"networkManagerName": "testNetworkManager", | ||
"configurationName": "myTestConnectivityConfig" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
Oops, something went wrong.