Template - createEmptyTemplate_1
Template - createEmptyTemplate
Description :
This command creates an empty template. This command also lets you set the signature evaluation flag to either "match all" or "match any."
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
templateName | String | Name of the template. |
groupId | Integer | ID of the folder where the template is to be created. |
bExplicit | Boolean | True to create an explicit template, false to create an implicit template. (An implicit template is one that does not appear in the GUI.) |
sigMatchAll | Boolean | True to set signature evaluation to match all, false to set signature evaluation to match any. |
Example
The following example shows how to create a new empty template whose signature evaluation flag is explicitly set to "match all."
Script
# Name of the new template.
TEMPLATE_NAME="template1"
# Group in which template is to be stored.
TEMPLATE_GROUP="/parent/group1"
TEMPLATE_GROUP_ID=`blcli TemplateGroup groupNameToId $TEMPLATE_GROUP`
# Template type. Set to false if you want to create an implicit template. (An implicit template is one that does not appear in the GUI.)
bExplicit="true"
# Signature Evaluation. Set to true to match all signatures and false to match any signature.
SIGNATURE_EVAL="true"
TEMPLATE_DBKEY=`blcli Template createEmptyTemplate $TEMPLATE_NAME $TEMPLATE_GROUP_ID $bExplicit $SIGNATURE_EVAL `
# Use the returned DBKey to add more items to the template.
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.