REST角色未按预期对/API/云/Target运行
适用场景
- 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"
}