Information

This site will undergo a brief period of maintenance on Thursday, 23 April at 2:30 AM Central/1:00 PM IST. During a 30 minute window, site availability may be intermittent.

Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

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*

BMC Server Automation Command Line Interface 8.5