Hi, I'm trying to test Artifact Analisys API method "projects.occurrences.list" here
When i use the filter kind="VULNERABILITY" it works fine.
But when i try to use the filter kind="VULNERABILITY" AND vulnerability.effectiveSeverity="HIGH" I got this error:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT"
}
}
What I'm doing wrong?
Hi, @carlos1006.
According to the Container Analysis API documentation, the Artifact Registry does not include an API with the vulnerability.effectiveSeverity field which is why you're encountering this error. Instead, you can use the getVulnerabilitySummary and getVulnerabilityOccurrencesSummary APIs. I recommend checking the documentation for these APIs to learn how to implement them correctly. Ref - Container Analysis API
Regards,
Mokit