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)Place the options in the following order:
| import json | Item A |
| "username": "cisco", "password": "cisco123!" | Item B |
| resp.status_code | Item C |
| resp.json() | Item D |
| serviceTicket | Item E |
Related exam: DevNet Associate – Practice Final Exam Answers
Related exam: DevNet Associate (Version 1.0) - DevNet Associate (200-901) Certification Practice Exam Answers
