API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  Reading environment variables on API Gateway from gatewayscript

    Posted 12/13/24 01:48 AM

    Has anyone tried to read environment variables on API Gateway from a gatewayscript ?

    We are running API Connect 10.0.5.7 on Openshift. Opening a terminal to gateway pod and issuing a set command shows that many variables are exposed for example KUBERNETES_PORT_443_TCP_ADDR=100.88.0.1.

    But reading them from gatewayscript does not seem to be possible ?


    Kind Regards
    BEC API Management Team



    ------------------------------
    BEC API Management team
    ------------------------------


  • 2.  RE: Reading environment variables on API Gateway from gatewayscript

    Posted 12/16/24 08:50 AM

    Hi, Did you try with service variables? For example,

    var sm = require('service-metadata');

    sm.setVar('var://service/mpgw/skip-backside', true) ;

    sm.getVar('var://service/system/ident')

    https://www.ibm.com/docs/en/datapower-gateway/10.5.x?topic=apis-service-metadata-module



    ------------------------------
    uvaise odam
    ------------------------------



  • 3.  RE: Reading environment variables on API Gateway from gatewayscript

    Posted 12/17/24 03:41 AM


    Thanks for your reply :-)

    Actual we already tried the service-metadata module but with no luck regarding environment variables.


    Kind Regards
    BEC API Management Team



    ------------------------------
    BEC API Management team
    ------------------------------