Get-SCSPFEventRegistration

Get-SCSPFEventRegistration

Gets the event used to automate runbooks.

構文

Parameter Set: FromEventRegistrationResourceActionEnabledParameterSetName
Get-SCSPFEventRegistration [-Action <EventRegistrationActionNames> {Action_Pause | Action_Publish | Action_Repair | Action_Restart | Action_Resume | Action_Scale | Action_Shutdown | Action_Start | Action_Stop | Action_Unpublish | Create | Delete | Update | UpdateStatus} ] [-Resource <String> ] [ <CommonParameters>]

詳細説明

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

パラメーター

-Action<EventRegistrationActionNames>

Specifies the name of the event.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Resource<String>

Specifies the path to the resource.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

1. Get an event registration by its name.

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

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