The task is used to undeploy the project/service from the Service Virtualization server.
Attribute | Description | Required |
projectFile | Project File (.vproj or .vproja) to be undeployed. Project file has specified the server management url as well so we don't have to specify it separately (if you don't want to change it of course). | no |
url | The server's management endpoint (e.g. https://localhost:6085/management or http://localhost:6080/management) | No (if you use the projectFile parameter). |
username | Username for conencting to the server management endpoint. | No |
password | Password for conencting to the server management endpoint. | No |
service | The name of the service (or its ID) we want to undeploy. | No |
force | Force mode means that if the service to be undeployed is locked by another user the task will automatically unlock it. If you don't use force mode and the service is locked, the undeployment won't be accomplished. Be careful with this option because you can rewrite another user's data if you explicitly unlock the service. | No |
<svundeploy url="https://localhost:6085" username="HPSV" password="secret" projectFile="mySVProject.vproja" />Undeploys all the services from the specified project (if some of these services had not already been deployed and are locked by another user).
<svundeploy url="https://localhost:6085" username="HPSV" password="secret" service="My Perfect Virtual Service" force="yes" />Deploys the service called "My Perfect Virtual Service" (even if they have already been deployed and are locked by another user).