This API has a deprecated equivalent from v7.0U1.
Get Guest Identity
DescriptionReturn information about the guest.
Request
URLURL
https://{api_host}/api/vcenter/vm/{vm}/guest/identity
Path Parameters
Path Parameters
string
vm
Required
Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Response
Response
Response BodyResponse Body
200 OK returns
VmGuestIdentityInfo of type application/json
guest identification information.
{
"family": "enum",
"full_name": {
"args": [
"string"
],
"default_message": "string",
"id": "string",
"localized": "string",
"params": {
"key": {
"d": 0,
"dt": "string",
"format": "enum",
"i": 0,
"l": {
"id": "string",
"params": "StdLocalizationParam Object"
},
"precision": 0,
"s": "string"
}
}
},
"host_name": "string",
"ip_address": "string",
"name": "enum"
}
family
Required
Guest operating system family.
Possible values are: WINDOWS , LINUX , NETWARE , SOLARIS , DARWIN
string
host_name
Required
Hostname of the guest operating system.
name
Required
Guest operating system identifier (short name).
Possible values are: DOS , WIN_31 , WIN_95 , WIN_98 , WIN_ME , more...
string
ip_address
Optional
IP address assigned by the guest operating system. If unset the guest does not have an IP address.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/api/vcenter/vm/{vm}/guest/identity
Errors
500
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.
503
com.vmware.vapi.std.errors.service_unavailable : if VMware Tools is not running.
if VMware Tools has not provided any data.
Availability
Added in 7.0U2