Event
The Event object is of type PsObject and represents the registeration to a specific Vault event.
Syntax
$event.SourceIdentifier
Following properties are available :
Type |
Name |
Description |
---|---|---|
Name |
The name of the registered Vault event. |
|
String |
SourceIdentifier |
Unique string which represents the registered event. Required for Unregister-VaultEvent. |
String / ScriptBlock |
Command |
The powershell script which gets executed when the event gets fired. |
Examples
Registered event with Command specified as function name
Name : UpdateFileStates_Restrictions
SourceIdentifier : 6090dbfa-bbb4-4d31-becf-4b63c8111a4f
Command : CanTriggerDwfJob
Properties of an event with Command specified as ScriptBlock
Name : UpdateFileStates_Post
SourceIdentifier : f4e99f68-fcfb-4d1c-b0df-4ae5611de2b6
Command : {
param()
write-host 'This ScriptBlock gets executed when the Vault event is raised!'
}