Layer7 API Management

  • 1.  CA API Gateway: How to obtain PID from Context Variables

    Posted May 26, 2018 11:18 AM

    Hi,

     

    I'm working on CA API Gateway - Policy Manager 9.3.

    Is it possible to obtain the PID from Context Variable Properties?



  • 2.  Re: CA API Gateway: How to obtain PID from Context Variables

    Broadcom Employee
    Posted May 28, 2018 03:45 AM

    Hello,

     

    Would you please explain what you'd like to do a bit further?

    I thought the "PID" meant "Process ID" first, but it looks not fitting into Context Variable Properties.

     

    Best regards,

    Seiji



  • 3.  Re: CA API Gateway: How to obtain PID from Context Variables

    Posted May 28, 2018 08:48 AM

    Hi Seiji,

     

    Thank you.

    Yes you are right, I need to obtain the Process ID from a RESTful service. How is it possible to retrieve it?

     

    Best Regards,



  • 4.  Re: CA API Gateway: How to obtain PID from Context Variables

    Posted May 28, 2018 10:26 AM

    You might be able to build a custom assertion and retrieve some system info, including the Process ID. Build a restful service around will be easy.



  • 5.  Re: CA API Gateway: How to obtain PID from Context Variables

    Broadcom Employee
    Posted May 28, 2018 08:26 PM

    Hi Gianpy82,

     

    I think the RESTful services on a CA API Gateway will return the same Process ID even if you can obtain it, because the API Gateway is running as a single Java process.

    Could you please tell us what's your purpose of getting the Process ID? It looks not much valuable to know the PID.

     

    Best regards,

    Seiji



  • 6.  Re: CA API Gateway: How to obtain PID from Context Variables

    Broadcom Employee
    Posted Dec 17, 2018 12:06 PM

    Good morning,

     

    As Seiji mentioned, all services are encapsulated as one process ID within the main Gateway process. If you looking for granularity of the process and even on a request by request level, you may want to look at using the context variable requestId (General Context Variables - CA API Gateway - 9.3 - CA Technologies Documentation ). 

     

    Sincerely,

     

    Stephen Hughes

    Broadcom Support