Re-Deploy VA Not Working

I am finding that the REST API call to re-deploy a virtual asset is not working for me. I have some fairly sophisticated scripts running against the API to generate virtual assets and responders, so I am fairly certain my process is not the problem. I am making a POST request to /soavirt/api/v6/virtualAssets/redeployments with a payload of { "ids": [ "/VirtualAssets/mypath/myvirtualasset.pva" ]} as per the documentation. It returns an empty 200 response, however the VA is not redeployed. I can tell because my data source is not refreshed.

I double-checked the ID I am using by getting the VA information from the REST API.

I was going to watch the traffic coming out of the Environment Manager tool but I could not find an option there to re-deploy a virtual asset.

Has anyone else experienced this? Thanks,



  • williammccuskerwilliammccusker Posts: 518 ✭✭✭


    The redeployments API works on a virtual asset deployment and in your example, you have specified a file id to a pva location. To find the virtual asset's deployment id you need to use the GET /virtualAssets resource and find the deployment you want. That resource will list all virtual assets so you may want to use the query parameter to filter the uses based on pva file location, use the file id path. In the response from GET virtualAssets It will have an id field that is a UUID string that you then send to the redeployments API.

    Hope this helps!

  • Got it. Works! Thanks. Have a great weekend.

  • williammccuskerwilliammccusker Posts: 518 ✭✭✭

    You too!

Sign In or Register to comment.