<?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 I created a new python script in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/2967903#M1008700</link>
    <description>&lt;P&gt;I created a new python script that will utilize the API to create a CSV of the Access Control Policy. See the link below for all the &amp;nbsp;FMC Python scripts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;https://github.com/scourge71/fmcapi&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2017 20:50:43 GMT</pubDate>
    <dc:creator>jason_williams</dc:creator>
    <dc:date>2017-01-19T20:50:43Z</dc:date>
    <item>
      <title>Cisco Firepower API</title>
      <link>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/2967902#M1008698</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Firepower Management Center API - Object&amp;nbsp;Management&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;One of my customers, recently migrated to Cisco Firepower Threat Defense. One of the challenges that I ran into was the ASA&amp;nbsp;Configuration&amp;nbsp;migration script from Cisco duplicated objects in Firepower Management Center.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;To delete these objects, required clicking delete for each object. This was a painful and time consuming activity, so I built a python script to delete object utilizing the FMC API. Attached to this blog is a python&amp;nbsp;script that will allow you to delete unused objects. If you need to delete a large number of objects, it will save you time.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 13:14:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/2967902#M1008698</guid>
      <dc:creator>jason_williams</dc:creator>
      <dc:date>2019-03-12T13:14:53Z</dc:date>
    </item>
    <item>
      <title>I created a new python script</title>
      <link>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/2967903#M1008700</link>
      <description>&lt;P&gt;I created a new python script that will utilize the API to create a CSV of the Access Control Policy. See the link below for all the &amp;nbsp;FMC Python scripts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;https://github.com/scourge71/fmcapi&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 20:50:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/2967903#M1008700</guid>
      <dc:creator>jason_williams</dc:creator>
      <dc:date>2017-01-19T20:50:43Z</dc:date>
    </item>
    <item>
      <title>Jason,</title>
      <link>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/2967904#M1008702</link>
      <description>&lt;P&gt;Jason,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Nice scripts. Do you have similar on creating or adding a new access rule to an existing access control policy? Getting the following on my attempt:&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;{"error":{"category":"FRAMEWORK","messages":[{"description":"No data."}],"severity":"WARN"}}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;Of course, my input JSON is probably not correct, since finding good reference for this has been difficult.&lt;/P&gt;
&lt;P class="p1"&gt;Any pointers to additional test scripts, or docs will be a great.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 17:42:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/2967904#M1008702</guid>
      <dc:creator>michmcda</dc:creator>
      <dc:date>2017-03-27T17:42:05Z</dc:date>
    </item>
    <item>
      <title>michmcda,</title>
      <link>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/2967905#M1008704</link>
      <description>&lt;P&gt;&lt;SPAN&gt;michmcda,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;The documentation is lacking. Are you&amp;nbsp;&lt;/SPAN&gt;utilizing the api-explorer built-in to Firepower? I ended up do a lot of trial and error with Postman. Check out the links below too. Also, you can post your JSON syntax, so I can look at it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Postman:&lt;/P&gt;
&lt;P&gt;https://www.getpostman.com&lt;/P&gt;
&lt;P&gt;CDW Blog:&lt;/P&gt;
&lt;P&gt;http://blog.cdw.com/security/programing-ciscos-firepower-6-1-rest-api&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 02:20:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/2967905#M1008704</guid>
      <dc:creator>jason_williams</dc:creator>
      <dc:date>2017-03-29T02:20:56Z</dc:date>
    </item>
    <item>
      <title>michmcda,</title>
      <link>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/2967906#M1008705</link>
      <description>&lt;P&gt;michmcda,&lt;/P&gt;
&lt;P&gt;To be sure of your code can you also provide the script you are using? Couple pointers:&lt;/P&gt;
&lt;P&gt;The method should be PUT with the request URI :&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/api/fmc_config/v1/domain/DomainUUID/policy/accesspolicies/id_of_access_policy_you_are_editing&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;A JSON content example would be :&amp;nbsp;&lt;/P&gt;
&lt;PRE class="prettyprint"&gt;{
  &lt;SPAN class="string"&gt;"name":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"Access Policy to Edit"&lt;/SPAN&gt;,
  &lt;SPAN class="string"&gt;"description":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"Test REST API policy"&lt;/SPAN&gt;,
  &lt;SPAN class="string"&gt;"type":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"AccessPolicy"&lt;/SPAN&gt;,
  &lt;SPAN class="string"&gt;"id":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"&lt;SPAN&gt;id_of_access_policy_you_are_editing&lt;/SPAN&gt;"&lt;/SPAN&gt;,
  &lt;SPAN class="string"&gt;"defaultAction":&lt;/SPAN&gt; {
    &lt;SPAN class="string"&gt;"intrusionPolicy":&lt;/SPAN&gt; {
      &lt;SPAN class="string"&gt;"id":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"id_of_existing_or_new_intrusion_policy"&lt;/SPAN&gt;,
      &lt;SPAN class="string"&gt;"type":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"IntrusionPolicy"&lt;/SPAN&gt;
    },&lt;BR /&gt;&lt;SPAN class="string"&gt;  "type":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"AccessPolicyDefaultAction"&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN class="string"&gt;  "logBegin":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"true/false"&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN class="string"&gt;  "logEnd":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"true/false"&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN class="string"&gt;  "sendEventsToFMC":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"true/false"&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN class="string"&gt;  "action":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"any_allowed_action_enum"&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN class="string"&gt;  "id":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"id_of_default_action",&lt;/SPAN&gt;
    &lt;SPAN class="string"&gt;"variableSet":&lt;/SPAN&gt; {
      &lt;SPAN class="string"&gt;"id":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"id_of_variableSet_to_be_added"&lt;/SPAN&gt;,
      &lt;SPAN class="string"&gt;"type":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"VariableSet"&lt;/SPAN&gt;
    },
    &lt;SPAN class="string"&gt;"snmpConfig":&lt;/SPAN&gt; {
      &lt;SPAN class="string"&gt;"id":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"id_of_snmpConfig_object"&lt;/SPAN&gt;,
      &lt;SPAN class="string"&gt;"type":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"SNMPAlert"&lt;/SPAN&gt;
    },
    &lt;SPAN class="string"&gt;"syslogConfig":&lt;/SPAN&gt; {
      &lt;SPAN class="string"&gt;"id":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"id_of_syslog_object"&lt;/SPAN&gt;,
      &lt;SPAN class="string"&gt;"type":&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"SyslogAlert"&lt;/SPAN&gt;
    },

  }
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Mar 2017 13:20:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/2967906#M1008705</guid>
      <dc:creator>neipatel</dc:creator>
      <dc:date>2017-03-29T13:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: I created a new python script</title>
      <link>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/3175057#M1008708</link>
      <description>&lt;P&gt;got it working..thanks&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2017 02:09:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/3175057#M1008708</guid>
      <dc:creator>prashant dwivedi</dc:creator>
      <dc:date>2017-08-26T02:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: I created a new python script</title>
      <link>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/3176235#M1008709</link>
      <description>&lt;P&gt;Hey Mate,&lt;/P&gt;&lt;P&gt;Need your help please! I need to import pre-filter policy. Do you have any script for the same ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have retrived ACP sucessfully using your script , thanks to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have migrated ASA to FTD and all policies have been migrated as a part of pre-filter policy. its good to import all of them in an excel file for futher reading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2017 05:28:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/3176235#M1008709</guid>
      <dc:creator>prashant dwivedi</dc:creator>
      <dc:date>2017-08-27T05:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco Firepower API</title>
      <link>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/3750128#M1008710</link>
      <description>&lt;P&gt;Hi Jason,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wonderful idea, and it's feature that sound be in the FMC, in my opinon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I am having trouible getting it to run. I have python v3 running on my Windows 10 laptop and get syntax errors when running. Do I need to use a different version of Python?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 16:33:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/3750128#M1008710</guid>
      <dc:creator>GWH-jayohaitchenn</dc:creator>
      <dc:date>2018-11-20T16:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Jason,</title>
      <link>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/3851329#M1008711</link>
      <description>&lt;P&gt;Hello Jason,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can i have a script which will add/remove rules in an ACP from Excel/CSV.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward for ur response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ismail Kalolwala&lt;/P&gt;&lt;P&gt;kalolwalaismail@yahoo.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 07:59:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/3851329#M1008711</guid>
      <dc:creator>ismail_salma1987</dc:creator>
      <dc:date>2019-05-07T07:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: I created a new python script</title>
      <link>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/3851330#M1008712</link>
      <description>&lt;P&gt;Hello Prahant,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can i have the script which adds/remove rules from ACP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ismail Kalolwala&lt;/P&gt;&lt;P&gt;kalolwalaismail@yahoo.com&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 08:01:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-firepower-api/m-p/3851330#M1008712</guid>
      <dc:creator>ismail_salma1987</dc:creator>
      <dc:date>2019-05-07T08:01:14Z</dc:date>
    </item>
  </channel>
</rss>

