Hello,
I am trying to get the WAN IP address for a VMX unit but the usual device status enpoint doesn't return it. I have also tried the uplink status endpoint suggested in another thread but that doesn't return it either 😞
Any ideas?
Thanks,
Solved! Go to solution.
Have you tried...
https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-uplinks-addresses-by-device
You can filter on network ID to limit responses.
Have you checked the API documentation?
https://developer.cisco.com/meraki/api-latest/#!get-device-appliance-uplinks-settings
yea, but it doesn't actually return the example body fields when you make a call.
example return data
{
"interfaces": {
"wan1": {
"enabled": false,
"vlanTagging": { "enabled": false },
"svis": {
"ipv4": {
"assignmentMode": "dynamic"
}
},
"pppoe": { "enabled": false }
},
"wan2": {
"enabled": false,
"vlanTagging": { "enabled": false },
"svis": {
"ipv4": {
"assignmentMode": "dynamic"
}
},
"pppoe": { "enabled": false }
}
}
}
Have you tried...
https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-uplinks-addresses-by-device
You can filter on network ID to limit responses.
I tried to run an example from the API dashboard and no matter what syntax I use, it tells me the network ID "must be an array".
Try changing the name of the parameter from networkIds to networkIds[]
brilliant! thanks very much - this returns the address in a "public address" field 😄