Import export fixlet via rest api

Is there any option available in BigFix rest api call to import fixlets data to a new site ?

It is possible, yes. Assuming the site exists, all you need is within https://developer.bigfix.com/rest-api/api/fixlet.html. Otherwise, you can also use a REST API call to create the new site, then POST Fixlets to it.

Here’s an example to Create a Fixlet: https://developer.bigfix.com/rest-api/examples/create-fixlet.html

1 Like

i followed this steps and it worked !!

we performed the following test

  • created the Custom Site ABC
  • created a fixlet F1 in ABC
  • created the Custom Site DEF
  • performed the following commands:
    C:\Program Files (x86)\BigFix Enterprise\BES Server\IEM CLI>iem get http://root:52311/api/fixlet/custom/ABC/14311 > c:\temp\F1.xml

C:\Program Files (x86)\BigFix Enterprise\BES Server\IEM CLI>iem post c:\temp\F1.xml http://root:52311/api/fixlet/custom/DEF
Warning: Current console font may not display locale characters correctly.

<?xml version="1.0" encoding="UTF-8"?>
<BESAPI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BESAPI.xsd">
<Fixlet Resource="https://10.14.78.106:52311/api/fixlet/custom/DEF/14312" LastModified="Fri, 20 Jan 2023 23:10:25 +0000">
<Name>F1</Name>
<ID>14312</ID>
</Fixlet>
</BESAPI>
1 Like