cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3041
Views
8
Helpful
7
Replies

Get Network Devices, deprecated - replacement?

What In the
Level 3
Level 3

I see that "Get Network Devices" is now deprecated

https://developer.cisco.com/meraki/api-v1/get-network-devices/

does "Get Organization Devices" replace it?

https://developer.cisco.com/meraki/api-v1/get-organization-devices/

7 Replies 7

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

No, you have to use this one.

https://developer.cisco.com/meraki/api-v1/get-device/

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.

obrigg
Meraki Employee All-Star
Meraki Employee All-Star

Yes.
https://developer.cisco.com/meraki/api-v1/deprecated-operations/

We will get this page to be linked to the deprecation banner, so people won’t need to find it themselves.

SWeidner11
Level 2
Level 2

Yes. If you want only one Network, the response can be filtered by including the Network ID in the query.

Thank you Steve.

Would that look something like this?

devices = dashboard.organizations.getOrganizationDevices(
organizationId=organization_id, networkIds=[network_id]

Yes, that code snippet works for me.

Edited to be more specific.. Unless "network_id" is defined somewhere else in your code, you'll need quotation marks around the Network ID, so..

devices = dashboard.organizations.getOrganizationDevices(
organizationId=organization_id, networkIds=['network_id'])



Thanks!

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

To be honest, I think both work. Have you tried them?

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.

Thank you! You always are very helpful.

I have not tried it yet. reading up on how to filter the net ID then get the port info I need.