Page tree

Refreshes all inventory items of the specified platform or all of them.

The platforms are selected by invoking different action. See the Request Fields description. method is the same.

Endpoint

https://<Director_IP_address>:4443/c/router

Tenant Endpoint

For tenants of the multi-tenant product the endpoint must be:
https://<Director_IP_address>:4443/t/<tenant_UUID>/c/router

Request Example

curl
curl --request POST \
	--url https://<Director_IP_address>:4443/c/router \
	--header "content-type: application/json" \
	--cookie @cookies.txt \
	--data "{
		"action": "VmwareDiscovery",
		"method": "refreshAll",
		"data": null,
		"type": "rpc",
		"tid": 1}"

Request Fields

Field
Type
Value(s)
actionstring

HypervisorDiscovery for all inventory items

VmwareDiscovery for VMware
HypervDiscovery for Hyper-V
AwsDiscovery for AWS
NutanixDiscovery for Nutanix AHV
PhysicalDiscovery for physical server

methodstring
refreshAll
datanullnull
typestringrpc
tidinteger1


Response Sample

 {
    "action": "HypervDiscovery",
    "method": "refreshAll",
    "tid": "1",
    "type": "rpc",
    "message": null,
    "where": null,
    "cause": null,
    "data": null
}

Response Fields

Field
Value
Description
messagestringMessage if the request failed
wherestringReference to the method where the problem occurred
causestringCause of failure

 

  • No labels