Get ESXi Host Info
Collects the data for all ESXi hosts in Inventory. The returned identifier
parameter for the necessary ESXi host is required to deploy a transporter as a VMware vSphere appliance.
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": "list",
"data": [{"includeTypes": ["VMWARE_ESX"]}],
"type": "rpc",
"tid": 1}"
Request Fields
Field |
Type |
Value(s) |
---|---|---|
|
string |
|
|
string |
|
|
array |
Inventory search parameters |
|
string |
|
|
integer |
|
Response Sample
{
"action": "InventoryManagement",
"method": "list",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": {
"children": [
{
"version": "6.0.0",
"apiVersion": "6.0",
"hwVersion": 11,
"free": false,
"standalone": false,
"managed": true,
"powerState": "UNKNOWN",
"memorySize": 16374,
"lid": "VMWARE_VMWARE_ESX_host-361_10.74.0.4_2f3c4544-0032-3810-804c-c4c04g4b344a",
"sc": 1,
"morId": "host-361",
"tc": 4,
"proxyTransporterNodeInfo": null,
"extendedInfo": null,
"identifier": 2,
"vid": "VMWARE_ESX-2",
"type": "VMWARE_ESX",
"subType": null,
"name": "10.84.0.4",
"description": null,
"accessible": false,
"isDisabled": false,
"replicable": true,
"hvType": "VMWARE",
"flags": 2,
"subName": null,
"children": null
},
{
"version": "6.0.0",
"apiVersion": "6.0",
"hwVersion": 11,
"free": false,
"standalone": false,
"managed": true,
"powerState": "ON",
"memorySize": 131037,
"lid": "VMWARE_VMWARE_ESX_host-23_10.74.255.12_00000000-0000-0000-0000-003540a2d690",
"sc": 2,
"morId": "host-23",
"tc": 40,
"proxyTransporterNodeInfo": null,
"extendedInfo": null,
"identifier": 1,
"vid": "VMWARE_ESX-1",
"type": "VMWARE_ESX",
"subType": null,
"name": "10.84.255.17",
"description": null,
"accessible": false,
"isDisabled": false,
"replicable": true,
"hvType": "VMWARE",
"flags": 2,
"subName": null,
"children": null
}
],
"totalCount": 2
}
}
Response Fields
Field |
Value |
Description |
---|---|---|
|
string |
Message if the request failed |
|
string |
Reference to the method where a problem occurred |
|
string |
Cause of failure |
|
array |
See parameters below |
|
integer |
Total number of located ESXi hosts in inventory |
data.children
Field |
Value |
Description |
---|---|---|
|
string |
Platform version |
|
string |
API version |
|
string |
Highest supported virtual hardware version |
|
boolean |
|
|
boolean |
|
|
boolean |
|
|
string |
Power state of the object |
|
long |
host specific. Memory size |
|
string |
Item identifier for licensing purposes |
|
int |
Socket count |
|
string |
Managed object reference ID |
|
integer |
|
|
|
Proxy transporter node information, if applicable |
|
|
Extended info (if applicable) |
|
long |
Host ID |
|
string |
Object VID |
|
string |
Object type |
|
string |
Object subtype, if applicable |
|
string |
Display name |
|
string |
Object description |
|
boolean |
|
|
boolean |
|
|
boolean |
|
|
string |
Platform type |
|
int |
0th bit checks if the host is free 1st bit checks if the host is managed by vCenter |
|
string |
Sub-name, if applicable |
|
array |
ESXi host’s child objects, if applicable |