Get Network Devices, deprecated - replacement?

Capt_Caaaveman
Getting noticed

Get Network Devices, deprecated - replacement?

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

No, you have to use this one.

 

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

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.
Oren
Meraki Employee All-Star 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.

SteveWeidner
Getting noticed

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

Capt_Caaaveman
Getting noticed

Thank you Steve.

 

Would that look something like this?

 

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

SteveWeidner
Getting noticed

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!

alemabrahao
Kind of a big deal
Kind of a big deal

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

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.
Capt_Caaaveman
Getting noticed

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.

 

 

Get notified when there are additional replies to this discussion.