Group - bulkApplyBlAclPolicyByGroup
Group - bulkApplyBlAclPolicyByGroup
Description :
This command bulk applies an ACL policy to all objects in a group. You must provide the fully qualified name of the group and the name of the ACL policy. You must also provide a string describing the type of group. The following is a list of all valid group type strings:
- Job Group: JOB_GROUP
- Smart Job Group: SMART_JOB_GROUP
- Server Group: STATIC_SERVER_GROUP
- Smart Server Group: SMART_SERVER_GROUP
- Depot Group: DEPOT_GROUP
- Smart Depot Group: SMART_DEPOT_GROUP
- Template Group: TEMPLATE_GROUP
- Smart Template Group: SMART_TEMPLATE_GROUP
- Component Group: STATIC_COMPONENT_GROUP
- Smart Component Group: SMART_COMPONENT_GROUP
- System Package Group: SYSTEM_PACKAGE_GROUP
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
groupName | String | Name of the group or folder. |
modelType | String | Internal model type of group or folder. |
policyName | String | Name of the ACL policy. |
recursive | Boolean | Flag to control whether policy should apply to objects in sub-groups. |
replace | Boolean | Flag indicating whether or not you want to replace all ACL entries (true/false). |
Example
The following example shows you how to apply an ACL policy to an existing job group.
Script
# Name of the existing job group.
GROUP_NAME="/parent/jobgroup1"
# Group type string.
GROUP_TYPE="JOB_GROUP"
# Name of the existing ACL policy.
ACLPOLICY_NAME="aclpolicy1"
# Recurse flag (true to apply policy to objects in sub-groups).
RECURSE="false"
REPLACE="false"
#Now apply the ACL policy to the job group.
`blcli Group bulkApplyBlAclPolicyByGroup $GROUP_NAME $GROUP_TYPE $ACLPOLICY_NAME $RECURSE $REPLACE`
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*