Creating hook operations
Creating hook operations via the Delphix Continuous Data Engine UI
Hook operations can be configured either during the provisioning process or on existing virtual datasets.
During provisioning
In the Add dSource or Add VDB wizards, go to the Hooks tab.
Select the Operation Type, enter a Name, and input the Script.
To remove an operation, click the Trash icon next to it.
After setting all operations, click Next to proceed with provisioning.
To edit on existing virtual datasets
Log in to the Delphix Management application.
In the Datasets panel, select the virtual dataset.
Navigate to Configuration > Hooks.
Select a hook and click the Pencil icon to edit.
Use the + icon to add or the Trash icon to remove operations.
Save changes by clicking the checkmark icon.
Creating hook operations via the administrative Command-Line Interface (CLI)
To define hook operations
During linking: Edit the array in LinkingParameters > Source > Operations.
During provisioning: Edit the array in ProvisionParameters > Source > Operations.
On existing dSources: Edit Source > Operations.
On existing virtual datasets: Edit Source > Operations.
Detailed documentation on these CLI objects is available in the Help menu of the Delphix Management application, including LinkedSourceOperations
, VirtualSourceOperations
, RunCommandOnSourceOperation
, and RunExpectOnSourceOperation
API.
Example of editing hook operations through the CLI
To modify operations for a source, use the following commands:
Navigate to
VirtualSourceOperations
for the source.Select a hook to edit. Example commands:
delphix> source
delphix source> select "pomme"
delphix source "pomme"> update
delphix source "pomme" update *> edit operations
delphix source "pomme" update operations *> edit postRefresh
To add an operation:
delphix source "pomme" update operations postRefresh *> add
delphix source "pomme" update operations postRefresh 0 *> set type=RunCommandOnSourceOperation
delphix source "pomme" update operations postRefresh 0 > set command="echo Refresh completed."
delphix source "pomme" update operations postRefresh 0 > ls
Properties
type: RunCommandOnSourceOperation ()
command: echo Refresh completed. ()
delphix source "pomme" update operations postRefresh 0 *> commit
To delete an operation:
delphix source "pomme" update operations postRefresh *> unset 1
delphix source "pomme" update operations postRefresh *> commit