CentraSite 10.5 | CentraSite User’s Guide | Runtime Governance | Virtual Service Asset Management | Managing Virtual Service Assets through the Command Line Interface | Bulk Redeploying Virtual Services to Gateway
 
Bulk Redeploying Virtual Services to Gateway
Pre-requisites:
To redeploy (that is, republish) multiple virtual services to an API Gateway or a Mediator gateway through the CentraSite CLI, you must have the CentraSite Administrator role.
CentraSite provides a command tool named bulk redeploy for this purpose.
You can also use the command tool named bulk clean redeploy to undeploy and redeploy all virtual services that are deployed to a specific gateway.
*To redeploy multiple virtual services through the command line
*Run the command bulk redeploy.
The syntax is of the format:
*C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd bulk redeploy [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -gateway <GATEWAY> -deploytimeout <DEPLOY_TIMEOUT> -deploybatchsize <DEPLOY_BATCH_SIZE>
*C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd bulk clean redeploy [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -gateway <GATEWAY> -deploytimeout <DEPLOY_TIMEOUT> -deploybatchsize <DEPLOY_BATCH_SIZE>
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.
GATEWAY
The gateway to which all the virtual services are to be redeployed.
DEPLOY_BATCH_SIZE
(Optional). The maximum number of virtual services to be redeployed to the gateway before a syncpoint is taken. By default, DEPLOY_BATCH_SIZE is set to 50.
DEPLOY_TIMEOUT
(Optional). The maximum time, in seconds, allowed for the redeployment operation to respond. If the redeployment operation does not respond before this timeout, the operation is rolled back. By default, DEPLOY_TIMEOUT is set to 60 seconds.
Examples (all in one line):
*C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd bulk redeploy -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -gateway Gateway1 -deploytimeout 60 -deploybatchsize 50
*C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd bulk clean redeploy -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -gateway Gateway1 -deploytimeout 60 -deploybatchsize 50