Service Virtualization

  • 1.  Delete the recordings from Devtest Portal automatically

    Posted Aug 23, 2018 03:26 AM

    Hi All,

    We have a requirement where in we are trying to create a vsm using Virtual Service Invoke API and deploy it using Invoke2 API. If I am unable to create the vsm successfully, then how can I delete the recordings from Devtest Portal. How can I automate this process. There are No API's present to delete the recordings.Kindly help.



  • 2.  Re: Delete the recordings from Devtest Portal automatically

    Broadcom Employee
    Posted Aug 23, 2018 02:30 PM

    As far as I know, you can't delete the recordings in the Portal automatically. 

    Can you elaborate how you are creating the Virtual service and deploying using API's?



  • 3.  Re: Delete the recordings from Devtest Portal automatically

    Posted Aug 23, 2018 04:33 PM

    As gadpr08 asked, which of the APIs are you trying to use to generate the services?

     

    For example, if you are using the APIs that create Builder Sessions, Bundles, Transports, Transaction Bundles, Input Containers, etc., you may need to  issue HTTP DELETE calls on these URLs.

     

    http://{{UserID}}:{{Password}}@{{HostServer}}:1505/lisa-virtualize-invoke/api/v2/vses/{{vseID}}/vsBuilderSessions/{{sessionId}}

     

    http://{{UserID}}:{{Password}}@{{HostServer}}:1505/lisa-virtualize-invoke/api/v2/vses/{{vseID}}/bundles/{{bundleId}}

     

    Where 

    • {{UserID}} = DevTest login ID
    • {{Password}} = DevTest password
    • {{HostServer}} = VSE Server
    • {{vseID}} = the ID of the VSE where the recording is running
    • {{sessionId}} = the ID returned in the call that created the Session
    • {{bundleId}} = the ID returned in the call that created the Bundle Processor  


  • 4.  Re: Delete the recordings from Devtest Portal automatically

    Posted Aug 27, 2018 09:24 AM

    Hi Joel, 

     

    I am trying to use the API's mentioned in the below link. 

    Virtual Service Invoke API - DevTest Solutions - 10.3 - CA Technologies Documentation 

     

    As soon as I trigger , create a builder session API, I can see a recording session in the portal. If steps following this API fails, I want to delete the Recording as it may burden the portal. I have to to it manually as of today. Is there a way , I can handle it thru any API.

    I tried the delete methods mentioned above, but the recordings were not deleted.

     

    Kindly suggest

     

    Regards

    Bhavya



  • 5.  Re: Delete the recordings from Devtest Portal automatically

    Posted Aug 27, 2018 10:21 AM

    I believe I would review the http://yourDevTestServer:1505/lisa-virtualize-invoke/api/v2/swagger-ui looking at the HTTP DELETE API calls.

    My suspicion is the DELETE Recorders (using the Recorder's ID) would be the choice.

    http://localhost:1505/lisa-virtualize-invoke/api/v2/swagger-ui#!/Recorder_info/deleteRecorder  

    Determining the ID of the Recorder may or may not be an easy chore though as the documentation link you refer to is not overly explicit as to the precise order the DELETEs need to be issued.  I do not see a discussion of how the 'recorder' is bound to a bundle and session ID.



  • 6.  Re: Delete the recordings from Devtest Portal automatically

    Posted Sep 05, 2018 11:27 AM

    Hello Bhavia,

     

    Did Joel's comments help you?

     

    Thank you,

    Heloisa



  • 7.  Re: Delete the recordings from Devtest Portal automatically
    Best Answer

    Posted Sep 12, 2018 09:03 AM

    Hi Heloisa, 

     

    I didnt actually solve the purpose. I had to delete the delete the builder session as mentioned in the INVOKE 2 API swagger to delete the recordings from the portal .I have as well raised a ticket with CA support team to confirm me the approach.