08-23-2023 01:15 AM
Hello all, I am trying to automate our own Compliance checks with Ansible using Cisco API.
Is there any way to search for devices which are not assigned to a Site? The "Site" Param is not visible in SDK Method "devices.Devices.get_device_by_id, devices.Devices.get_device_list".
Thanks for any help
KR Louis
08-23-2023 01:50 AM
May be Look for unclaimed devices :(not sure if this help you - just thought)
https://developer.cisco.com/docs/dna-center/#!un-claim-device
08-23-2023 04:34 AM
To use that Module I need to provide Device ID / IP Addr from the Device I want to unassign from the given Site ID. Doesnt help me as I dont have both, but appreciate the thought
04-09-2024 08:54 AM
Just curious if you've gotten anywhere with this? Working on the same problem this morning and can't seem to find a way to get this list...
04-16-2024 10:45 PM
Hi @twmjr, as far as I can remember we used a workaround getting all devices with "/dna/intent/api/v1/network-device" then getting all Sites and double-checking / crossing the two lists to get the unassigned Devices.
Sadly not in that department anymore, so I cant provide you with Code / more Information. Hope that helped though
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide