metadata:
 version: 2
 type: standard
 name: get_param(template_name)
 description: template with parameters that have default values
parameters:
 template_name:
  description: the name of the template
  default: template_with_default_params
 alarm_type:
  description: the type of the alarm
  default: zabbix
 alarm_name:
  default: Alarm1
 new_state:
  default: ERROR
definitions:
 entities:
  - entity:
     category: ALARM
     type: get_param(alarm_type)
     name: get_param(alarm_name)
     template_id: alarm
  - entity:
     category: RESOURCE
     type: nova.host
     template_id: resource
 relationships:
  - relationship:
     source: alarm
     target: resource
     relationship_type: on
     template_id : alarm_on_host
scenarios:
 - scenario:
    condition: alarm_on_host
    actions:
     - action:
        action_type: set_state
        properties:
         state: get_param(new_state)
        action_target:
         target: resource
