Author |
Message
|
souciance |
Posted: Fri Mar 16, 2018 12:25 am Post subject: java app to tget list of deployed artefacts |
|
|
Disciple
Joined: 29 Jun 2010 Posts: 169
|
Hello,
In case anyone needs a small tool to traverse the list of execution groups, get hold of all applications and restapis deployed and get the lastdeploytime and barfile property then fee free to contact me. I have written a small spring boot/camel that does this. We use this to populate a wiki or sharepoint page with the complete list on a schedued basis. I would have hoped there was a way to get all the applications and apis and their properties in one single call but instead you have to traverse for each execution group and each application/restapi. So for 10 execution groups with 100 apps in each, thats 1000 calls to the IIB admin API.
Best
Souciance |
|
Back to top |
|
 |
zpat |
Posted: Fri Mar 16, 2018 12:29 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
You could put it on GIT hub somewhere. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
souciance |
Posted: Fri Mar 16, 2018 12:44 am Post subject: |
|
|
Disciple
Joined: 29 Jun 2010 Posts: 169
|
zpat wrote: |
You could put it on GIT hub somewhere. |
Yeah, will do in a couple of days. Need to do some clean up and add better comments. Then it will be on a public github. Will post it here hopefully by end of next week. |
|
Back to top |
|
 |
souciance |
Posted: Sat Mar 17, 2018 9:35 am Post subject: |
|
|
Disciple
Joined: 29 Jun 2010 Posts: 169
|
Ok so I cleaned up the code a bit and now the spring boot/camel app is available on github. You can find it here https://github.com/SoucianceEqdamRashti/Integration/tree/master/artefacts .
Our aim was to traverse the admin API and generate a list of execution groups, list of deployed apps and restaps per execution group and a couple of properties. Finally we send it to a logic app component on azure to generate a table on sharepoint. You can off course do whatever you like with the json message.
For full instructions check out the github page. If you encounter any issues let me know. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Mar 17, 2018 11:08 am Post subject: Re: java app to tget list of deployed artefacts |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
souciance wrote: |
Hello,
I would have hoped there was a way to get all the applications and apis and their properties in one single call but instead you have to traverse for each execution group and each application/restapi. So for 10 execution groups with 100 apps in each, thats 1000 calls to the IIB admin API.
Best
Souciance |
Let's stay precise here. You're not using the IIB admin API at all. You are using the IIB REST API. There is a difference!  _________________ MQ & Broker admin |
|
Back to top |
|
 |
souciance |
Posted: Sun Mar 18, 2018 1:48 am Post subject: Re: java app to tget list of deployed artefacts |
|
|
Disciple
Joined: 29 Jun 2010 Posts: 169
|
fjb_saper wrote: |
souciance wrote: |
Hello,
I would have hoped there was a way to get all the applications and apis and their properties in one single call but instead you have to traverse for each execution group and each application/restapi. So for 10 execution groups with 100 apps in each, thats 1000 calls to the IIB admin API.
Best
Souciance |
Let's stay precise here. You're not using the IIB admin API at all. You are using the IIB REST API. There is a difference!  |
Yes, it is the IIB REST API. |
|
Back to top |
|
 |
|