how to get all module under application

Hi

with the help of lifetime api or system entity i can get the all application details in my environment.i am getting all application details now.but under one application how to know that how many modules i have.

Hi Arkyadeep,

Here are some examples of LifeTime API: https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/LifeTime_Deployment_API_v2/LifeTime_Deployment_API_Examples

I think example 3 is to fetch the information about modules for an application.

Would this be helpful?

Cheers.

Eduardo Jauch wrote:

Hi Arkyadeep,

Here are some examples of LifeTime API: https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/LifeTime_Deployment_API_v2/LifeTime_Deployment_API_Examples

I think example 3 is to fetch the information about modules for an application.

Would this be helpful?

Cheers.


sorry i missed that link.let me try.

Thanks


Arkyadeep Bharadwaj wrote:i am getting module version key.but i need all module under the application.how to get that.

Eduardo Jauch wrote:

Hi Arkyadeep,

Here are some examples of LifeTime API: https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/LifeTime_Deployment_API_v2/LifeTime_Deployment_API_Examples

I think example 3 is to fetch the information about modules for an application.

Would this be helpful?

Cheers.


sorry i missed that link.let me try.

Thanks




Eduardo Jauch wrote:sorry.it was my mistake.got it now.

Hi Arkyadeep,

Here are some examples of LifeTime API: https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/LifeTime_Deployment_API_v2/LifeTime_Deployment_API_Examples

I think example 3 is to fetch the information about modules for an application.

Would this be helpful?

Cheers.



Cool :)

Eduardo Jauch wrote:Hi Eduardo

thanks for your help.now i am getting the module details under the application.output is given below:

"ModuleStatusInEnvs": [
        {
          "ApplicationKey": "1758bc10-7909-4ba8-8fe7-59c42905a06e",
          "EnvironmentKey": "",
          "ModuleVersionKey": "cfdd5678-4ebe-4026-9b60-f51410b4ac9c",
          "ConsistencyStatus": "Warning",
          "ConsistencyStatusMessages": "InsureEZ has outdated references.  You should publish it to avoid running outdated code.\n"
        },
        {
          "ApplicationKey": "1758bc10-7909-4ba8-8fe7-59c42905a06e",
          "EnvironmentKey": "",
          "ModuleVersionKey": "6c92577e-69e0-4c50-ae3b-c7d9437d8f1e",
          "ConsistencyStatus": "",
          "ConsistencyStatusMessages": ""
        }

now i want to fetch Module details based on module version key.for that reason i am using below api.


GET /lifetimeapi/rest/v2/modules/{ModuleKey}/.i am passing  6c92577e-69e0-4c50-ae3b-c7d9437d8f1e key in modulekey.

but data is not comiing.

Cool :)



i think module version key and modulekey is not same

Solution

Hi,

Maybe this method is better?

GET /applications/

Returns a list of applications that exist in the infrastructure.

Full URL

GET /lifetimeapi/rest/v2/applications/

Inputs

IncludeModules
Type: optional, Boolean
Located in: URL.
When set to true, the modules are also returned. The default value is false.
IncludeEnvStatus
Type: optional, Boolean
Located in: URL.
When set to true, the application status per environment is also returned. The default value is false.

Outputs

Applications
Type: Application List
Located in: Body.
A list of Application records including AppStatusInEnv sub-lists, if requested.

Cheers

Solution