Refer to the exhibit. Match the items needed in the Python script. (Not all options are used.)
import requests “Item A” api_url = “http://localhost:58000/api/v1/ticket” headers = { “content-type”: “application/json” } Body = { “Item B” } resp = requests.post(api_url, json.dumps(body), headers=headers, verify=False) print(“Ticket request status: “,”Item C”) response1 = “Item D” serviceTicket = response1[“response”][“Item E”] print(“The service ticket number is: “, serviceTicket)
A : import json
B : “username”:”cisco”, “password”:”cisco123!”
C : resp.status_code
D : resp.json()
E : serviceTicket
Exam with this question: DevNet Associate – Practice Final Exam Answers
Exam with this question: DevNet Associate (Version 1.0) - DevNet Associate (200-901) Certification Practice Exam Answers
Please login or Register to submit your answer