Template - setInstallBatchJob


Template - setInstallBatchJob

Description :

This command sets the install Batch Job for the chosen template. If the template has no install Batch Job, this sets it. If the template has a job, this replaces it.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

templateGroupName

String

Fully qualified template group name.

templateName

String

Name of the template.

batchJobKey

DBKey

DBKey of the Batch Job.

Example

The following example sets the install Batch Job for a template.

Script


# Name of the existing install Batch Job.

INSTALL_BATCHJOB_NAME="batchjob1"

# Job group in which the install Batch Job is stored.

INSTALL_BATCHJOB_GROUP="/parent/group1"

# Get the install Batch Job DBKey using the above information.

INSTALL_BATCHJOB_DBKEY=`blcli BatchJob getDBKeyByGroupAndName $INSTALL_BATCHJOB_GROUP $INSTALL_BATCHJOB_NAME`

# Set the install Batch Job on the template

blcli Template setInstallBatchJob /TemplateGroupName TestTemplate $INSTALL_BATCHJOB_DBKEY



 

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