# Managed Object - StorageQueryManager(vim.StorageQueryManager)

Property of
  ServiceContent
See also
  HostSystem
Since
  vSphere API 6.7.2

## Managed Object Description

This managed object is used to query vCenter Server's storage system entities.

Properties

Name | Type | Description
--- | --- | ---
None

Methods

Methods defined in this Managed Object
QueryHostsWithAttachedLun

# QueryHostsWithAttachedLun(queryHostsWithAttachedLun)

Query the set of all hosts which have the specified lun attached. Requires Host.Config.Storage privilege on the hosts which have the lun in attached state.

Required Privileges
  System.Read

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the StorageQueryManager used to make the method call.
lunUuid P | xsd:string | The UUID of the ScsiLun device. Since vSphere API 6.7.2

P Required privilege: lunUuid

Return Value

Type | Description
--- | ---
ManagedObjectReference[] to a HostSystem[] | HostSystem The set of hosts which have the specified lun attached. No values are returned if there are no hosts with the specified lun in attached state.

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="QueryHostsWithAttachedLun" type="vsan:QueryHostsWithAttachedLunRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="QueryHostsWithAttachedLunResponse"> <complexType> <sequence> <element name="returnval" type="vsan:ManagedObjectReference" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType> </element>