Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Can't use filters in API Explorer

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?

0 1 63
1 REPLY 1

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