cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1366
Views
0
Helpful
1
Replies

Export Device Configurations DNA Center API

vishal4567
Level 1
Level 1

We are executing the API https://{{DNAC_IP}}/api/v1/network-device-archive/cleartext, and we are able to fetch the device configurations. 

But the configurations fetched are the output of a device as if 'show running-configuration' is executed.

 

Is there a way for us to change the output so that we can get the output "show running-configuration all" instead, using said API?

 

1 Accepted Solution

Accepted Solutions

Alexander Stevenson
Cisco Employee
Cisco Employee

Hello @vishal4567,

 

It seems the Export Device Configurations endpoint is pretty fixed on the output. There is also Get Device Config For All Devices, but that URL is much different than the one you're calling.

 

Here are some options which might help you:

 

 

You might also want to check out and see if anyone came up with a smoother way to do this:

 

  • Cisco DevNet Code Exchange

https://developer.cisco.com/codeexchange/

 

  • Cisco DevNet Automation Exchange

https://developer.cisco.com/network-automation/

View solution in original post

1 Reply 1

Alexander Stevenson
Cisco Employee
Cisco Employee

Hello @vishal4567,

 

It seems the Export Device Configurations endpoint is pretty fixed on the output. There is also Get Device Config For All Devices, but that URL is much different than the one you're calling.

 

Here are some options which might help you:

 

 

You might also want to check out and see if anyone came up with a smoother way to do this:

 

  • Cisco DevNet Code Exchange

https://developer.cisco.com/codeexchange/

 

  • Cisco DevNet Automation Exchange

https://developer.cisco.com/network-automation/