Skip to content

Commit

Permalink
Add Allowed Connections REST API (#4106)
Browse files Browse the repository at this point in the history
* Added allowed connections to security.json

* Added allowed connections to security.json

* added examples

* modified the examples resources name

* Modified the asclocation in the examples file

* reformatted and added newline at the EOF

* modified examples description in security.json

* Fixing additionalProperties configuration to match type verification

* pr fixes

* modified the description to be aligned with ASC doc.

* inserted topologies addition to security.json
  • Loading branch information
snhaphil authored and anuchandy committed Nov 12, 2018
1 parent 2d83450 commit 2389da3
Show file tree
Hide file tree
Showing 4 changed files with 447 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"parameters": {
"api-version": "2015-06-01-preview",
"subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad",
"ascLocation": "centralus"
},
"responses": {
"200": {
"body": {
"value": [
{
"type": "Microsoft.Security/locations/allowedConnections",
"properties": {
"calculatedDateTime": "2018-08-06T14:55:32.3518545Z",
"connectableResources": [
{
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1",
"inboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
],
"outboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
]
},
{
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2",
"inboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
],
"outboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
]
},
{
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3",
"inboundConnectedResources": [],
"outboundConnectedResources": []
}
]
},
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal",
"name": "Internal",
"location": "centralus"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"parameters": {
"api-version": "2015-06-01-preview",
"subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad"
},
"responses": {
"200": {
"body": {
"value": [
{
"type": "Microsoft.Security/locations/allowedConnections",
"properties": {
"calculatedDateTime": "2018-08-06T14:55:32.3518545Z",
"connectableResources": [
{
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1",
"inboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
],
"outboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
]
},
{
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2",
"inboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
],
"outboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
]
},
{
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3",
"inboundConnectedResources": [],
"outboundConnectedResources": []
}
]
},
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal",
"name": "Internal",
"location": "centralus"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"parameters": {
"api-version": "2015-06-01-preview",
"subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad",
"resourceGroupName": "myResourceGroup",
"ascLocation": "centralus",
"connectionType": "Internal"
},
"responses": {
"200": {
"body": {
"type": "Microsoft.Security/locations/allowedConnections",
"properties": {
"calculatedDateTime": "2018-08-06T14:55:32.3518545Z",
"connectableResources": [
{
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1",
"inboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
],
"outboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
]
},
{
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2",
"inboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
],
"outboundConnectedResources": [
{
"connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1",
"tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]",
"udpPorts": "[0-21,23-3388,3390-5984,5987-65535]"
}
]
},
{
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3",
"inboundConnectedResources": [],
"outboundConnectedResources": []
}
]
},
"id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal",
"name": "Internal",
"location": "centralus"
}
}
}
}
Loading

0 comments on commit 2389da3

Please sign in to comment.