Get an EASM Profile Data

This API helps you get the EASM profile data. You can get the data for one specified profile or all profiles when multiple profiles are configured.

[GET] /easm/v2/profile

Input ParametersInput Parameters

Parameter

Mandatory

/Optional

Data Type

Description

pageNumber

Optional

Integer

Provide the page number. If the page number is not provided, page no 0 is fetched by default.

 You can get the data for a maximum of 20 profiles. But if you want to get the data for more than 20 profiles, you need to provide the pagination
query parameter, which is pageNumber=Numericvalue.

profileName

Optional

String

Provide the profile name only if you want to get the data for the individual profile.

Response ParametersResponse Parameters

The response returns the following details and settings for each EASM profile:

Parameter

Data Type

Description

hasNextPage Boolean Indicates whether more EASM profiles are available on the next page. Use the pageNumber parameter to get the next page.
name String The name of the EASM profile.
includeSeeds Array of Objects The seeds included in the EASM profile. Each seed contains details such as the seed type, seed value, enumeration settings, and seed filters.
excludeSeeds Array of Objects The seeds excluded from the EASM profile.
active Boolean Indicates whether the EASM profile is active.
profileTagName String The name of the tag associated with the EASM profile.
enableEASMScan Boolean Indicates whether the EASM scan is enabled for the EASM profile.
includeVMAssets Boolean Indicates whether all EASM assets (true) or only unmanaged EASM assets (false) are included in the EASM scan.
excludeCDNAssets Boolean Indicates whether CDN assets are excluded from the EASM lightweight scan.
excludeCloudAssets Boolean Indicates whether cloud-hosted assets are excluded from the EASM lightweight scan.
includeMapScanIps Boolean Indicates whether active assets from VMDR map scan results are included in EASM discovery.
networkIdsForMapScan Array of Long The IDs of the VMDR networks whose map scan results are included in EASM discovery.
defaultPurgeRuleFrequency Integer The number of consecutive EASM discoveries in which an asset is not discovered before the asset is deleted from your CSAM account.
excludeDefamatoryDomain Boolean Indicates whether defamatory domains are excluded from the typosquatted domains.
enableTyposquattedDomainGeneration Boolean Indicates whether typosquatted domains are generated for the domain and organization seed values.
enableDomainSecurity Boolean Indicates whether the Domain Security feature is enabled for the EASM profile.
easmScanAssetsScoping Object The tag-based scope that includes or excludes assets from the EASM scan, with the includeType, includeTagIds, excludeType, and excludeTagIds fields. The value is null if no scope is defined.

Sample: Get Data of an Individual EASM ProfileSample: Get Data of an Individual EASM Profile

API Request

curl --location 
'<qualys_base_url>/easm/v2/profile?profileName=typo improvement'
--header 'Authorization: Bearer <JWT_Token>'
--data ''

Response

{
  "hasNextPage": false,
  "profile": [
    {
      "name": "NewProfile",
      "includeSeeds": [
        {
          "seedType": "NETBLOCK",
          "seedValue": "169.xx.xxx.8;108.xxx.xxx.31",
          "seedHeading": null,
          "enumerateSubsidiary": false,
          "horizontalEnumeration": false,
          "seedFilters": [],
          "verticalEnumeration": false,
          "seedFileName": null
        }
      ],
      "excludeSeeds": [],
      "active": true,
      "profileTagName": "Tag name",
      "enableEASMScan": true,
      "includeVMAssets": true,
      "excludeCDNAssets": false,
      "excludeCloudAssets": true,
      "includeMapScanIps": false,
      "networkIdsForMapScan": [],
      "defaultPurgeRuleFrequency": 3,
      "excludeDefamatoryDomain": true,
      "enableTyposquattedDomainGeneration": false,
      "enableDomainSecurity": false,
      "easmScanAssetsScoping": {
        "includeType": "Any",
        "includeTagIds": [
          51672174
        ],
        "excludeType": "Any",
        "excludeTagIds": []
      }
    },
    {
      "name": "exlusion",
      "includeSeeds": [
        {
          "seedType": "NETBLOCK",
          "seedValue": "169.xx.xx.xxx",
          "seedHeading": null,
          "enumerateSubsidiary": false,
          "horizontalEnumeration": false,
          "seedFilters": [],
          "verticalEnumeration": false,
          "seedFileName": null
        }
      ],
      "excludeSeeds": [
        {
          "seedType": "NETBLOCK",
          "seedValue": "169.xx.xx.xxx",
          "seedFileName": null
        },
        {
          "seedType": "NETBLOCK",
          "seedValue": "2620:xxx:xxxx:0:0:0:0:2;xxxx:xxxx:0:0:0:0:xxxx:xxxx",
          "seedFileName": null
        }
      ],
      "active": false,
      "profileTagName": "exlusion",
      "enableEASMScan": true,
      "includeVMAssets": true,
      "excludeCDNAssets": true,
      "excludeCloudAssets": true,
      "includeMapScanIps": false,
      "networkIdsForMapScan": [],
      "defaultPurgeRuleFrequency": 3,
      "excludeDefamatoryDomain": true,
      "enableTyposquattedDomainGeneration": false,
      "enableDomainSecurity": false,
      "easmScanAssetsScoping": null
    }
  ]
}

Sample: Get Data for Multiple EASM ProfilesSample: Get Data for Multiple EASM Profiles

API Request

curl --location --request GET  
'<qualys_base_url>/easm/v2/profile' \ 
--header 'Authorization: Bearer <JWT_Token>' \ 
--data ''

Response

{
  "hasNextPage": false,
  "profile": [
    {
      "name": "qualys123",
      "includeSeeds": [
        {
          "seedType": "ORGANIZATION",
          "seedValue": "Qualys, Inc",
          "seedHeading": null,
          "enumerateSubsidiary": true,
          "horizontalEnumeration": true,
          "seedFilters": [],
          "verticalEnumeration": false,
          "seedFileName": null
        },
        {
          "seedType": "DOMAIN",
          "seedValue": "qualys.com",
          "seedHeading": null,
          "enumerateSubsidiary": true,
          "horizontalEnumeration": true,
          "seedFilters": [],
          "verticalEnumeration": true,
          "seedFileName": null
        }
      ],
      "excludeSeeds": [
        {
          "seedType": "COUNTRY",
          "seedValue": "IN"
        }
      ],
      "active": false,
      "profileTagName": "qualys123",
      "enableEASMScan": false,
      "includeVMAssets": false,
      "excludeCDNAssets": true,
      "excludeCloudAssets": true,
      "includeMapScanIps": false,
      "networkIdsForMapScan": [],
      "defaultPurgeRuleFrequency": 3,
      "excludeDefamatoryDomain": false,
      "enableTyposquattedDomainGeneration": false,
      "enableDomainSecurity": false,
      "easmScanAssetsScoping": null
    },
    {
      "name": "MultipleIPS",
      "includeSeeds": [
        {
          "seedType": "NETBLOCK",
          "seedValue": "184.27.107.6;104.75.45.207;99.83.253.77",
          "seedHeading": null,
          "enumerateSubsidiary": false,
          "horizontalEnumeration": false,
          "seedFilters": [],
          "verticalEnumeration": false,
          "seedFileName": null
        }
      ],
      "excludeSeeds": [],
      "active": true,
      "profileTagName": "MultipleIPS",
      "enableEASMScan": false,
      "includeVMAssets": false,
      "excludeCDNAssets": true,
      "excludeCloudAssets": true,
      "includeMapScanIps": false,
      "networkIdsForMapScan": [],
      "defaultPurgeRuleFrequency": 2,
      "excludeDefamatoryDomain": false,
      "enableTyposquattedDomainGeneration": false,
      "enableDomainSecurity": false,
      "easmScanAssetsScoping": null
    }
  ]
}

Sample with enableEASMScan and includeVMAssets Fields

See the following prerequisites before you go through the subsequent sample.

  • EASM scan must be enabled for your subscription from the back office so that you can set the EASM scan to true for an EASM profile.

  • You can't set the includeVMAssets value to true unless you set the enableEASMScan value to true.

Field 

Value

Details

enableEASMScan

true

Indicates that you enabled the EASM scan for the EASM profile.

enableEASMScan

false

Indicates that you didn't enable the EASM scan for the EASM profile.

includeVMAssets

false

Indicates that you choose to include all EASM assets in the EASM scan.

includeVMAssets

false

Indicates that you choose to include unmanaged EASM assets in the EASM scan.

Sample: Get Data of Multiple EASM Profiles
(with enableEASMScan and includeVMAssets Fields)
Sample: Get Data of Multiple EASM Profiles
(with enableEASMScan and includeVMAssets Fields)

API Request

curl --location --request GET  
'<qualys_base_url>/easm/v2/profile' \ 
--header 'Authorization: Bearer <Auth Token>' \ 
--data ''

Response

{
  "hasNextPage": false,
  "profile": [
    {
      "name": "NewProfile",
      "includeSeeds": [
        {
          "seedType": "NETBLOCK",
          "seedValue": "169.xx.xxx.8;108.xxx.xxx.31",
          "seedHeading": null,
          "enumerateSubsidiary": false,
          "horizontalEnumeration": false,
          "seedFilters": [],
          "verticalEnumeration": false,
          "seedFileName": null
        }
      ],
      "excludeSeeds": [],
      "active": true,
      "profileTagName": "Tag name",
      "enableEASMScan": true,
      "includeVMAssets": true,
      "excludeCDNAssets": false,
      "excludeCloudAssets": true,
      "includeMapScanIps": false,
      "networkIdsForMapScan": [],
      "defaultPurgeRuleFrequency": 3,
      "excludeDefamatoryDomain": true,
      "enableTyposquattedDomainGeneration": false,
      "enableDomainSecurity": false,
      "easmScanAssetsScoping": {
        "includeType": "Any",
        "includeTagIds": [
          51672174
        ],
        "excludeType": "Any",
        "excludeTagIds": []
      }
    },
    {
      "name": "exlusion",
      "includeSeeds": [
        {
          "seedType": "NETBLOCK",
          "seedValue": "169.xx.xx.xxx",
          "seedHeading": null,
          "enumerateSubsidiary": false,
          "horizontalEnumeration": false,
          "seedFilters": [],
          "verticalEnumeration": false,
          "seedFileName": null
        }
      ],
      "excludeSeeds": [
        {
          "seedType": "NETBLOCK",
          "seedValue": "169.xx.xx.xxx",
          "seedFileName": null
        },
        {
          "seedType": "NETBLOCK",
          "seedValue": "2620:xxx:xxxx:0:0:0:0:2;xxxx:xxxx:0:0:0:0:xxxx:xxxx",
          "seedFileName": null
        }
      ],
      "active": false,
      "profileTagName": "exlusion",
      "enableEASMScan": true,
      "includeVMAssets": true,
      "excludeCDNAssets": true,
      "excludeCloudAssets": true,
      "includeMapScanIps": false,
      "networkIdsForMapScan": [],
      "defaultPurgeRuleFrequency": 3,
      "excludeDefamatoryDomain": true,
      "enableTyposquattedDomainGeneration": false,
      "enableDomainSecurity": false,
      "easmScanAssetsScoping": null
    }
  ]
}

Sample: Get Data of Individual EASM Profile
(with enableEASMScan and includeVMAssets Fields)
Sample: Get Data of Individual EASM Profile
(with enableEASMScan and includeVMAssets Fields)

API Request

curl -X GET
'<qualys_base_url>/easm/v2/profile?profileName=NewProfile'
--header 'Authorization: Bearer <Auth Token>'
--data ''      
    

Response

{
 "hasNextPage": false,
 "profile": [
 {
 "name": "NewProfile",
"includeSeeds": [
 {
 "seedType": "DOMAIN",
 "seedValue": "qualys.com",
 "seedHeading": null,
 "enumerateSubsidiary": true,
 "horizontalEnumeration": true,
 "verticalEnumeration": false,
 "seedFilters": []
 }
 ],
 "excludeSeeds": [
 {
 "seedType": "CITY",
 "seedValue": "string"
 }
 ],
 "active": true,
 "profileTagName": "NewProfile",
 "enableEASMScan": true,
 "includeVMAssets": false,
 "excludeCDNAssets": true,
 "excludeCloudAssets": true,
 "includeMapScanIps": false,
 "networkIdsForMapScan": [],
 "defaultPurgeRuleFrequency": 3,
 "excludeDefamatoryDomain": true,
 "enableTyposquattedDomainGeneration": false,
 "enableDomainSecurity": false,
 "easmScanAssetsScoping": null
 }
 ]
} 
   

The response includes the excludeCloudAssets, includeMapScanIps, and networkIdsForMapScan parameters. The includeMapScanIps and networkIdsForMapScan parameters indicate whether the profile includes assets from VMDR map scan results in EASM discovery and the networks used for the map scan results. The excludeCloudAssets parameter indicates whether cloud-hosted assets are excluded from the EASM lightweight scan.

Sample: Get Data of an EASM Profile with VMDR Map Scan and Cloud Asset SettingsSample: Get Data of an EASM Profile with VMDR Map Scan and Cloud Asset Settings

API Request

curl -X GET '<qualys_base_url>/easm/v2/profile?profileName=Corporate_Netblocks' \
--header 'Authorization: Bearer <JWT Token>'

API Response

{
  "hasNextPage": false,
  "profile": [
    {
      "name": "Corporate_Netblocks",
      "includeSeeds": [
        {
          "seedType": "NETBLOCK",
          "seedValue": "xxx.x.x.x/xx",
          "seedHeading": null,
          "enumerateSubsidiary": false,
          "horizontalEnumeration": false,
          "seedFilters": [],
          "verticalEnumeration": false,
          "seedFileName": null
        }
      ],
      "excludeSeeds": [],
      "active": true,
      "profileTagName": "Corporate_Netblocks",
      "enableEASMScan": false,
      "includeVMAssets": false,
      "excludeCDNAssets": true,
      "excludeCloudAssets": false,
      "includeMapScanIps": true,
      "networkIdsForMapScan": [<network_id_1>, <network_id_2>],
      "defaultPurgeRuleFrequency": 3,
      "excludeDefamatoryDomain": true,
      "enableTyposquattedDomainGeneration": false,
      "enableDomainSecurity": false,
      "easmScanAssetsScoping": null
    }
  ]
}