Hi Gurus,
I am new to Chronicle SIEM, I can get alerts with ListDetections APIs(
Thanks
Google SecOps' REST API has a method that lets you update the status of alerts. You can find the documentation here: https://cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/l...
The API David mentioned is the new Chronicle API, which requires the Chronicle instance to be on Feature RBAC (IAM)
https://cloud.google.com/chronicle/docs/onboard/configure-feature-access
Thanks a lot. May I know where I can get path parameter instance value (projects/{project}/locations/{region}/instances/{instance})? Can I obtain it with API or I have to find project, region and instance on UI?
Sure @JonathanY.
@JonathanY, we recently shared a Python module that calls the legacyUpdateAlert API method that David referred to. You can find it here:
https://github.com/chronicle/api-samples-python/blob/master/detect/v1alpha/update_alert.py
Update: I also wrote a blog post on Bulk closing alerts with Python and the Google Security Operations API
Hi dear all,
Thank you so much.
I tried the API endpoint(POST https://chronicle.googleapis.com/v1alpha/projects/{project}/locations/{location}/instances/{instance...) with GCP Project ID and Customer ID obtained from SecOps SETTING S Profile; as I don't know the location, so I use the default value "us", but API returns 404 Not Found.
I am not sure if I inputed the wrong location or it is an IAM issue. Appreciate your kind comments.
One gotcha is that the API endpoint for the US is
Thanks Brian. So I have to prefix "us-" before POST https://chronicle.googleapis.com/v1alpha/{instance}/legacy:legacyUpdateAlert? As in API doc(https://cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/l...), it doesn't mention that I should prefix region ahead of base url.
Thanks