Refresh Single Inventory Item
Refreshes a single inventory item.
Refreshing a single inventory item is requested by HypervisorDiscovery
regardless of its platform type. It is referenced by the vid, not id. See Request Fields below.
Endpoint
https://<Director_IP_address>:4443/c/router
Request Example
curl
Copy
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}"
Request Fields
Field
|
Type
|
Value(s)
|
---|---|---|
action
|
string |
|
method
|
string |
|
data
|
array of string | vid of the requested inventory item |
type
|
string | rpc
|
tid
|
integer | 1
|
Response Sample
curl
Copy
{
"action": "HypervisorDiscovery",
"method": "refresh",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
Response Fields
Field
|
Value
|
Description
|
---|---|---|
message
|
string | Message if the request failed |
where
|
string | Reference to the method where the problem occurred |
cause
|
string | Cause of failure |