我無法從基於傳入的「apiId」的REST API中檢索APIM產品列表。我嘗試使用以下屏幕截圖中的IDENTIFIER值: 無法通過REST API從Azure API管理檢索產品列表
不過,我得到以下錯誤:
調用-RestMethod:{ 「錯誤」:{ 「代碼」: 「ResourceNotFound」, 「消息」: 「阿比找不到」, 「details」:null}} 在D:\ powershell scripts \ testing \ test_add_api2.ps1:77 char:5 + Invoke-RestMethod -Method Get -Uri $ u rl -Header @ {「授權... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +分類信息:InvalidOperation:引發WebException + FullyQualifiedErrorId:WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMet hodCommand
我使用以下路徑檢索產品列表:
的https:// {基URL}/apis/{apiId}?api-version = 2016-10-10
我也驗證了訪問令牌有效期爲5天。
首先,我使用「apiId」的正確ID嗎?其次,如果我使用正確的apiId,最近的路徑是否改變?
#1用於獲取API所屬產品的丟失。 –