メインコンテンツへスキップ

アカウントパスワードを変更するとAPIの認証キーがリセットされますか?

Views:
3
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

環境

  • ONTAPI
  • 認証トークン

回答

はい。アカウントパスワードを変更すると、「https://<clusterIP>/docs/api」の認証キー/トークンが変更されます。
 
例:
  • adminアカウントはドキュメント/ APIにアクセスするために使用されます。
  • 現在の認証トークンは次のようになります。
curl -X GET "https://10.xx.xx.xxx/api/cluster" -H "accept: application/json" -H "authorization: Basic YWRtaW46UEBzc3cwcmQ="
 
  • 管理者パスワードをリセットすると認証キーも変更されるため、認証エラーが原因でAPIが失敗する可能性があります。
curl -X GET "https://10.xx.xx.xxx/api/cluster" -H "accept: application/json" -H "authorization: Basic YBElaQ57VFCzc3avskT="

追加情報

  • APIまたはCLIから認証キー/トークンを取得できますか。
    • いいえ、 /docs/apiへのアクセス以外に、この認証キーを取得する方法はありません。
    • この認証トークンはbase-64エンコードされています。したがって、 ユーザー名/パスワードをクリアテキストで使用したくない場合は、 ユーザー名/パスワードをbase-64にエンコードし、上記のAPI 呼び出しのように渡すことができます。(authorization: Basic YWRtaW46UEBzc3cwcmQ=
    • 認証キーを取得すると、認証セキュリティの目的全体が損なわれます。

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.