osv_vulns {rosv} | R Documentation |
Query OSV API for vulnerability information based on ID
Description
Use vulnerability IDs to extract more detailed information, usually paired with osv_querybatch()
.
Usage
osv_vulns(vuln_ids, parse = TRUE, cache = TRUE)
.osv_vulns(vuln_ids, parse = TRUE)
.osv_vulns_cache(vuln_ids, parse = TRUE)
Arguments
vuln_ids |
Vector of vulnerability IDs. |
parse |
Boolean value to set if the content field should be parsed from JSON list format. |
cache |
Boolean value to determine if should use a cached version of the function and API results. |
Value
An R6 object containing API query contents.
Functions
-
.osv_vulns()
: Internal function to runosv_vulns
without caching. -
.osv_vulns_cache()
: Internal function to run a memoise and cached version ofosv_vulns
.
Examples
vulns <- osv_vulns("RSEC-2023-8")
get_content(vulns)
[Package rosv version 0.5.1 Index]