vMX missing information

SOLVED
Happiman-v2
Here to help

vMX missing information

devices = dashboard.networks.getNetworkDevices(network['id'])
 
for device in devices:
    print(device)
 
for vMX, I get, which I don't get any wanIp keys.
 
{'lat': 47.75107,
'lng': -120.74014,
'address': 'Washington, US',
'serial': 'Q2AZ-FWQW-XXXX',
'mac': '0c:8d:db:XXXXX',
'networkId': 'N_6642809450372XXXX',
'tags': [],
'name': 'vMX-USWest2',
'model': 'vMX100',
'firmware': 'wired-16-16',
'floorPlanId': None}
 
So my question is.. where can I get the WAN IP key for vMX(@ Azure) on Meraki API. I'm using meraki library 1.24.
1 ACCEPTED SOLUTION
RaphaelL
Kind of a big deal
Kind of a big deal

Have you tried this endpoint : 

getOrganizationApplianceUplinkStatuses

 /api/v1/organizations/{org_ID}/uplinks/statuses: 

 

[{"networkId":"X","serial":"X","model":"MX450","highAvailability":{"enabled":true,"role":"primary"},"lastReportedAt":"2022-09-20T19:55:47Z","uplinks":[{"interface":"wan1","status":"active","ip":"X","gateway":"X","publicIp":"X","primaryDns":"X","secondaryDns":"X","ipAssignedBy":"static"}]}]

 

Its a MX450 and not a vMX tho...

 

My MX450 in concentrator mode DO report their wan interfaces via getNetworkDevices

View solution in original post

4 REPLIES 4
PhilipDAth
Kind of a big deal
Kind of a big deal

Does any MX operating in VPN concentrator mode return this field?  They don't have "WAN" ports like an MX in routed mode.  I'm not sure where you would get that info.

RaphaelL
Kind of a big deal
Kind of a big deal

Have you tried this endpoint : 

getOrganizationApplianceUplinkStatuses

 /api/v1/organizations/{org_ID}/uplinks/statuses: 

 

[{"networkId":"X","serial":"X","model":"MX450","highAvailability":{"enabled":true,"role":"primary"},"lastReportedAt":"2022-09-20T19:55:47Z","uplinks":[{"interface":"wan1","status":"active","ip":"X","gateway":"X","publicIp":"X","primaryDns":"X","secondaryDns":"X","ipAssignedBy":"static"}]}]

 

Its a MX450 and not a vMX tho...

 

My MX450 in concentrator mode DO report their wan interfaces via getNetworkDevices

I was able to get the wanIps from the request parameter.

 

Get notified when there are additional replies to this discussion.