<?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: Prime using database variables with api call in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/prime-using-database-variables-with-api-call/m-p/3566740#M1474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Cisco Prime 3.1 and i haven't installed any patch. So far i haven't experienced any problems with the API. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2017 09:30:54 GMT</pubDate>
    <dc:creator>tmkobayashi</dc:creator>
    <dc:date>2017-01-25T09:30:54Z</dc:date>
    <item>
      <title>Prime using database variables with api call</title>
      <link>https://community.cisco.com/t5/controllers/prime-using-database-variables-with-api-call/m-p/3566738#M1472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i've been trying to use database variables in cisco prime. Here is what i got, a simple test template:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#foreach ($interfaceName in $interfaceNameList)&lt;/P&gt;&lt;P&gt;&amp;nbsp; #if($interfaceName == "GigabitEthernet1/6")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interface $interfaceName &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; description 'teste database'&lt;/P&gt;&lt;P&gt;&amp;nbsp; #end&lt;/P&gt;&lt;P&gt;#end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a deploy this template directly from cisco prime, the deployment is successfull. However, when i try to deploy it from a api call i get this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"No Hibernate Session bound to thread., and configuration does not allow creation of non-transactional one here"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the curl call: &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -k -v -H "Content-Type: application/json" -X PUT --data-binary "@testeDatabase.json" -u user:password &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://ip/webacs/api/v1/op/clitemplateConfiguration/deployTemplateThroughJob.json" rel="nofollow" target="_blank"&gt;https://ip/webacs/api/v1/op/clitemplateConfiguration/deployTemplateThroughJob.json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:46:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-using-database-variables-with-api-call/m-p/3566738#M1472</guid>
      <dc:creator>tmkobayashi</dc:creator>
      <dc:date>2017-01-24T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Prime using database variables with api call</title>
      <link>https://community.cisco.com/t5/controllers/prime-using-database-variables-with-api-call/m-p/3566739#M1473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of PI are you using?&amp;nbsp; Which patches, if any, have you applied?&amp;nbsp; Are you experiencing problems with any other API resources?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 20:50:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-using-database-variables-with-api-call/m-p/3566739#M1473</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2017-01-24T20:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Prime using database variables with api call</title>
      <link>https://community.cisco.com/t5/controllers/prime-using-database-variables-with-api-call/m-p/3566740#M1474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Cisco Prime 3.1 and i haven't installed any patch. So far i haven't experienced any problems with the API. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 09:30:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-using-database-variables-with-api-call/m-p/3566740#M1474</guid>
      <dc:creator>tmkobayashi</dc:creator>
      <dc:date>2017-01-25T09:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Prime using database variables with api call</title>
      <link>https://community.cisco.com/t5/controllers/prime-using-database-variables-with-api-call/m-p/3566741#M1475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, OK.&amp;nbsp; Can you please try restarting the server?&amp;nbsp; If the problem persists, please capture the logs (via the UI, Administration &amp;gt; Logging then click the download logs button, it will take some time).&amp;nbsp; My email address is available on my profile (just be sure to login first), please email me and I can provide you with an upload location if you don't already have one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 17:00:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-using-database-variables-with-api-call/m-p/3566741#M1475</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2017-01-25T17:00:00Z</dc:date>
    </item>
  </channel>
</rss>

