# Managed Object - EventManager

Property of
  ServiceContent
See also
  Event, EventArgDesc, EventDescription, EventFilterSpec, EventHistoryCollector, ManagedEntity, TaskInfo
Since
  null

## Managed Object Description

Properties

Name | Type | Description
--- | --- | ---
description P | EventDescription |
latestEvent* P | Event |
maxCollector P | xsd:int |

*May not be present P Required privilege: System.View

Methods

Methods defined in this Managed Object
CreateCollectorForEvents, LogUserEvent, PostEvent, QueryEvents, RetrieveArgumentDescription

# CreateCollectorForEvents

Required Privileges
  System.View

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the EventManager used to make the method call.
filter P | EventFilterSpec | Since null

P Required privilege: filter

Return Value

Type | Description
--- | ---
ManagedObjectReference to a EventHistoryCollector |

Faults

Type | Description
--- | ---
InvalidState |
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

# LogUserEvent

Required Privileges
  None

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the EventManager used to make the method call.
entity P | ManagedObjectReference to a ManagedEntity | Since null
msg P | xsd:string | Since null

P Required privilege - see tooltip for details

Return Value

Type | Description
--- | ---
None

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

# PostEvent

Required Privileges
  Global.LogEvent
Since
  VI API 2.5

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the EventManager used to make the method call.
eventToPost P | Event | Since VI API 2.5
taskInfo* P | TaskInfo | Since VI API 2.5

*Need not be set P Required privilege - see tooltip for details

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
InvalidEvent |
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

# QueryEvents

Required Privileges
  System.View

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the EventManager used to make the method call.
filter P | EventFilterSpec | Since null

P Required privilege: filter

Return Value

Type | Description
--- | ---
Event[] |

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

# RetrieveArgumentDescription

Required Privileges
  System.View
Since
  vSphere API 4.0

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the EventManager used to make the method call.
eventTypeId P | xsd:string | Since vSphere API 4.0

P Required privilege: eventTypeId

Return Value

Type | Description
--- | ---
EventArgDesc[] |

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