重新整理單一庫存項目
產品版本:10.11
最後修改日期:2024年7月31日
重新整理單一庫存項目。
無論平台類型為何, HypervisorDiscovery ,無論其平台類型為何。它是透過vid 而非id 來引用。請參閱下方的「請求欄位」。
終點
https://<Director_IP_address>:4443/c/router
請求範例
複製
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "HypervisorDiscovery",
"method": "refresh",
"data": ["VMWARE_DISCOVERY_ITEM-1"],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
|---|---|---|
action
|
字串 |
|
method
|
字串 |
|
data
|
字串陣列 | vid 所請求之庫存品項的 |
type
|
字串 | rpc
|
tid
|
整數 | 1
|
回應範例
複製
{
"action": "HypervisorDiscovery",
"method": "refresh",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 關於發生問題的方法的說明 |
cause
|
字串 | 故障原因 |