Using ABX action flows, you can link multiple ABX actions to run in tandem.

With this use case, you can create an action flow using 2 separate pre-configured actions. In this example, the Set IP and Tag VM actions, created in separate use cases, are used.

Prerequisites

Procedure

  1. Create a New Action using the following parameters:

    Parameter

    Value

    Name

    IPAMandTag

    Action Template

    Action Flow

    Action Script

    version: '1"
    flow:
     flow_start:
      next: action1
     action1:
      actionId:<action id> #ipam
      next: action2
     action2:
       actionId:<action id> #TagVM
       next: flow_end
    Note:

    Replace the action ID with the respective action ID, by using an autocomplete option.

  2. Click Save and then Test to test and verify that the action and inner actions run successfully.
  3. Create a New Subscription using the following parameters:

    Parameter

    Value

    Event topic

    Compute allocation

    Blocking/Non-blocking

    Blocking on provisioning.pre state

    Runnable item

    Select ABX as type and IPAMandTag as the action.

  4. Deploy the VM. Verify that the action flow is run successfully, and that the tagging and IP address is applied correctly.