300-435 Question 209
Select 3You are tasked with automating the creation of a new network profile in Cisco DNA Center using its REST API. Which of the following steps should you perform to successfully accomplish this task?
- A
Authenticate with Cisco DNA Center and obtain an access token.
- B
Use the GET request to the '/dna/system/api/v1/network' endpoint to retrieve the existing network profiles.
- C
Use the POST request to the '/dna/intent/api/v1/network-profile' endpoint to create the new network profile.
- D
Include the access token in the Authorization header of your API requests.
- E
Manually configure the new network profile in the Cisco DNA Center GUI for API validation.
Show answer and explanation
Correct answers: A, C, D
Explanation
To automate the creation of a new network profile in Cisco DNA Center, you need to authenticate to obtain an access token, then use the POST method on the '/dna/intent/api/v1/network-profile' endpoint to create the profile. The access token must be included in the Authorization header of the API request. This ensures secure and authenticated communication with the Cisco DNA Center API.
- A. Correct.
Correct. You must authenticate with Cisco DNA Center and obtain an access token, as it is required for all subsequent API calls.
- B. Incorrect.
Incorrect. The '/dna/system/api/v1/network' endpoint is not used for retrieving network profiles. This endpoint is unrelated to network profile creation.
- C. Correct.
Correct. The POST request to the '/dna/intent/api/v1/network-profile' endpoint is the correct API call for creating a new network profile.
- D. Correct.
Correct. The access token obtained during authentication must be included in the Authorization header for the API requests to be processed successfully.
- E. Incorrect.
Incorrect. Manually configuring the profile in the GUI is not required for API validation. The task focuses on automation using the API.