TemplateGroup - groupExists


TemplateGroup - groupExists

Description :

This command determines whether a component template group exists. You must provide the full path (for example, /BLDeploy/WebApps) to the template group.

This command returns true if the group exists; otherwise it returns false.

Return type : Boolean

Command Input :

Variable Name

Variable Type

Description

qualifiedGroupName

String

Fully qualified path to the component template group.

Example

The following example shows how to test whether a group exists before taking an action such as adding a template to the group:

Script





TEMPLATE_GROUP1="/parent/group1"

if [`blcli TemplateGroup groupExists $TEMPLATE_GROUP1` == "true"]; then 

# add Template to group1

fi



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.7