Create a rule from a template
POST/alarm-rule-templates/:alarmRuleTemplateId/rule
Copies the fields of the template into a new rule and stores it. The new rule is unbound and disabled: which objects it watches is exactly what a template cannot know, and an enabled rule without a binding would tick and evaluate nothing, which looks like a working rule and is not one. Bind it and enable it through the rule endpoints afterwards.
The copy is complete and final. The new rule carries no reference to the template, and a later change to the template does not reach it.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- default
OK
the default error response
Unauthorized — the bearer token is missing, expired or invalid, or carries no role. Errors raised by the security aspects contain an ErrorDto body; requests rejected by the security filter chain may have an empty body.
Forbidden — the authenticated user lacks the required role or access rights.
Entity not found.
the default error response