I want to create Endpoints Rules ( Request Naming Rules) for a particular service (not global) via API.
I made it in UI, but we would like to create rules automatically, so that later we can make graphs in dashboards and watch response time are splitted by Endpoints.
I figured out how to create KeyRegister Names via API, but I can’t find how to make the Rules themselves.
I also think I found where is Global rules via api/config/v1/service/requestNaming, but we don’t have access to it.
I read that you can’t create rules for a specific service via API, but it’s very strange that you can create a KeyRegister Names for particular service, but not Rules.
Unfortunately, it’s not possible to create or modify request naming rules for particular entities. You can use Global request naming rules and apply them to services based on tags or other filtering as @DynaWiz suggests. If you don’t have access to the Configuration API, you must reach out to admin of your Dynatrace environment to provide you with a token with the required scope. A reminder - global rules are global and thus may affect the whole environment.