Asset Inventory View V2 - POST
POST/v2/inventory
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Returns asset inventory pass/fail data for the specified time period.
Replacement Endpoint: Asset Inventory View V3 - POST
This endpoint will only be able to access data from the past 1 year. This change is implemented to optimize system performance and reduce data storage requirements of deprecated endpoints.
You can get a list of the valid names and values for the filters body parameter through List Inventory Filters V2.
The response includes an attribute groupedAggregates, whose content depends on the groupBy request body parameter. The following table shows the attributes that groupedAggregates will include for the specified groupBy value:
groupBy | groupedAggregates Includes |
---|---|
not specified | cloudTypeName |
cloudType | cloudTypeName |
cloud.account | accountName |
cloud.region | regionName, cloudTypeName |
cloud.service | serviceName, cloudTypeName |
resource.type | resourceTypeName, cloudTypeName |
If groupBy includes multiple values, then groupedAggregates will include multiple attributes.
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
- 404
success
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
groupedAggregates object[]
List of grouped asset inventory aggregates
Name of cloud account
Possible to drill down further
Name of cloud type
The number of resources whose highest policy failure is critical
The number of resources that failed with critical vulnerabilities
Number of failed resources
The number of resources that failed high severity policies
The number of resources that failed with high vulnerabilities
The number of resources whose highest policy failure is informational
The number of resources whose highest policy failure is low
The number of resources that failed with low vulnerabilities
The number of resources whose highest policy failure is medium
The number of resources that failed with medium vulnerabilities
Number of passed resources
Name of cloud region
Name of resource type
Name of cloud service
Total number of Compliance Standard/Requirement/Section scanned resources
The total number of resources that failed with vulnerabilities
Total number of unscanned resources
Requested timestamp
summary object
Model for Asset Inventory Summary
The number of resources that failed critical severity policies
The number of resources that failed with critical vulnerabilities
Number of failed resources
The number of resources that failed high severity policies
The number of resources that failed with high vulnerabilities
The number of resources that failed informational severity policies
The number of resources that failed low severity policies
The number of resources that failed with low vulnerabilities
The number of resources that failed medium severity policies
The number of resources that failed with medium vulnerabilities
Number of passed resources
Timestamp
Total number of resources
The total number of resources that failed with vulnerabilities
Total number of unscanned resources
Timestamp
{
"groupedAggregates": [
{
"accountId": "string",
"accountName": "string",
"allowDrillDown": true,
"cloudTypeName": "string",
"criticalSeverityFailedResources": 0,
"criticalVulnerabilityFailedResources": 0,
"failedResources": 0,
"highSeverityFailedResources": 0,
"highVulnerabilityFailedResources": 0,
"informationalSeverityFailedResources": 0,
"lowSeverityFailedResources": 0,
"lowVulnerabilityFailedResources": 0,
"mediumSeverityFailedResources": 0,
"mediumVulnerabilityFailedResources": 0,
"passedResources": 0,
"regionName": "string",
"resourceTypeName": "string",
"serviceName": "string",
"totalResources": 0,
"totalVulnerabilityFailedResources": 0,
"unscannedResources": 0
}
],
"requestedTimestamp": 0,
"summary": {
"criticalSeverityFailedResources": 0,
"criticalVulnerabilityFailedResources": 0,
"failedResources": 0,
"highSeverityFailedResources": 0,
"highVulnerabilityFailedResources": 0,
"informationalSeverityFailedResources": 0,
"lowSeverityFailedResources": 0,
"lowVulnerabilityFailedResources": 0,
"mediumSeverityFailedResources": 0,
"mediumVulnerabilityFailedResources": 0,
"passedResources": 0,
"timestamp": 0,
"totalResources": 0,
"totalVulnerabilityFailedResources": 0,
"unscannedResources": 0
},
"timestamp": 0
}
not_found