<?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 Deleting/updating elements from NetworkDeviceGroupList using ISE ERS API in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/deleting-updating-elements-from-networkdevicegrouplist-using-ise/m-p/4009342#M454617</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Some time ago, I needed to add a number of devices to ISE and decided to do it by using the API. While figuring out how to do that, I set up a dummy location and some dummy devices to play around with.&lt;/P&gt;&lt;P&gt;However, I screwed up and prepended a dummy location with "Locations#All Locations" instead of the proper "Location#All Locations". And then I must have set this to be a default parameter, so a bunch of live devices ended up in it.&lt;/P&gt;&lt;P&gt;Now I can't figure out how to remove it from these devices.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;{
    "NetworkDevice": {
        "id": "bb96eb00-93e3-11e9-8806-005056aa563a",
        "name": "119.1UX2.1",
        "description": "Script-generated by pjuul on 2019-06-21 07:16:32.087453",
[..]
        "NetworkDeviceGroupList": [
            "Device Type#All Device Types#HP#HP_2810",
            "Location#All Locations#SAMF_LAN",
            "IPSEC#Is IPSEC Device",
            "Locations#All Locations#SAMF_LAN#MIDDLE_EARTH"
        ]
    }
}&lt;/PRE&gt;&lt;P&gt;I've tried PUT'ing an update in which the NetworkDeviceGroupList was reduced like this:&lt;/P&gt;&lt;PRE&gt;        "NetworkDeviceGroupList": [
            "Device Type#All Device Types#HP#HP_2810",
            "Location#All Locations#SAMF_LAN",
            "IPSEC#Is IPSEC Device"        
        ]&lt;/PRE&gt;&lt;P&gt;But that didn't work.&lt;/P&gt;&lt;P&gt;Any suggestions? I guess the tough way is to delete and rebuild the devices, but I'd prefer a softer touch.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 10:38:08 GMT</pubDate>
    <dc:creator>rockbear</dc:creator>
    <dc:date>2020-01-10T10:38:08Z</dc:date>
    <item>
      <title>Deleting/updating elements from NetworkDeviceGroupList using ISE ERS API</title>
      <link>https://community.cisco.com/t5/network-access-control/deleting-updating-elements-from-networkdevicegrouplist-using-ise/m-p/4009342#M454617</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Some time ago, I needed to add a number of devices to ISE and decided to do it by using the API. While figuring out how to do that, I set up a dummy location and some dummy devices to play around with.&lt;/P&gt;&lt;P&gt;However, I screwed up and prepended a dummy location with "Locations#All Locations" instead of the proper "Location#All Locations". And then I must have set this to be a default parameter, so a bunch of live devices ended up in it.&lt;/P&gt;&lt;P&gt;Now I can't figure out how to remove it from these devices.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;{
    "NetworkDevice": {
        "id": "bb96eb00-93e3-11e9-8806-005056aa563a",
        "name": "119.1UX2.1",
        "description": "Script-generated by pjuul on 2019-06-21 07:16:32.087453",
[..]
        "NetworkDeviceGroupList": [
            "Device Type#All Device Types#HP#HP_2810",
            "Location#All Locations#SAMF_LAN",
            "IPSEC#Is IPSEC Device",
            "Locations#All Locations#SAMF_LAN#MIDDLE_EARTH"
        ]
    }
}&lt;/PRE&gt;&lt;P&gt;I've tried PUT'ing an update in which the NetworkDeviceGroupList was reduced like this:&lt;/P&gt;&lt;PRE&gt;        "NetworkDeviceGroupList": [
            "Device Type#All Device Types#HP#HP_2810",
            "Location#All Locations#SAMF_LAN",
            "IPSEC#Is IPSEC Device"        
        ]&lt;/PRE&gt;&lt;P&gt;But that didn't work.&lt;/P&gt;&lt;P&gt;Any suggestions? I guess the tough way is to delete and rebuild the devices, but I'd prefer a softer touch.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 10:38:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/deleting-updating-elements-from-networkdevicegrouplist-using-ise/m-p/4009342#M454617</guid>
      <dc:creator>rockbear</dc:creator>
      <dc:date>2020-01-10T10:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting/updating elements from NetworkDeviceGroupList using ISE ERS API</title>
      <link>https://community.cisco.com/t5/network-access-control/deleting-updating-elements-from-networkdevicegrouplist-using-ise/m-p/4010912#M454620</link>
      <description>&lt;P&gt;[2020-01-18]&amp;nbsp;CSCvs72758 filed to track this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got a similar result like below in the response for my update request.&lt;/P&gt;
&lt;PRE style="color: #000000; background: #ffffff;"&gt;&lt;SPAN style="color: #000000;"&gt;{
   "UpdatedFieldsList":{
      "updatedField":[
         {
            "field":"NetworkDeviceGroupList",
            "oldValue":"item removed: Name:Locations#All Locations#SAMF_LAN2 ,Type:Locations, NSF REF: &lt;/SPAN&gt;&lt;FONT color="#008c00"&gt;&lt;SPAN style="caret-color: #008c00;"&gt;ABC&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;"
         },
         {
            "field":"NetworkDeviceGroupList",
            "newValue":"item added: Name:Locations#All Locations ,Type:Locations, NSF REF: &lt;/FONT&gt;&lt;FONT color="#008c00"&gt;&lt;SPAN style="caret-color: #008c00;"&gt;XYZ&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;"
         }
      ]
   }
}
&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;It's moving the NDG attribute to the root one. I am able to delete the child NDG one-by-one from the leave level but not the root NDG. Then, I have to either use the ISE admin UI on each NAD to "Set to Default" for the particular NDG or export the devices to a CSV, remove the extra NDG in the CSV, and then re-import it with the option to overwrite.&lt;/P&gt;
&lt;P&gt;It seems to me either a bug or an enhancement for that particular ERS API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 17:38:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/deleting-updating-elements-from-networkdevicegrouplist-using-ise/m-p/4010912#M454620</guid>
      <dc:creator>hslai</dc:creator>
      <dc:date>2020-01-18T17:38:56Z</dc:date>
    </item>
  </channel>
</rss>

