| 1 | { |
| 2 | "parameters": { |
| 3 | "api-version": "2020-04-01", |
| 4 | "subscriptionId": "subid", |
| 5 | "resourceGroupName": "rg1", |
| 6 | "networkInterfaceName": "nic1" |
| 7 | }, |
| 8 | "responses": { |
| 9 | "200": { |
| 10 | "body": { |
| 11 | "value": [ |
| 12 | { |
| 13 | "networkSecurityGroup": { |
| 14 | "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/test-nsg" |
| 15 | }, |
| 16 | "association": { |
| 17 | "subnet": { |
| 18 | "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default" |
| 19 | }, |
| 20 | "networkInterface": { |
| 21 | "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1" |
| 22 | } |
| 23 | }, |
| 24 | "effectiveSecurityRules": [ |
| 25 | { |
| 26 | "name": "securityRules/rule1", |
| 27 | "protocol": "Tcp", |
| 28 | "sourcePortRange": "456-456", |
| 29 | "destinationPortRange": "6579-6579", |
| 30 | "sourceAddressPrefix": "0.0.0.0/32", |
| 31 | "destinationAddressPrefix": "0.0.0.0/32", |
| 32 | "access": "Allow", |
| 33 | "priority": 234, |
| 34 | "direction": "Inbound" |
| 35 | }, |
| 36 | { |
| 37 | "name": "securityRules/default-allow-rdp", |
| 38 | "protocol": "Tcp", |
| 39 | "sourcePortRange": "0-65535", |
| 40 | "destinationPortRange": "3389-3389", |
| 41 | "sourceAddressPrefix": "1.1.1.1/32", |
| 42 | "destinationAddressPrefix": "0.0.0.0/0", |
| 43 | "access": "Allow", |
| 44 | "priority": 1000, |
| 45 | "direction": "Inbound" |
| 46 | }, |
| 47 | { |
| 48 | "name": "defaultSecurityRules/AllowInternetOutBound", |
| 49 | "protocol": "All", |
| 50 | "sourcePortRange": "0-65535", |
| 51 | "destinationPortRange": "0-65535", |
| 52 | "sourceAddressPrefix": "0.0.0.0/0", |
| 53 | "destinationAddressPrefix": "Internet", |
| 54 | "expandedDestinationAddressPrefix": [ |
| 55 | "32.0.0.0/3", |
| 56 | "4.0.0.0/6", |
| 57 | "2.0.0.0/7", |
| 58 | "1.0.0.0/8" |
| 59 | ], |
| 60 | "access": "Allow", |
| 61 | "priority": 65001, |
| 62 | "direction": "Outbound" |
| 63 | } |
| 64 | ] |
| 65 | } |
| 66 | ] |
| 67 | } |
| 68 | }, |
| 69 | "202": {} |
| 70 | } |
| 71 | } |