Service Virtualization

 View Only
  • 1.  Health Status of VSE

    Posted Oct 25, 2019 10:03 AM
    Hi,

    Any API to know the status of VSE server? 
    APIs are available to know the status of Virtual Services. But I need to know the status of VSE server.

    Also , API - <<Server:port>>/api/Dcm/ gives me the count of VSE (right now it gives as 1 for me). Is it that when VSE is down the count will be 0? Based on the count can I come to the conclusion that VSE is up and running?

    Pls clarify.


  • 2.  RE: Health Status of VSE
    Best Answer

    Broadcom Employee
    Posted Oct 25, 2019 10:06 AM
    http://localhost:1505/api/Dcm/virtual_service_environments

    Response:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><Vses><Vse xmlns="http://www.ca.com/lisa/invoke/v2.0" name="VSE" href="http://localhost:1505/api/Dcm/virtual_service_environments/VSE" type="application/vnd.ca.lisaInvoke.vse+xml"><ConsoleURL>http://NATSA03-7520:1505</ConsoleURL><HostAddress>NATSA03-7520</HostAddress><LifetimeTransactionCount>37</LifetimeTransactionCount><RollingTransactionCount>37</RollingTransactionCount></Vse></Vses>

    This api should give you the list of VSEs and status. Please try and let me know if it works for you.

    regards
    Sankar Natarajan





  • 3.  RE: Health Status of VSE

    Broadcom Employee
    Posted Oct 25, 2019 10:10 AM
    For Swagger interface, please use the URL: http://<hostname>:1505/api/swagger

    ------------------------------
    Sankar Natarajan
    Service Virtualization Product Engineering Team
    Broadcom
    ------------------------------



  • 4.  RE: Health Status of VSE

    Posted Oct 25, 2019 10:16 AM
    The API http://localhost:1505/api/Dcm/virtual_service_environments gives me the list of virtual services and its status.
    I need to know whether the VSE server itself is up and running?


  • 5.  RE: Health Status of VSE

    Broadcom Employee
    Posted Oct 25, 2019 10:21 AM
    No, this API gives list of Virtual Service Environments. (VSE Service/server). Each VSE server in turn hosts a number of Virtual Services. 

    The api to get the details about all Virtual Services is: http://localhost:1505/api/Dcm/VSEs


    ------------------------------
    Sankar Natarajan
    Service Virtualization Product Engineering Team
    Broadcom
    ------------------------------



  • 6.  RE: Health Status of VSE

    Posted Oct 25, 2019 10:30 AM
    Thanks Sankar. So my understanding is we can get the status of virtual service running in a server through the above api.
    The status of server alone cannot be identified using specific API? Correct me if I am wrong.

    One more to add - When a virtual service is down - how will I know whether it is down because of some issue in that virtual service or it is down because of server itself is down. I am looking for API for this only.


  • 7.  RE: Health Status of VSE

    Posted Oct 28, 2019 08:30 AM
    Hi,

    If you still got questions about this, then you might have missed some of Sankar's answers on this thread? I think he provided everything you need.

    In addition, regarding your original question "Also , API - <<Server:port>>/api/Dcm/ gives me the count of VSE (right now it gives as 1 for me). Is it that when VSE is down the count will be 0? Based on the count can I come to the conclusion that VSE is up and running?" ANSWER = Yes, (if you have only one VSE running)

    From Sankar's response: 
    http://localhost:1505/api/Dcm/virtual_service_environments  gives information about each VSE (NOT about its virtual services inside)

    Hope this clarifies?

    ------------------------------
    Cheers,
    Danny
    ------------------------------



  • 8.  RE: Health Status of VSE

    Posted Oct 30, 2019 08:18 AM
    Thanks for the clarification.