Get Datastore Info for a Specific ESXi Host

Collects the data for all datastores within a specific ESXi host in Inventory. The returned identifier parameter for the necessary datastore is required to deploy a transporter as a VMware vSphere appliance.

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

Request Fields

Field

Type

Value(s)

action

string

InventoryManagement

method

string

list

data

array

See parameters below

type

string

rpc

tid

integer

3

data

Field

Type

Value(s)

nodeType

string

Type of inventory item; in this case, “VMWARE_ESX”

nodeId

string

The ID of the chosen node type; in this case, the ESXi host identifier value obtained previously

includeTypes

string

Specifies the type of objects to list; for datastores, ["VMWARE_DATASTORE"]

Response Sample

Response Fields

Field

Value

Description

message

string

Message if the request failed

where

string

Reference to the method where a problem occurred

cause

string

Cause of failure

data.children

array

See parameters below

data.totalCount

integer

Total number of located datastores in ESXi host

data.children

Field

Value

Description

readOnlyHostMorIds

array

Datastore, read-only host reference IDs

free

long

Free space

size

long

Size of the datastore

online

boolean

true if the datastore is online

parentStorageVid

string

Virtual identifier (VID) of the parent datastore, if applicable

identifier

int

Datastore ID

vid

string

Virtual identifier (VID) of the datastore

type

string

Datastore type

subType

string

Datastore subtype

name

string

Datastore name

description

string

Datastore description

accessible

boolean

true if the datastore is accessible

isDisabled

boolean

true if the datastore is disabled

replicable

boolean

true if the datastore is replicable

hvType

string

Hypervisor type

flags

int

0th-bit checks if the host is free

1st-bit checks if the host is managed by a vCenter

subName

string

Sub-name, if applicable

children

array

Datastore’s child objects, if applicable