> ## 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.

# Get All Attacks

Get a list of attacks with optional filtering.

<Note>
  External Documentation

  To learn more, visit the [Tenable Identity Exposure documentation](https://developer.tenable.com/reference/get_api-profiles-profileid-attacks).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter      | Description                                              |
  | -------------- | -------------------------------------------------------- |
  | End Date       | The end of the timeframe to search attacks until.        |
  | Limit          | The maximum number of results to return in the response. |
  | Profile ID     | The ID of the profile to get attacks for.                |
  | Resource Type  | The type of the resource to search for.                  |
  | Resource Value | The value of the resource to search for.                 |
  | Start Date     | The start of the timeframe to search attacks from.       |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter             | Description                                                                                 |
  | --------------------- | ------------------------------------------------------------------------------------------- |
  | Attack Type IDs       | A comma-separated list of attack type IDs. Can be obtained using `Get Attack Types` action. |
  | Order                 | The desired order of the returned response.                                                 |
  | Return Closed Attacks | Select whether to include closed attacks in the response.                                   |
  | Search                | A string to filter the retuned results by.                                                  |
</div>

## Example Output

```json theme={"dark"}
[
	{
		"id": 0,
		"directoryId": 0,
		"attackTypeId": 0,
		"dc": "string",
		"date": "2025-10-23T09:10:14.918Z",
		"vector": {
			"template": "string",
			"attributes": [
				{
					"name": "string",
					"value": "string",
					"valueType": "string"
				}
			]
		},
		"source": {
			"ip": "string",
			"hostname": "string"
		},
		"destination": {
			"ip": "string",
			"hostname": "string"
		},
		"isClosed": true
	}
]
```

## Workflow Library Example

[Get All Attacks with Tenable Identity Exposure and Send Results Via Email](https://library.blinkops.com/workflows/get-all-attacks-with-tenable-identity-exposure-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/get-all-attacks-with-tenable-identity-exposure-and-send-results-via-email/canvas" />
</div>
