Unpublishing APIs from Gateways
Use the undeploy command to undeploy the virtual instance of an API from the gateway (for example, webMethods Mediator).
The syntax for the command is:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh undeploy -user <USER-ID> -password <PASSWORD> [-url <CENTRASITE-URL>] -virtualService <VIRTUAL-SERVICE> -gateway <GATEWAY>
The input parameters are:
Parameter | Description |
-url | (Optional). The URL of the CentraSite registry. Default value is http://localhost:53307. |
-user | The user ID of a registered CentraSite user. For example, a user who has the CentraSite Administrator role. |
-password | The password for the registered CentraSite user identified by the parameter user. |
-virtualService | The name or key of the virtual service you want to undeploy. |
-gateway | The gateway from which the virtual service identified by the parameter virtualService is to be undeployed. |
Example:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh undeploy -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -virtualService TripPinService -gateway DevMediator
The response to this command could be:
Executing the command : undeploy
Successfully executed the command : undeploy