<?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 Provision network settings to device in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/provision-network-settings-to-device/m-p/4104774#M9126</link>
    <description>&lt;P&gt;I'm currently developing a script for automating the process of bringing up a new location i DNA-C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following steps are completed:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Discover device(s) on the location&lt;/LI&gt;&lt;LI&gt;Create site hierarchy&lt;/LI&gt;&lt;LI&gt;Assign device(s) to the created site&lt;/LI&gt;&lt;LI&gt;Software image distribution&lt;/LI&gt;&lt;LI&gt;Software image activation&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The next step would be:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Provision network settings (AAA Server, DHCP Server, DNS Server, SYSLOG Server, SNMP Server etc.) on to the device&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The GUI version of doing it would be:&lt;/P&gt;&lt;P&gt;PROVISION – Actions – Provision – Provision Device, and then just Next – Next - Deploy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not been able to figure out what API call to use to make this step happen. Are there anyone out there that has this knowledge and is willing to share?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Havard Stubberud&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 10:30:32 GMT</pubDate>
    <dc:creator>Havard Stubberud</dc:creator>
    <dc:date>2020-06-17T10:30:32Z</dc:date>
    <item>
      <title>Provision network settings to device</title>
      <link>https://community.cisco.com/t5/network-platform-api/provision-network-settings-to-device/m-p/4104774#M9126</link>
      <description>&lt;P&gt;I'm currently developing a script for automating the process of bringing up a new location i DNA-C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following steps are completed:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Discover device(s) on the location&lt;/LI&gt;&lt;LI&gt;Create site hierarchy&lt;/LI&gt;&lt;LI&gt;Assign device(s) to the created site&lt;/LI&gt;&lt;LI&gt;Software image distribution&lt;/LI&gt;&lt;LI&gt;Software image activation&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The next step would be:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Provision network settings (AAA Server, DHCP Server, DNS Server, SYSLOG Server, SNMP Server etc.) on to the device&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The GUI version of doing it would be:&lt;/P&gt;&lt;P&gt;PROVISION – Actions – Provision – Provision Device, and then just Next – Next - Deploy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not been able to figure out what API call to use to make this step happen. Are there anyone out there that has this knowledge and is willing to share?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Havard Stubberud&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 10:30:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/provision-network-settings-to-device/m-p/4104774#M9126</guid>
      <dc:creator>Havard Stubberud</dc:creator>
      <dc:date>2020-06-17T10:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Provision network settings to device</title>
      <link>https://community.cisco.com/t5/network-platform-api/provision-network-settings-to-device/m-p/4151634#M9127</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/256319"&gt;@Havard Stubberud&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The easiest way of accomplishing this would be to use a template which deploys those network settings to the device. In the API, there is no "provisioning" of a device, only "deployment" of a template.&lt;/P&gt;&lt;P&gt;The operation is a POST to "&lt;A href="https://community.cisco.com/" target="_blank"&gt;https://&amp;lt;YOUR_DNA_CENTER&amp;gt;/dna/intent/api/v1/template-programmer/template/deploy"&lt;/A&gt;. And I've attached the schema below.&lt;/P&gt;&lt;PRE&gt;{
    "forcePushTemplate": "boolean",
    "isComposite": "boolean",
    "mainTemplateId": "string",
    "memberTemplateDeploymentInfo": [
        null
    ],
    "targetInfo": [
        {
            "hostName": "string",
            "id": "string",
            "params": {},
            "type": "string"
        }
    ],
    "templateId": "string"
}&lt;/PRE&gt;&lt;P&gt;To my frustration, I haven't ever been able to include more than one target, so you may have to issue a POST for each device you're "provisioning". Even worse, I have been unsuccessful in getting the deployment to take at all. Looks like the softwareType, deviceType, and softwareVersion are more sensitive than in the GUI.&lt;/P&gt;&lt;P&gt;Your post was made awhile ago, if you've successfully gotten this operation working, we could all use the secret sauce.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 20:33:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/provision-network-settings-to-device/m-p/4151634#M9127</guid>
      <dc:creator>Kenneth.Grace</dc:creator>
      <dc:date>2020-09-15T20:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Provision network settings to device</title>
      <link>https://community.cisco.com/t5/network-platform-api/provision-network-settings-to-device/m-p/4152491#M9128</link>
      <description>&lt;P&gt;Thank you! Looking forward to testing your solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been in contact with TAC, and they told me there is currently no plans for implementing these APIs. I am also running a case with Cisco here in Norway.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 07:23:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/provision-network-settings-to-device/m-p/4152491#M9128</guid>
      <dc:creator>Havard Stubberud</dc:creator>
      <dc:date>2020-09-17T07:23:27Z</dc:date>
    </item>
  </channel>
</rss>

