27 May 2021 08:34 AM - last edited on 01 Jun 2021 12:07 PM by Karolina_Linda
Hi I am trying to automate the enable/disable Process Group on all hosts using Override Defaults in Dynatrace but I am unable to find any PUT API for this, please let me know if any available or any other way to automate it.
Solved! Go to Solution.
04 Jan 2022 02:21 PM
Hi Community members, do you have some helpful tips on subject mentioned above?
26 Apr 2022 02:30 PM
As @pahofmann and @mark_bley are mentioning in the related Product Idea about this topic, this is now possible through Settings API.
You can try following payload and send it to "/api/v2/settings/objects"
[
{
"schemaVersion": "1.0.7",
"schemaId": "builtin:declarativegrouping",
"scope": "environment",
"value": {
"enabled": true,
"name": "MY TEST",
"detection": [
{
"id": "MY TEST",
"processGroupName": "Some PG Name",
"rules": [
{
"property": "executablePath",
"condition": "$eq(/path/to/exec)"
}
]
}
]
}
}
]