CentraSite 10.7 | CentraSite User’s Guide | Report Management | Managing Reports and Report Templates through Command Line Interface | Associating Asset Type to Report
 
Associating Asset Type to Report
Pre-requisites:
To associate an asset type to a report through the CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a command tool named add Report Association for this purpose.
*To list asset types associated to a report
*Run the command add Report Association.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd add Report Association [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -associatedReport <ASSOCIATED-REPORT> -associatedType <ASSOCIATED-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.
ASSOCIATED-REPORT
Name or ID (UUID) of the report you want to associate to asset type(s). If the report name contains white spaces, enclose the name with "".
ASSOCIATED-TYPE
Name of a particular asset type you want to associate to the report identified by the parameter ASSOCIATED-REPORT, or simply "Asset Type" to associate all of the predefined asset types to the report.
If the asset type name contains white spaces, enclose the name with "". For multiple asset types, use a comma to separate the values.
Example (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd add Report Association -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage –associatedReport “API Usage Report” -associatedType "REST Service"
The response to this command could be:
Executing the command : add Report Association

Successfully executed the command : add Report Association