nerdexam
Cisco

350-601 · Question #13

Which two methods are available to manage an ACI REST API session authentication when a user is unauthenticated? (Choose two.)

The correct answer is C. GET aaaRefresh E. POST to aaaLogin. When a login message is accepted, the API returns a data structure that includes a session timeout period in seconds and a token that represents the session. The token is also returned as a cookie in the HTTP response header. To maintain your session, you must send login…

Automation

Question

Which two methods are available to manage an ACI REST API session authentication when a user is unauthenticated? (Choose two.)

Options

  • APOST to aaaUserLogin
  • BGET to aaaListDomains
  • CGET aaaRefresh
  • DDELETE to aaaLogout
  • EPOST to aaaLogin

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    94% (33)

Explanation

When a login message is accepted, the API returns a data structure that includes a session timeout period in seconds and a token that represents the session. The token is also returned as a cookie in the HTTP response header. To maintain your session, you must send login refresh messages to the API if no other messages are sent for a period longer than the session timeout period. The token changes each time that the session is refreshed. aaalogin to login with username and password aaaRefresh along with aaaLogin to keep refreshing your session from timeout. x/rest_cfg/2_1_x/b_Cisco_APIC_REST_API_Configuration_Guide/b_Cisco_APIC_REST_API_C onfiguration_Guide_chapter_01.html

Topics

#ACI REST API#Authentication#API Session Management

Community Discussion

No community discussion yet for this question.

Full 350-601 Practice