Software AG Products 10.7 | Using CentraSite | Runtime Governance | Consumer Management | Managing Consumers through Command Line Interface | Removing Consumer Association from a Virtual Service
 
Removing Consumer Association from a Virtual Service
Pre-requisites:
To remove an existing association between an Application asset (represented as a consumer application) and a Virtual Service asset through the CentraSite Command Line Interface (CLI), you must have the CentraSite Administrator role.
CentraSite provides a command tool named reset Consumer for this purpose. This tool removes a Consumes association that is existing between a consumer application and a virtual service.
*To remove a consumer association
*Run the command reset Consumer.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh reset 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 disassociate from a virtual service.
VIRTUAL-SERVICE
The name or key of a virtual service from which you want to disassociate the consumer application identified by the parameter CONSUMER-APPLICATION.
Example (all in one line):
The command for removing an association that exists between a consumer application and a virtual service with an administrator account INTERNAL\Admin and password AdminPW would be:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd reset Consumer -user INTERNAL\Admin -password AdminPW -url http://localhost:53307/CentraSite/CentraSite -application ConsumerApplication -service SampleVirtualService