Storage Query Manager Query Hosts With Attached Lun

Storage Query Manager Query Hosts With Attached Lun

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

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/StorageQueryManager/{moId}/QueryHostsWithAttachedLun
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case StorageQueryManager/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Request Body
QueryHostsWithAttachedLunRequestType of type(s) application/json
Required
{
    "lunUuid": "string"
}
string
lunUuid
Required

The UUID of the ScsiLun device.

Authentication
This operation uses the following authentication methods.
Responses
200

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.

Returns Array of MoRefHostSystem of type(s) application/json
[
    {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    }
]