<?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: Update Static SGT Mappings via REST in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/4073097#M559866</link>
    <description>Hello, I'm having the same issue.&lt;BR /&gt;Using sxplocalbindings endpoint doesn't solve the issue because&lt;BR /&gt;- field "Deploy To" will not be set&lt;BR /&gt;- the new entry won't correctly propagate to sgmappings endpoint, thus impossible to update Deploy To.&lt;BR /&gt;&lt;BR /&gt;It looks like this is a serious bug.&lt;BR /&gt;Using ISE 2.6</description>
    <pubDate>Fri, 24 Apr 2020 07:38:21 GMT</pubDate>
    <dc:creator>mtrinell</dc:creator>
    <dc:date>2020-04-24T07:38:21Z</dc:date>
    <item>
      <title>Update Static SGT Mappings via REST</title>
      <link>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/3742527#M488457</link>
      <description>&lt;P&gt;Does anyone of the correct JSON body required to update a static SGT mapping via REST.&amp;nbsp; Here is what I am trying:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doing a JSON PUT to my admin node:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #505050; font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;" data-text="true"&gt; &lt;A href="https://10.0.128.237:9060/ers/config/sgmapping/17a7afe2-b3e5-459c-8090-587ed1fb3381" target="_blank"&gt;https://10.0.128.237:9060/ers/config/sgmapping/17a7afe2-b3e5-459c-8090-587ed1fb3381&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The body I am trying to use is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; "SGMapping" : {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "sgt" : "2cd52dd0-85ea-11e8-9fa1-024294424ec9",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "deployTo" : "ALL",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "deployType" : "ALL",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "hostName" : "1.1.1.1"&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The hostName field I think is causing me the issue.&amp;nbsp;&amp;nbsp; I am not sure why I would need to specify the IP or hostname since I am reference the object ID in the URL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any thoughts would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 22:03:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/3742527#M488457</guid>
      <dc:creator>paul</dc:creator>
      <dc:date>2018-11-08T22:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Update Static SGT Mappings via REST</title>
      <link>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/3742535#M488460</link>
      <description>&lt;P&gt;Okay I figured the first part out.&amp;nbsp; I can get it to update or create:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; "SGMapping" : {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "sgt" : "2cd52dd0-85ea-11e8-9fa1-024294424ec9",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "deployTo" : "ALL",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "deployType" : "ALL",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "hostIp" : "3.3.3.3"&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now the only thing I need to figure out is how to set the SXP domain.&amp;nbsp; For static entries I put in the GUI I have the option to set the SXP domain.&amp;nbsp; When I update or add via REST I don't see that option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what the mappings look like when I add/update via REST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/22653i55A5D0E61DC6E8BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3.3.3.3 doesn't have Deploy Via set so it won't get pushed out.&amp;nbsp; Is that a oversight in the REST API?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 22:38:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/3742535#M488460</guid>
      <dc:creator>paul</dc:creator>
      <dc:date>2018-11-08T22:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Update Static SGT Mappings via REST</title>
      <link>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/3742554#M488461</link>
      <description>&lt;P&gt;Okay in playing with this more I found that if I use SGT groups and assign the new device to the group everything works because the groups have the domain set:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; "SGMapping" : {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "mappingGroup" : "d9e414a0-f365-4969-9a03-843debea756d",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "hostIp" : "3.3.3.3/32"&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess is that the SXP domain was an oversight in the SGT REST API.&amp;nbsp; If you can't set the SXP domain there is no point in adding/modifying&amp;nbsp; IP to SGT mapping via REST.&amp;nbsp; For now, unless I hear otherwise, I will have to create an SGT Group for every SGT tag I create.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 22:50:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/3742554#M488461</guid>
      <dc:creator>paul</dc:creator>
      <dc:date>2018-11-08T22:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Update Static SGT Mappings via REST</title>
      <link>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/3742731#M488462</link>
      <description>I believe you can set it under SXP Local Bindings instead of SGT Mappings as below where sxpVpn is the SXP Domain name.&lt;BR /&gt;&lt;BR /&gt;Method:&lt;BR /&gt;&lt;BR /&gt;POST&lt;BR /&gt;&lt;BR /&gt;URI:&lt;BR /&gt;&lt;BR /&gt;https://&lt;IP&gt;&amp;lt;&amp;gt; Address&amp;gt;:9060/ers/config/sxplocalbindings&lt;BR /&gt;&lt;BR /&gt;HTTP 'Content-Type' Header:&lt;BR /&gt;&lt;BR /&gt;application/xml | application/json&lt;BR /&gt;&lt;BR /&gt;HTTP 'Accept' Header:&lt;BR /&gt;&lt;BR /&gt;application/xml | application/json&lt;BR /&gt;&lt;BR /&gt;HTTP 'ERS-Media-Type' Header (Not Mandatory):&lt;BR /&gt;&lt;BR /&gt;sxp.sxplocalbindings.1.0&lt;BR /&gt;&lt;BR /&gt;HTTP 'X-CSRF-TOKEN' Header (Required Only if Enabled from GUI):&lt;BR /&gt;&lt;BR /&gt;The Token value from the GET X-CSRF-TOKEN fetch request&lt;BR /&gt;&lt;BR /&gt;Bulk Support:&lt;BR /&gt;&lt;BR /&gt;Operation 'Create' can be used within Bulk Request.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Request Content:&lt;BR /&gt;XML&lt;BR /&gt;&lt;BR /&gt;&lt;SXPLOCALBINDINGS ns0="sxp.ers.ise.cisco.com" xs="http://www.w3.org/2001/XMLSchema" ns1="ers.ise.cisco.com" ers="ers.ise.cisco.com" description="Description(Optional)"&gt;&lt;BR /&gt;   &lt;BINDINGNAME&gt;SXP Local Binding Name(Optional)&lt;/BINDINGNAME&gt;&lt;BR /&gt;   &lt;IPADDRESSORHOST&gt;ipAddressOrHost&lt;/IPADDRESSORHOST&gt;&lt;BR /&gt;   &lt;SGT&gt;sgt_id&lt;/SGT&gt;&lt;BR /&gt;   &lt;SXPVPN&gt;Sxp Vpn Name&lt;/SXPVPN&gt;&lt;BR /&gt;&lt;/SXPLOCALBINDINGS&gt;&lt;BR /&gt;&lt;BR /&gt;JSON&lt;BR /&gt;{&lt;BR /&gt;  "ERSSxpLocalBindings" : {&lt;BR /&gt;    "description" : "Description(Optional)",&lt;BR /&gt;    "bindingName" : "SXP Local Binding Name(Optional)",&lt;BR /&gt;    "ipAddressOrHost" : "ipAddressOrHost",&lt;BR /&gt;    "sxpVpn" : "Sxp Vpn Name",&lt;BR /&gt;    "sgt" : "sgt_id"&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/IP&gt;</description>
      <pubDate>Fri, 09 Nov 2018 09:25:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/3742731#M488462</guid>
      <dc:creator>Surendra</dc:creator>
      <dc:date>2018-11-09T09:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Update Static SGT Mappings via REST</title>
      <link>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/3742732#M488464</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I believe you can set it using SXP Local Bindings section (Refer ERS API documentation in ISE) instead of IP SGT Mappings as below where sxpVpn is the SXP Domain name.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 09:31:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/3742732#M488464</guid>
      <dc:creator>Surendra</dc:creator>
      <dc:date>2018-11-09T09:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Update Static SGT Mappings via REST</title>
      <link>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/3742843#M488468</link>
      <description>That looks like it will work, but I may just still with the group mapping.  Adding in the SXP binding adds 2-3 more calls vs. just assigning it to a Group mapping.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Nov 2018 13:30:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/3742843#M488468</guid>
      <dc:creator>paul</dc:creator>
      <dc:date>2018-11-09T13:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Update Static SGT Mappings via REST</title>
      <link>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/4073097#M559866</link>
      <description>Hello, I'm having the same issue.&lt;BR /&gt;Using sxplocalbindings endpoint doesn't solve the issue because&lt;BR /&gt;- field "Deploy To" will not be set&lt;BR /&gt;- the new entry won't correctly propagate to sgmappings endpoint, thus impossible to update Deploy To.&lt;BR /&gt;&lt;BR /&gt;It looks like this is a serious bug.&lt;BR /&gt;Using ISE 2.6</description>
      <pubDate>Fri, 24 Apr 2020 07:38:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/update-static-sgt-mappings-via-rest/m-p/4073097#M559866</guid>
      <dc:creator>mtrinell</dc:creator>
      <dc:date>2020-04-24T07:38:21Z</dc:date>
    </item>
  </channel>
</rss>

