UCSTemplate - addTemplatePolicy
UCSTemplate - addTemplatePolicy
Description :
This command sets the policy configuration for a UCS template.
Use the policyTypeId argument to specify the type of policy. Set policyTypeId to one of the following integers:
- Host firmware policy - 1
- Stats collection policy - 2
- IPMI profile policy - 3
- Management firmware policy - 4
- Dynamic VNic policy - 5
- Local disk policy - 6
- Scrub policy - 7
Use the templateKey argument to specify the DBKey of the template you want to modify. You can get the DBKey of the template by using the DepotObject : getDBKeyByTypeStringGroupAndName command.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
templateKey | com.bladelogic.om.infra.model.base.keys.SDepotObjectKey | The DBKey of the template you want to modify. |
policyTypeId | Integer | An integer indicating the type of policy. For more information, see the list above. |
policyName | String | The name of the policy. This name must NOT contain any spaces. |
Example
The following example sets the boot policy configuration for the template.
Script
blcli UCSTemplate addTemplatePolicy DBKey:SDepotObjectKey:1-1 6 "MyBootPolicy"