REST API and properties of type "xyz"

Hello,

I’m trying to have the equivalent of QNA : properties of type “xyz” using REST API.

I have tried this :
https://bigfixserver:52311/api/query?relevance=(properties of type “result”)" with IEMAdmin account

In response I get:

<?xml version="1.0" encoding="UTF-8"?>
<BESAPI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BESAPI.xsd">
        <Query Resource="(properties of type &quot;result&quot;)">
                <Result></Result>
                <Error>Singular expression refers to nonexistent object.</Error>
        </Query>
</BESAPI>

While you can in fact query the REST API for this type of information, you can also always reference the documentation. For the /api/query resource, note that it expects session relevance, whose documentation is available here:

https://developer.bigfix.com/relevance/guide/session/

That said, it’s not clear from the above what kind of result data you are looking for. Here are some potential examples:

properties of type "bes action result"
properties of type "bes property result"
properties of type "bes fixlet result"

And if you are not sure what types are available, you can search the documentation:

https://developer.bigfix.com/relevance/search/?query=result&platform=session

Or continue to use the introspectors with something like:

properties whose (it as string contains "result")

1 Like