How to place reference to the object inside the body of POST http request (automated task Insight)

TigerOfTheSnow October 3, 2017

I need to start remote task when some object are changed.

So i decided to use automation with HTTP PUT method to run activities on  remote orchestrator but i have no idea how to put reference to object Id that changed inside the body.

Is there any way instead groovy script ? 

1 answer

1 accepted

0 votes
Answer accepted
Alexander Sundström
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 4, 2017

Hi Andrey,

From Insight version 5.1 which is planned to be released within the coming weeks, placeholders will be available for the all the actions, not only for the groovy script. So if it's possible, you could wait for that release, I think that will make it much easier for you.

But yes, it is possible to do this today using groovy scripts. 
For more information, take a look at https://documentation.riada.se/display/ICV50/Insight+Automation

At https://documentation.riada.se/display/ICV50/Groovy+Scripting we have some examples of groovy script that could be used as an inspiration, and at https://documentation.riada.se/display/ICV50/Insight+API+-+for+developers we have documentation about our API.

Best Regards
Alexander

TigerOfTheSnow October 4, 2017

Thanks

Alexander Sundström
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2017

Your welcome. If you feel like this answered your question, feel free to mark it as answered.

Best Regards
Alexander

TigerOfTheSnow October 17, 2017

Have you any plans to implement HTTPS into Http Request method for automation ?

Like Christoph Lasecki likes this
Sanja Vukovic July 4, 2018

Hi, @Alexander Sundström

Please can you be more specific - How to place reference to the object inside the body without using grovy script?
I made automated e-mail to receive before certificate expire and I want to see the list of certificates.
I would prefere not to be forced to use grovy script.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events