Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Willis
Contributor II
Contributor II

get EnterpriseManager.APISessionID with groovy

good morning gentlemen,

I'm creating a task monitoring in Qlik repeat via job in Jenkins. I'm having trouble retrieving the EnterpriseManager.APISessionID through the groovy script.

Has anyone experienced this scenario and can help me?

Thank you very much in advance
Labels (2)
1 Solution

Accepted Solutions
Willis
Contributor II
Contributor II
Author

Unfortunately it sounded unpleasant, there are other ways to approach it, I 
know you did it involuntarily but it remains for reflection. I understand your point of view regarding the language, but at
the moment, what I have available is Jenkins using groovy (which we only use
for CI/CD and similar things), in which case it is being used to solve
a specific problem, could you do with C#, Java, Python or even Lick? yes,
but it would be very far outside the current organization. Stay in peace.

View solution in original post

6 Replies
SushilKumar
Support
Support

Hello Team,

As per issue description .Qlik replicate don't have that functionality. However Qlik Enterprise manager Should be  used for API Integration. kindly find the link for more information.

Qlik Enterprise Manager API guide | Qlik Enterprise Manager Help

Regards,

Sushil Kumar

 

 

Willis
Contributor II
Contributor II
Author

Thank you, let me explain better

After making a request to the login API in Qlik Enterprise Manager 
(https://{host}/attunityenterprisemanager/api/v1/login) it returns me the following response in the header:

Willis_0-1688576413340.png

 



I need to retrieve the EnterpriseManager.APISessionID property that is inserted in the header, as I am going 
to add it in a Jenkins job, there is a need to use groovy for that. I manage to recover all the properties inserted in the return, except the one that contains the generated hash. Grateful for the attention
Heinvandenheuvel
Specialist III
Specialist III

The " Qlik Enterprise Manager API guide" fully documents the RestApi and you can pick any language to communicate with it. Perl, Python, Java, or even PowerShell. The main examples are as simple as can be just using cUrl which itself can be activated from any scripting language.  There is also an Python package documented which showing how to create wrappers for the RestApi if so desired.

You mention Jenkins (automation server) and Groovy (Somewhat Java like language) which few readers here will know anything about, but maybe you are lucky and someone has experiences to share. That'd be great for all.

Personally, I think this is entirely your own problem.  If you pick an infrastructure and a language, you'd better know it! Qlik cannot be expected to deal with the hundreds of options for that. All they have to do, and did, is document the basic API. Still, the Qlik Professional Services team are a smart bunch and I suspect that for mere money they'll be happy to try to help you with your implementation language choice.

Hein.

Willis
Contributor II
Contributor II
Author

It makes sense to spend your time writing an answer that doesn't add to the problem
reported?

Of course it's my problem, I never said it was the manufacturer's, but if I 
resorted to one product forum (I believe this is the main reason it exists) was precisely to ask for support and see countless reports from people who have already had
the same problem before and I was not successful. But anyway, have a great day.

 

Heinvandenheuvel
Specialist III
Specialist III

@Willis - Serious question.  did you use the code/text block option to post your reply? It gives a neat distinct looking result. However the lines do not wrap and are tricky to scroll through. To forum UI allows shrinking, truncating more, but does not expand beyond 83 characters. Oh well. 

I do think my reply has valuable observations but I'll be the first to admit it can be seen as nasty - unintentionally.

Here is one more you might not like, but is sincerely well meant:

According to  https://www.statista.com/statistics/793628/worldwide-developer-survey-most-used-languages/  Groovy ranked 24 out of 25 for development languages in 2022.  Now that may just be because is up and coming and it will rule the world in years to come. Or it could get stuck there and soon there will be nobody in your company to understand and maintain the code. Mind you, my favorite languages do not appear at all any more (ever!): Perl , DCL, and VAX/VMS Macro. :-), so there is that.  🙂

Greetings, Hein.

Willis
Contributor II
Contributor II
Author

Unfortunately it sounded unpleasant, there are other ways to approach it, I 
know you did it involuntarily but it remains for reflection. I understand your point of view regarding the language, but at
the moment, what I have available is Jenkins using groovy (which we only use
for CI/CD and similar things), in which case it is being used to solve
a specific problem, could you do with C#, Java, Python or even Lick? yes,
but it would be very far outside the current organization. Stay in peace.