I’m writing an implementation based on the REST API and I’m trying to get the status of each computer that is part of a MAG (Multiple Group Action).
The issue that I’m facing is that I’m getting a full string message while in the TEM console there are short version of the statuses.
For example:
FAILED = The action failed.
FIXED = The action executed successfully. (Windows VMs)
COMPLETED = The action executed successfully. (Linux VMs)
NOT RELEVANT = The Fixlet which this action addresses is not relevant on this machine
PENDING RESTART = Waiting for restart to complete action.
Is there a way to find those corresponding values for the statuses send back from REST API?
One other question is related to the not reported computers. How can I tell if there are not reported computers to a MAG.
In IEM console for the respective TEM action on the Reported Computers tab I have the list of computers and the Last Reported Status is for the computer is: Completed
My question is how can I translate from the REST API status:
The action executed successfully.
into the "Completed" value from the Last Reported Status?
To get the same type of information that’s in the console you’ll want to use a session relevance query.
From the REST API you use the query API to evaluate the relevance
Thank you for the quick response and for the explanations.
I think I’ll go with an internal parser of the statuses returned from REST API and decide at the application level what is the status based on the specific key words from the returned status.
I want to avoid making too many calls to IEM and to avoid having complicated queries that are hard to maintain in the end. With the REST API I can have a JAXB parser and get the information really quick from the XML response.
One more question if that is fine with you.
When getting the action status, if there are not reported computers to the TEM action.
Is there a way to get the actual list of not responding computers that are associated with the TEM action using REST API?
I have noticed that the response XML contains only the computers that are having a certain status. But if the Last reported Status is