27 May 2021
12:34 AM
- last edited on
01 Jun 2021
04:07 AM
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.
Hi Community members, do you have some helpful tips on subject mentioned above?
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)"
}
]
}
]
}
}
]