Skip to main content

Get Policies For Asset

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

External Documentation

To learn more, visit the Rapid7 documentation.

Parameters

ParameterDescription
Applicable OnlyAn 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 IDThe ID of the asset.
Disable SSL EnforcementEnable this option to skip SSL verification of the server's certificate
chain and host name. This may increase security vulnerabilities, but can be useful
for testing or when custom verification is employed.
PageThe index of the page (zero-based) to retrieve.
Return All PagesAutomatically fetch all resources, page by page.
SizeThe number of records per page to retrieve.
SortThe criteria to sort the records by, in the format: `property[,ASC

Example Output

{
"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

Workflow LibraryPreview this Workflow on desktop