Search Index Find By Dns Name
Finds a virtual machine or host by DNS name.
The DNS name for a virtual machine is the one returned from VMware tools, hostName.
Required privileges: System.View
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 SearchIndex/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
{
"datacenter": {
"_typeName": "string",
"type": "string",
"value": "string"
},
"dnsName": "string",
"vmSearch": false
}
The fully qualified domain name to find.
if true, search for virtual machines, otherwise search for hosts.
The virtual machine or host managed entity that is found. If no managed entities are found, null is returned. Only a single entity is returned, even if there are multiple matches.
{
"_typeName": "string",
"type": "string",
"value": "string"
}