Getting last reported status issue and not reported computers

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.

Thank you

can you share the exact call you make now and sample results and how are you targeting the action ?

Hi man,
The call is something like:

https://:/api/action/8792/status

The response from IEM is something like:


    
        8792    
        Expired
        Thu, 15 Sep 2015 12:24:56 +0000
        
            The action executed successfully.
            3
            1
            1
            3475
            Thu, 10 Sep 2015 18:25:21 +0000
            Thu, 10 Sep 2015 18:25:22 +0000
        
    

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?

Thanks

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

 the computers are not returned.