claiming MG's via API

CLWatson
New here

claiming MG's via API

i am having an issue that i believe there is not a simple fix for. i have networks that have been configured as a combined network via an old script using the meraki api and it makes these combined networks as productTypes = ['appliance', 'switch', 'wireless']

and when i use the dashboard.networks.claimNetworkDevices i get an error:

claimNetworkDevices - 400 Bad Request, {'errors': ['A bound combined network may only contain bound networks']}
 
i assume this is because of the way the networks are originally made. and that i will have to add the MG's in a different way then the other devices. but im not sure has anyone else run into this?
3 Replies 3
alemabrahao
Kind of a big deal

The error message 400 Bad Request, {'errors': ['A bound combined network may only contain bound networks']} suggests that the combined network configuration might be causing the problem.

 

 Ensure that you are using the correct network IDs for the combined network. Sometimes, an incorrect network ID can cause this error.

 

Instead of claiming all devices at once, try claiming the MG devices separately. This might help bypass the restriction on combined networks.

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.
CLWatson
New here

like i said the networks are not set up for cellular gateways. but this is what i was thinking as well. since we are adding MGs and the previous owner of our network never thought we would need to add them. i think i will have to rework my code. im just trying to find the right calls to make this happen since i KNOW in the gui. its possible to just add the device and it will take it. it seems this call cant accomplish what im looking to do. 

alemabrahao
Kind of a big deal

You are actually trying to bind a device to a network.

In this case, my advice would be to create a new network, bing MG and then combine this new network with the current one.

I believe that the way you want to do it will not work.

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.
Get notified when there are additional replies to this discussion.