Create an EASM Profile
This API helps you create EASM profiles.
Input ParametersInput Parameters
|
Parameter |
Mandatory /Optional |
Data Type |
Description |
|---|---|---|---|
| name | Mandatory | String | Provide the profile name in the API request body |
| defaultProfile |
Optional |
Boolean |
Provide the value as true in API request body if you want to save the EASM profile as a default one. |
| enableEASMScan |
Optional |
Boolean |
Provide the value as true to enable the EASM scan for the EASM profile, or false to disable it. The EASM scan must be enabled for your subscription before you can set this parameter to true. |
| includeVMAssets |
Optional |
Boolean |
Provide the value as true to include all EASM assets in the EASM scan, or false to include only unmanaged EASM assets. You can set this parameter to true only if the enableEASMScan parameter is set to true. |
| excludeCDNAssets | Optional | Boolean | Provide the value as true to exclude CDN assets from the EASM lightweight scan, or false to include them. The default value is true.
The excludeCDNAssets parameter is supported only if the enableEASMSCAN parameter is set to true. |
| excludeCloudAssets | Optional | Boolean | Provide the value as true to exclude cloud-hosted assets from the EASM lightweight scan, or false to include them. The default value is true.
You can set the excludeCloudAssets parameter to false only if the enableEASMScan parameter is set to true. By default, cloud and CDN assets are excluded from the EASM lightweight scan. To include them by setting the excludeCloudAssets or excludeCDNAssets parameter to false, contact your Technical Account Manager (TAM) to enable this option for your account. |
| includeMapScanIps | Optional | Boolean | Provide the value as true to include active assets from VMDR map scan results in EASM discovery, or false to exclude them. The default value is false.
Only a user with the Manager role can set or change the includeMapScanIps and networkIdsForMapScan parameters. VMDR map scans must be configured and completed for the selected networks. |
| networkIdsForMapScan | Optional | Array of Long | Provide the IDs of the VMDR networks whose map scan results you want to include in EASM discovery.
To fetch the network IDs, use the List Networks API from the VMDR APIs. |
| defaultPurgeRule Frequency |
Optional | Numerical | Provide the value within the 0-10 range. The default value is 3.
Example: If you provide the value 3, and the asset is not discovered through 3 EASM discoveries, it will be deleted from the CSAM account. |
| excludeDefamatory Domain |
Optional | String | Provide the value as 'false' if you want to view the defamatory domains. The default value is 'true'.
The excludeDefamatoryDomain parameter is supported only if the enableTyposquattedDomainGeneration parameter is set to 'true'. |
| enableTyposquatted DomainGeneration |
Optional | String | Provide the value as 'true' if you want to generate and view the typosquatted domains for the respective domain and organization seed values. The default value is 'false'. |
| enableDomainSecurity | Optional | Boolean | Provide the value as true or false to enable or disable the Domain Security feature for an EASM profile. |
| easmScanAssetsScoping | Optional | Object | Define the scope to include or exclude assets from an EASM scan based on asset tags. |
| includeType | Optional | String | Provide the condition for including assets in the EASM scan.
Accepted values:
|
| includeTagIds | Optional | Integer | Provide the list of asset tag IDs to include in the EASM scan. |
| excludeType | Optional | String | Provide the condition for excluding assets from the EASM scan.
Accepted values:
|
| excludeTagIds | Optional | Integer | Provide the list of asset tag IDs to exclude from the EASM scan. |
Sample - Create an EASM ProfileSample - Create an EASM Profile
API Request
curl -X POST
'<qualys_base_url>/easm/v2/profile'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer <JWT_Token>'
--data '{
"name": "newProfile",
"includeSeeds": [
{
"seedType": "DOMAIN",
"seedValue": "qualyss.com",
"enumerateSubsidiary": false,
"horizontalEnumeration": false,
"seedFilters": [],
"verticalEnumeration": false,
"seedFileName": null
}
],
"excludeSeeds": [],
"active": true,
"enableEASMScan": false,
"includeVMAssets": false,
"excludeCDNAssets": true,
"excludeCloudAssets": true,
"includeMapScanIps": false,
"networkIdsForMapScan": [],
"defaultPurgeRuleFrequency": 3,
"excludeDefamatoryDomain": true,
"enableTyposquattedDomainGeneration": false,
"enableDomainSecurity": true,
"easmScanAssetsScoping": {
"includeType": "ANY",
"includeTagIds": [
51604974
],
"excludeType": "ANY",
"excludeTagIds": [
49218939
]
}
}'
Response
{
"code": "201",
"status": "SAVED",
"date": "2024-01-15 10:08:53",
"message": "Profile Created Successfully: "
}
Important to Know!
You can't create a duplicate profile, that is a profile with the same configurations as the existing profile.
The following response is shown if you attempt to do that:
Status Code=400Bad Request
{
"date": "2024-07-04 11:40:51",
"message": "Duplicate profile configurations are not allowed.
The same configuration exists with the existing profile FirstProfile.",
"details": [
"Duplicate profile configurations are not allowed. The same
configuration exists with the existing profile FirstProfile."
]
}
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
includeVMAssetsvalue to true unless you set theenableEASMScanvalue 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 | true | 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 - Create an EASM Profile
(with enableEASMScan and includeVMAssets Fields)Sample - Create an EASM Profile
(with enableEASMScan and includeVMAssets Fields)
API Request
curl --location --request POST '<qualys_base_url>/easm/v2/profile' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <Auth Token>' \
--data '
{
"name":"NewProfile1",
"defaultProfile":false,
"includeSeeds": [
{
"seedType": "DOMAIN",
"seedValue": "qualys.com",
"seedHeading": null,
"enumerateSubsidiary": "true",
"horizontalEnumeration": "true",
"verticalEnumeration": "true",
"seedFilters": []
}
],
"excludeSeeds": [],
"enableEASMScan": true,
"includeVMAssets": true,
"excludeCDNAssets": true,
"excludeCloudAssets": true,
"includeMapScanIps": false,
"networkIdsForMapScan": [],
"defaultPurgeRuleFrequency": 3,
"excludeDefamatoryDomain": true,
"enableTyposquattedDomainGeneration": false,
"enableDomainSecurity": false,
"easmScanAssetsScoping": null
}'
Response
{
"code": "201",
"status": "SAVED",
"date": "2024-04-21 11:35:12",
"message": "Profile Created Successfully."
}
Sample - Create an EASM Profile
(with excludeCDNAAssets, defaultPurgeRule Frequency, excludeDefamatory Domain, enableTyposquattedDomainGeneration Fields)Sample - Create an EASM Profile
(with excludeCDNAAssets, defaultPurgeRule Frequency, excludeDefamatory Domain, enableTyposquattedDomainGeneration Fields)
API Request
curl -X POST '<qualys_base_url>/easm/v2/profile' --header 'Content-Type: application/json' --header 'Authorization: Bearer <JWT_Token>' --data '{ "name": "newProfile", "includeSeeds": [ { "seedType": "DOMAIN", "seedValue": "qualyss.com", "enumerateSubsidiary": false, "horizontalEnumeration": false, "seedFilters": [], "verticalEnumeration": false, "seedFileName": null } ], "excludeSeeds": [], "active": true, "enableEASMScan": false, "includeVMAssets": false, "excludeCDNAssets": true, "excludeCloudAssets": true, "includeMapScanIps": false, "networkIdsForMapScan": [], "defaultPurgeRuleFrequency": 3, "excludeDefamatoryDomain": true, "enableTyposquattedDomainGeneration": false, "enableDomainSecurity": true, "easmScanAssetsScoping": null }'
Response
{
"code": "201",
"status": "SAVED",
"date": "2024-04-21 11:35:12",
"message": "Profile Created Successfully."
}
Sample - Create an EASM Profile that Includes VMDR Map Scan ResultsSample - Create an EASM Profile that Includes VMDR Map Scan Results
API Request
curl -X POST '<qualys_base_url>/easm/v2/profile' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <JWT Token>' \
--data '{
"name": "Corporate_Netblocks",
"includeSeeds": [
{
"seedType": "NETBLOCK",
"seedValue": "xxx.x.x.x/xx",
"enumerateSubsidiary": false,
"horizontalEnumeration": false,
"seedFilters": [],
"verticalEnumeration": false,
"seedFileName": null
}
],
"excludeSeeds": [],
"active": true,
"enableEASMScan": false,
"includeVMAssets": false,
"excludeCDNAssets": true,
"excludeCloudAssets": true,
"includeMapScanIps": true,
"networkIdsForMapScan": [<network_id_1>, <network_id_2>],
"defaultPurgeRuleFrequency": 3,
"excludeDefamatoryDomain": true,
"enableTyposquattedDomainGeneration": false,
"enableDomainSecurity": false,
"easmScanAssetsScoping": null
}'
API Response
{
"code": "201",
"status": "SAVED",
"date": "2026-11-02 10:08:53",
"message": "Profile Created Successfully."
}
Sample - Create an EASM Profile that Excludes Cloud Assets from EASM ScansSample - Create an EASM Profile that Excludes Cloud Assets from EASM Scans
API Request
curl -X POST '<qualys_base_url>/easm/v2/profile' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <JWT Token>' \
--data '{
"name": "Corporate_Domains",
"includeSeeds": [
{
"seedType": "DOMAIN",
"seedValue": "example.com",
"enumerateSubsidiary": false,
"horizontalEnumeration": false,
"seedFilters": [],
"verticalEnumeration": false,
"seedFileName": null
}
],
"excludeSeeds": [],
"active": true,
"enableEASMScan": true,
"includeVMAssets": false,
"excludeCDNAssets": true,
"excludeCloudAssets": true,
"includeMapScanIps": false,
"networkIdsForMapScan": [],
"defaultPurgeRuleFrequency": 3,
"excludeDefamatoryDomain": true,
"enableTyposquattedDomainGeneration": false,
"enableDomainSecurity": false,
"easmScanAssetsScoping": null
}'
API Response
{
"code": "201",
"status": "SAVED",
"date": "2026-11-02 10:08:53",
"message": "Profile Created Successfully."
}