Get-SCSPFEventRegistration

Gets the event used to automate runbooks.

Syntax

Get-SCSPFEventRegistration [-Action <EventRegistrationActionNames>] [-Resource <String>] [<CommonParameters>]

Description

The Get-SCSPFEventRegistration cmdlet gets an event registered to automate a runbook as performed by Service Management Automation.

Examples

Example 1: Get an event registration by name

PS C:\>$EventBackup = Get-SCSPFEventRegistration -Action "Backup"

This command gets an event with the Action parameter and stores it in the $EventBackup variable.

Parameters

-Action

Specifies the name of the event. The acceptable values for this parameter are:

- Action_Pause

  • Action_Publish
  • Action_Repair
  • Action_Restart
  • Action_Resume
  • Action_Scale
  • Action_Shutdown
  • Action_Start
  • Action_Stop
  • Action_Unpublish
  • Create
  • Delete
  • Update
  • UpdateStatus

Type:EventRegistrationActionNames
Parameter Sets:Create, Update, Delete, Action_Pause, Action_Publish, Action_Repair, Action_Restart, Action_Resume, Action_Scale, Action_Shutdown, Action_Start, Action_Stop, Action_Unpublish, UpdateStatus
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Resource

Specifies the path to the resource.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False