List the details of individual Server Automation Plan

Hi,

I got the list of Server Automation Plans using the following query. Now, we need to retrieve the complete details of each SA Plan. Could you please advise on the procedure?

https://localhost:52311/api/query?relevance=(id of it | 0, name of it | "NA", name of site of it | "NA") of bes fixlets whose (exists mime field "plan-fixlet-children" of it and name of site of it = "ActionSite")

<BESAPI xsi:noNamespaceSchemaLocation="BESAPI.xsd">
	<Query Resource="(id of it | 0, name of it | "NA", name of site of it | "NA") of bes fixlets whose (exists mime field "plan-fixlet-children" of it and name of site of it = "ActionSite")">
		<Result>
			<Tuple>
				<Answer type="integer">95</Answer>
				<Answer type="string">MEPPRD-Z370-Plan BigFix Plan for Verification</Answer>
				<Answer type="string">ActionSite</Answer>
			</Tuple>
			<Tuple>
				<Answer type="integer">426</Answer>
				<Answer type="string"> MEPPRD-Z371-Plan BigFix Plan for Verify BigFix Services</Answer>
				<Answer type="string">ActionSite</Answer>
			</Tuple>
			<Tuple>
				<Answer type="integer">623</Answer>
				<Answer type="string">MEPPRD-Z372-Plan BigFix Plan for Verify BigFix Services</Answer>
				<Answer type="string">ActionSite</Answer>
			</Tuple>
		</Result>
		<Evaluation>
			<Time>36.374ms</Time>
			<Plurality>Plural</Plurality>
		</Evaluation>
	</Query>
</BESAPI>

Regards
Ravi Mendu

What SA Plan details are you looking for, and more generally, what is it that you are trying to achieve?

While it is possible to extract some additional information about SA Plans via the query API, it will be in XML format, which will likely have to be parsed.

Thanks for response.

I am looking for SA Plan step action details. I need these details for our documentation purposes.

The XML format output is OK, and I can parse and capture necessary information from the XML.

All I need is the complete SA plan step details, for example, by the “SA Plan id 95” or by the name "MEPPRD-Z370-Plan BigFix Plan for Verification"

Regards
Ravi Mendu

The plan’s details are stored in the Fixlet’s actionscript. As such, you can use something like the following to extract the SA Plan’s XML details. It uses the <bes fixlet action> inspector (https://developer.bigfix.com/relevance/reference/bes-fixlet-action.html#script-of-bes-fixlet-action-string). This will return the raw results which can then be parsed for the fields of interest.

(id of it | 0, name of it | "NA", name of site of it | "NA", script of action of it) of bes fixlets whose (exists mime field "plan-fixlet-children" of it AND name of site of it = "ActionSite" AND id of it = 95)

2 Likes

Thanks for the references. It worked.