01-06-2023 07:47 AM
Hi folks,
I try to move devices from the 'Unassigned Devices' section to the correct site but even though the business-api returns OK the device still remains in the 'Unassigned Devices' section.
First I tried the dnacentersdk 2.3.3.0, then I moved to bare calls via python request library but both report for the task
'message': 'The request has been accepted for execution'
and for the query to 'executionStatusUrl': '/dna/platform/management/business-api/v1/execution-status/.... I get
'bapiName': 'AssignDeviceToSite',
'status': 'SUCCESS',
Has anyone managed to successfully move a newly added device to a site ?
03-07-2023 11:30 AM
Hi, thanks for your reply. I’ll give it a try. But since the device is not assigned to a site yet will it be visible under any site then?
I trying to list out unassigned device. They are not assigned to any site yet. If you understand me.
03-07-2023 01:00 PM
Let's say you have 2 sites and you have added 10 devices, 7 assigned 3 not assigned.
Use /dna/intent/api/v1/network-device you get all 10 devices and use /dna/intent/api/v1/membership/${siteId} to query all sites you get 7 assigned devices.
Then you can find out those 3 assigned devices, of cause some programming logic is needed.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide