Hierarchical List of Inventory Items
Lists all inventory items and their children in a hierarchical structure.
Endpoint
https://<Director_IP_address>:4443/c/router
Request Example
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie @cookies.txt \
--data "{
"action": "InventoryManagement",
"method": "collect",
"data": [{
"viewType": "VIRTUAL_ENVIRONMENT",
"rootNodeVid": null}],
"type": "rpc",
"tid": 9}"
Request Fields
Field
|
Type
|
Value(s)
|
---|---|---|
action
|
string |
|
method
|
string | collect |
data
|
array | Request parameters. See below |
type
|
string | rpc
|
tid
|
int | 1 |
Data
Field | Type | Description | Possible values |
---|---|---|---|
viewType
|
string | Defines the platform, for which the inventory must be returned |
|
rootNodeVid
|
string | The VID of the parent node. null for the top-level one |
|
Response Samples
{
"action": "InventoryManagement",
"method": "collect",
"tid": "9",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": {
"children": [{
"identifier": 1,
"vid": "VMWARE_VC-1",
"type": "VMWARE_VC",
"subType": null,
"name": "vCenter",
"accessible": true,
"isDisabled": false,
"replicable": true,
"hvType": "VMWARE",
"flags": 0,
"children": [{
"identifier": 1,
"vid": "VMWARE_DATACENTER-1",
"type": "VMWARE_DATACENTER",
"subType": null,
"name": "DEV",
"accessible": true,
"isDisabled": false,
"replicable": true,
"hvType": "VMWARE",
"flags": 0,
"children": [{
"version": "6.5.0",
"hwVersion": 13,
"free": false,
"standalone": false,
"managed": true,
"powerState": "ON",
"lid": "VMWARE_VMWARE_ESX_host-2322_10.30.29.103_44454c4c-3800-1052-8042-c3c04f53334a",
"sc": 1,
"extendedInfo": null,
"identifier": 1,
"vid": "VMWARE_ESX-1",
"type": "VMWARE_ESX",
"subType": null,
"name": "10.30.29.103",
"accessible": true,
"isDisabled": false,
"replicable": true,
"hvType": "VMWARE",
"flags": 2,
"children": null
}]
}
}
Response Fields
Field
|
Type
|
Description
|
---|---|---|
message
|
string | Message if the request failed |
where
|
string | Reference to the method where a problem occurred |
cause
|
string | Cause of failure |
data
|
array | See below |
data.children and data.children.children (vCenter and data center levels)
Field | Type | Description |
---|---|---|
identifier
|
long | Node ID |
vid
|
string | Node VID |
type
|
string | The type of the node |
subType
|
string | Subtype of the node |
name
|
string | Display name |
|
string |
Node description |
accesible
|
boolean | true if the node is accessible |
isDisabled
|
boolean | true if the node is disabled |
replicable
|
boolean | true if the node can be replicated |
hvType
|
string | Platform type |
flags
|
|
For VMware ESXi hosts:
|
data.children.children.children (container level: host, cluster, folder, VM
)
Field | Type | Description |
---|---|---|
version
|
string | Platform version |
hwVersion
|
long | For VMware, Hyper-V, and Nutanix, max supported virtual hardware version |
free
|
boolean | For ESXi hosts: checks if the host is free |
standalone
|
boolean | true if the object is a standalone one |
managed
|
boolean | For ESXi hosts: is managed by the vCenter |
powerState
|
string | Power state of the object |
|
long |
|
|
string |
|
lid
|
string | Item identifier for licensing purposes |
|
int |
|
|
long |
|
sc
|
int | Socket count |
|
string |
|
|
int |
|
|
string |
|
|
string |
|
|
boolean |
|
|
boolean |
|
|
string |
|
|
string |
|
|
string |
|
|
boolean |
|
extendedInfo
|
|
Extended info (if present) |
identifier
|
long | Object ID |
vid
|
string | Object VID |
type
|
string | Object type |
subType
|
string | Object subtype |
name
|
string | Display name |
|
string |
Object description |
accessible
|
boolean | true if the object is accessible |
isDisabled
|
boolean | true if the object is disabled |
replicable
|
boolean | true if the object can be replicated |
hvType
|
string | Platform type |
flags
|
int |
For VMware ESXi hosts:
|