-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Network Preview Version 2022-04-01-preview (#18911)
* Base New Version * Update version * fix scope connection * fix scope connection * fix bug * fix bug * remove operationstatus API * fix as comments
- Loading branch information
Showing
78 changed files
with
9,381 additions
and
0 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
...eview/2022-04-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,60 @@ | ||
{ | ||
"title": "Get Azure Virtual Network Manager Active Connectivity Configuration", | ||
"parameters": { | ||
"api-version": "2022-04-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" | ||
} | ||
} | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
...twork/preview/2022-04-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,74 @@ | ||
{ | ||
"title": "Get Azure Virtual Network Manager Active Security Admin Rules", | ||
"parameters": { | ||
"api-version": "2022-04-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" | ||
} | ||
} | ||
} | ||
} |
71 changes: 71 additions & 0 deletions
71
...etwork/preview/2022-04-01-preview/examples/NetworkManagerActiveSecurityUserRulesList.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,71 @@ | ||
{ | ||
"title": "Get Azure Virtual Network Manager Active Security User Rules", | ||
"parameters": { | ||
"api-version": "2022-04-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" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
....Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.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,20 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-04-01-preview", | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rg1", | ||
"networkManagerName": "testNetworkManager", | ||
"configurationName": "myTestSecurityConfig", | ||
"ruleCollectionName": "testRuleCollection", | ||
"force": false | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/TestNM/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" | ||
} | ||
}, | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...oft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionGet.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,36 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-04-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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...ft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionList.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,40 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-04-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=2022-04-01-preview&$skipToken=10" | ||
} | ||
} | ||
} | ||
} |
70 changes: 70 additions & 0 deletions
70
...oft.Network/preview/2022-04-01-preview/examples/NetworkManagerAdminRuleCollectionPut.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,70 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-04-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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
.../Microsoft.Network/preview/2022-04-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,21 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-04-01-preview", | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rg1", | ||
"configurationName": "myTestSecurityConfig", | ||
"networkManagerName": "testNetworkManager", | ||
"ruleCollectionName": "testRuleCollection", | ||
"ruleName": "SampleAdminRule", | ||
"force": false | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleRG/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-04-01-preview" | ||
} | ||
}, | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
Oops, something went wrong.