List Children of Single Inventory Item
Returns the list of children of a specified inventory item.
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 --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie @cookies.txt \
--data "{
"action": "InventoryManagement",
"method": "list",
"data": [{
"nodeType": "VMWARE_ESX",
"nodeId": "8",
"includeTypes": ["VMWARE_DATASTORE"]
}],
"type": "rpc",
"tid": 1}"
Request Fields
Field |
Type |
Value(s) |
|
string |
|
|
string |
|
|
array |
Request parameters. See below |
|
string |
|
|
int |
1 |
data
Field |
Value |
Description |
|
string |
Type of an inventory item. Possible values:
|
|
int |
ID of an inventory item |
|
array |
Resource type of an inventory item. Possible values:
|
Response Example:
{
"action": "InventoryManagement",
"method": "list",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": {
"children": [
{
"readOnlyHostMorIds": [],
"free": 24563941376,
"size": 471372660736,
"online": true,
"parentStorageVid": null,
"identifier": 20,
"vid": "VMWARE_DATASTORE-20",
"type": "VMWARE_DATASTORE",
"subType": "VMFS",
"name": "SSD_Datastore",
"description": null,
"accessible": true,
"isDisabled": false,
"replicable": false,
"hvType": "VMWARE",
"flags": 0,
"children": null
},
{
"readOnlyHostMorIds": [],
"free": 424933326848,
"size": 3999956729856,
"online": true,
"parentStorageVid": null,
"identifier": 18,
"vid": "VMWARE_DATASTORE-18",
"type": "VMWARE_DATASTORE",
"subType": "VMFS",
"name": "HDD-Datastore",
"description": null,
"accessible": true,
"isDisabled": false,
"replicable": false,
"hvType": "VMWARE",
"flags": 0,
"children": null
},
{
"readOnlyHostMorIds": [],
"free": 0,
"size": 0,
"online": true,
"parentStorageVid": null,
"identifier": 24,
"vid": "VMWARE_DATASTORE-24",
"type": "VMWARE_DATASTORE",
"subType": "vsan",
"name": "vsanDatastore",
"description": null,
"accessible": true,
"isDisabled": false,
"replicable": false,
"hvType": "VMWARE",
"flags": 0,
"children": null
}
],
"totalCount": 3,
"lastSessionTime": null
}
}
Response Fields
Field |
Value |
Description |
---|---|---|
|
string |
Message if the request failed |
|
string |
Reference to the method where the problem occurred |
|
string |
Cause of failure |
|
array |
Parameters. See below |
data
Field |
Value |
Description |
---|---|---|
|
array |
Datastore, read-only host MorIDs |
|
long |
Free space |
|
long |
Size of the datastore |
|
boolean |
|
|
string |
Virtual identifier (VID) of the parent datastore |
|
int |
Datastore ID |
|
string |
Virtual identifier (VID) of the datastore |
|
string |
Datastore type |
|
string |
Datastore subtype |
|
string |
Datastore name |
|
string |
Datastore description |
|
boolean |
|
|
boolean |
|
|
boolean |
|
|
string |
Hypervisor type |
|
int |
For VMware ESXi hosts:
|