ExecutionTask - applyAclPolicy
ExecutionTask - applyAclPolicy
Description :
This command applies an ACL policy to an execution task.
When an ACL policy is applied to an object, all access checks on that object will check both the permissions in its ACL along with the permissions of the associated ACL policy. Returns the DBKey of the modified object.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
etKey | com.bladelogic.om.infra.model.base.keys.SExecutionTaskKey | Handle to the execution task. |
policyName | String | Name of the ACL policy to use. |
Example
The following example shows how to apply the ACL policy called "Test Policy" to an execution task.
Script
ET_KEY=`blcli ExecutionTask getDBKeyByGroupAndName /tasks tstEt`
ExecutionTask applyAclPolicy $ET_KEY "Test Policy"
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*