300-435 Question 214
Select 4You are tasked with automating the deployment of a network configuration across multiple Cisco devices in your enterprise network. To achieve this, you decide to use Cisco's RESTCONF API. Which of the following steps are required to successfully push a configuration using the RESTCONF API?
- A
Ensure the Cisco device is running a RESTCONF-enabled software version and RESTCONF is enabled on the device.
- B
Use a POST request to the appropriate RESTCONF URL to retrieve the current device configuration.
- C
Authenticate to the device using basic authentication or OAuth2 tokens.
- D
Format the configuration payload in either JSON or XML, as supported by RESTCONF.
- E
Use a PUT or PATCH request to the appropriate RESTCONF URL to apply the configuration changes.
Show answer and explanation
Correct answers: A, C, D, E
Explanation
When automating network configurations using Cisco's RESTCONF API, it is essential to ensure that the device supports RESTCONF and is properly configured. Authentication is necessary to access the device, and the configuration payload must be formatted in an acceptable format (JSON or XML). Configuration changes are applied using PUT or PATCH requests. Understanding these steps ensures successful automation using RESTCONF.
- A. Correct.
Correct: RESTCONF must be enabled on the Cisco device, and the device must be running a RESTCONF-compatible software version for API-based automation.
- B. Incorrect.
Incorrect: A POST request is not used to retrieve the current device configuration. Instead, a GET request is used for this purpose.
- C. Correct.
Correct: Authentication is a necessary step when interacting with RESTCONF APIs, and basic authentication or OAuth2 tokens are commonly used methods.
- D. Correct.
Correct: RESTCONF supports configuration payloads in JSON or XML formats, so the configuration must be formatted accordingly before sending.
- E. Correct.
Correct: A PUT or PATCH request is used to apply configuration changes via RESTCONF APIs. PUT is typically used to replace configurations, while PATCH is for partial updates.