<?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: XML Template for REST API bulk adding endpoints with custom attrib in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/xml-template-for-rest-api-bulk-adding-endpoints-with-custom/m-p/4596154#M574267</link>
    <description>&lt;P&gt;You must first define your custom attributes in the ISE GUI - you cannot add/create them via API.&lt;/P&gt;
&lt;P&gt;This is shown in &lt;LI-MESSAGE title="ISE ERS API Examples" uid="3622623" url="https://community.cisco.com/t5/security-documents/ise-ers-api-examples/m-p/3622623#U3622623"&gt;&lt;/LI-MESSAGE&gt; :&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="list-style-type: disc; margin-left: 15px; margin-bottom: 1px;"&gt;&lt;A href="https://community.cisco.com/t5/security-documents/ise-ers-api-examples/ta-p/3622623#toc-hId-835355758" target="_blank" rel="nofollow noopener noreferrer"&gt;Create an Endpoint with Custom Attributes&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="list-style-type: disc; margin-left: 30px; margin-bottom: 1px;"&gt;&lt;A href="https://community.cisco.com/t5/security-documents/ise-ers-api-examples/ta-p/3622623#toc-hId--843015986" target="_blank" rel="nofollow noopener noreferrer"&gt;Define ISE Endpoint Custom Attributes&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="list-style-type: disc; margin-left: 30px; margin-bottom: 1px;"&gt;&lt;A href="https://community.cisco.com/t5/security-documents/ise-ers-api-examples/ta-p/3622623#toc-hId-1644496847" target="_blank" rel="nofollow noopener noreferrer"&gt;Create an Endpoint with Custom Attributes&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Once you have done that, I recommend doing a &lt;FONT face="courier new,courier"&gt;GET&lt;/FONT&gt; on an endpoint with custom attributes to see the format and you can use that for your adding/updating your existing endpoints.&lt;/P&gt;
&lt;P&gt;ISE APIs are publicly documented @ &lt;A href="https://cs.co/ise-api" target="_blank" rel="noopener"&gt;https://cs.co/ise-api&lt;/A&gt; including the one for &lt;FONT face="courier new,courier"&gt;&lt;A href="https://developer.cisco.com/docs/identity-services-engine/v1/#!endpoint" target="_self"&gt;endpoint&lt;/A&gt;&lt;/FONT&gt;.&amp;nbsp; Note that if you open up the POST configuration it provides an example body and by changing the &lt;FONT face="courier new,courier"&gt;Parameter content type&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;application/xml&lt;/FONT&gt; it will show you a complete example including custom attributes:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/149438i37564771C3312A5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 14:10:58 GMT</pubDate>
    <dc:creator>thomas</dc:creator>
    <dc:date>2022-04-20T14:10:58Z</dc:date>
    <item>
      <title>XML Template for REST API bulk adding endpoints with custom attributes</title>
      <link>https://community.cisco.com/t5/network-access-control/xml-template-for-rest-api-bulk-adding-endpoints-with-custom/m-p/4595765#M574250</link>
      <description>&lt;P&gt;I've been able to successfully add endpoints in bulk using the PUT endpoint/bulk/submit API call, but I'm having issues finding an XML template that outlines how to add custom attributes. Can anyone assist? This is what I'm using now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&amp;lt;ns4:endpointBulkRequest operationType="create" resourceMediaType="vnd.com.cisco.ise.identity.endpoint.1.0+xml" xmlns:ns4="identity.ers.ise.cisco.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&amp;gt;
&amp;lt;ns4:resourcesList&amp;gt;
  &amp;lt;ns4:endpoint&amp;gt;
  &amp;lt;groupId&amp;gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxx&amp;lt;/groupId&amp;gt;
  &amp;lt;mac&amp;gt;00:00:00:00:00:AA&amp;lt;/mac&amp;gt;
  &amp;lt;staticGroupAssignment&amp;gt;true&amp;lt;/staticGroupAssignment&amp;gt;
  &amp;lt;staticProfileAssignment&amp;gt;false&amp;lt;/staticProfileAssignment&amp;gt;
 &amp;lt;/ns4:endpoint&amp;gt;
  &amp;lt;ns4:endpoint&amp;gt;
  &amp;lt;groupId&amp;gt;xxxxxxxxxxxxxxxxxxxxx&amp;lt;/groupId&amp;gt;
  &amp;lt;mac&amp;gt;00:00:00:00:00:BB&amp;lt;/mac&amp;gt;
  &amp;lt;staticGroupAssignment&amp;gt;true&amp;lt;/staticGroupAssignment&amp;gt;
  &amp;lt;staticProfileAssignment&amp;gt;false&amp;lt;/staticProfileAssignment&amp;gt;
 &amp;lt;/ns4:endpoint&amp;gt;
&amp;lt;/ns4:resourcesList&amp;gt;
&amp;lt;/ns4:endpointBulkRequest&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Apr 2022 13:40:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/xml-template-for-rest-api-bulk-adding-endpoints-with-custom/m-p/4595765#M574250</guid>
      <dc:creator>jason.w1</dc:creator>
      <dc:date>2022-04-20T13:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: XML Template for REST API bulk adding endpoints with custom attrib</title>
      <link>https://community.cisco.com/t5/network-access-control/xml-template-for-rest-api-bulk-adding-endpoints-with-custom/m-p/4596154#M574267</link>
      <description>&lt;P&gt;You must first define your custom attributes in the ISE GUI - you cannot add/create them via API.&lt;/P&gt;
&lt;P&gt;This is shown in &lt;LI-MESSAGE title="ISE ERS API Examples" uid="3622623" url="https://community.cisco.com/t5/security-documents/ise-ers-api-examples/m-p/3622623#U3622623"&gt;&lt;/LI-MESSAGE&gt; :&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="list-style-type: disc; margin-left: 15px; margin-bottom: 1px;"&gt;&lt;A href="https://community.cisco.com/t5/security-documents/ise-ers-api-examples/ta-p/3622623#toc-hId-835355758" target="_blank" rel="nofollow noopener noreferrer"&gt;Create an Endpoint with Custom Attributes&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="list-style-type: disc; margin-left: 30px; margin-bottom: 1px;"&gt;&lt;A href="https://community.cisco.com/t5/security-documents/ise-ers-api-examples/ta-p/3622623#toc-hId--843015986" target="_blank" rel="nofollow noopener noreferrer"&gt;Define ISE Endpoint Custom Attributes&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="list-style-type: disc; margin-left: 30px; margin-bottom: 1px;"&gt;&lt;A href="https://community.cisco.com/t5/security-documents/ise-ers-api-examples/ta-p/3622623#toc-hId-1644496847" target="_blank" rel="nofollow noopener noreferrer"&gt;Create an Endpoint with Custom Attributes&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Once you have done that, I recommend doing a &lt;FONT face="courier new,courier"&gt;GET&lt;/FONT&gt; on an endpoint with custom attributes to see the format and you can use that for your adding/updating your existing endpoints.&lt;/P&gt;
&lt;P&gt;ISE APIs are publicly documented @ &lt;A href="https://cs.co/ise-api" target="_blank" rel="noopener"&gt;https://cs.co/ise-api&lt;/A&gt; including the one for &lt;FONT face="courier new,courier"&gt;&lt;A href="https://developer.cisco.com/docs/identity-services-engine/v1/#!endpoint" target="_self"&gt;endpoint&lt;/A&gt;&lt;/FONT&gt;.&amp;nbsp; Note that if you open up the POST configuration it provides an example body and by changing the &lt;FONT face="courier new,courier"&gt;Parameter content type&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;application/xml&lt;/FONT&gt; it will show you a complete example including custom attributes:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/149438i37564771C3312A5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 14:10:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/xml-template-for-rest-api-bulk-adding-endpoints-with-custom/m-p/4596154#M574267</guid>
      <dc:creator>thomas</dc:creator>
      <dc:date>2022-04-20T14:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: XML Template for REST API bulk adding endpoints with custom attrib</title>
      <link>https://community.cisco.com/t5/network-access-control/xml-template-for-rest-api-bulk-adding-endpoints-with-custom/m-p/4596168#M574269</link>
      <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help, I should have been a little more verbose in my question. I have been able to create single endpoints with custom attributes using json, the attributes already exist in ISE. It's the XML for the bulk call that was tripping me up. I think I see how to get it working in the screenshot you shared, but my other question is, I'm not able to load the swagger UI. I've tried both&amp;nbsp;&lt;SPAN&gt;https://&lt;/SPAN&gt;&lt;EM&gt;{ise-ip}&lt;/EM&gt;&lt;SPAN&gt;/api/swagger-ui/index.html and also with port 9060, without the port, it just takes me to the admin login, with the port, I get an error that the page cannot be found. Any advice?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 14:34:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/xml-template-for-rest-api-bulk-adding-endpoints-with-custom/m-p/4596168#M574269</guid>
      <dc:creator>jason.w1</dc:creator>
      <dc:date>2022-04-20T14:34:06Z</dc:date>
    </item>
  </channel>
</rss>

