cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
389
Views
1
Helpful
1
Replies

SDA host on-boarding user-device API POST failed

erwindebrouwer
Level 1
Level 1

Hi community,

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" (link to API docs) 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).

I looked for bugs but all I can find are not recent and should be fixed running DNA Center version is 2.3.3.4-72142. Am I missing something, anyone? 

Request:

POST https://{{host}}:{{port}}/dna/intent/api/v1/business/sda/hostonboarding/user-device

Body

 

{
    "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"
}

 

Response:

Status: 400 Bad Request

Body

 

{
    "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"
}

 

 All help is appreciated. Thanks!

1 Reply 1

erwindebrouwer
Level 1
Level 1

Update: Seems that there is an issue regarding this POST API when targeting a switch/port that is allocated to a Fabric Zone. When I allocate the switch/port to a regular Fabric Site or building the POST method API works just fine.

Anyone who can confirm this behavior?