Create an action plan to automate VM actions
Before you create an action plan, consider the elements that you wish to automate with the action plan. Create VMs or scaling groups, fetch metrics, and create alarms and alerts.
To create an action plan:
- Go to Control → Action plans, and click the + add button
- Enter the action plan details
- Go to Actions to add actions:
- Click the + add button
- Enter action details
- Type: Select a general action or select a VM or scaling group
- Decrease CPU/RAM: you cannot use this with hot-reconfigure and you must check that the OS is compatible
Instance: Name for Instance (clone) template. The platform will append the date to the name supplied
- Webhook action - Expected HTTP status code: If this status code is returned, continue running the action plan. Default: 204 No Content
Email action - To, CC: Enter email addresses as a comma separated list
- Put the actions in run order using the arrow buttons
To run the action plan automatically, go to the Triggers tab and create an alert or schedule trigger.
When you create actions on VMs also consider the following constraints.
- User constraints: e.g. allocation limits
- Platform constraints: e.g. to create an instance, the VM must be deployed and powered off
- Hypervisor constraints: e.g. when using hot reconfigure on ESXi, you cannot decrement CPU or RAM
For the API, note that you can request the JSON schema for each action plan entry type from the API.
See: https://wiki.abiquo.com/api/latest/ActionPlansResource.html#list-action-plan-entry-templates
Copyright © 2006-2022, Abiquo Holdings SL. All rights reserved