Question 12 of 32


Prev Question Next Question

Question

import requests

USER = "admin"
PASS = "password"
APIC = 'https://apic.supereats.com'

OPERATION = ‘api/aaaLogin.json"
DATA = ("aaaUser": {"attributes": {"name":USER, "pwd":PASS}}}
RESPONSE = requests.post (APIC+OPERATION, json=DATA, verify-False)

TOKEN = RESPONSE. json() {"imdata”] [0] ("aaaLogin”] ("attributes") ["token"]
COOKIE = {"APIC-cookie': TOKEN)

OPERATION = ‘api/aaaLogout.json"
DATA = {
“aaaLogout": {
"attributes": (
"token": TOKEN

,
)

RESPONSE = requests.post (APIC+OPERATION, json=DATA, cookies.COOKIE, verify=False}

Which Python snippets create an application policy named OrderProcess that contains two application endpoint groups under Tenant SuperEats using direct calls to the ACI REST API? Assume that authentication and library imports are correct.

A.

B.

C.

D.

Answers