Defining a Hook and declaring it as a Magic Variable

You can define a common hook and refer it within a workflow form.
  1. From the Hooks inventory, create a Hook using REST API or Script.
  2. Go to the Magic Variables section.
  3. In the Magic variables window, to define a new magic variable, click (Add) icon.
  4. Enter or select the required field information.
    Table 1. Field descriptions for adding new magic variable
    Field Description
    *Variable name Enter the name for this magic variable. For example: Managed_F5_Devices
    Description Enter a description for the magic variable.
    Type Select if the magic variable is
    • Static: Hooks which are static in nature can be referred as magic variables. For example, Slack webhook, ITSM change ticket URL etc.
    • Dynamic: Hooks that execute dynamically can be referred as magic variables. For example, Query to get list of devices, Query to get list of unused VIPs, Query to get list of managed F5 devices etc.
    *Key Enter a unique key for the magic variable.
    *Value Enter the values for the magic variable. These can either be comma-separated values or a URL.
    Note: This field is displayed only when you select the Type as Static.
    *Hooks Enter the name of the hook that you want to define as the magic variable. For example, Get F5 device name list.
    Note: This field is displayed only when you select the Type as Dynamic.
    Tags Enter tags to be associated with this magic variable, if any. This will help you to search for magic variables by tags.
    * : Mandatory fields
  5. Click Add.