Hi @pmansfield
You can use the query parameter with the /services endpoint, although it’s not documented (I’m not sure why it’s not documented; but it was available in the pagerduty cli, so I went digging).
query doesn’t support a full regex, it’s really a contains match. It is at least case-insensitive, which is helpful. It also only applies to the name of the object, in this case the service name. For users it will match first or last name. I think it’s available for all objects, but I haven’t dug that deeply into it; I’m going off what Martin had in the cli code, which had query as a base argument for all objects.
So if I’m digging in one of my sandboxes and send a GET /services?query=shop, I get back one example list:
Fabulous Shop Database
Fabulous Shop Frontend
Fabulous Shop Search Caching
Fabulous Shop Search Service Backend
Fabulous Shop Shopping Cart Backend
Shopping Cart - Microservices Demo
Shopping Cart - Pulumi Demo-f7d625c
If using query doesn’t cull your records enough, you might want to take a look at the pagination docs. Pagination is definitely awkward if you are using shell scripts or command line tools, but usable from Python or Go.
@lupimiguel query works on the /vendors endpoint as well. Python example here.
HTH. Sorry for the confusion. We’ll see if we can get that param documented better.
--mandi