nerdexam
Cisco

350-901 · Question #23

Refer to the exhibit. Drag and drop the code snippets from the left onto the item numbers on the right that match the missing sections in the cURL exhibit to complete the cURL request to FirePower…

This question tests knowledge of constructing a valid cURL command to interact with the Cisco Firepower Device Manager (FDM) REST API, specifically to create network objects using the correct HTTP method, headers, endpoint structure, and authentication token.

Understanding and Using APIs

Question

Refer to the exhibit. Drag and drop the code snippets from the left onto the item numbers on the right that match the missing sections in the cURL exhibit to complete the cURL request to FirePower Device Manager API to create objects. Not all code snippets are used.

Explanation

This question tests knowledge of constructing a valid cURL command to interact with the Cisco Firepower Device Manager (FDM) REST API, specifically to create network objects using the correct HTTP method, headers, endpoint structure, and authentication token.

Approach. A valid FDM API cURL request to CREATE an object requires four key components in the correct positions: (1) the HTTP method flag '-X POST' since object creation uses POST, (2) the API endpoint URL in the form 'https://<fdm-ip>/api/fdm/latest/object/<objectType>', (3) the Authorization header 'Authorization: Bearer <access_token>' obtained from a prior authentication call to /api/fdm/latest/fdm/token, and (4) the Content-Type header 'Content-Type: application/json' along with the '-d' flag carrying the JSON body defining the object's name, type, value, and subType fields. The Bearer token must come from a prior POST to the token endpoint using valid admin credentials.

Concept tested. Cisco Firepower Device Manager (FDM) REST API - constructing authenticated cURL requests using Bearer token authorization, correct HTTP verb selection (POST for create), proper endpoint URL structure (/api/fdm/latest/object/...), and required Content-Type and Authorization headers for object creation operations.

Reference. Cisco FDM REST API documentation; Cisco DevNet Learning Labs - Firepower Device Manager API; CCNP/DevNet exam topic: Automating and Programmability with Cisco Security APIs

Topics

#cURL#API Request Construction#Cisco FirePower API#JSON Payload

Community Discussion

No community discussion yet for this question.

Full 350-901 Practice