<?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 SDA host on-boarding user-device API POST failed in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/sda-host-on-boarding-user-device-api-post-failed/m-p/4683793#M8842</link>
    <description>&lt;P&gt;Hi community,&lt;/P&gt;
&lt;P&gt;I would like to leverage the DNA Center API to configure a port on the SDA network fabric. I am trying to use the "Add Port assignment for user device in SDA Fabric" (&lt;A href="https://developer.cisco.com/docs/dna-center/#!add-port-assignment-for-user-device-in-sda-fabric" target="_self"&gt;link to API docs&lt;/A&gt;) API POST request but I get an unexpected response about the need of a valid fabric site. However, I took the siteNameHierarchy attribute value from GET-method output on another port (same switch).&lt;/P&gt;
&lt;P&gt;I looked for bugs but all I can find are not recent and should be fixed running DNA Center ve&lt;SPAN&gt;rsion is 2.3.3.4-72142.&amp;nbsp;&lt;/SPAN&gt;Am I missing something, anyone?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;POST&amp;nbsp;&lt;SPAN data-offset-key="75jja-0-0"&gt;https://&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN data-offset-key="75jja-1-0"&gt;{{host}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN data-offset-key="75jja-2-0"&gt;:&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN data-offset-key="75jja-3-0"&gt;{{port}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN data-offset-key="75jja-4-0"&gt;/dna/intent/api/v1/business/sda/hostonboarding/user-device&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="75jja-4-0"&gt;Body&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;{
    "deviceManagementIpAddress": "10.1.1.1",
    "siteNameHierarchy": "Global/Some/Site/Name/Hierarchy",
    "interfaceName": "GigabitEthernet1/0/2",
    "dataIpAddressPoolName": "DataVlan_Workstations",
    "authenticateTemplateName": "No Authentication",
    "interfaceDescription": "API config TEST no-auth"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Response:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Status: 400 Bad Request&lt;/P&gt;
&lt;P&gt;Body&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;{
    "status": "failed",
    "description": "Could not find fabric site for this device. Make sure this device is provisioned to a valid fabric site.",
    "taskId": null,
    "taskStatusUrl": "/dna/intent/api/v1/task/null",
    "executionStatusUrl": "/dna/intent/api/v1/dnacaap/management/execution-status/06890fa2-d716-437a-9ad9-xxxxxxxx",
    "executionId": "06890fa2-d716-437a-9ad9-xxxxxxxx"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;All help is appreciated. Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 17:45:48 GMT</pubDate>
    <dc:creator>erwindebrouwer</dc:creator>
    <dc:date>2022-09-08T17:45:48Z</dc:date>
    <item>
      <title>SDA host on-boarding user-device API POST failed</title>
      <link>https://community.cisco.com/t5/network-platform-api/sda-host-on-boarding-user-device-api-post-failed/m-p/4683793#M8842</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;
&lt;P&gt;I would like to leverage the DNA Center API to configure a port on the SDA network fabric. I am trying to use the "Add Port assignment for user device in SDA Fabric" (&lt;A href="https://developer.cisco.com/docs/dna-center/#!add-port-assignment-for-user-device-in-sda-fabric" target="_self"&gt;link to API docs&lt;/A&gt;) API POST request but I get an unexpected response about the need of a valid fabric site. However, I took the siteNameHierarchy attribute value from GET-method output on another port (same switch).&lt;/P&gt;
&lt;P&gt;I looked for bugs but all I can find are not recent and should be fixed running DNA Center ve&lt;SPAN&gt;rsion is 2.3.3.4-72142.&amp;nbsp;&lt;/SPAN&gt;Am I missing something, anyone?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;POST&amp;nbsp;&lt;SPAN data-offset-key="75jja-0-0"&gt;https://&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN data-offset-key="75jja-1-0"&gt;{{host}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN data-offset-key="75jja-2-0"&gt;:&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN data-offset-key="75jja-3-0"&gt;{{port}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN data-offset-key="75jja-4-0"&gt;/dna/intent/api/v1/business/sda/hostonboarding/user-device&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="75jja-4-0"&gt;Body&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;{
    "deviceManagementIpAddress": "10.1.1.1",
    "siteNameHierarchy": "Global/Some/Site/Name/Hierarchy",
    "interfaceName": "GigabitEthernet1/0/2",
    "dataIpAddressPoolName": "DataVlan_Workstations",
    "authenticateTemplateName": "No Authentication",
    "interfaceDescription": "API config TEST no-auth"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Response:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Status: 400 Bad Request&lt;/P&gt;
&lt;P&gt;Body&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;{
    "status": "failed",
    "description": "Could not find fabric site for this device. Make sure this device is provisioned to a valid fabric site.",
    "taskId": null,
    "taskStatusUrl": "/dna/intent/api/v1/task/null",
    "executionStatusUrl": "/dna/intent/api/v1/dnacaap/management/execution-status/06890fa2-d716-437a-9ad9-xxxxxxxx",
    "executionId": "06890fa2-d716-437a-9ad9-xxxxxxxx"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;All help is appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 17:45:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/sda-host-on-boarding-user-device-api-post-failed/m-p/4683793#M8842</guid>
      <dc:creator>erwindebrouwer</dc:creator>
      <dc:date>2022-09-08T17:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: SDA host on-boarding user-device API POST failed</title>
      <link>https://community.cisco.com/t5/network-platform-api/sda-host-on-boarding-user-device-api-post-failed/m-p/4684055#M8843</link>
      <description>&lt;P&gt;Update: Seems that there is an issue regarding this POST API when targeting a switch/port that is allocated to a &lt;STRONG&gt;Fabric &lt;U&gt;Zone&lt;/U&gt;&lt;/STRONG&gt;. When I allocate the switch/port to a regular &lt;STRONG&gt;Fabric &lt;U&gt;Site&lt;/U&gt;&lt;/STRONG&gt; or building the POST method API works just fine.&lt;/P&gt;
&lt;P&gt;Anyone who can confirm this behavior?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 08:44:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/sda-host-on-boarding-user-device-api-post-failed/m-p/4684055#M8843</guid>
      <dc:creator>erwindebrouwer</dc:creator>
      <dc:date>2022-09-09T08:44:20Z</dc:date>
    </item>
  </channel>
</rss>

