cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3493
Views
4
Helpful
5
Replies

obtaining MX memory utilisation by API

russell.sage
Level 7
Level 7

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

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

Try this.

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

Headers:

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

Content-Type: application/json

I am not a Cisco 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.

Raphael_L
Meraki Community All-Star
Meraki Community All-Star

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

Would be the correct format

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.

image.png

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

russell.sage
Level 7
Level 7

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