Resource Scan Info - POST
POST/resource/scan_info
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Returns a full breakdown of passed/failed statistics and associated policies for resources.
Replacement Endpoint: Resource Scan Info V2 - POST
You can get a list of the valid names and values for the filters body parameter through List Inventory Filters V2.
Filter by Time
The time filter narrows the response to resources from account onboarding until the point in time of interest.
Time Types
Time Type | Required timeRange.value Parameters |
---|---|
to_now | No timeRange.value parameter required |
relative | timeRange.value.amount, timeRange.value.unit |
absolute | timeRange.value.endTime (timeRange.value.startTime is ignored) |
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.
Request
- application/json
Body
- Array [
- ]
- RelativeTimeRangeConfigModel
- AbsoluteTimeRangeConfigModel
- ToNowTimeRangeConfigModel
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
timeRange object
See the Time Range Model for details.
Possible values: [BACKWARD
, FORWARD
]
Direction in which to count time. Default = BACKWARD
value objectrequired
Model for RelativeTimeDuration
Number of time units
Possible values: [minute
, hour
, day
, week
, month
, year
]
Time unit
value objectrequired
Model for Time
End timestamp
Start timestamp
Possible values: [MINUTE
, HOUR
, DAY
, WEEK
, MONTH
, YEAR
, EPOCH
, LOGIN
]
Time range object
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