Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Azure Virtual Network Manager API Version #17311

Merged
merged 11 commits into from
Jan 20, 2022
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"title": "Get Azure Virtual Network Manager Active Connectivity Configuration",
"parameters": {
"api-version": "2021-05-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",
"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": {
"displayName": "My Network Group",
"description": "A group for all test Virtual Networks",
"memberType": "Microsoft.Network/virtualNetworks",
"provisioningState": "Succeeded"
}
}
]
}
],
"skipToken": "FakeSkipTokenCode"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"title": "Get Azure Virtual Network Manager Active Security Admin Rules",
"parameters": {
"api-version": "2021-05-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": "Microsoft.Network/virtualNetworks",
"provisioningState": "Succeeded"
}
}
]
}
],
"skipToken": "FakeSkipTokenCode"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"title": "Get Azure Virtual Network Manager Active Security User Rules",
"parameters": {
"api-version": "2021-05-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",
"configurationDisplayName": "SampleConfig",
"configurationDescription": "SampleDescription",
"ruleCollectionDisplayName": "SampleRuleCollection",
"ruleCollectionDescription": "SampleRuleCollectionDescription",
"ruleCollectionAppliesToGroups": [
{
"networkGroupId": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1"
}
],
"kind": "Custom",
"properties": {
"displayName": "SampleUserRule",
"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": {
"displayName": "My Network Group",
"description": "A group for all test Virtual Networks",
"memberType": "Microsoft.Network/virtualNetworks",
"provisioningState": "Succeeded"
}
}
]
}
],
"skipToken": "FakeSkipTokenCode"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2021-05-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkManagerName": "testNetworkManager",
"configurationName": "myTestSecurityConfig",
"ruleCollectionName": "testRuleCollection"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"api-version": "2021-05-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": {
"displayName": "testRuleCollection",
"description": "A sample rule collection",
"provisioningState": "Succeeded",
"appliesToGroups": [
{
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"api-version": "2021-05-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": {
"displayName": "testRuleCollection",
"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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"parameters": {
"api-version": "2021-05-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": {
"displayName": "myTestSecurityConfig",
"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": {
"displayName": "myTestSecurityConfig",
"description": "A sample policy",
"provisioningState": "Succeeded",
"appliesToGroups": [
{
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup"
}
]
}
}
}
}
}
Loading