cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there any API to Enable Override defaults in Process Group Settings?

nakb
Guide

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.

 

naveen_0-1622100750270.png

 

2 REPLIES 2

Michal_Gebacki
Community Team
Community Team

Hi Community members, do you have some helpful tips on subject mentioned above?

MaciejNeumann
Community Team
Community Team

As @pahofmann and @mark_bley are mentioning in the related Product Idea about this topic, this is now possible through Settings API.

MaciejNeumann_0-1650979804443.png

 

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)"
                        }
                    ]
                }
            ]
        }
    }
]

 

If you have any questions about the Community, you can contact me at maciej.neumann@dynatrace.com

Featured Posts