How to use a REST API to grab a list of all deployed applications and their versions in Deploy

Question

Is there a way to use a REST API to grab a list of all deployed applications along with the versions?

Answer

We do not have a single API to get all the information you requested.

If you want to know the Applications that are deployed in an environment:

http://localhost:4516/deployit/repository/query?parent={ENVID}

Example:

http://localhost:4516/deployit/repository/query?parent=Environments/wlp-local

If you know the Application name then the following call be made to know about the current version of the app deployed:

http://localhost:4516/deployit/repository/ci/Environments/{ENVNAME}/{APPNAME}

Example:

http://localhost:4516/deployit/repository/ci/Environments/wlp-local/PetClinic-ear

Related Information

You can find more about the API here: https://docs.xebialabs.com/generated/xl-deploy/10.0.x/rest-api/com.xebialabs.deployit.engine.api.RepositoryService.html

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.