ExecutionTask - executeWithApproval
ExecutionTask - executeWithApproval
Description :
This command executes an execution task after receiving approval from the approval system. This command returns immediately without waiting for the execution task to end.
Return type : Integer
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
executionTaskKey | com.bladelogic.om.infra.model.base.keys.SExecutionTaskKey | DBKey of the execution task. |
approvalId | Integer | Approval ID to be attached to the job. |
Example
The following example shows how to execute an execution task with approval.
Script
ET_KEY=`blcli ExecutionTask getDBKeyByGroupAndName /tasks testET`
ET_APPROVAL_ID=`blcli Job createApproval 2 2 "My change" 2 3 "" ""`
`blcli ExecutionTask executeWithApproval $ET_KEY $ET_APPROVAL_ID`
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*