REST API to redeploy mar

book

Article ID: 104149

calendar_today

Updated On:

Products

CA Application Test Service Virtualization

Issue/Introduction

Is there a REST API to enable redeploying a mar? The api for deploying mar file can be found.

Environment

Release: Service Virtualization 10.2
Component: REST API

Resolution

The REST API named "post /.../.../actions/deployMar" for only first deployment and the REST API does not include the action for re-deploying. When trying to re-deploy wi,th  "post /.../.../actions/deployMar" to the environment that .mar file is already deployed, then the message like "... was already existed" appears.
Then to realize the re-deployment needs to follow these steps:
  1. use delete action for the certain .mar file which already deployed
  2. deploy the .mar file again