config/workload/gateway/jsons/loadBalancers/gw_workload_lb_1.json

{
    "resourceId": "gw_workload_lb_1",
    "resourceMetadata": {
        "client": "TurnKeySdn"
    },
    "properties": {
        "frontendIPConfigurations": [
            {
                "resourceId": "fe-gw_workload_lb_1",
                "properties": {
                    "privateIPAddress": "192.168.2.102",
                    "privateIPAllocationMethod": "Static",
                    "subnet": {
                        "resourceRef": "/logicalnetworks/PublicVIP/subnets/192.168.2.0_24"
                    }
                }
            }
        ],
        "backendAddressPools": [
            {
                "resourceId": "be-gw_workload_lb_1"
            },
            {
                "resourceId": "snat"
            }
        ],
        "loadBalancingRules": [
            {
                "resourceId": "gw_workload_lb_1-80-80",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/gw_workload_lb_1/frontendIPConfigurations/fe-gw_workload_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 80,
                    "backendPort": 80,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4,
                    "backendAddressPool": {
                        "resourceRef": "/loadBalancers/gw_workload_lb_1/backendAddressPools/be-gw_workload_lb_1"
                    },
                    "loadDistribution": "Default",
                    "probe": {
                        "resourceRef": "/loadBalancers/gw_workload_lb_1/probes/80-Probe"
                    }
                }
            },
            {
                "resourceId": "gw_workload_lb_1-8080-81",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/gw_workload_lb_1/frontendIPConfigurations/fe-gw_workload_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 8080,
                    "backendPort": 81,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4,
                    "backendAddressPool": {
                        "resourceRef": "/loadBalancers/gw_workload_lb_1/backendAddressPools/be-gw_workload_lb_1"
                    },
                    "loadDistribution": "Default"
                }
            },
            {
                "resourceId": "gw_workload_lb_1-22-22",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/gw_workload_lb_1/frontendIPConfigurations/fe-gw_workload_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 22,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4,
                    "backendAddressPool": {
                        "resourceRef": "/loadBalancers/gw_workload_lb_1/backendAddressPools/be-gw_workload_lb_1"
                    },
                    "loadDistribution": "Default"
                }
            }
        ],
        "probes": [
            {
                "resourceId": "80-Probe",
                "properties": {
                    "protocol": "Tcp",
                    "port": 80,
                    "intervalInSeconds": 5,
                    "numberOfProbes": 2
                }
            }
        ],
        "inboundNatRules": [
            {
                "resourceId": "65023",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/gw_workload_lb_1/frontendIPConfigurations/fe-gw_workload_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 65023,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4
                }
            },
            {
                "resourceId": "65024",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/gw_workload_lb_1/frontendIPConfigurations/fe-gw_workload_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 65024,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4
                }
            },
            {
                "resourceId": "65025",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/gw_workload_lb_1/frontendIPConfigurations/fe-gw_workload_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 65025,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4
                }
            },
            {
                "resourceId": "65026",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/gw_workload_lb_1/frontendIPConfigurations/fe-gw_workload_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 65026,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4
                }
            },
            {
                "resourceId": "65027",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/gw_workload_lb_1/frontendIPConfigurations/fe-gw_workload_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 65027,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4
                }
            },
            {
                "resourceId": "65028",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/gw_workload_lb_1/frontendIPConfigurations/fe-gw_workload_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 65028,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4
                }
            }
        ],
        "outboundNatRules": [
            {
                "resourceId": "snatRule",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/gw_workload_lb_1/frontendIPConfigurations/fe-gw_workload_lb_1"
                        }
                    ],
                    "protocol": "All",
                    "enableTcpReset": false,
                    "backendAddressPool": {
                        "resourceRef": "/loadBalancers/gw_workload_lb_1/backendAddressPools/snat"
                    }
                }
            }
        ]
    }
}