Get-SCSPFEventRegistration

Gets the event used to automate runbooks.

Syntax

Get-SCSPFEventRegistration []
Get-SCSPFEventRegistration
   [-Resource <String>]
   [-Action <EventRegistrationActionNames>]
   [<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
Accepted values:Create, Update, Delete, Action_Pause, Action_Publish, Action_Repair, Action_Restart, Action_Resume, Action_Scale, Action_Shutdown, Action_Start, Action_Stop, Action_Unpublish, UpdateStatus
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Resource

Specifies the path to the resource.

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