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

Cisco DNA Center PNP API - Unable to set AP hostname during claim

osef
Level 1
Level 1

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 ?

2 Replies 2

Preston Chilcote
Cisco Employee
Cisco Employee

 

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.

 

Thanks, it's working