Câu 175: 200-901: DevNet Associate (DEVASC)
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': '_________________', 'pass…
Nội dung câu hỏi
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)
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. 1. devnetuser 2. requests 3. header — đáp án hiện tại
- B. 1. requests 2. devnetuser 3. header
- C. 1. header 2. requests 3. devnetuser
- D. 1. header 2. devnetuser 3. requests
https://developer.cisco.com/docs/apic-em/#!hello-world/issuing-requests-in-the-postman-gui
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.