Get Guest Identity
Return information about the guest.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the virtual machine. The parameter must be an identifier for the resource type: VirtualMachine.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
guest identification information.
{
"family": "WINDOWS",
"full_name": {
"args": [
"string"
],
"default_message": "string",
"id": "string",
"localized": "string",
"params": {
"key": {
"d": 0,
"dt": "string",
"format": "SHORT_DATE",
"i": 0,
"l": {
"id": "string",
"params": "StdLocalizationParam Object"
},
"precision": 0,
"s": "string"
}
}
},
"host_name": "string",
"ip_address": "string",
"name": "enum"
}
The GuestOSFamily enumerated type defines the valid guest operating system family types reported by a virtual machine.
WINDOWS : Windows operating system
LINUX : Linux operating system
NETWARE : Novell Netware
SOLARIS : Solaris operating system
DARWIN : Mac OS operating system
OTHER : Other operating systems
Possible values are: WINDOWS , LINUX , NETWARE , SOLARIS , DARWIN
Hostname of the guest operating system.
Guest operating system identifier (short name).
Possible values are: DOS , WIN_31 , WIN_95 , WIN_98 , WIN_ME , more...
IP address assigned by the guest operating system. If unset the guest does not have an IP address.
Errors
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.
com.vmware.vapi.std.errors.service_unavailable : if VMware Tools is not running. if VMware Tools has not provided any data.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: get
x-vmw-doc-deprecated-path: /rest/vcenter/vm/{vm}/guest/identity
x-vmw-doc-operation: get