nerdexam
Cisco

300-435 · Question #7

Which HTTP request is valid to create a new wireless network called "Demo Wireless Network" in the organization "QASD-EROA-MKAW"?

The correct answer is A. POST /organizations/QASD-EROA-MKAW/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationId": "QASD-EROA-MKAW", "type": "wireless" }. To create a new wireless network in Meraki, a POST request must target the correct organization's networks endpoint and include the network's name and type in the request body.

Controller-Based Network Automation

Question

Which HTTP request is valid to create a new wireless network called "Demo Wireless Network" in the organization "QASD-EROA-MKAW"?

Options

  • APOST /organizations/QASD-EROA-MKAW/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationId": "QASD-EROA-MKAW", "type": "wireless" }
  • BPOST /organizations/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationId": "QASD-EROA-MKAW", "type": "combined" }
  • CPOST /organizations/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationId": "QASD-EROA-MKAW", "type": "wireless" }
  • DPOST /organizations/QASD-EROA-MKAW/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "type": "combined" }

How the community answered

(29 responses)
  • A
    79% (23)
  • B
    10% (3)
  • C
    3% (1)
  • D
    7% (2)

Why each option

To create a new wireless network in Meraki, a POST request must target the correct organization's networks endpoint and include the network's name and type in the request body.

APOST /organizations/QASD-EROA-MKAW/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationId": "QASD-EROA-MKAW", "type": "wireless" }Correct

This option correctly uses the POST method to create a resource, specifies the organization ID in the URI `/organizations/QASD-EROA-MKAW/networks`, and provides the mandatory `name` and `type` (specifically "wireless" as requested) in the request body.

BPOST /organizations/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationId": "QASD-EROA-MKAW", "type": "combined" }

The URI `/organizations/networks` is missing the specific `organizationId`, making it an invalid endpoint for creating a network within a particular organization. Also, the `type` is "combined" instead of "wireless" as requested.

CPOST /organizations/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationId": "QASD-EROA-MKAW", "type": "wireless" }

Similar to B, the URI `/organizations/networks` is missing the specific `organizationId`, which is necessary to target the correct organization.

DPOST /organizations/QASD-EROA-MKAW/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "type": "combined" }

While the URI correctly includes the organization ID, the `type` is specified as "combined" instead of the requested "wireless", which would create an incorrect network type.

Concept tested: Cisco Meraki API network creation request format

Source: https://developer.cisco.com/meraki/api-v1/#!create-organization-network

Topics

#Meraki API#REST API#HTTP POST#Network Creation

Community Discussion

No community discussion yet for this question.

Full 300-435 Practice