Resource Scan Info V2 - POST
POST/v2/resource/scan_info
Returns a full breakdown of passed/failed statistics and associated policies for resources.
You can get a list of the valid names and values for the filters body parameter through List Inventory Filters V2.
How Current is the Returned Data?
Since Prisma Cloud relies on snapshots of data, there can be an hour or two delay between the time a resource passes or fails a policy check and the reporting of that result through this method.
The offset
, sortBy
, fields
and detailed
fields in the request body are not supported for this endpoint
Request
- application/json
Body
- Array [
- ]
Detailed
Array of specific fields to return
filters object[]
Filtering parameters.
For filter names, refer to List Filters API.
For filter values, refer to List filter suggestions.
The only exception is resource.tagv2 filter name, provide filter value for it in the following format: "{"key":"'CustomerTagKey'","value":"'CustomerTagValue'"}"
Name
Possible values: [tag:yaml.org,2002:value =
]
Operator
Value
For asset or data inventory only. Group returned items by cloud.type, cloud.service, cloud.region, cloud.account, and/or resource.type
Maximum number of items to return. When data is paginated, maximum number of items per page.The maximum cannot exceed 10,000. The default is 10,000.
The number of items to skip before selecting items to return. Default is zero
Setting this pagination Token to the nextPageToken from a response object returns the next page of data
Array of sort properties. Append :asc or :desc to the key to sort by ascending or descending order respectively. Example sort properties are id:asc and timestamp:desc
Responses
- 200
- 400
- 404
success
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
nextPageToken object
Use as page token to return next page of data
Page size
resources object[]
List of metadata for resources that match filter
Account ID
Account name
alertStatus object
Count of alerts found by their policy severity
Asset Type
Possible values: [ALL
, AWS
, AZURE
, GCP
, ALIBABA_CLOUD
, OCI
, IBM
]
Cloud type
Resource ID
Resource name
All policies passed
Region ID
Region Name
Resource config JSON available
Resource details available
RRN
scannedPolicies object[]
Scanned policies
Possible values: [INFORMATIONAL
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Asset Id
vulnerabilityStatus object
Count of vulnerabilities found by their severity
Epoch timestamp
Total number of filtered resources, both scanned and unscanned
{
"nextPageToken": {
"failedEventOffset": true,
"lastRowIdx": 0,
"limit": 0,
"offset": 0,
"previousTotalMatchedCount": 0,
"timestamp": 0
},
"pageSize": 0,
"resources": [
{
"accountId": "string",
"accountName": "string",
"alertStatus": {
"critical": 0,
"high": 0,
"informational": 0,
"low": 0,
"medium": 0
},
"appNames": [
"string"
],
"assetType": "string",
"cloudType": "ALL",
"id": "string",
"name": "string",
"overallPassed": true,
"regionId": "string",
"regionName": "string",
"resourceConfigJsonAvailable": true,
"resourceDetailsAvailable": true,
"rrn": "string",
"scannedPolicies": [
{
"id": "string",
"labels": [
"string"
],
"name": "string",
"passed": true,
"severity": "INFORMATIONAL"
}
],
"unifiedAssetId": "string",
"vulnerabilityStatus": {
"critical": 0,
"high": 0,
"low": 0,
"medium": 0
}
}
],
"timestamp": 0,
"totalMatchedCount": 0
}
bad_request
not_found