Get Impacted Host Vulnerability Policy
GET/api/v32.07/policies/vulnerability/host/impacted
x-prisma-cloud-target-env: {"permission":"policyHosts"}
Lists the hosts ensnared by your policy on a per-rule basis.
To see where Console invokes this endpoint:
- In Console, go to Defend > Vulnerabilities.
- Select the Hosts tab.
- In the Vulnerability rules section, click Show under the Entities in scope column for a rule.
- The endpoint is invoked when the pop-up is displayed.
cURL Request
The following cURL command returns a list of code repositories captured by RULE_NAME
.
$ curl -k \
-u <USER> \
-X GET 'https://<CONSOLE>/api/v<VERSION>/policies/vulnerability/host/impacted?project={PROJECT_NAME}&ruleName={RULE_NAME}'
A successful response contains a list of impacted hosts by a rule within the context of the policy.
Request
Responses
- 200
- default