Is there any deployment tools or API to do service deployment to the vse server other than the IDE(workstation)
You can do it from command line using the VSEManager executable. For example, to deploy a virtual service you can use the following command:
VSEManager --registry tcp://localhost:2010/Registry --username=admin --password=admin --deploy myVirtualService.mar
Keep in mind that you need to archive the virtual service prior to using the deploy command. In other words, you need to create a MAR file with all the virtual service artifacts archived in it.
1- But this needs installed workstation on the machine where I will be using the command line.?
2- Any API based solution available for this. ?
Yes you can!
Check out the documentation here:
For example, this API deploys a MAR to VSE:
For using this API, it needs two parameters. Can you help me in executing this using REST step in CA LISA:
file (java.io.inputstream): The mare file with a virtual service in it
fileURI (string): A URI to a mar file with a virtual service in it
I am not sure what should be the 'Type' and 'Content Type' and how to provide the required patameter.
I've never used this particular API, but I believe you only use one of the two parameters. In your case, you only need "file".
To post this from CA, use the step to load a file (the mar) and assign it to a property. Use this property as the "file" value.
I checked this with CA Support ,I got a reply that it is achievable using either of below methods:
1) POSTMAN API as below:
URL: POST http://[host]:[port]/api/Dcm/VSEs/[serviceName]/actions/deployMar
Authorization : select Basic and enter admin/admin ( user/pass)
Click on Body
Select Key : file - Choose file, here you select the mar file
2) https://communities.ca.com/thread/241753558 this community page.
Note: I have not tested this, as POSTMAN API is not a authorized plug-in in my Organization. I hope it will be helpful for others.
Retrieving data ...