cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
391
Views
0
Helpful
4
Replies

Devices which are not assigned to a Site (Unassigned)

louisbetsche
Level 1
Level 1

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

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

May be Look for unclaimed devices :(not sure if this help you - just thought)

https://developer.cisco.com/docs/dna-center/#!un-claim-device

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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

twmjr
Level 1
Level 1

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...

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