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.
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?
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.
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.
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.
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.
Did Joel's comments help you?
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.