跳转到主内容

对于/API/storage/LUN、REST角色无法按预期工作

Views:
4
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core<a>2009年286190</a>
Last Updated:

适用场景

  • ONTAP 9
  • REST API

问题描述

用户已 access level : all 为LUN API设置特定角色。
cluster::> rest-role show -vserver <vserver_name> -role <role_name>
  (security login rest-role show)
               Role                                   Access
Vserver        Name            API                    Level
----------     -------------   -------------------     ------
<vserver_name><role_name>     /api                    readonly
                              /api/storage/luns      all

使用用户调整LUN大小或删除LUN失败

 not authorized for that command.

审核日志 显示:
Mon Jul 29 2023 13:10:06 +01:00 [kern_audit:info:2465] XXXXXXXXXXXXXXXX :: cluster:http :: X.X.X.X:58318 :: cluster:user :: DELETE /api/storage/luns/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX :: Pending
Mon Jul 29 2023 13:10:06 +01:00 [kern_audit:info:2465] XXXXXXXXXXXXXXXX :: cluster:http :: X.X.X.X:58318 :: cluster:user :: DELETE /api/storage/luns/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX :: Error: not authorized for that command

M木质 日志 显示:
Mon Jul 29 2023 13:10:06 +01:00 [kern_mgwd:info:3603] XXXXXXXXX: XXXXXXXXXXXXXXXX: ERR: SAN::REST::LUN: src/tables/lun_rest.cc:remove_imp:2626 returning: 0/6 - not authorized for that command

 

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.