> ## 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 Policies For Asset

Retrieves the list of policies with compliance results for the specified asset.

<Note>
  External Documentation

  To learn more, visit the [Rapid7 documentation](https://help.rapid7.com/insightvm/en-us/api/index.html#operation/getPoliciesForAsset).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter               | Description                                                                                                                                                                                                                                                        |
  | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Applicable Only         | An optional boolean parameter indicating the policies retrieved should only include those with a policy compliance status of either a PASS of FAIL result. Default value is `false`, which will also include policies with a compliance status of NOT\_APPLICABLE. |
  | Asset ID                | The ID of the asset.                                                                                                                                                                                                                                               |
  | Disable SSL Enforcement | Enable this option to skip SSL verification of the server's certificate<br />chain and host name. This may increase security vulnerabilities, but can be useful<br />for testing or when custom verification is employed.                                          |
  | Page                    | The index of the page (zero-based) to retrieve.                                                                                                                                                                                                                    |
  | Return All Pages        | Automatically fetch all resources, page by page.                                                                                                                                                                                                                   |
  | Size                    | The number of records per page to retrieve.                                                                                                                                                                                                                        |
  | Sort                    | The criteria to sort the records by, in the format: `property[,ASC\|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.                                                                     |
</div>

## Example Output

```json theme={"dark"}
{
	"links": [
		{
			"href": "https://hostname:3780/api/3/...",
			"rel": "self"
		}
	],
	"page": {
		"number": 6,
		"size": 10,
		"totalPages": 13,
		"totalResources": 123
	},
	"resources": [
		{
			"benchmarkName": "",
			"benchmarkVersion": "",
			"category": "",
			"description": "",
			"failedAssetsCount": 0,
			"failedRulesCount": 0,
			"id": "",
			"isCustom": false,
			"links": [
				{
					"href": "https://hostname:3780/api/3/...",
					"rel": "self"
				}
			],
			"notApplicableAssetsCount": 0,
			"notApplicableRulesCount": 0,
			"passedAssetsCount": 0,
			"passedRulesCount": 0,
			"policyName": "",
			"ruleCompliance": 0,
			"ruleComplianceDelta": 0,
			"scope": "",
			"status": "",
			"surrogateId": 0,
			"title": "",
			"unscoredRules": 0
		}
	]
}
```

## Workflow Library Example

[Get Policies for Asset with Rapid7 and Send Results Via Email](https://library.blinkops.com/workflows/get-policies-for-asset-with-rapid7-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-policies-for-asset-with-rapid7-and-send-results-via-email/canvas" />
</div>
