obtaining MX memory utilisation by API

rsage_voda
Getting noticed

obtaining MX memory utilisation by API

I am trying to obtain the memory utilisation for a MX450 using the organizations/{organizationId}/devices/system/memory/usage/history/byInterval with a Query parameter of the device serial number. Doing this in postman doesn't appear to work. According to documentation the parameter is "serials" but Postman won't accept this.

If I put the Key = serial and VALUE = <serial number> then the request works but it ignores the query entirely

5 Replies 5
alemabrahao
Kind of a big deal
Kind of a big deal

Try this.

 

GET https://api.meraki.com/api/v1/organizations/{organizationId}/devices/system/memory/usage/history/byI...

 

 

Headers:

 

X-Cisco-Meraki-API-Key: <your API key>

 

Content-Type: application/json

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.
RaphaelL
Kind of a big deal
Kind of a big deal

/organizations/{organizationId}/devices/system/memory/usage/history/byInterval?serials[]=XXXX-XXXX-XXXX

 

Would be the correct format

rsage_voda
Getting noticed

Hi thanks for the response. That is the API call I am using but when I use in Postman as you can seen in the screenshot Postman throws an error. I will try it in Python.

rsage_voda_0-1754140522935.png

 

nicdc01
Getting noticed

Guessing you replaced the {organizationId} already in the URL?

rsage_voda
Getting noticed

 It would appear to be a postman issue. Works fine in Python. Many thanks

Get notified when there are additional replies to this discussion.