nerdexam
Cisco

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.

Controller-Based Network Automation

Question

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? -header 'Content-Type: application/json'
-header 'Accept: application/json'
-header ':'
-header 'X-Cisco-Meraki-API-Key: 6bec40cf957de430a6f1f2012345678a4f4ac9ea0'

Exhibit

300-435 question #122 exhibit

Options

How the community answered

(33 responses)
  • A
    79% (26)
  • B
    3% (1)
  • C
    6% (2)
  • D
    12% (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.

Acurl -L --request PUT \ -url https://api.meraki.com/api/v1/networks/ENAUTO/split \Correct

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.

Bcurl -L --request POST \ -url https://api.meraki.com/api/v1/networks/ENAUTO/split \

While POST is often used for creating resources or performing actions, the Meraki API specifically uses PUT for the `split` operation on a network.

Ccurl -L --request PUT \ -url https://api.meraki.com/api/v1/networks/split/ENAUTO \

The URL structure `https://api.meraki.com/api/v1/networks/split/ENAUTO` is incorrect; the network ID should precede the `/split` endpoint.

Dcurl -L --request POST \ -url https://api.meraki.com/api/v1/networks/split/ENAUTO \

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

#Cisco Meraki API#REST API#HTTP Methods#cURL

Community Discussion

No community discussion yet for this question.

Full 300-435 Practice