Need assistance in order to eliminate numbers/unwanted text from the URL Path for
above URl’s to be listed as
We have tried using clean up URL for a single service and is working fine, however in our scenario there are more than 100 services in one environment and we have 10 plus environment. Doing them individually is a challenge need something like global cleanup rule.
Other way which was suggested was using API-> /service/requestNaming
However I don't have idea how to use the API in order to meet the desired result. Could you please help with the JSON to do the needful.
Have you attempted to use the API yet? If you have the rule configured on a single service properly it should be easy to figure out.
To start log into your tenant and click on your user icon and select "Configuration API":
Next scroll down to "Service - Request naming". We are going to submit a POST request which will create the new rule in the Dynatrace tenant. Make sure that once you have expanded the POST option you click the padlock icon and submit an API token that can write configurations:
After you have expanded the POST request option and added a correct API token you should hit "try it out". From here it will give you a sample JSON body that you can modify with the criteria you added to the single service:
Modify this JSON body to your needs using this document: https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/service-api/request-naming-ap...
Once this works you should have the rule applied across the entire environment. I recommend testing this out in pre production first just in case you have any issues!
Let me know if you need more assistance on this!
Hi Dallas P,
Yes I am aware of the above. Point of raising the same was, I am facing issues while consuming the API. I don't want to mess up with the global configuration as I am having incomplete knowledge on the same.
Could you please help me with one of the json any one
Converting the above to