vim_alarm

vCenter AlarmManager (SOAP).

REST doesn’t expose alarm definition authoring — only consumption via VCF Operations. This module wraps the SOAP AlarmManager so users can manage vCenter alarms declaratively.

saltext.vcf.clients.vim_alarm.list_(opts, entity=None, profile=None)[source]

List alarms. Optionally scoped to entity (a managed object reference).

Returns a list of dicts with key, name, description, enabled, info.

saltext.vcf.clients.vim_alarm.get(opts, name, profile=None)[source]

Return the alarm whose info.name matches name, or None.

saltext.vcf.clients.vim_alarm.create(opts, name, description, expression, action=None, enabled=True, profile=None)[source]

Create an alarm at the root folder.

expression is a vim.alarm.AlarmExpression instance (e.g. vim.alarm.EventAlarmExpression or vim.alarm.MetricAlarmExpression). action is an optional vim.alarm.AlarmAction instance.

saltext.vcf.clients.vim_alarm.update(opts, alarm_mo_id, name=None, description=None, expression=None, action=None, enabled=None, profile=None)[source]

Reconfigure an alarm by its managed-object id.