Policy Action form fields for trigger: on Resource operation

These fields appear when you create a policy action for a policy that is triggered on Resource operation.

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.
  • Call Cloud API: use a Cloud API interface to perform an operation.
  • IP Address Management: use Infoblox, or another IP management tool, to register or release an IP address.
Order of execution

Enter a number that tells the system which action to evaluate first in relation to others. 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 field on the form to override with another value. The field is derived from the blueprint form configuration. It gives the user options to select values, such as the node name or IP address.
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 script action type if you select Is Script Based]

Select an action attribute category.
Action script name

[Execute a script action type if you select Is Script Based]

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.
Action name

[Call Cloud API action type]

Enter a descriptive name for the action. In subsequent policy actions within the same policy, you can reference this name in a Value field. It refers to the JSON payload that is received from the cloud provider after an API call. For example, to reference an allocated IP address that was returned, you can use the following expression in the Value field of another policy action: $(parameter.action_name.Allocated_IP} where action_name is the name you enter in this field.
Provider

[Call Cloud API action type]

Enter the cloud provider from the API library.
Version

[Call Cloud API action type]

Enter the version from the API library.
Endpoint URL

[Call Cloud API action type]

Enter the endpoint URL of the connector from the API library. For Infoblox, it is the IP address of the Infoblox server.
Credentials

[Call Cloud API action type]

Enter the sys_ID of the necessary credentials. You can also make an expression like the following one:
$(ci.sn_cmp_infoblox_server[$(ci.sn_cmp_ip_pool[subnet=${parameter.formData.SubnetId}].provider_instance)].infoblox_server_credential)
Interface

[Call Cloud API action type]

Select a CAPI API interface. For Infoblox, select IPAM interface.
Operation

[Call Cloud API action type]

Select a CAPI interface operation to perform. For Infoblox, select CreateHostRecord or DeleteHostRecord.
Provider Type

[IP Address Management action type]

Select the IP address management provider. Infoblox Server is available by default.
IPAM Method Name

[IP Address Management action type]

Select the IPAM Method Name. For Infoblox, select one of the following options:
  • Release IP Address: to release an IP address from Infoblox when a machine is deprovisioined.
  • Register IP Address: to register a new virtual machine to Infoblox. This is used by AWS and Azure clouds.
  • Reserve IP Address: to reserve a new IP address. This is used by a vSphere cloud.

If you select the Call Cloud API action type and save the record, the Policy Rule Action Attributes related list is populated with the attributes that you want to pass to the provider. If you are integrating with Infoblox, you must configure the DNSSuffix field. When you create a host, for example, the value in the DNSSuffix field appears in Infoblox for the newly created virtual machine.