Service Virtualization

  • 1.  Service Deployment on VSE using other method than Workstation

    Posted Aug 30, 2017 02:14 PM

    Is there any deployment tools or API to do service deployment to the #vse server other than the IDE(#workstation)

     

     

    Thanks,

    Dinesh Kumar



  • 2.  Re: Service Deployment on VSE using other method than Workstation
    Best Answer

    Posted Aug 30, 2017 02:30 PM

    Dinesh,

     

    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. 



  • 3.  Re: Service Deployment on VSE using other method than Workstation

    Posted Aug 30, 2017 04:17 PM

    Hi,

     

    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. ?

     

     

    Thanks,

    Dinesh Kumar



  • 4.  Re: Service Deployment on VSE using other method than Workstation

    Broadcom Employee
    Posted Aug 30, 2017 05:02 PM


  • 5.  Re: Service Deployment on VSE using other method than Workstation

    Posted Aug 30, 2017 06:57 PM

    Hi Mike,

     

    For using this API, it needs two parameters. Can you help me in executing this using REST step in CA LISA:

    Form parameters:

    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.

     

    Please help.

     

    Thanks,

    Dinesh Kumar



  • 6.  Re: Service Deployment on VSE using other method than Workstation

    Broadcom Employee
    Posted Aug 31, 2017 11:00 AM

    Hi Dinesh,

     

    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.

     

    --Mike



  • 7.  Re: Service Deployment on VSE using other method than Workstation

    Posted Sep 01, 2017 05:36 PM

    Hi Mike,

     

    I checked this with CA Support  ,I got a reply that it is achievable using either of below methods:

    1) POSTMAN API as below:

    Use Postman:

     

    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.