PowerCLI Reference

Get-EventType

Synopsis

This cmdlet retrieves the available event types on a vCenter Server system.

Syntax

Get-EventType [-Category {Error | Info | Warning}] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Detailed Description

This cmdlet retrieves the available event types on a vCenter Server system. The cmdlet returns a set of event types that correspond to the filter criteria provided by the cmdlet parameters. To specify a server different from the default one, use the Server parameter.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
CategoryEventCategorySystem.Nullable`1[[VMware.VimAutomation.ViCore.Types.V1.]]Specifies the category of the event type that you want to retrieve.falseFalse
ServerVIServer[]Specifies the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.falseFalse

Return Type

VMware.VimAutomation.ViCore.Types.V1.EventType

Notes

Examples

-------------------------- Example 1 --------------------------

Get-EventType

Retrieves all available event types.

-------------------------- Example 2 --------------------------

Get-EventType -Category Error

Retrieves all available event types which have category Error.


Copyright © VMware, Inc. All rights reserved.