Do we really have to retrieve all uplinks for every firewall in the organization? Or is there a hidden way to filter to a single MX.
What I had:
/networks/$net_id/devices/$mx_serial/uplink
[
{
"interface": "WAN 1",
"status": "Active",
"ip": "x.x.x.x",
"gateway": "x.x.x.x",
"publicIp": "x.x.x.x",
"dns": "208.67.222.222, 208.67.220.220",
"usingStaticIp": true
},
{
"interface": "WAN 2",
"status": "Ready",
"ip": "y.y.y.y",
"gateway": "y.y.y.y",
"publicIp": "y.y.y.y",
"dns": "208.67.222.222, 208.67.220.220",
"usingStaticIp": true
}
]
What I have now:
/organizations/$org_id/appliance/uplink/statuses
{
"networkId": "12345",
"serial": "a-b-c",
"lastReportedAt": "2020-08-12T21:57:23Z",
"uplinks": [
{
"interface": "wan1",
"status": "active",
"ip": "x.x.x.x",
"gateway": "x.x.x.x",
"publicIp": "x.x.x.x",
"primaryDns": "8.8.8.8",
"secondaryDns": "8.8.4.4",
"ipAssignedBy": "static"
},
{
"interface": "wan2",
"status": "not connected",
"ip": null,
"gateway": null,
"publicIp": null,
"primaryDns": null,
"secondaryDns": null,
"ipAssignedBy": null
}
]
}