How to fetch action status using rest api? I need to fetch action status of failure, successful and not relevant.
I need to pull the data based on username and date.
This resource might help you. From https://developer.bigfix.com/rest-api/api/action.html
Request: URL is all that is required
For example: https://server.bigfix.com:52311/api/action/44/status
Response: The information about the status of the action in XML format.
For example:
<?xml version="1.0" encoding="UTF-8"?>
<BESAPI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BESAPI.xsd">
<ActionResults Resource="http://server.bigfix.com:52311/api/action/44/status">
<ActionID>44</ActionID>
<Status>Open</Status>
</ActionResults>
</BESAPI>
1 Like
You will probably need a session relevance query to get action status results.
This dashboard reports on baselines with failures using session relevance: https://github.com/jgstew/bigfix-content/blob/master/dashboards/BaselineStatusResults.ojo
You can use session relevance with the REST API as well, but I would start by writing what you need in the presentation debugger in the console or similar, then once you get the data you want, run that through the REST API.