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
Role required: sn_cmp.cloud_service_designer
About this task
You can create post-provision operations only for catalog items that are based on templates.
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.
| 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.
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. |
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.
Post-provisioning attributes
3. On the Operation Attributes form, edit the values in the **Mapping** field as needed.
4. 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:
| 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 expression | ||
| NodeAddress | $\(Script:CMPVMUtils.getReachableIp\[arg=$\(Stack.items\[`| ScriptExpression | $\{CloudScript.scripts.` | |