Create post-provision operations
Create post-provision tasks for newly provisioned catalog items by defining subflows, scripts, CAPI calls, or resource operations. For efficiency, set up a post-provision operation, eliminating the need for manual invocation. This approach enhances time management, ensuring seamless execution of desired actions on the catalog item after resource provisioning.
Before you begin
About this task
Procedure
- In the Cloud Admin Portal, navigate to Design > Cloud Catalog Items.
- Open the catalog item, click the Post Provisioning Operation tab, and then click New.
-
On the form, fill in the fields.
Table 1. Operation Setup form Field Description Step Type Post-provision operation. Based on the post-operation you select, additional fields appear. - CAPI:
- CAPI Provider
- CAPI Interface
- CAPI Method
- CAPI Version
- InstanceScript:
Script: Enter the name of the script.
- Resource:
- Resource Interface
- Interface Operation
- Flow: Select a subflow. All active subflows in the instance are listed. Note:For more information, see Subflows.
Order Order of post-provision operations. Enter the order (in numerals) in which you want the post-provision operation to be invoked. For example, if you enter the value 2 for CAPI and the value 3 for InstanceScript, then CAPI is invoked first and then the InstanceScript gets invoked. If you do not enter any value in this field, the system automatically enters a value in increments of 20. Enabled Option for enabling the post-provision operation you want invoked. - CAPI:
-
Click Submit.
Parameters for the post-provision operation are automatically created as operation attributes on the Manage Attributes form.
-
To set attribute values for a post-provision operation:
-
Click the Manage Attributes related link.
The Manage Attributes form opens.
-
Select the post-provision operation to update.
All attributes for the selected operation appear in the Operations list. You can either create expression mappings (shown in the Mapping column) for an attribute or can you generate variables for an attribute. See Manage operation attributes for more information.
- On the Operation Attributes form, edit the values in the Mapping field as needed.
-
To set a value and not show the field to the cloud user, set Generate Variable to false.
For VMware post-provision operations, you can set the following attribute values:
Table 2. Post-provision operation attributes for VMware Attribute name <Value field> to set in the Mapping expression NodeCredential $(capiResolver.NodeCredentialResolver#nodeCredentialId= <Credential SysID>)Note:You must create the credentials manually to be able to specify the sys_id in the expressionNodeAddress $(Script:CMPVMUtils.getReachableIp[arg=$(Stack.items[ <VM Name>].attributes[sys_id])])ScriptExpression ${CloudScript.scripts. <Script Name>} -
Click Apply Changes.
All configurations are saved and the Cloud Catalog Items page opens.
-
Click the Manage Attributes related link.