TemplateGroup - createTemplateGroup
TemplateGroup - createTemplateGroup
Description :
This command creates a component template group as a child of a parent template group that is identified by ID.
This command returns the ID of the newly created group.
Return type : Integer
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
groupName | String | Name of the template group to be created. |
parentId | Integer | ID of the parent group. |
Example
The following example shows how to create a template group inside another template group by providing the parent group's ID:
Script
PARENT_GROUP="/parent"
PARENT_GROUP_ID=`blcli TemplateGroup groupNameToId $PARENT_GROUP`
TEMPLATE_GROUP1="group1"
# Now create new group
TEMPLATE_GROUP1_ID=`blcli TemplateGroup createTemplateGroup $TEMPLATE_GROUP1 $PARENT_GROUP_ID`
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*