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

/api/cloud/targetsに対してRESTロールが想定どおりに機能しない

Views:
3
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core<a>2009866162</a>
Last Updated:

環境

  • ONTAP 9.12.1
  • REST API

問題

access level: all/api/cloud/targets API用にで設定されたカスタムロール。

::> security login rest-role show -api /api/cloud/targets -vserver <vserver_name>
         Role             Access
Vserver      Name      API            Level
--------------  ------------- -------------------    ------
<vserver_name> <role_name>
                /api/cloud/targets    all

 
情報の取得 に失敗し、次のエラーが表示されます。
curl -k -X GET -u <user_name>:<password> https://<cluster_mgmt_IP or hostname>/api/cloud/targets -H  "accept: application/json"
{
 "error": {
  "message": "not authorized for that command",
  "code": "6"
}

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

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.