Template - createFileTemplate
Template - createFileTemplate
Description :
This command creates a template with one file asset.
The path to the file should be the full path in NSH format. This command returns a handle to the newly created template. The handle can be used for other commands that need a reference to the new template.
Return type : DBKey
Command Input :
Variable Name |
Variable Type |
Description |
---|---|---|
templateName |
String |
Template name. |
groupId |
Integer |
Handle to the group that should contain the template. |
bExplicit |
Boolean |
True to create an explicit template, false to create an implicit template. (An implicit template is one that does not appear in the GUI.) |
assetPath |
String |
NSH-style path to the asset. |
bIncludeLightChecksum |
Boolean |
True to perform light checksum, false otherwise. |
bIncludeChecksum |
Boolean |
True to perform full checksum, false otherwise. |
bIncludeFileAcls |
Boolean |
True to collect file ACLs, false otherwise. |
bCopyFiles |
Boolean |
True to copy the files into the BMC BladeLogic database, false otherwise. |
bAuditFileSize |
Boolean |
True to compare file size in an audit, false otherwise. |
bAuditFileCreatedDate |
Boolean |
True to compare file creation date in an audit, false otherwise. (Windows only) |
bAuditFileModifiedDate |
Boolean |
True to compare file modification date in an audit, false otherwise. |
bAuditFilePermissions |
Boolean |
True to compare file permissions in an audit, false otherwise. (UNIX only) |
bAuditFileUidGid |
Boolean |
True to compare file UID/GID in an audit, false otherwise. (UNIX only) |
Example
The example for createRegistryKeyTemplate shows how to create a template for an asset similar to this one.
Comments
Log in or register to comment.