CentraSite 10.7 | CentraSite User’s Guide | Runtime Governance | Gateway Management | Managing Gateways through Command Line Interface | Publishing APIs to Gateways
 
Publishing APIs to Gateways
Pre-requisites:
To publish APIs to gateways, for example, webMethods Mediator, through the CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a command tool named deploy for this purpose.
*To publish APIs to gateways
*Run the command deploy.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd deploy -user <USER-ID> -password <PASSWORD> [-url <CENTRASITE-URL>] -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 the virtual service you want to deploy.
GATEWAY
The gateway to which the virtual service identified by the parameter virtualService is to be deployed.
Example (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd deploy -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -virtualService TripPinService -gateway DevMediator
The response to this command can be:
Executing the command : deploy

Successfully executed the command : deploy