exam questions

Exam 300-550 All Questions

View all questions & answers for the 300-550 exam

Exam 300-550 topic 1 question 1 discussion

Actual exam question from Cisco's 300-550
Question #: 1
Topic #: 1
[All 300-550 Questions]

How are authentication credentials sent in a Cisco APIC REST API authorization request?

  • A. by using OAuth
  • B. in a token in the header
  • C. by using Basic Auth
  • D. in JSON in the payload
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Authentication to the REST API for username/password-based authentication uses a special subset of request URIs, including aaaLogin, aaaLogout and aaaRefresh as the Dn target of a POST operation. Their payloads contain a simple XML or JSON payload containing the MO representation of an aaaUser object with attributes name and pwd defining the username and password, for example: <aaaUser name=admin pwd=insieme/>. The response to the POSTs will contain an authentication token as both a Set-Cookie header as well as an attribute to the aaaLogin object in the response named token, for which the XPath is / imdata/aaaLogin/@token if encoded as XML. Subsequent operations on the REST API can use this token value as a Cookie named "APIC-cookie" to have future requests authenticated.
Reference:
http://aci-troubleshooting-book.readthedocs.io/en/latest/rest.html

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
maj
5 years, 9 months ago
answer D Their payloads contain a simple XML or JSON payload containing the MO representation of an aaaUser object with attributes name and pwd defining the username and password
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago