<?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 Prime 3.0 - API - PUT devices/bulkImport not functional as expected in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/prime-3-0-api-put-devices-bulkimport-not-functional-as-expected/m-p/3507767#M1170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to utilise the PUT devices/bulkImport method that is documented in the Prime 3.0 API (/webacs/api/v1/op/devices/bulkImport-PUT?_docs). There seems to be issues related around using the &lt;STRONG&gt;credentialProfileName&lt;/STRONG&gt; parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the documentation there is the following warning:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;There is limitation on attaching imported device to the credential profile. If credentialProfileNameparameter is given and is not empty, this device &lt;STRONG&gt;must not&lt;/STRONG&gt; contain any other credential parameters. Parameters allowed to be used with credentialProfileName are: ipAddress, networkMask, and udfs. If any credential parameter is set along with credentialProfileName, the entire import operation will fail; none of the devices in the import request will be added or updated.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;I've tried sending the following json structure which then creates a job within prime to import the device. &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;device = {&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "devicesImport": {&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "devices": {&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "device": [{&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "credentialProfileName": 'ACS',&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ipAddress": "172.16.136.202",&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;} &lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;The job always then fails, with an error regarding the missing SNMP community string, which I thought would have been contained in the related credential profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I define the snmp credentials (which the doco states not to when using the credentialProfileName), the device will be imported fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The credential profile name that is being used is the exact same as defined in Inventory &amp;gt; Device Management &amp;gt; Credential Profile. Image attached of the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the wrong name to be using? It seems the credentialProfileName parameter is not functioning as I'd expect after reviewing the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 10:54:46 GMT</pubDate>
    <dc:creator>uqlmiskin</dc:creator>
    <dc:date>2015-09-22T10:54:46Z</dc:date>
    <item>
      <title>Prime 3.0 - API - PUT devices/bulkImport not functional as expected</title>
      <link>https://community.cisco.com/t5/controllers/prime-3-0-api-put-devices-bulkimport-not-functional-as-expected/m-p/3507767#M1170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to utilise the PUT devices/bulkImport method that is documented in the Prime 3.0 API (/webacs/api/v1/op/devices/bulkImport-PUT?_docs). There seems to be issues related around using the &lt;STRONG&gt;credentialProfileName&lt;/STRONG&gt; parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the documentation there is the following warning:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;There is limitation on attaching imported device to the credential profile. If credentialProfileNameparameter is given and is not empty, this device &lt;STRONG&gt;must not&lt;/STRONG&gt; contain any other credential parameters. Parameters allowed to be used with credentialProfileName are: ipAddress, networkMask, and udfs. If any credential parameter is set along with credentialProfileName, the entire import operation will fail; none of the devices in the import request will be added or updated.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;I've tried sending the following json structure which then creates a job within prime to import the device. &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;device = {&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "devicesImport": {&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "devices": {&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "device": [{&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "credentialProfileName": 'ACS',&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ipAddress": "172.16.136.202",&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;} &lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;The job always then fails, with an error regarding the missing SNMP community string, which I thought would have been contained in the related credential profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I define the snmp credentials (which the doco states not to when using the credentialProfileName), the device will be imported fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The credential profile name that is being used is the exact same as defined in Inventory &amp;gt; Device Management &amp;gt; Credential Profile. Image attached of the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the wrong name to be using? It seems the credentialProfileName parameter is not functioning as I'd expect after reviewing the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 10:54:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-3-0-api-put-devices-bulkimport-not-functional-as-expected/m-p/3507767#M1170</guid>
      <dc:creator>uqlmiskin</dc:creator>
      <dc:date>2015-09-22T10:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Prime 3.0 - API - PUT devices/bulkImport not functional as expected</title>
      <link>https://community.cisco.com/t5/controllers/prime-3-0-api-put-devices-bulkimport-not-functional-as-expected/m-p/3507768#M1171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the report.&amp;nbsp; This should be working but there seems to be a regression in PI 3.0.&amp;nbsp; I've created CSCuw38628 to track this issue while I look into it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 23:09:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-3-0-api-put-devices-bulkimport-not-functional-as-expected/m-p/3507768#M1171</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2015-09-23T23:09:33Z</dc:date>
    </item>
  </channel>
</rss>

