<?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 Multi-Context ASA Automation (REST-API) in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/multi-context-asa-automation-rest-api/m-p/4096887#M24</link>
    <description>&lt;P&gt;I try to automate ASA management tasks and I'm very successful using the REST-API on ASAs.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Unfortunately this is limited to single context ASA (&lt;A href="https://bst.cloudapps.cisco.com/bugsearch/bug/CSCve51857" target="_self"&gt;CSCve51857&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the documentation REST on multi context ASAs is limited to the CLI-API&lt;/P&gt;&lt;PRE&gt;.../api/cli?context=&amp;lt;context&amp;gt;&lt;/PRE&gt;&lt;P&gt;but I can't get it to work. I just receive "500 Internal Server Error" for code working fine on non-context ASA. BTW: ".../doc/" doesn't work either, but ".../api/tokenservices" does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only workaround I found is to fall back to&lt;/P&gt;&lt;PRE&gt;.../admin/exec/changeto+context+blah/put+command+here&lt;/PRE&gt;&lt;P&gt;and split my commands into small chunks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not the way I like to program in 2020. It's not much better than writing expect scripts.&lt;/P&gt;&lt;P&gt;Is there another way to automate ASA with contexts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2020 13:52:44 GMT</pubDate>
    <dc:creator>ANDREAS LIEBE</dc:creator>
    <dc:date>2020-06-03T13:52:44Z</dc:date>
    <item>
      <title>Multi-Context ASA Automation (REST-API)</title>
      <link>https://community.cisco.com/t5/network-security/multi-context-asa-automation-rest-api/m-p/4096887#M24</link>
      <description>&lt;P&gt;I try to automate ASA management tasks and I'm very successful using the REST-API on ASAs.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Unfortunately this is limited to single context ASA (&lt;A href="https://bst.cloudapps.cisco.com/bugsearch/bug/CSCve51857" target="_self"&gt;CSCve51857&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the documentation REST on multi context ASAs is limited to the CLI-API&lt;/P&gt;&lt;PRE&gt;.../api/cli?context=&amp;lt;context&amp;gt;&lt;/PRE&gt;&lt;P&gt;but I can't get it to work. I just receive "500 Internal Server Error" for code working fine on non-context ASA. BTW: ".../doc/" doesn't work either, but ".../api/tokenservices" does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only workaround I found is to fall back to&lt;/P&gt;&lt;PRE&gt;.../admin/exec/changeto+context+blah/put+command+here&lt;/PRE&gt;&lt;P&gt;and split my commands into small chunks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not the way I like to program in 2020. It's not much better than writing expect scripts.&lt;/P&gt;&lt;P&gt;Is there another way to automate ASA with contexts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 13:52:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/multi-context-asa-automation-rest-api/m-p/4096887#M24</guid>
      <dc:creator>ANDREAS LIEBE</dc:creator>
      <dc:date>2020-06-03T13:52:44Z</dc:date>
    </item>
  </channel>
</rss>

