Software AG Products 10.11 | Using CentraSite | Runtime Governance | Virtual Service Asset Management | Managing Virtual Service Assets through the Command Line Interface | Undeploying a Virtual Service from Gateway
 
Undeploying a Virtual Service from Gateway
Pre-requisites:
To undeploy (that is, unpublish) a virtual service from an API Gateway or a Mediator gateway through the CentraSite CLI, you must have the CentraSite Administrator role.
CentraSite provides a command tool named undeploy for this purpose.
*To undeploy a virtual service from a gateway
*Run the command undeploy.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd undeploy [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -virtualService <VIRTUAL-SERVICE> -gateway <GATEWAY>
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.
VIRTUAL-SERVICE
The name or key of a virtual service to be undeployed.
GATEWAY
The gateway from which a virtual service identified by the parameter VIRTUAL-SERVICE is to be undeployed.
Example (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd undeploy -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -virtualService VS1 -gateway Gateway1