Get IP WAN IP address for a VMX-M

Solved
Adrian4
Head in the Cloud

Get IP WAN IP address for a VMX-M

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,

1 Accepted Solution
sungod
Kind of a big deal

6 Replies 6
alemabrahao
Kind of a big deal
Kind of a big deal

Have you checked the API documentation?

 

https://developer.cisco.com/meraki/api-latest/#!get-device-appliance-uplinks-settings

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Adrian4
Head in the Cloud

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 }
}
}
}

sungod
Kind of a big deal

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.

Adrian4
Head in the Cloud

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".

sungod
Kind of a big deal

Try changing the name of the parameter from networkIds to networkIds[]

 

 

Adrian4
Head in the Cloud

brilliant! thanks very much - this returns the address in a "public address" field 😄

Get notified when there are additional replies to this discussion.