Export the Profile in XML Format API

Use this API to export the Profile in XML format.

POST/fim/v3/profiles/{profileId}/exportxml

Input ParametersInput Parameters

Parameter

Mandatory/Optional

Data Type

Description

profileId  Mandatory  String The ID for the profile that needs to be exported.

SampleSample

API Request

curl -X POST <qualys_base_url>/fim/v3/profiles/{profileId}/exportxml 
-H 'authorization: Bearer <token>' 
-H 'content-type: application/json'

Response

<?xml version="1.0" encoding="UTF-8"?>
<profile>
    <id>20x213xx-xx2x-44x0-xxx3-x95940x49x62</id>
    <name>FIM-2998 windows</name>
    <version>1.0</version>
    <description />
    <type>WINDOWS</type>
    <category>
        <id>9xx0154x-70x8-4807-90xx-xxxxx6xx59xx</id>
        <name>PCI</name>
    </category>
    <rules>
        <rule>
            <id>32xxx356-xx8x-4334-x972-33x6x428xx79</id>
            <type>directory</type>
            <imagePath>C:\\Windows\\System32\\</imagePath>
            <description>Rule Description</description>
            <recursiveDepth>2</recursiveDepth>
            <notifyFor>
                <directory>
                    <notify>rename</notify>
                    <notify>modifyMetadata</notify>
                    <notify>delete</notify>
                    <notify>modifySecuritySettings</notify>
                    <notify>create</notify>
                </directory>
                <file>
                    <notify>rename</notify>
                    <notify>modifyContent</notify>
                    <notify>delete</notify>
                    <notify>modifyMetadata</notify>
                    <notify>create</notify>
                    <notify>modifySecuritySettings</notify>
                </file>
            </notifyFor>
            <inclusions>
                <inclusion>
                    <objectType>file</objectType>
                    <patterns>
                        <pattern>C:\Windows\*.txt</pattern>
                    </patterns>
                </inclusion>
            </inclusions>
            <exclusions>
                <exclusion>
                    <objectType>file</objectType>
                    <patterns>
                        <pattern>C:\Windows\*.log</pattern>
                    </patterns>
                </exclusion>
            </exclusions>
            <severity>3</severity>
            <name>Rule Name 2</name>
        </rule>
        <rule>
            <id>32xxx356-xx8x-4334-x972-33x6x428xx78</id>
            <type>key</type>
            <imagePath>HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run</imagePath>
            <description></description>
            <recursiveDepth>2</recursiveDepth>
            <notifyFor>
                <directory/>
                <file/>
                <key>
                    <notify>rename</notify>
                    <notify>delete</notify>
                    <notify>create</notify>
                    <notify>modifySecuritySettings</notify>
                </key>
                <value>
                    <notify>delete</notify>
                    <notify>modifyContent</notify>
                </value>
            </notifyFor>
            <inclusions>
                <inclusion>
                    <objectType>key</objectType>
                    <patterns>
                        <pattern>childkey</pattern>
                    </patterns>
                </inclusion>
                <inclusion>
                    <objectType>value</objectType>
                    <patterns>
                        <pattern>childvalue</pattern>
                    </patterns>
                </inclusion>
            </inclusions>
            <exclusions/>
            <severity>3</severity>
            <name>Registry Rule</name>
        </rule>
        <rule>
            <id>32xxx356-xx8x-4334-x972-33x6x428xx87</id>
            <type>value</type>
            <imagePath>HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run</imagePath>
            <description></description>
            <notifyFor>
                <directory/>
                <file/>
                <key/>
                <value>
                    <notify>delete</notify>
                    <notify>modifyContent</notify>
                </value>
            </notifyFor>
            <inclusions/>
            <exclusions/>
            <severity>3</severity>
            <name>Registry Rule 2</name>
            <valueName>TeamsMachineInstaller</valueName>
        </rule>
    </rules>
</profile>