Skip to main content

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.

info

The offset, sortBy, fields and detailed fields in the request body are not supported for this endpoint

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

Responses

success

Schema
    nextPageToken object

    Use as page token to return next page of data

    failedEventOffset boolean
    lastRowIdx int64
    limit int64
    offset int64
    previousTotalMatchedCount int64
    timestamp int64
    pageSize int64

    Page size

    resources object[]

    List of metadata for resources that match filter

  • Array [
  • accountId string

    Account ID

    accountName string

    Account name

    alertStatus object

    Count of alerts found by their policy severity

    critical int64
    high int64
    informational int64
    low int64
    medium int64
    appNames string[]
    assetType string

    Asset Type

    cloudType string

    Possible values: [ALL, AWS, AZURE, GCP, ALIBABA_CLOUD, OCI, IBM]

    Cloud type

    id string

    Resource ID

    name string

    Resource name

    overallPassed boolean

    All policies passed

    regionId string

    Region ID

    regionName string

    Region Name

    resourceConfigJsonAvailable boolean

    Resource config JSON available

    resourceDetailsAvailable boolean

    Resource details available

    rrn string

    RRN

    scannedPolicies object[]

    Scanned policies

  • Array [
  • id string
    labels string[]
    name string
    passed boolean
    severity string

    Possible values: [INFORMATIONAL, LOW, MEDIUM, HIGH, CRITICAL]

  • ]
  • unifiedAssetId string

    Asset Id

    vulnerabilityStatus object

    Count of vulnerabilities found by their severity

    critical int64
    high int64
    low int64
    medium int64
  • ]
  • timestamp int64

    Epoch timestamp

    totalMatchedCount int64

    Total number of filtered resources, both scanned and unscanned

Loading...