New-AlarmActionTrigger

This cmdlet creates a new action trigger or adds a new action trigger to the specified alarm action.

Syntax

[-EndStatus]  <InventoryItemStatus>
-StartStatus  <InventoryItemStatus>
[-AlarmAction  <AlarmAction>]
[-Repeat]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
EndStatus
InventoryItemStatus 1 Specifies the end status for the alarm action. The valid values are Green, Yellow, and Red.
required
StartStatus
InventoryItemStatus named Specifies the start status for the alarm action. The valid values are Green, Yellow, and Red.
optional
AlarmAction
AlarmAction named
  • pipeline
  • Specifies the alarm action for which you want to create an action trigger.
    optional
    Repeat
    SwitchParameter named Indicates whether you want the alarm action to repeat until the alarm is acknowledged.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Alarm.AlarmActionTrigger

    Examples


    Example 1

    Get-AlarmDefinition -Name "Alarm1" | Get-AlarmAction | New-AlarmActionTrigger -StartStatus 'Red' -EndStatus 'Yellow' -Repeat

    Creates an action trigger for all actions for the specified alarm definition.

    Example 2

    New-AlarmActionTrigger -StartStatus 'Red' -EndStatus 'Yellow' -Repeat

    Creates an action trigger.

    Related Commands

    Feedback

    Was this page helpful?