Get Vulnerabilities Trend
POST/adoptionadvisor/api/v2/compute/vulnerabilities/trend
Get vulnerabilities discovered and resolved over time across images, hosts, functions, and containers for the impacted resources.
Request
- application/json
Body
- RelativeTimeRangeConfigModel
- AbsoluteTimeRangeConfigModel
- ToNowTimeRangeConfigModel
- absolute
- relative
- to_now
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
Possible values: [absolute
, relative
, to_now
]
Time type
value objectrequired
Model for Time
End timestamp
Start timestamp
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
Possible values: [MINUTE
, HOUR
, DAY
, WEEK
, MONTH
, YEAR
, EPOCH
, LOGIN
]
Time range object
Responses
- 200
- 400
- 401
successful operation
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
- ]
privilege
Row count
rows object[]
List of vulnerabilities trend data
timestamp
vulStatsContainerC
vulStatsContainerH
vulStatsContainerL
vulStatsContainerM
vulStatsFunctionC
vulStatsFunctionH
vulStatsFunctionL
vulStatsFunctionM
vulStatsHostC
vulStatsHostH
vulStatsHostL
vulStatsHostM
vulStatsImageC
vulStatsImageH
vulStatsImageL
vulStatsImageM
{
"privilege": "string",
"rowCount": 0,
"rows": [
{
"ts": 0,
"vulStatsContainerC": 0,
"vulStatsContainerH": 0,
"vulStatsContainerL": 0,
"vulStatsContainerM": 0,
"vulStatsFunctionC": 0,
"vulStatsFunctionH": 0,
"vulStatsFunctionL": 0,
"vulStatsFunctionM": 0,
"vulStatsHostC": 0,
"vulStatsHostH": 0,
"vulStatsHostL": 0,
"vulStatsHostM": 0,
"vulStatsImageC": 0,
"vulStatsImageH": 0,
"vulStatsImageL": 0,
"vulStatsImageM": 0
}
]
}
bad_request
unauthorized_access