Svchangemode

Description

The task is used to change the mode of the service on the Service Virtualization server.

Parameters

Attribute Description Required
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
projectFile Project File (.vproj or .vproja) from where the service is. No
service The name of the service (or its ID) whose mode we want to change. Yes
dataModel Data Model for the service (ID or the name) No
perfModel Performance Model for the service (ID or the name) No
mode The mode the service will be switched to. it has to be one of: SIMULATING, STAND_BY Yes
force Force mode means that if the service to be changed is locked by another user the task will automatically unlock it. If you don't use force mode and the service is locked, the chmode won't be accomplished. Be careful with this option because you can rewrite another user's data if you explicitly unlock the service. No

Examples

    <svchmode url="https://localhost:6085" username="HPSV" password="secret" service="My Nice Service" mode="STAND_BY" />
Switch the service into the STAND_BY mode.
    <svchmode url="https://localhost:6085" username="HPSV" password="secret" service="My Nice Service" mode="SIMULATING" dataModel="My Nice Service Perfect Data Model" />
Switch the service into the SIMULATING mode with data model "My Nice Service Perfect Data Model" and no performance model.