CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

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.

  1. A. 1. devnetuser 2. requests 3. header — đáp án hiện tại
  2. B. 1. requests 2. devnetuser 3. header
  3. C. 1. header 2. requests 3. devnetuser
  4. D. 1. header 2. devnetuser 3. requests
Giải thích

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.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề