Skip to main content

Asset Inventory View V2 - POST

POST 

/v2/inventory

deprecated

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.

info

Replacement  Endpoint: Asset Inventory View V3 - POST

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:

groupBygroupedAggregates Includes
not specifiedcloudTypeName
cloudTypecloudTypeName
cloud.accountaccountName
cloud.regionregionName, cloudTypeName
cloud.serviceserviceName, cloudTypeName
resource.typeresourceTypeName, cloudTypeName

If groupBy includes multiple values, then groupedAggregates will include multiple attributes.

Request

Body

    detailed boolean

    Detailed

    fields string[]

    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'"}"

  • Array [
  • name string

    Name

    operator string

    Possible values: [tag:yaml.org,2002:value =]

    Operator

    value string

    Value

  • ]
  • groupBy string[]

    For asset or data inventory only. Group returned items by cloud.type, cloud.service, cloud.region, cloud.account, and/or resource.type

    limit number

    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.

    offset number

    The number of items to skip before selecting items to return. Default is zero

    pageToken string

    Setting this pagination Token to the nextPageToken from a response object returns the next page of data

    sortBy string[]

    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.

    oneOf
    relativeTimeType string

    Possible values: [BACKWARD, FORWARD]

    Direction in which to count time. Default = BACKWARD

    type string
    value objectrequired

    Model for RelativeTimeDuration

    amount int32

    Number of time units

    unit string

    Possible values: [minute, hour, day, week, month, year]

    Time unit

Responses

success

Schema
    groupedAggregates object[]

    List of grouped asset inventory aggregates

  • Array [
  • accountId string
    accountName string

    Name of cloud account

    allowDrillDown boolean

    Possible to drill down further

    cloudTypeName string

    Name of cloud type

    criticalSeverityFailedResources int64

    The number of resources whose highest policy failure is critical

    criticalVulnerabilityFailedResources int64

    The number of resources that failed with critical vulnerabilities

    failedResources int64

    Number of failed resources

    highSeverityFailedResources int64

    The number of resources that failed high severity policies

    highVulnerabilityFailedResources int64

    The number of resources that failed with high vulnerabilities

    informationalSeverityFailedResources int64

    The number of resources whose highest policy failure is informational

    lowSeverityFailedResources int64

    The number of resources whose highest policy failure is low

    lowVulnerabilityFailedResources int64

    The number of resources that failed with low vulnerabilities

    mediumSeverityFailedResources int64

    The number of resources whose highest policy failure is medium

    mediumVulnerabilityFailedResources int64

    The number of resources that failed with medium vulnerabilities

    passedResources int64

    Number of passed resources

    regionName string

    Name of cloud region

    resourceTypeName string

    Name of resource type

    serviceName string

    Name of cloud service

    totalResources int64

    Total number of Compliance Standard/Requirement/Section scanned resources

    totalVulnerabilityFailedResources int64

    The total number of resources that failed with vulnerabilities

    unscannedResources int64

    Total number of unscanned resources

  • ]
  • requestedTimestamp int64

    Requested timestamp

    summary object

    Model for Asset Inventory Summary

    criticalSeverityFailedResources int64

    The number of resources that failed critical severity policies

    criticalVulnerabilityFailedResources int64

    The number of resources that failed with critical vulnerabilities

    failedResources int64

    Number of failed resources

    highSeverityFailedResources int64

    The number of resources that failed high severity policies

    highVulnerabilityFailedResources int64

    The number of resources that failed with high vulnerabilities

    informationalSeverityFailedResources int64

    The number of resources that failed informational severity policies

    lowSeverityFailedResources int64

    The number of resources that failed low severity policies

    lowVulnerabilityFailedResources int64

    The number of resources that failed with low vulnerabilities

    mediumSeverityFailedResources int64

    The number of resources that failed medium severity policies

    mediumVulnerabilityFailedResources int64

    The number of resources that failed with medium vulnerabilities

    passedResources int64

    Number of passed resources

    timestamp int64

    Timestamp

    totalResources int64

    Total number of resources

    totalVulnerabilityFailedResources int64

    The total number of resources that failed with vulnerabilities

    unscannedResources int64

    Total number of unscanned resources

    timestamp int64

    Timestamp

Loading...