How can get query bes task from iem API?

Hi all,

I am using the restapi with the help of the iem command. I need to check, on my bigfix environment, if there is already a swd task with a specific name.
I tried with the iem get query --relevance command but I keep getting errors.

The last attempt I made is:

iem GET query --relevance="((names of it) of bes tasks whose (name of it contains “MYTASK_SWD-2.1”))" --outfile “c:\temp\outPostAction.xml” -q

and the error I get is the following:

Parameters must be of the form ‘–key value’ or ‘–key=value’

What is the exact syntax to use?

Thanks
Giorgio

iem GET query --relevance=“((names of it) of bes tasks whose (name of it contains %22MYTASK_SWD-2.1%22))” --outfile “c:\temp\outPostAction.xml” -q

Solution from BigFix CLI Issue

Brgds
Geir

Hi Geimor,

Thank you very much for your solution.
It run correctly

Bye