ETExamTower
Q6Using APIs

Refer to the exhibit. Drag the code snippets from the left to the numbered items on the right that correspond to the missing portions of the cURL example, completing the cURL request to the FirePower Device Manager API to create objects. Not every code snippet is used. <DragDrop items={["HOST","POST","NETWORK","networks","networkobject","171.168.1.0/24","False","isSystemDefined"]} slots={[{"answer":"POST","id":"item1"},{"answer":"171.168.1.0/24","id":"item2"},{"answer":"NETWORK","id":"item3"},{"answer":"networkobject","id":"item4"},{"answer":"networks","id":"item5"}]} template={"curl -X {{item1}} -H 'Authorization: Bearer ewsxads-sadads0asd0-1w-1-1w-1w' --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{\n \"name\": \"171.168.1.2\",\n \"value\": \"{{item2}}\",\n \"subType\": \"{{item3}}\",\n \"type\": \"{{item4}}\"\n}' 'https://ast0072-pod.cisco.com:33333/api/fdm/v4/object/{{item5}}'"} explanation={"Creating a network object uses `POST` on the `networks` collection. The `NETWORK` subtype requires a network address expressed in CIDR notation, making `171.168.1.0/24` the valid value. The lowercase class name for this object is `networkobject`."} reuse={false} />

Question exhibit
← → navigate · a answer
Discussion · 6
49
I agree with newtoaws. The correct answer is: 1. POST 2. 171.168.1.0/24 3. NETWORK 4. networkobject 5. networks
17
The last 3 should be NETWORK networkobject networks
11
curl -X POST --header 'Content-Type: application/json' \ --header 'Accept: application/json' -d '{ \ "name": "new_network_object", \ "description": "A subnet object created using the REST API.", \ "subType": "NETWORK", \ "value": "10.100.10.0/24", \ "type": "networkobject" \ }' 'https://ftd.example.com/api/fdm/latest/object/networks' https://www.cisco.com/c/en/us/td/docs/security/firepower/ftd-api/guide/ftd-rest-api/ftd-api-methods.html#task_14BAEBFFEB594B62968A3DF2B86F6FF5
2
POST 172.168.1.0/24 NETWORK networkobject networks
1
1. POST (HTTP method) 2. 171.168.1.0/24 (network) 3. NETWORK (a network type) 4. networkobject (string lowercase) 5. networks (path)
1
Correct 1. POST 2. 171.168.1.0/24 3. NETWORK 4. networkobject 5. networks