Skip to main content

Hi Experts,

 

We got a requirement of creating a custom API which will return below details of the already deployed APIs -

 

Environment – environment in which the API is configured (Prod, QA, Dev, etc)

Version ID – version of the API

Domain – name of the API

Status – status of the API (enabled, undeployed, etc)

vCores – number of cores assigned

Workers – number of workers assigned

Mule Version – version of the runtime deployed with the API

End of Support Date – date the runtime version is no longer supported

Last Updated Time – date the API was last updated or deployed

Last Query Date – timestamp identifying the date and time that the current query was requested

 

Can anyone tell me if there is any in-built API which can return these details.

If not available you you please suggest a way to achieve this.

 

Thanks in advance.

3 answers
  1. Sep 24, 2018, 1:35 PM

    @apudas15021990

     

    Could you clarify your question about the last statement(which actually seems to be the question)

     

    Can you please help me to achieve the same for multiple comma separated values

     

    Are you looking to pass a comma separated string in query Params and make as many calls as values are there in the comma separated parameter.

     

    If yes, you could do something like

     

    URI

     

    http://host:port/apiResource?envParams=dev,uat,prod

     

    Once inside flow you can split the envParams value using split which shall return an array.

     

    Run a loop on the array and you can make your REST calls for all the params one by one.

     

    prior to loop you can declare variables for storing response of each call like devRespVar, uatRespVar etc and save the data accordingly.

0/9000