FILL BLANK - Fill in the blanks to complete the Python script to request a service ticket using the APIC-EM REST API for
Posted: Fri Jul 22, 2022 2:52 pm
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)
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)