PowerStore:在已指定巢狀參數的情況下,使用「select」的 REST GET 要求「無法剖析傳遞的 url」
Summary: 對於某些在指定了巢狀參數的情況下使用「select」的 REST GET 要求,回應為「無法剖析傳遞的 url」。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
一些複雜的 REST GET 要求失敗並顯示錯誤。此類請求需要在單個請求中具有自引用的向後引用。
範例:
/api/rest/appliance?select=eth_ports(partner)
Error code:
0xE04040020008 ,並顯示訊息「無法剖析傳遞的 url」。
便條:如果您在執行升級前執行狀況檢查 (PUHC) 時收到此錯誤訊息,請參閱 PowerStore:系統執行狀況檢查偵測到 /cyc_node 中缺少空間。這是一個不同的問題。
範例:
/api/rest/appliance?select=eth_ports(partner)
Error code:
0xE04040020008 ,並顯示訊息「無法剖析傳遞的 url」。
便條:如果您在執行升級前執行狀況檢查 (PUHC) 時收到此錯誤訊息,請參閱 PowerStore:系統執行狀況檢查偵測到 /cyc_node 中缺少空間。這是一個不同的問題。
Cause
這是由產生無效查詢的 postgREST 問題所造成。
Resolution
與其在請求中嵌套參數,不如發送多個請求以獲取所需資訊。
以下是一些受影響的 GET 請求,這些請求具有在 REST 中不起作用的嵌套參數。應分別提出兩個請求。
例:
而不是:
嵌套參數失敗範例:
寄:
以下是一些受影響的 GET 請求,這些請求具有在 REST 中不起作用的嵌套參數。應分別提出兩個請求。
- 取得 /api/rest/appliance?select=eth_ports(partner)
- 取得 /api/rest/appliance?select=virtual_volumes(target_virtual_volumes)
- GET /api/rest/appliance?select=virtual_volumes(source)
- 取得 /api/rest/appliance?select=virtual_volumes(parent)
- 取得 /api/rest/appliance?select=virtual_volumes(child_virtual_volumes)
- GET /api/rest/appliance?select=hardware(children)
- 取得 /api/rest/appliance?select=hardware(parent)
- 取得 /api/rest/appliance?select=fc_ports(partner)
- 取得 /api/rest/appliance?select=sas_ports(partner)
- 取得 /api/rest/appliance?select=eth_ports(partner)
例:
而不是:
/api/rest/appliance?select=eth_ports(合作夥伴)
嵌套參數失敗範例:
Linux~$ curl -i -k -s -u 'admin:' -X GET "https:///api/rest/appliance?select=eth_ports(partner)"
HTTP/1.1 400 Bad Request
DELL-EMC-TOKEN: 8t7deLGkLuG8g+Hg2uzMw6B4p2KhQ5bay3qW05tPVMs=
Content-Type: application/json
content-length: 104
{"messages":[{"code":"0xE04040020008","severity":"Error","message_l10n":"Unable to parse passed url."}]}
寄:
/api/rest/appliance?select=eth_ports
/api/rest/eth_port?select=partner
/api/rest/eth_port?select=partner
Affected Products
PowerStoreArticle Properties
Article Number: 000131120
Article Type: Solution
Last Modified: 07 Jun 2023
Version: 5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.