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!