getHook

Back to index

Summary

Retrieves a hook associated in an entity.
hookName
Stringrequired
Name for the hook; must be unique among all hooks.
projectName
Stringoptional
ProjectName of the entity that owns the hook.
resourceTemplateName
Stringoptional
Name of the resource template.

Usage

Perl

$cmdr->getHook( "test-hookName" # hookName # optionals );

ectool

ectool getHook \ "test-hookName" `# hookName` \ # optionals

Examples

Perl

$cmdr->getHook("Config Web Server", {resourceTemplateName => "Servers"});

ectool

ectool getHook "Config Web Server" --resourceTemplateName "Servers"