06-28-2018 05:24 AM - edited 03-03-2019 08:50 AM
I have a large list of sites that I need to add to DNA, is there an api call to do this? I haven't seen one in the documentation.
07-02-2018 07:31 AM
There is a way to onboard devices in DNA center. Please see the link for user guide for device onboarding process, there are every step for every device listed: https://www.cisco.com/c/en/us/td/docs/cloud-systems-management/network-automation-and-management/dna-center/1-1/user_guide/b_dnac_ug_1_1/b_dnac_ug_1_1_chapter_0111.html If you want to onboard sites, or all devices and everything updated in sites earlier I would ask you, did you do that using prime?, if yes: then you can upload CSV file for that purpose thats for prime customer 3.2 and above. Let me know if you have any questions. All the functions of prime are integrated into DNA center, so you can get all the same capabilities in here.
07-02-2018 07:35 AM
I have created the sites and building programmatically in DNAC, what I am looking to do now is when I scan for new devices automatically add them to the appropriate site via api, we have a lot of sites to add and running manual steps will be very time consuming.
07-02-2018 10:21 AM
There are a couple of different APIs that will provide the functionality you are looking for:
1. api/v1/discovery - provides the ability to create and trigger a discovery.
2. api/v1/group/{id}/member - add a device to a site
You should be able to find the APIs - https://{{your_dna_center}}/dna/apitester
Jeff
07-02-2018 10:25 AM
Thank you I will try this, I may have further questions.
07-02-2018 11:02 AM
That is possible by using the discovery feature. I get that you have large list of sites and want to add devices to different sites, Well we have a perfect tool for that is Discovery, there are two ways one is by CDP , Other is IP address range. This way you can search devices available in those sites which will be automatically discovered and available in the dashboard, if you want you can also filter out devices not to be included. Hope this helps.
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