300-435 Question 307
Select 3You are tasked with automating the deployment of a new network for an organization using Cisco Meraki APIs. You need to create a network in a specified organization programmatically. Which of the following steps are required to ensure the network is successfully created?
- A
Use the GET /organizations endpoint to retrieve the organization ID.
- B
Send a POST request to the /networks endpoint with the required network details.
- C
Include the API key in the Authorization header of your requests.
- D
Specify the network's name, type, and time zone in the payload of the POST request.
- E
Use the DELETE /devices endpoint to clear existing devices before creating the network.
Show answer and explanation
Correct answers: A, C, D
Explanation
To create a network using Cisco Meraki APIs, you must first retrieve the organization ID to determine where the network will be created. The API key must be included in the Authorization header to authenticate your request. Additionally, the network's name, type, and time zone must be provided in the POST request payload. Using the incorrect endpoint or unrelated operations, such as deleting devices, will not achieve the desired outcome.
- A. Correct.
Correct: Retrieving the organization ID using the GET /organizations endpoint is essential as it is required to identify the organization where the network will be created.
- B. Incorrect.
Incorrect: There is no /networks endpoint for creating a network. You need to use the POST /organizations/{organizationId}/networks endpoint.
- C. Correct.
Correct: Including the API key in the Authorization header is mandatory for authenticating API requests.
- D. Correct.
Correct: The network's name, type, and time zone are required in the payload when creating a new network using the API.
- E. Incorrect.
Incorrect: The DELETE /devices endpoint is unrelated to creating a network. Clearing devices is not part of network creation.