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

CONTAP-458497:入力を使用するCLIパススルーAPIでADドメインの大文字と小文字が区別される

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

問題

  • https://cluster1/api/private/cli」-d'\{"input":"xxx"}'という構文を使用してRESTAPI CLIパススルーを使用する場合、ADドメインでは大文字と小文字が区別されます。
  • 大文字のドメインでエラーが発生しました:

 
[root@rhel1 ~]# curl -ksu DEMO\\test:xxxx -X POST "https://cluster1/api/private/cli" -d '{"input": "vol show"}'
{
 "error": {
  "message": "not authorized for that command",
  "code": "6"
  },
 "output": ""
}

 
  • ただし、小文字のドメインでは問題ありません。

[root@rhel1 ~]# curl -ksu demo\\test:xxxx -X POST "https://cluster1/api/private/cli" -d '{"input": "vol show"}' | sed 's/\\n/\n/g'
{
 "output": "Last login time: 5/14/2025 15:23:35Vserver   Volume     Aggregate   State    Type     Size  Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
cluster1-01 vol0     aggr0_cluster1_01 online RW    22.99GB   10.27GB   52%
cluster1-02 vol0     aggr0_cluster1_02 online RW    22.99GB   10.17GB   53%
svm1    svm1_root   cluster1_01_aggr1 online RW     20MB   18.07MB   4%
svm1    test_passthrough cluster1_01_aggr1 online RW    1GB   972.3MB   0%
svm1    test_passthrough2 cluster1_01_aggr1 online RW   1GB   972.4MB   0%
svm2    svm2_root   cluster1_02_aggr1 online RW     20MB   18.09MB   4%
6 entries were displayed."
}

他の構文を使用する場合、ADドメインでは大文字と小文字が区別されません。
curl -ksu DEMO\\test:xxxx -X GET "https://cluster1/api/storage/volumes"
curl -ksu DEMO\\test:xxxx -X GET "https://cluster1/api/private/cli/volume"

 

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.