300-435 · Question #122
Refer to the exhibit. An engineer must split the network with the network ID ENAUTO by using Cisco Meraki APIs. Which code snippet must be added to the box in the code to complete the cURL script?…
The correct answer is A. curl -L --request PUT \ -url https://api.meraki.com/api/v1/networks/ENAUTO/split \. This question asks for the correct cURL command to split a Meraki network, identifying the proper HTTP method and URL structure.
Question
-header 'Accept: application/json'
-header ':'
-header 'X-Cisco-Meraki-API-Key: 6bec40cf957de430a6f1f2012345678a4f4ac9ea0'
Exhibit
Options
- Acurl -L --request PUT
-url https://api.meraki.com/api/v1/networks/ENAUTO/split \ - Bcurl -L --request POST
-url https://api.meraki.com/api/v1/networks/ENAUTO/split \ - Ccurl -L --request PUT
-url https://api.meraki.com/api/v1/networks/split/ENAUTO \ - Dcurl -L --request POST
-url https://api.meraki.com/api/v1/networks/split/ENAUTO \
How the community answered
(33 responses)- A79% (26)
- B3% (1)
- C6% (2)
- D12% (4)
Why each option
This question asks for the correct cURL command to split a Meraki network, identifying the proper HTTP method and URL structure.
The Meraki API documentation indicates that the `/networks/{networkId}/split` endpoint uses the PUT method to initiate the splitting of a combined network. The URL format is `https://api.meraki.com/api/v1/networks/{networkId}/split`, where `{networkId}` is replaced by ENAUTO.
While POST is often used for creating resources or performing actions, the Meraki API specifically uses PUT for the `split` operation on a network.
The URL structure `https://api.meraki.com/api/v1/networks/split/ENAUTO` is incorrect; the network ID should precede the `/split` endpoint.
Both the HTTP method (POST instead of PUT) and the URL structure are incorrect for the Meraki API's network split operation.
Concept tested: Meraki API cURL syntax, HTTP methods, URL
Source: https://developer.cisco.com/meraki/api-v1/#!split-network
Topics
Community Discussion
No community discussion yet for this question.
