Cisco DNA Center: API Calls for Device Configuration Sync

Which API calls trigger device configuration sync in Cisco DNA Center? (Choose two.)

Question

Which two API calls are used to trigger a device configuration sync in Cisco DNA Center? (Choose two.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

CE.

https://github.com/CiscoDevNet/DNAC-JAVA-SDK/tree/master/DnacAppApi

The correct API calls to trigger a device configuration sync in Cisco DNA Center are B and C.

A configuration sync ensures that the network device's configuration in Cisco DNA Center matches the actual configuration on the device. When a configuration sync is triggered, any changes made on the device are synced with Cisco DNA Center.

Here are the detailed explanations of the two correct API calls:

B. PUT /dna/intent/api/v1/network-device/sync-all This API call is used to trigger a configuration sync for all network devices in Cisco DNA Center. When this API call is executed, Cisco DNA Center sends a request to each network device to retrieve its configuration and update it in Cisco DNA Center. This call can be useful if there are multiple devices that need to be synced at once.

C. PUT /dna/intent/api/v1/network-device/{networkDeviceId}/sync This API call is used to trigger a configuration sync for a specific network device in Cisco DNA Center. The {networkDeviceId} parameter is replaced with the ID of the network device that needs to be synced. When this API call is executed, Cisco DNA Center sends a request to the specified network device to retrieve its configuration and update it in Cisco DNA Center. This call can be useful if there is only one device that needs to be synced.

The other options, A, D, and E are not the correct API calls to trigger a device configuration sync in Cisco DNA Center. Here are brief explanations of these options:

A. PUT /dna/intent/api/v1/network-device This API call is used to add a new network device to Cisco DNA Center. It does not trigger a configuration sync.

D. PUT /dna/intent/api/v1/network-device/sync This API call does not have a specific network device ID parameter to trigger a configuration sync for a specific device. It is used to initiate a sync for all network devices in Cisco DNA Center.

E. POST /dna/intent/api/v1/network-device/{networkDeviceId}/sync This API call is similar to option C, but it uses the POST method instead of the PUT method. However, the PUT method is preferred for triggering a configuration sync in Cisco DNA Center.