Get IP WAN IP address for a VMX-M

SOLVED
Adrian4
A model citizen

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
Head in the Cloud

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.

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
Head in the Cloud

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
A model citizen

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
Head in the Cloud

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

 

 

Adrian4
A model citizen

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

Get notified when there are additional replies to this discussion.