Get Vulnerable Assets by RQL
POST/uve/api/v1/vulnerabilities/search/asset
Get the list of vulnerable Assets and their IDs based on an RQL query. For vulnerability RQL query attributes, see Vulnerability Query Attributes. For example queries, see Vulnerability Query Examples.
Note: You need
investigateVulnerabilityRql
feature withView
permission to access this endpoint. Verify if your permission group includes this feature using the Get Permission Group by ID endpoint. You can also check this in the Prisma Cloud console by ensuring that Investigate > Vulnerability is enabled.
Request
Query Parameters
- application/json
Body
Search Query
CVE ID
Possible values: [code
, build
, deploy
, run
]
Asset Lifecycle
Possible values: [package
, serverlessFunction
, iac
, deployedImage
, vmImage
, registryImage
, host
]
Asset Type
Responses
- 200
- 202
- 400
- 401
- 403
- 429
- 500
successful operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
value object[]
List of Asset Information
Asset ID
Asset name
At Risk
Internet Exposed
Token for next page
{
"value": [
{
"id": "string",
"name": "string",
"atRisk": true,
"internetExposed": true
}
],
"nextPageToken": "string"
}
Successfully returned the response for the request
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
value object[]
List of Asset Information
Asset ID
Asset name
At Risk
Internet Exposed
Token for next page
{
"value": [
{
"id": "string",
"name": "string",
"atRisk": true,
"internetExposed": true
}
],
"nextPageToken": "string"
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
{
"code": "string",
"message": "string",
"target": "string"
}
Unauthorized Access
- application/json
- Schema
- Example (from schema)
Schema
{
"code": "string",
"message": "string",
"target": "string"
}
User Doesn't have role to access
- application/json
- Schema
- Example (from schema)
Schema
{
"code": "string",
"message": "string",
"target": "string"
}
Rate Limit Exceeded
- application/json
- Schema
- Example (from schema)
Schema
{
"code": "string",
"message": "string",
"target": "string"
}
Failed with an Exception, Internal Error Occurred
- application/json
- Schema
- Example (from schema)
Schema
{
"code": "string",
"message": "string",
"target": "string"
}