CentraSite 10.7 | CentraSite User’s Guide | Runtime Governance | Consumer Management | Managing Consumers through Command Line Interface | Assigning Consumer Association with a Virtual Service
 
Assigning Consumer Association with a Virtual Service
Pre-requisites:
To associate an Application asset (represented as a consumer application) with a Virtual Service asset through the CentraSite Command Line Interface (CLI), you must have the CentraSite Administrator role.
When a virtual service associated with a consumer application is imported from a source instance to a target instance of CentraSite, the imported virtual service does not include the associated consumer application in the target instance.
CentraSite provides a command tool named set Consumer for this purpose. This tool associates a consumer application with a virtual service.
*To associate a consumer application
*Run the command set Consumer.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh set Consumer [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -application <CONSUMER-APPLICATION> -service <VIRTUAL-SERVICE>
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 CentraSite user identified by the parameter USER-ID.
CONSUMER-APPLICATION
The name or key of an Application asset (consumer application) you want to associate with a virtual service.
VIRTUAL-SERVICE
The name or key of the virtual service to which you want to associate the consumer application identified by the parameter CONSUMER-APPLICATION.
Example (all in one line):
The command for associating a consumer application with a virtual service with an administrator account INTERNAL\Admin and password AdminPW would be:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd set Consumer -user INTERNAL\Admin -password AdminPW -url http://localhost:53307/CentraSite/CentraSite -application ConsumerApplication -service SampleVirtualService