noc.sa.models.action

Module Contents

noc.sa.models.action.id_lock
class noc.sa.models.action.ActionParameter

Bases: mongoengine.document.EmbeddedDocument

name
type
description
is_required
default
json_data
__str__(self)
class noc.sa.models.action.Action

Bases: mongoengine.document.Document

meta
uuid
name
label
description
access_level
handler
params
_id_cache
json_data
__str__(self)
classmethod get_by_id(cls, id)
get_json_path(self)
to_json(self)
get_commands(self, obj)

Returns ActionCommands instance or None :param obj: Managed Object

expand_ex(self, obj, **kwargs)
expand(self, obj, **kwargs)
execute(self, obj, **kwargs)

Execute commands

clean_args(self, obj, **kwargs)