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.

ExecutionTask - createExecutionTask_2


ExecutionTask - createExecutionTask

Description :

This command creates an execution task for a given job with the specified name, description and shouldUseJobTargets flag. This command returns the handle of the execution task.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobDBKey

com.bladelogic.om.infra.model.base.keys.SJobKey

Handle to the job.

executionTaskName

String

Name of the execution task you want to create.

executionTaskDesc

String

Description of the execution task.

shouldUseJobTargets

Boolean

Flag indicating whether to use the predefined job's targets or its own targets.

Example

The following example shows how to create an execution task associated with the job 'snapJob' in the job group '/snapshots' that should run against the predefined job's targets.

Script


JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /snapshots snapJob`

ET_NAME="et-snap"

ET_DESCRIPTION="this execution task created by blcli"

ET_KEY=`blcli ExecutionTask createExecutionTask $JOB_KEY "$ET_NAME" "$ET_DESCRIPTION" true`



 

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

BMC Server Automation Command Line Interface 8.3