Viewing the Action Templates List
Pre-requisites:
To view the list of available action templates through CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a command tool named list Action Templates for this purpose.
To display the list of available action templates
Run the command list Action Templates. The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd list Action Templates [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> [-actioncategory <ACTION-CATEGORY>] [–policytype <POLICY-TYPE>]
The input parameters are:
Parameter | Description |
CENTRASITE-URL | (Optional). The URL of the CentraSite registry. For example, http://localhost:53307/CentraSite/CentraSite. |
USER-ID | The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator. |
PASSWORD | The password for the registered CentraSite user identified by the parameter USER-ID. |
ACTION-CATEGORY | (Optional). Name of the action category to display a list of action templates underneath it. If the category name contains white spaces, enclose the name with "". |
POLICY-TYPE | (Optional). The type of policy definition to display a list of action templates classified with it. Supported values are - Design/Change-Time, Run-Time. If a value is not specified, CentraSite will list both the design-time and run-time action templates. |
Example (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd list Action Templates -url http://localhost:53307/CentraSite/CentraSite –user Administrator –password manage
Providing action category name:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd list Action Templates -url http://localhost:53307/CentraSite/CentraSite –user Administrator –password manage –actioncategory "Custom Action Category"
Providing policy definition type:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd list Action Templates -url http://localhost:53307/CentraSite/CentraSite –user Administrator –password manage –policytype Design/Change-Time
The response to this command could be:
Executing the command : list Action Templates
Name : Custom Action Template
Key : uddi:95f79c00-52a9-11e4-969c-d398081308d4
Action Category : Custom Action Category
Action Category Type : Design/Change-Time
Successfully executed the command : list Action Templates