Policy Action form fields for trigger: on Catalog item launch

These fields appear when you create a policy action for a policy that is triggered on Catalog item launch.

Field Description
Action type Select an action type:
  • Property override: override a value that the user inputs on the catalog item form.
  • Execute a script: run a script on the instance.
Order of execution Enter a number that tells the system which action to run first in relation to other actions. The action with the lowest number runs first.
Is script based

[Property override action type]

Select to display the Script field.
Property

[Property override action type]

Enter the property to override. The field is derived from the blueprint form configuration. It gives the user options to select values, such as the stack name.
Note: You can override properties in policy actions and blueprint form event actions. If you configure overrides in both places, the blueprint form event override gets triggered last and takes precedence.
Value

[Property override action type]

Enter a value that overrides the value in the Property name field. You can use a static value, an expression, or both. Expressions can do the following:
  • Set form data values using definition expressions. For example: ${parameter.formData.CatalogAttributeType}
  • Assign user data values using definition expressions. For example: ${parameter.userData.userId}

    For example, the following value can set the stack name to Stack_Bob.Smith@company.com: Stack_${parameter.userData.userId}

  • Set stack or table values using runtime expressions.

    For example: $(ci.sn_cmp _ip_pool[subnet=${parameter.formData.Subnet Id}]) takes the subnet from the IP Pools table.

  • Associate a random number with a field using static expressions. Use: ${randomNumber}
Action script category

[Execute a workflow action type if you select a script based action, or Execute a script action type]

Select an action attribute category.
Action script name

[Execute a workflow action type if you select a script based action, or Execute a script action type]

Select a policy rule action script.
Script

[Execute a workflow action type if you select a script based action, or Execute a script action type]

Review the script. To modify it, navigate to Cloud Management > Governance > Policy Script Category, and then click the script that belongs to the category. See Create a policy script for an explanation of the fields you need for cloud policy scripts.