After some investigation:
- pause-all-alerts pauses all alerts for all organizations
- It is registered as a Grafana Admin function which means API keys won’t work. This is apparently a feature and not a bug
So unfortunately, to do what you want you will have to pause each alert individually:
-
First by getting all the alerts for your organization using your API key
-
Then you will have to loop through each alert and pause them one by one.