問題
PostmanからNX-API RESTの/api/mo/へGETする。aaaLoginへのloginは成功しており、返されたtokenを後続requestへ付けて認証する。tokenを渡す場所はどれか。

- A
API token in the APIC-cookie
- B
username and password in the Nexus-cookie
- C
username and password in the api/mo header
- D
certificate in the HTML Nexus-API header
正解:A
理由
aaaLoginで得たtokenをAPIC-cookieへ付ける。Postmanでcookieを保存した場合は、対象hostへの後続requestへ送る。
選択肢ごとの説明
- A.
API token in the APIC-cookie
login応答のAPI tokenをAPIC-cookieとして付け、後続のREST requestを認証する。
- B.
username and password in the Nexus-cookie
後続requestにはlogin済みtokenを使う。username/passwordをNexus-cookieというcookieへ保存する手順ではない。
- C.
username and password in the api/mo header
api/moはmanaged objectを指定するURIのpathであり、username/passwordを入れるHTTP header名ではない。
- D.
certificate in the HTML Nexus-API header
server証明書はTLSで接続先を認証する。login済みsession tokenを渡すAPIC-cookieとは役割が異なる。