Querying for defined servicegroup objects

Is it possible to retrieve a list of servicegroups via rest api?

I have defined some and confirm I can retrieve them specifically with my rest api queries, however I haven’t found a method to generate a list via rest api.

I have them defined similar to this:

object ServiceGroup "some_grouped_checks" {
  display_name = "Grouped Checks"
  assign where service.name == "grouped_checks"

The types section in the documentation introduced me to the /v1/types/ServiceGroup endpoint, but that doesn’t appear to have the information I need.

Appreciate the help, thank you.

Hello @coffee!

Have you tried /v1/objects/servicegroups?


1 Like

I didn’t try that, man I feel dumb. I don’t know how I missed that. Thank you!!