23 Aug 2022 04:02 PM - last edited on 21 Aug 2024 08:27 AM by Michal_Gebacki
Hi guys,
Customer asks to mute a request on all the services.
We looked at /api/v2/settings/objects but found out that the scope is a mandatory filed with in the body of the post.
What is the right way to add this muting to all existing services and also for future services?
Found year old product idea still in status new that might be the answer for this I think but I will be glad to read your inputs on this
Thanks in advance
All the best and stay safe
Yos
Solved! Go to Solution.
23 Aug 2022 05:18 PM
I believe the scope should be environment for environment wide settings. I tried that, unfortunately I'm getting 404 with
"No write access for scope class tenant"
I definitely have environment-wide permissions in this tenant and API token has the read/write settings permissions. 😐 Maybe the environment scope is not supported yet?
23 Aug 2022 07:22 PM
Is there a way to set the scope to management zone some how?
Yos
23 Aug 2022 09:35 PM
I don't think so. The schema shows:
"allowedScopes": [
"SERVICE"
]
So we have to stick with the service scope only and the environment scope does not apply.
Not sure what's behind your motivation for muting requests globally, but did you consider ignoring web requests also? For example excluding health check requests. This can be accomplished globally.
23 Aug 2022 10:04 PM
My bad don't know why I was looking for this rest api and not directlly use Exclude specific incoming web request URLs
silly me
Now its set
Thanks for your input!
Yos
24 Aug 2022 06:55 AM
You are welcome - just for the record - excluding the requests from being captured (applies for web URLs) also has a positive effect on the adaptive traffic management (more space for capturing meaningful requests) while muting those requests does not (requests are still captured).
27 Jun 2024 04:47 PM
Found this old thread, so perhaps there is a new solution now;
How to Mute a request over all services? Or at least over all services matching some filter. Do I need to script some loop than mute them one-by-one in loop, or can filter be done easier to avoid looping all services?