Export the Profile in JSON Format API

Use this API to export the profile in JSON format.

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

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}/exportjson 
-H 'authorization: Bearer <token>' 
-H 'content-type: application/json'

Response

{
 "id": "20x213xx-xx2x-44x0-xxx3-x95940x49x62",
 "name": "FIM-2998 windows",
 "version": "1.0",
 "description": "Profile Description",
 "type": "WINDOWS",
 "category": {
   "id": "9xx0154x-70x8-4807-90xx-xxxxx6xx59xx",
   "name": "PCI 1"
 },
 "rules": [
   {
     "id": "32xxx356-xx8x-4334-x972-33x6x428xx79",
     "type": "directory",
"imagePath": "C:\\Windows",
     "description": "",
     "recursiveDepth": "2",
     "notify": {
       "directory": [
         "rename",
         "modifyMetadata",
         "delete",
         "modifySecuritySettings",
         "create"
       ],
       "file": [
         "rename",
         "modifyContent",
         "delete",
         "modifyMetadata",
         "create",
         "modifySecuritySettings"
       ]
     },
     "monitorOwnership": false,
     "inclusionFilter": [
       {
         "objectType": "file",
         "patterns": [
"C:\\Windows\\*.txt"
         ]
       },
       {
         "objectType": "file",
         "patterns": [
"C:\\Windows\\*.log"
         ]
       }
     ],
     "exclusionFilter": [],
     "severity": 3,
     "name": "Rule 1"
   },
   {
     "id": "x540x323-xxx7-439x-x247-x33xx6x42x71",
     "type": "directory",
"imagePath": "D:\\MyDir",
     "description": "Description",
     "recursiveDepth": "None",
     "notify": {
       "directory": [
         "rename",
         "delete"
       ],
       "file": [
         "delete"
       ]
     },
     "monitorOwnership": false,
     "inclusionFilter": [
       {
         "objectType": "file",
         "patterns": [
"C:\\Windows\\*.txt"
         ]
       },
       {
         "objectType": "file",
         "patterns": [
"C:\\Windows\\*.log"
         ]
       }
     ],
     "exclusionFilter": [],
     "severity": 3,
     "name": "Rule 2"
   },
   {
     "id": "140d87a6-5065-4eb9-8640-7c92665788e6",
     "type": "key",
      "imagePath": "HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Run",
     "description": "Description",
     "recursiveDepth": "2",
     "notify": {
       "directory": [],
       "file": [],
       "key": [
         "rename",
         "delete",
         "create",
         "modifySecuritySettings"
       ],
       "value": [
         "delete",
         "modifyContent"
       ]
     },
     "monitorOwnership": false,
     "inclusionFilter": [
       {
         "objectType": "key",
         "size": null,
         "operator": null,
         "attribute": null,
         "patterns": [
           "childkey"
         ]
       },
       {
         "objectType": "value",
         "size": null,
         "operator": null,
         "attribute": null,
         "patterns": [
           "childvalue"
         ]
       }
     ],
     "exclusionFilter": [],
     "severity": 3,
     "name": "Registry Rule"
   },
   {
     "id": "6b9aeadb-9204-42ab-afc4-231cd1dec8c3",
     "type": "value",
      "imagePath": "HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Run",
     "description": "Description",
     "notify": {
       "directory": [],
       "file": [],
       "key": [],
       "value": [
         "delete",
         "modifyContent"
       ]
     },
     "monitorOwnership": false,
     "inclusionFilter": [],
     "exclusionFilter": [],
     "severity": 3,
     "name": "Registry Rule 2",
     "valueName": "TeamsMachineInstaller"
   }
 ]
}