02-26-2024 04:24 AM
Hello everyone,
I'm currently trying to use the API of the DNA center to claim an AP. It's working but I'm unable to set the hostname during the claim...
I'm using dnacentersdk like this :
configInfo = [{'configId': 'b6a0cea9-6819-44f7-9f78-1e7dfb8844f4', 'configParameters': [{'key': 'hostname', 'value': 'ap_meeting_room'}]}]
dnac.device_onboarding_pnp.claim_a_device_to_a_site(rfProfile="CUSTOM", type="AccessPoint",siteId="ab6ce17a-eb3b-41ec-96ef-4b76ea6073c9", deviceId="65dc7be2eae4536cdc0e888e", configInfo=configInfo)
The AP is successfuly claimed but the hostname is not applied and the AP is configured with the default hostname AP-XXXX-XXX-XXX
Can you help me ?
02-28-2024 01:41 PM
It looks like this is expected behavior. In the "Description" of the API it does not list configInfo as a "required parameter" for AccessPoints:
https://developer.cisco.com/docs/dna-center/#!claim-a-device-to-a-site
In theory though, you can followup the pnp claim with a call to wireless/accesspoint-configuration API to apply the hostname to the AP.
03-04-2024 01:35 AM
Thanks, it's working
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