How can I use cURL to invoke an action within a Task within IBM BigFix

I have a sample XML written, not sure if it is complete or correct.

I cannot seem to find a simple instructions guide for using cURL for IBM BigFix.

I have seen RESTAPI info and that does not help, but it is still unclear to me how to form the proper cURL POST and what the different parts of the command line should be and why.

UPDATE!!!

Thanks folks for all your help!

What I ended up using thanks to my buddy Aram…

curl -itlsv1.2 --insecure -X POST --data-binary @<xml_file> --<user> https://<IP>:52311/api/actions

Lots of cURL-ing going on here:

Looks like every example is using the cURL command

This is an example of getting a result using cURL: (get)

curl -o “Tasks.xml” --user username:PASSWORD https://ROOTSERVER/api/tasks/custom/ClientSettings

This is an example of creating something using cURL: (post)

curl -X POST -d @ClientSettings.bes
    --header "Content-Type:text/xml"
    -o RESTAPI_logfile.log
    --user username:PASSWORD 
    https://ROOT/api/tasks/custom/ClientSettings

I have many examples on BigFix.Me that use cURL to do things with the BigFix RESTAPI.

See this presentation I gave last year at the Interconnect 2015 conference:

Also see this presentation I gave last year at the Bay Area BigFix User Group:

3 Likes

I think you mean InterConnect 2015.
Good post, I used examples of your cURL usage for the Dell Warranty usage.

1 Like

I have a working Dell Warranty task here: https://bigfix.me/fixlet/details/6048

And an analysis to read the results here: https://bigfix.me/analysis/details/2994795

I fixed the wrong reference to Interconnect 2016.