无法使用Windows PowerShell验证API
适用场景
- ONTAP 9.7P10
- REST API
- Windows PowerShell
问题描述
从 Windows PowerShell 运行时, REST API 正在生成未经授权的消息。
错误消息示例:
PS C:\Windows\system32> Invoke-WebRequest -Method Get -uri https://clus01/api/svm -Credential admin invoke-WebRequest :
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.at line:1 char:1
Invoke-WebRequest -Method Get -uri https://clus01/api/svm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand