<?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: How to execute BULK DELETE operation using Cisco ISE API? in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889886#M471536</link>
    <description>Please edit and separate appropriate&lt;BR /&gt;</description>
    <pubDate>Sun, 14 Jul 2019 15:44:59 GMT</pubDate>
    <dc:creator>Jason Kunst</dc:creator>
    <dc:date>2019-07-14T15:44:59Z</dc:date>
    <item>
      <title>How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889684#M471516</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to implement a bulk delete of Endpoints via Cisco ISE API (v2.4). I have to admit, it's a challenging task because API documentation is really poor when it comes to Bulk operations. In particular, all examples provided relate to BULK CREATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to re-use the same XML templates, but only gone as far as this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;&lt;BR /&gt;&amp;lt;ns4:endpointBulkRequest operationType="delete" resourceMediaType="vnd.com.cisco.ise.identity.endpoint.1.0+xml" xmlns:ns6="sxp.ers.ise.cisco.com" xmlns:ns5="trustsec.ers.ise.cisco.com" xmlns:ns8="network.ers.ise.cisco.com" xmlns:ns7="anc.ers.ise.cisco.com" xmlns:ers="ers.ise.cisco.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns4="identity.ers.ise.cisco.com"&amp;gt;&lt;BR /&gt;  &amp;lt;ns4:resourcesList&amp;gt;&lt;BR /&gt;    &amp;lt;ns4:endpoint id="9e2edb00-6903-11e9-9573-46a7fd05b425"&amp;gt;&lt;BR /&gt;      &amp;lt;mac&amp;gt;&amp;lt;/mac&amp;gt;&lt;BR /&gt;      &amp;lt;mdmAttributes&amp;gt;&amp;lt;/mdmAttributes&amp;gt;&lt;BR /&gt;      &amp;lt;portalUser&amp;gt;&amp;lt;/portalUser&amp;gt;&lt;BR /&gt;      &amp;lt;profileId&amp;gt;&amp;lt;/profileId&amp;gt;&lt;BR /&gt;      &amp;lt;staticGroupAssignment&amp;gt;false&amp;lt;/staticGroupAssignment&amp;gt;&lt;BR /&gt;      &amp;lt;staticProfileAssignment&amp;gt;false&amp;lt;/staticProfileAssignment&amp;gt;&lt;BR /&gt;    &amp;lt;/ns4:endpoint&amp;gt;&lt;BR /&gt;    &amp;lt;ns4:endpoint id="63e2e5e0-6908-11e9-9573-46a7fd05b425"&amp;gt;&lt;BR /&gt;      &amp;lt;mac&amp;gt;&amp;lt;/mac&amp;gt;&lt;BR /&gt;      &amp;lt;mdmAttributes&amp;gt;&amp;lt;/mdmAttributes&amp;gt;&lt;BR /&gt;      &amp;lt;portalUser&amp;gt;&amp;lt;/portalUser&amp;gt;&lt;BR /&gt;      &amp;lt;profileId&amp;gt;&amp;lt;/profileId&amp;gt;&lt;BR /&gt;      &amp;lt;staticGroupAssignment&amp;gt;false&amp;lt;/staticGroupAssignment&amp;gt;&lt;BR /&gt;      &amp;lt;staticProfileAssignment&amp;gt;false&amp;lt;/staticProfileAssignment&amp;gt;&lt;BR /&gt;    &amp;lt;/ns4:endpoint&amp;gt;&lt;BR /&gt;  &amp;lt;/ns4:resourcesList&amp;gt;&lt;BR /&gt;&amp;lt;/ns4:endpointBulkRequest&lt;/PRE&gt;&lt;P&gt;However, when I try this snippet in the Postman, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;  "ERSResponse": {&lt;BR /&gt;    "operation": "PUT-executeBulk-endpoint",&lt;BR /&gt;    "messages": [&lt;BR /&gt;      {&lt;BR /&gt;        "title": "invalid bulk request - resources list is not allowed for delete operation",&lt;BR /&gt;        "type": "ERROR",&lt;BR /&gt;        "code": "Application resource validation exception"&lt;BR /&gt;      }&lt;BR /&gt;    ],&lt;BR /&gt;    "link": {&lt;BR /&gt;      "rel": "related",&lt;BR /&gt;      "href": "https://lab-ise-2x-1.w1.lab:9060/ers/config/endpoint/bulk/submit",&lt;BR /&gt;      "type": "application/xml"&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;When I've read API docs, I found this confusing text:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two types of bulk request available: 1) operation that requires the resource XML itself like creating or updating a resource. 2) &lt;STRONG&gt;Operation that requires the only resource id like delete, register endpoint, email guestuser&lt;/STRONG&gt; etc... The bulk request supports 500 resources of the first type or 5000 of the second per a single request. Bulk Operation in ISE 1.3 release is supported for Endpoint and GuestUser. Please Check The API Documentation section for more details about each specific request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does it mean? Doea it mean I have to create a BULK request somehow separately and then execute it with SINGLE resource ID of that request? Or does it mean I have to provide a list of resource IDs only for the request to be successful? My understanding of BULK operations is that I have to provide a list of resource IDs and operation type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I do this via XML? What is the template for DELETE operation?&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;</description>
      <pubDate>Fri, 21 Feb 2020 19:07:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889684#M471516</guid>
      <dc:creator>Tymofii Dmytrenko</dc:creator>
      <dc:date>2020-02-21T19:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889761#M471519</link>
      <description>&lt;P&gt;See&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://community.cisco.com/t5/identity-services-engine-ise/how-to-bulk-deletebyid-guestusers-on-ise-2-4/m-p/3754404/highlight/true#M21144" target="_blank" rel="noopener"&gt;Solved: Re: How to BULK DeleteById GuestUsers o... - Cisco Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try sending the following as the body of the the PUT request to https://&amp;lt;isePPAN&amp;gt;:9060/config/endpoint/bulk with the usual HTTP headers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE style="color: #000000; background: #ffffff;"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN style="color: #000084;"&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN style="color: #000084; font-weight: bold;"&gt;xml&lt;/SPAN&gt; &lt;SPAN style="color: #000084;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="color: #000084;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000084; font-weight: bold;"&gt;1.0&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #000084;"&gt;encoding&lt;/SPAN&gt;&lt;SPAN style="color: #000084;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;utf-8&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #000084;"&gt;standalone&lt;/SPAN&gt;&lt;SPAN style="color: #000084;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000084; font-weight: bold;"&gt;yes&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000084;"&gt;?&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="color: #7f0055;"&gt;&amp;lt;&lt;/SPAN&gt;ns4:&lt;SPAN style="color: #7f0055;"&gt;endpointBulkRequest&lt;/SPAN&gt; operationType=&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Delete&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt; resourceMediaType=&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;vnd.com.cisco.ise.identity.endpoint.1.0+xml&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt; xmlns:xs=&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;http&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #000084; font-weight: bold;"&gt;//&lt;/SPAN&gt;&lt;SPAN style="color: #3f3fbf;"&gt;www.w3.org&lt;/SPAN&gt;&lt;SPAN style="color: #3f3fbf;"&gt;/2001/XMLSchema&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt; xmlns:ns4=&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #3f3fbf;"&gt;identity.ers.ise.cisco.com&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&amp;gt;&lt;/SPAN&gt;
      &lt;SPAN style="color: #7f0055;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;idList&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&amp;gt;&lt;/SPAN&gt;
        &lt;SPAN style="color: #7f0055;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&amp;gt;&lt;/SPAN&gt;c7c05220-a682-11e9-92cd-024294667a96&lt;SPAN style="color: #7f0055;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&amp;gt;&lt;/SPAN&gt;
        &lt;SPAN style="color: #7f0055;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&amp;gt;&lt;/SPAN&gt;c7c50d10-a682-11e9-92cd-024294667a96&lt;SPAN style="color: #7f0055;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&amp;gt;&lt;/SPAN&gt;
      &lt;SPAN style="color: #7f0055;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;idList&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="color: #7f0055;"&gt;&amp;lt;/&lt;/SPAN&gt;ns4:&lt;SPAN style="color: #7f0055;"&gt;endpointBulkRequest&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;/FONT&gt;&lt;/PRE&gt;
&lt;!--Created using ToHtml.com on 2019-07-15 13:47:07 UTC --&gt;</description>
      <pubDate>Mon, 15 Jul 2019 13:49:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889761#M471519</guid>
      <dc:creator>hslai</dc:creator>
      <dc:date>2019-07-15T13:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889765#M471525</link>
      <description>&lt;P&gt;Awesome! It worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot. Why can't this be added to official ERS manual? I wasn't able to find anything apart from BULK CREATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Think I've just noticed a bug. According to ERS docs, when BULK request is successfully accepted, it return 202 Accepted response, with Location header set to URL to check status of this BULK request&lt;/P&gt;&lt;P&gt;I've got 202, but Location was set to &lt;SPAN&gt;&lt;A href="https://lab-ise-2x-1.w1.lab:9060/ers/config/endpoint/bulk/submit/1563059868842" target="_blank"&gt;https://lab-ise-2x-1.w1.lab:9060/ers/config/endpoint/bulk/submit/1563059868842&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/bulk/submit/&amp;lt;id&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use this URL I get 404 not found. Apparently, /submit/ is not required. If I remove it and leave it like&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://lab-ise-2x-1.w1.lab:9060/ers/config/endpoint/bulk/1563059868842" target="_blank"&gt;https://lab-ise-2x-1.w1.lab:9060/ers/config/endpoint/bulk/1563059868842&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then it returns 200 with result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, thanks for your help!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 23:25:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889765#M471525</guid>
      <dc:creator>Tymofii Dmytrenko</dc:creator>
      <dc:date>2019-07-13T23:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889770#M471527</link>
      <description>&lt;P&gt;It might be specific to the release and patch level of your ISE. In my test against a standalone running ISE 2.4 FCS, the Location header in the response is simply https://&amp;lt;ise&amp;gt;:9060/ers/config/endpoint/bulk/&amp;lt;bulkID&amp;gt; but has no /submit in it.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 23:57:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889770#M471527</guid>
      <dc:creator>hslai</dc:creator>
      <dc:date>2019-07-13T23:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889841#M471532</link>
      <description>&lt;P&gt;Possibly just a bug, but I tried few times and every times Location returns invalid URL. It's not a big deal, as I extract Bulk Operation Id using regexp and then build correct URL for status request.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 17:02:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889841#M471532</guid>
      <dc:creator>Tymofii Dmytrenko</dc:creator>
      <dc:date>2019-07-14T17:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889886#M471536</link>
      <description>Please edit and separate appropriate&lt;BR /&gt;</description>
      <pubDate>Sun, 14 Jul 2019 15:44:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889886#M471536</guid>
      <dc:creator>Jason Kunst</dc:creator>
      <dc:date>2019-07-14T15:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889914#M471540</link>
      <description>&lt;P&gt;Done&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate if you guys can help with it: &lt;A href="https://community.cisco.com/t5/identity-services-engine-ise/add-multiple-endpoints-to-a-specific-cisco-ise-identity-group/m-p/3889913" target="_blank"&gt;https://community.cisco.com/t5/identity-services-engine-ise/add-multiple-endpoints-to-a-specific-cisco-ise-identity-group/m-p/3889913&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 17:10:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3889914#M471540</guid>
      <dc:creator>Tymofii Dmytrenko</dc:creator>
      <dc:date>2019-07-14T17:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3890696#M471616</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Think I've just noticed a bug. According to ERS docs, when BULK request is successfully accepted, it return 202 Accepted response, with Location header set to URL to check status of this BULK request
&lt;P&gt;I've got 202, but Location was set to &lt;SPAN&gt;&lt;A href="https://lab-ise-2x-1.w1.lab:9060/ers/config/endpoint/bulk/submit/1563059868842" target="_blank" rel="noopener"&gt;https://lab-ise-2x-1.w1.lab:9060/ers/config/endpoint/bulk/submit/1563059868842&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/bulk/submit/&amp;lt;id&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use this URL I get 404 not found. Apparently, /submit/ is not required. If I remove it and leave it like&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://lab-ise-2x-1.w1.lab:9060/ers/config/endpoint/bulk/1563059868842" target="_blank" rel="noopener"&gt;https://lab-ise-2x-1.w1.lab:9060/ers/config/endpoint/bulk/1563059868842&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Then it returns 200 with result&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;CSCvq53373 opened to track this issue and it might take a day or two before you able to see it.&lt;/P&gt;
&lt;P&gt;I am able to recreate it when the bulk requests made to /ers/config/endpoint/bulk&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;/submit&lt;/STRONG&gt;&lt;/FONT&gt; (with /submit at the end). My earlier tests were all made to&amp;nbsp;/ers/config/endpoint/bulk (without /submit at the end). Thanks for reporting it.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 01:31:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3890696#M471616</guid>
      <dc:creator>hslai</dc:creator>
      <dc:date>2019-07-16T01:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3894338#M471617</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/113005"&gt;@hslai&lt;/a&gt;no problems. The only reason I used that URL is because API documentation specifically says to use /submit at the end.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2019 12:38:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/3894338#M471617</guid>
      <dc:creator>Tymofii Dmytrenko</dc:creator>
      <dc:date>2019-07-21T12:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4043302#M558716</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you give an example of the python code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try this:&lt;/P&gt;&lt;PRE&gt;payload = {&lt;BR /&gt;    &lt;SPAN&gt;"GuestUserBulkRequest"&lt;/SPAN&gt;: {&lt;BR /&gt;        &lt;SPAN&gt;"operationType"&lt;/SPAN&gt;: &lt;SPAN&gt;"delete"&lt;/SPAN&gt;,&lt;BR /&gt;        &lt;SPAN&gt;"resourceMediaType"&lt;/SPAN&gt;: &lt;SPAN&gt;"vnd.com.cisco.ise.identity.guestuser.2.0+xml"&lt;/SPAN&gt;,&lt;BR /&gt;        &lt;SPAN&gt;"idList"&lt;/SPAN&gt;: [{&lt;BR /&gt;            &lt;SPAN&gt;"id"&lt;/SPAN&gt;: &lt;SPAN&gt;"37ca5620-597e-11ea-a01a-c684e6795d45"&lt;/SPAN&gt;}]}}&lt;BR /&gt;url = &lt;SPAN&gt;f'https://&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;host&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;:9060/ers/config/guestuser/bulk/submit'&lt;BR /&gt;&lt;/SPAN&gt;response = requests.get(url, &lt;SPAN&gt;auth&lt;/SPAN&gt;=auth, &lt;SPAN&gt;data&lt;/SPAN&gt;=json.dumps(payload), &lt;SPAN&gt;headers&lt;/SPAN&gt;=headers, &lt;SPAN&gt;verify&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And got error:&lt;/P&gt;&lt;PRE&gt;{'ERSResponse': {'link': {'href': 'https://x.x.x.x:9060/ers/config/guestuser/bulk/submit',
'rel': 'related',
'type': 'application/xml'},
'messages': [{'code': 'Resource not found exception',
'title': "Illegal bulkid 'submit'",
'type': 'ERROR'}],
'operation': 'GET-getBulkStatus-guestuser'}}&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Mar 2020 09:26:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4043302#M558716</guid>
      <dc:creator>noc0000041</dc:creator>
      <dc:date>2020-03-10T09:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4043306#M558717</link>
      <description>&lt;P&gt;Hi. AFAIK Bulk operations do not support JSON. You have to compile and send XML payload for bulk operations. At least, this is what I do (use XML) and it works fine.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 09:41:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4043306#M558717</guid>
      <dc:creator>Tymofii Dmytrenko</dc:creator>
      <dc:date>2020-03-10T09:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4043327#M558720</link>
      <description>&lt;P&gt;Timofii,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;according to API DOCs, bulk request support JSON (strange, but for some reason the section 'resourceList' is not specified):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="api.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/68814i87D352E6373B2264/image-size/large?v=v2&amp;amp;px=999" role="button" title="api.png" alt="api.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried with XML (test.xml):&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&amp;gt;
&amp;lt;ns4:guestUserBulkRequest operationType="delete" resourceMediaType="vnd.com.cisco.ise.identity.guestuser.2.0+xml" xmlns:ns6="sxp.ers.ise.cisco.com" xmlns:ns5="trustsec.ers.ise.cisco.com" xmlns:ns8="network.ers.ise.cisco.com" xmlns:ns7="anc.ers.ise.cisco.com" xmlns:ers="ers.ise.cisco.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns4="identity.ers.ise.cisco.com"&amp;gt;
    &amp;lt;idList&amp;gt;
        &amp;lt;id&amp;gt;37ca5620-597e-11ea-a01a-c684e6795d45&amp;lt;/id&amp;gt;
    &amp;lt;/idList&amp;gt;
&amp;lt;/ns4:guestUserBulkRequest&amp;gt;&lt;/PRE&gt;&lt;P&gt;Python:&lt;/P&gt;&lt;PRE&gt;xml = open('test.xml')
    xml2 = xml.read()
    xml3 = ET.fromstring(xml2)
    payload = ET.tostring(xml3, encoding='utf-8', method='xml')
     url = f'https://{host}:9060/ers/config/guestuser/bulk/submit'
    response = requests.get(url, auth=auth, data=payload, headers=headers, verify=False)&lt;/PRE&gt;&lt;P&gt;But the same error..&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 10:08:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4043327#M558720</guid>
      <dc:creator>noc0000041</dc:creator>
      <dc:date>2020-03-10T10:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4043381#M558725</link>
      <description>&lt;P&gt;I am not using xml module. Here's my code, which works fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;def bulk_delete(self, uuid_list):&lt;BR /&gt;    '''&lt;BR /&gt;    Send bulk request to delete multiple endpoints at once&lt;BR /&gt;    Max IDs in one request is 5000 (Cisco ISE limitation)&lt;BR /&gt;&lt;BR /&gt;    :param uuid_list: List of strings (Cisco ISE Resource IDs)&lt;BR /&gt;    :type uuid_list: List&lt;BR /&gt;    '''&lt;BR /&gt;&lt;BR /&gt;    #: XML BODY Template&lt;BR /&gt;    xml_tpl_body = """&lt;BR /&gt;        &amp;lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&amp;gt;&lt;BR /&gt;        &amp;lt;ns4:endpointBulkRequest operationType="delete" resourceMediaType="vnd.com.cisco.ise.identity.endpoint.1.0+xml" xmlns:ns6="sxp.ers.ise.cisco.com" xmlns:ns5="trustsec.ers.ise.cisco.com" xmlns:ns8="network.ers.ise.cisco.com" xmlns:ns7="anc.ers.ise.cisco.com" xmlns:ers="ers.ise.cisco.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns4="identity.ers.ise.cisco.com"&amp;gt;&lt;BR /&gt;        &amp;lt;idList&amp;gt;{uuid_list}&amp;lt;/idList&amp;gt;&lt;BR /&gt;        &amp;lt;/ns4:endpointBulkRequest&amp;gt;&lt;BR /&gt;    """&lt;BR /&gt;&lt;BR /&gt;    #: XML Item Template&lt;BR /&gt;    xml_tpl_item = "&amp;lt;id&amp;gt;{item}&amp;lt;/id&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;    #: Compile XML Templates&lt;BR /&gt;    xml_list = [xml_tpl_item.format(item=uuid) for uuid in uuid_list]&lt;BR /&gt;    xml_body = xml_tpl_body.format(uuid_list="".join(xml_list)).strip()&lt;BR /&gt;&lt;BR /&gt;    #: Send API Request&lt;BR /&gt;    response = self._request(&lt;BR /&gt;        'PUT',&lt;BR /&gt;        self.calls['bulk'],&lt;BR /&gt;        content_type='application/xml',&lt;BR /&gt;        data=xml_body&lt;BR /&gt;    )&lt;BR /&gt;&lt;BR /&gt;    #: Return False if API Request has failed&lt;BR /&gt;    if not response:&lt;BR /&gt;        return False&lt;BR /&gt;&lt;BR /&gt;    #: Extract and Return Bulk Operation ID&lt;BR /&gt;    op_id = re.search(&lt;BR /&gt;        "/([0-9]+)$",&lt;BR /&gt;        response.headers['Location']&lt;BR /&gt;    )&lt;BR /&gt;&lt;BR /&gt;    return op_id.group(1)&lt;/PRE&gt;&lt;P&gt;I hope it will help you&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 11:53:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4043381#M558725</guid>
      <dc:creator>Tymofii Dmytrenko</dc:creator>
      <dc:date>2020-03-10T11:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4043383#M558726</link>
      <description>&lt;P&gt;I've just noticed that you're using GET and not PUT. That's probably why it's not working.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 11:54:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4043383#M558726</guid>
      <dc:creator>Tymofii Dmytrenko</dc:creator>
      <dc:date>2020-03-10T11:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4043439#M558733</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, I didn’t notice that GETis used instead of PUT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also I removed the quotes &amp;lt;"&amp;gt; from &amp;lt;id&amp;gt;. And&amp;nbsp;now my script also worked!&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&amp;lt;ns4:guestUserBulkRequest operationType="delete" resourceMediaType="vnd.com.cisco.ise.identity.guestuser.2.0+xml" xmlns:ns6="sxp.ers.ise.cisco.com" xmlns:ns5="trustsec.ers.ise.cisco.com" xmlns:ns8="network.ers.ise.cisco.com" xmlns:ns7="anc.ers.ise.cisco.com" xmlns:ers="ers.ise.cisco.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns4="identity.ers.ise.cisco.com"&amp;gt;
    &amp;lt;idList&amp;gt;
        &amp;lt;id&amp;gt;84195042-2a16-11ea-abe2-da3b65da2c0a&amp;lt;/id&amp;gt;
    &amp;lt;/idList&amp;gt;
&amp;lt;/ns4:guestUserBulkRequest&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;headers = {
        'content-type': 'application/xml',
        'accept': 'application/json' }

    xml = open('test.xml')
    xml2 = xml.read()
    xml3 = ET.fromstring(xml2)
    payload = ET.tostring(xml3, encoding='utf-8', method='xml')

    url = f'https://{host}:9060/ers/config/guestuser/bulk/submit'
    response = requests.put(url, auth=auth, data=payload, headers=headers, verify=False)
    print(response.content)&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Mar 2020 13:06:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4043439#M558733</guid>
      <dc:creator>noc0000041</dc:creator>
      <dc:date>2020-03-10T13:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4083241#M560258</link>
      <description>&lt;P&gt;It worked for me too, with ISE 2.4.&amp;nbsp; Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cisco's bulk documentation is bad.&amp;nbsp; There isn't instruction on bulk read, bulk delete.&amp;nbsp; Only instructions on bulk create.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 12:28:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4083241#M560258</guid>
      <dc:creator>pn2020</dc:creator>
      <dc:date>2020-05-11T12:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute BULK DELETE operation using Cisco ISE API?</title>
      <link>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4150631#M562824</link>
      <description>&lt;P&gt;Did anyone try to use bulk create to creat endpoints with custom attributes? It seems to not be possible according to the schema.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 10:27:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/how-to-execute-bulk-delete-operation-using-cisco-ise-api/m-p/4150631#M562824</guid>
      <dc:creator>orp</dc:creator>
      <dc:date>2020-09-14T10:27:16Z</dc:date>
    </item>
  </channel>
</rss>

