<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Devices which are not assigned to a Site (Unassigned) in Cisco Catalyst Center</title>
    <link>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/5063293#M8909</link>
    <description>&lt;P&gt;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...&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 15:54:40 GMT</pubDate>
    <dc:creator>twmjr</dc:creator>
    <dc:date>2024-04-09T15:54:40Z</dc:date>
    <item>
      <title>Devices which are not assigned to a Site (Unassigned)</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/4910488#M7424</link>
      <description>&lt;P&gt;Hello all, I am trying to automate our own Compliance checks with Ansible using Cisco API.&lt;/P&gt;&lt;P&gt;Is there any way to search for devices which are not assigned to a Site? The "Site" Param is not visible in SDK Method "&lt;SPAN&gt;devices.Devices.get_device_by_id, devices.Devices.get_device_list".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;KR Louis&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 08:15:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/4910488#M7424</guid>
      <dc:creator>louisbetsche</dc:creator>
      <dc:date>2023-08-23T08:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Devices which are not assigned to a Site (Unassigned)</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/4910500#M7425</link>
      <description>&lt;P&gt;May be Look for unclaimed devices :(not sure if this help you - just thought)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.cisco.com/docs/dna-center/#!un-claim-device" target="_blank"&gt;https://developer.cisco.com/docs/dna-center/#!un-claim-device&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 08:50:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/4910500#M7425</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2023-08-23T08:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Devices which are not assigned to a Site (Unassigned)</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/4910591#M7430</link>
      <description>&lt;P&gt;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 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 11:34:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/4910591#M7430</guid>
      <dc:creator>louisbetsche</dc:creator>
      <dc:date>2023-08-23T11:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Devices which are not assigned to a Site (Unassigned)</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/5063293#M8909</link>
      <description>&lt;P&gt;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...&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 15:54:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/5063293#M8909</guid>
      <dc:creator>twmjr</dc:creator>
      <dc:date>2024-04-09T15:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Devices which are not assigned to a Site (Unassigned)</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/5071358#M8973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/440429"&gt;@twmjr&lt;/a&gt;,&amp;nbsp;as far as I can remember we used a workaround getting all devices with "&lt;SPAN&gt;/dna/intent/api/v1/network-device" then getting all Sites and double-checking / crossing the two lists to get the unassigned Devices.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sadly not in that department anymore, so I cant provide you with Code / more Information. Hope that helped though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 05:45:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/5071358#M8973</guid>
      <dc:creator>louisbetsche</dc:creator>
      <dc:date>2024-04-17T05:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Devices which are not assigned to a Site (Unassigned)</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/5339302#M13508</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;When you create a site, regardless if its a "building" or "area", it will always hierarchy wise be placed under the "Global" site.&lt;BR /&gt;That means, any unassigned devices will be a member of the "Global" site until assigned to a site.&lt;/P&gt;&lt;P&gt;Get the Site Id for the "Global" site, then use the "site-member" API&lt;BR /&gt;to list all devices there. This is the list of unassigned devices.&lt;BR /&gt;&lt;BR /&gt;Code below is an example, dont use the insecure "verify=False" call in a production environment.&lt;/P&gt;&lt;P&gt;---------------------------------------&lt;/P&gt;&lt;P&gt;import json, requests&lt;/P&gt;&lt;P&gt;url1 = "/dna/intent/api/v2/site?groupNameHierarchy=Global"&lt;BR /&gt;url2a = "/dna/intent/api/v1/site-member/"&lt;BR /&gt;url2b = "/member?memberType=networkdevice&amp;amp;level=0"&lt;/P&gt;&lt;P&gt;payload = None&lt;BR /&gt;headers = { "Accept": "application/json" }&lt;/P&gt;&lt;P&gt;# Get Site Id for "Global"&lt;BR /&gt;res = requests.request("GET", url1, headers=headers, data=payload, verify=False)&lt;BR /&gt;globals_siteid = res.json()["response"][0]["id"]&lt;/P&gt;&lt;P&gt;# Get 500 first devices in the "Global" area. "level=0" in url2b mean list top level only&lt;BR /&gt;url2 = url2a + globals_siteid + url2b&lt;/P&gt;&lt;P&gt;res = requests.request("GET", url2, headers=headers, data=payload, verify=False)&lt;BR /&gt;for dev in res.json()["response"]:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; print(dev["hostname"])&lt;/P&gt;&lt;P&gt;---------------------------------------&lt;BR /&gt;Hope this helps - please rate if it does!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 00:03:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/devices-which-are-not-assigned-to-a-site-unassigned/m-p/5339302#M13508</guid>
      <dc:creator>ERAJAB</dc:creator>
      <dc:date>2025-10-17T00:03:30Z</dc:date>
    </item>
  </channel>
</rss>

