ExamGecko
Question list
Search
Search

Question 14 - 200-901 discussion

Report
Export

FILL BLANK Fill in the blanks to complete the Python script to request a service ticket using the APIC-EM REST API for the user “devnetuser”.

import requests import json

controller = ‘devnetapi.cisco.com/sandbox/apic_em’

url = “https://” + controller + “api/va/ticket”

payload = {‘username’: ‘_________________’, ‘password’: ‘370940885’} header = {‘Content-type’: ‘application.json’}

response = _______________________.post(url, data=json.dumps(payload), \ headers= ______________________, verify=False) r_json = response.json() print(r_json)

ticket = r_json[“response”][“serviceTicket”] print(ticket)

A.
Answers
A.
Suggested answer: A

Explanation:

Answer: A

Explanation:

devnetuser requests header

Reference: https://developer.cisco.com/docs/apic-em/#!hello-world

asked 07/10/2024
Manoj Balan
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first