<?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: PnP using Python to create rule unable to select image in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/pnp-using-python-to-create-rule-unable-to-select-image/m-p/3438982#M2783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the pointer. I have now modified my list config script to point to images and it works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2016 11:07:44 GMT</pubDate>
    <dc:creator>aevans</dc:creator>
    <dc:date>2016-12-16T11:07:44Z</dc:date>
    <item>
      <title>PnP using Python to create rule unable to select image</title>
      <link>https://community.cisco.com/t5/controllers/pnp-using-python-to-create-rule-unable-to-select-image/m-p/3438980#M2781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working on automating the configuration creation and configuring APIC-EM PnP through the API's. I have found some very helpful stuff on here but I'm struggling to specify the image in the rule creation. I should add I'm very new to all this I only started with python a few days ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody managed to specify this yet and if so could you possibly share how you have called the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using the "imageName", "imageVersion" &amp;amp; "imageId" When I execute my script with "imageId" set it fails to create the rule. I think this may be trying to find the image locally and upload it. I am not after, what I want is to reference the image already uploaded in APIC-EM. If I use the other two it configures the rule but doesn't show the image in the rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the output from the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "platformId": "WS-C2960X-48FPD-L",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "hostName": "GB-N-RLH-SWA-02",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "imageId": "c2960x-universalk9-mz.152-2.E5.bin",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "pkiEnabled": true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "configId": "60ebfe3c-4ecf-456a-9b16-5c8f99f5f789",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "serialNumber": "22345673276",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "imageVersion": "c2960x-universalk9-mz.152-2.E5.bin"&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;Waiting for Task 75e12e6d-5da8-4348-b88b-24c91886ed50&lt;/P&gt;&lt;P&gt;Task=75e12e6d-5da8-4348-b88b-24c91886ed50 has not completed yet. Sleeping 2 seconds...&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "progress": "Site Device (Rule) Creation Failed",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "failureReason": "Failed to get the file",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "startTime": 1481820555925,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "errorCode": "InternalError",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "rootId": "75e12e6d-5da8-4348-b88b-24c91886ed50",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "version": 1481820555925,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "id": "75e12e6d-5da8-4348-b88b-24c91886ed50",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "serviceType": "Ztd Service",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "isError": true,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "endTime": 1481820555977&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ant &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:34:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pnp-using-python-to-create-rule-unable-to-select-image/m-p/3438980#M2781</guid>
      <dc:creator>aevans</dc:creator>
      <dc:date>2019-03-01T12:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: PnP using Python to create rule unable to select image</title>
      <link>https://community.cisco.com/t5/controllers/pnp-using-python-to-create-rule-unable-to-select-image/m-p/3438981#M2782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one of the fundamental principles is to reference objects by ID, not by name.&amp;nbsp; The IOS image needs to be referenced by is UUID (universally unique identifier), not by name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You see UUID used everywhere in the example above...&lt;/P&gt;&lt;P&gt;your configId has a UUID of "&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;60ebfe3c-4ecf-456a-9b16-5c8f99f5f789&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;your task has a UUID of "&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;75e12e6d-5da8-4348-b88b-24c91886ed50&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you need to do is look up the image file, and get it's UUID and put that as the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 20:27:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pnp-using-python-to-create-rule-unable-to-select-image/m-p/3438981#M2782</guid>
      <dc:creator>aradford</dc:creator>
      <dc:date>2016-12-15T20:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: PnP using Python to create rule unable to select image</title>
      <link>https://community.cisco.com/t5/controllers/pnp-using-python-to-create-rule-unable-to-select-image/m-p/3438982#M2783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the pointer. I have now modified my list config script to point to images and it works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 11:07:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pnp-using-python-to-create-rule-unable-to-select-image/m-p/3438982#M2783</guid>
      <dc:creator>aevans</dc:creator>
      <dc:date>2016-12-16T11:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: PnP using Python to create rule unable to select image</title>
      <link>https://community.cisco.com/t5/controllers/pnp-using-python-to-create-rule-unable-to-select-image/m-p/3438983#M2784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great news.&amp;nbsp; Let us know if you have more questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 22:58:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pnp-using-python-to-create-rule-unable-to-select-image/m-p/3438983#M2784</guid>
      <dc:creator>aradford</dc:creator>
      <dc:date>2016-12-20T22:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: PnP using Python to create rule unable to select image</title>
      <link>https://community.cisco.com/t5/controllers/pnp-using-python-to-create-rule-unable-to-select-image/m-p/3438984#M2785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to say a huge thank you to you for your blogs on PnP it's really helped me with the 1st iteration of what I want to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 23:15:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pnp-using-python-to-create-rule-unable-to-select-image/m-p/3438984#M2785</guid>
      <dc:creator>aevans</dc:creator>
      <dc:date>2016-12-20T23:15:00Z</dc:date>
    </item>
  </channel>
</rss>

