-
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.
Add Allowed Connections REST API (#4106)
* 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
Showing
4 changed files
with
447 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
...review/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.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,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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
...-06-01-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.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,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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
...preview/2015-06-01-preview/examples/AllowedConnections/GetAllowedConnections_example.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 @@ | ||
{ | ||
"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" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.