Retrieve Device Uplink Status [SOLVED]

esahuquillo
Conversationalist

Retrieve Device Uplink Status [SOLVED]

Hi all,

 

I'm trying to retrieve the uplink status from the WANs on our MX67 devices. All of them have 2 WANs active.

 

I'm using Node Red, with the Meraki Dashboard api module. https://flows.nodered.org/node/node-red-contrib-meraki-dashboard-api

 

The API "Get Network Device Uplink" (https://developer.cisco.com/meraki/api/#!get-network-device-uplink) requires 2 parameters, networkId and serial number.

 

First, I'm extracting those parameters using other API called "Get Organization Devices" (https://developer.cisco.com/meraki/api/#!get-organization-devices). After extracting the information for all the devices I want to pass it to Meraki api module using the mentioned "Get Network Device Uplink" API. 

 

I'm having problems passing the required parameters into the module:

 

Annotation 2020-06-29 124603.png

apparently the module is not parsing the payload and just using the the text as a string. The following has been extracted from the request:

 

 

Thanks so much in advance for your help.

 

Enrique

 

 

 

 

 

 

 

 

1 Reply 1
esahuquillo
Conversationalist

Solved using a function module:
 
var serial = msg.payload.serial;
var netID = msg.payload.networkId;
msg.networkId = netID;
msg.serial = serial;
return msg;
 
 
Get notified when there are additional replies to this discussion.