> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Launch VM Scan

Launch a VM scan in the user's account.
The scan targets can be specified either by IP addresses or Asset Group IDs (or both).

<Note>
  One of these parameters must also be specified in a request: Scanner Names, Scanner IDs, Use Default Scanner, Use Scanners In Account Groups.
  When none of these are specified, External scanners are used.
</Note>

<Note>
  External Documentation

  To learn more, visit the [Qualys documentation](https://docs.qualys.com/en/vm/api/scans/index.htm#t=vm_scans%2Flaunch_vm_scan.htm).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Asset Group IDs                | A comma-separated list of the IDs of asset groups containing the hosts to be scanned.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | Asset Groups                   | A comma-separated list of the titles of asset groups containing the hosts to be scanned.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
  | Excluded IPs                   | The IP addresses to be excluded from the scan when the scan target is specified as IP addresses. <br />Both individual IP addresses and ranges are supported. Multiple entries are comma separated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | Fqdn                           | A comma-separated list of target Fully Qualified Domain Names (FQDNs) for a vulnerability scan. Must specify at least one target:  an IP, asset group, or FQDN.<br />- DNS Tracking must be enabled for the subscription. A Manager user can enable this feature in the Qualys UI by going to Scans > Setup > DNS Tracking and checking the “Enable DNS Tracking for hosts” option.                                                                                                                                                                                                                                                                                                                                                                                                     |
  | IPs                            | A comma-separated list of the IP addresses to be scanned. Both individual IP addresses and ranges are supported.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
  | Include Agent Targets          | Check this box when the scan target includes agent hosts. This lets the user scan private IPs where agents are installed when these IPs are not in the VM/PC license.<br />Supported capabilities<br />- This parameter is supported for internal scans using scanner appliance(s). This option is not supported for scans using External scanners.<br />- This parameter is supported when launching on demand scans only. It is not supported for scheduled scans.<br />Parameter Scanner IDs or Scanner Names must be specified in the same request, otherwise this parameter will be ignored.                                                                                                                                                                                       |
  | Option Profile ID              | The ID of the option profile to be used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
  | Option Profile Identifier      | Select how to identify the option profile, by ID or Title.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
  | Option Profile Title           | The title of the option profile to be used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | Scan Target                    | Select the scan target.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
  | Scan Title                     | The scan title. This can be a maximum of 2000 characters (ascii).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | Scanner IDs                    | A comma-separated list of the IDs of the scanner appliances to be used.<br />For an Express Lite user, Internal Scanning must be enabled in the user's account.<br />One of these parameters must also be specified in a request: Scanner Names, Scanner IDs, Use Default Scanner, Use Scanners In Account Groups. <br />When none of these are specified, External scanners are used.                                                                                                                                                                                                                                                                                                                                                                                                  |
  | Scanner Names                  | A comma-separated list of the friendly names of the scanner appliances to be used or "External" for external scanners.<br />For an Express Lite user, Internal Scanning must be enabled in the user's account.<br />One of these parameters must also be specified in a request: Scanner Names, Scanner IDs, Default Scanner, Use Scanners In Account Groups. <br />When none of these are specified, External scanners are used.                                                                                                                                                                                                                                                                                                                                                       |
  | Use Default Scanner            | Check to use the default scanner in each target asset group. For an Express Lite user, Internal Scanning must be enabled in the user's<br />One of these parameters must also be specified in a request: Scanner Names, Scanner IDs, Use Default Scanner, Use Scanners In Account Groups. <br />When none of these are specified, External scanners are used.                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | Use Scanners In Account Groups | Check to use scanners according to the specified Account Groups. Appliances in each asset group are tasked with scanning the IPs in the group.<br />This parameter is only valid when the scan target is specified using one of these parameters: asset\_groups, asset\_group\_ids, otherwise it will be ignored.<br />By default up to 5 appliances per group will be used and this can be configured for the account (please contact the Account Manager or Support). <br />For an Express Lite user, Internal Scanning must be enabled in the user's account.<br />One of these parameters must also be specified in a request: Scanner Names, Scanner IDs, Use Default Scanner, Use Scanners In Account Groups. <br />When none of these are specified, External scanners are used. |
  | Use Scanners In Network        | Check to distribute the scan to all scanner appliances in the network.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter                        | Description                                                                                                                                                                                                                                                                                                                                                                                                                                  |
  | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Client ID                        | ID assigned to the client (Consultant type subscription only). <br />Parameter Client ID or Client Name may be specified for the same request.                                                                                                                                                                                                                                                                                               |
  | Client Name                      | Name of the client (Consultant type subscriptions only).<br />Parameter Client ID or Client Name may be specified for the same request.                                                                                                                                                                                                                                                                                                      |
  | Disable XML To JSON Auto Convert | When checked, XML responses are not automatically converted into JSON format.                                                                                                                                                                                                                                                                                                                                                                |
  | IP Network ID                    | Valid only when the Network Support feature is enabled for the user's account - The ID of a network used to filter the IPs/ranges specified in the "ip" parameter. <br />Set to a custom network ID (note this does not filter IPs/ranges specified in parameters asset\_groups or asset\_group\_ids). <br />Set to "0" or leave empty for the Global Default Network - this is used to scan hosts outside of the account's custom networks. |
  | Priority                         | Specify a value of 0 - 9 to set a processing priority level for the scan. When not specified, a value of 0 (no priority) is used.<br />Valid values are: 0 = No Priority (the default), 1 = Emergency, 2 = Ultimate, 3 = Critical, 4 = Major, 5 = High, 6 = Standard, 7 = Medium, 8 = Minor, 9 = Low.                                                                                                                                        |
  | Runtime Http Header              | Set a custom value in order to drop defenses (such as logging, IPs, etc) when an authorized scan is being run. <br />The value entered will be used in the "Qualys-Scan:" header that will be set for many CGI and web application fingerprinting checks. <br />Some discovery and web server fingerprinting checks will not use this header.                                                                                                |
</div>

## Example Output

```json theme={"dark"}
{
	"SIMPLE_RETURN": {
		"RESPONSE": {
			"DATETIME": "2018-01-15T21:32:40Z",
			"TEXT": "New vm scan launched",
			"ITEM_LIST": {
				"ITEM": [
					{
						"KEY": "ID",
						"VALUE": 136992
					},
					{
						"KEY": "REFERENCE",
						"VALUE": "scan/1358285558.36992"
					}
				]
			}
		}
	}
}
```

## Workflow Library Example

[Launch Vm Scan with Qualys and Send Results Via Email](https://library.blinkops.com/workflows/launch-vm-scan-with-qualys-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/launch-vm-scan-with-qualys-and-send-results-via-email/canvas" />
</div>
