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 BLANK - Fill in the blanks to complete the Python script to request a service ticket using the APIC-EM REST API for
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
FILL BLANK - Fill in the blanks to complete the Python script to request a service ticket using the APIC-EM REST API for
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!