OneAgent fullstack mode to infra mode change via API

Hello Folks,

We have one agent running in fullstack mode in DC & want to change infra mode in one shot via api, could you please guide me how to do this.

Note: Dynatrace is in SaaS based model.

Thanaks

Hi @dinesh_chandra

It’s easy so, Kindly follow the shown example as per Dynatrace documentation , you will replace the example info with real environment info

api-config-oneagent-on-host-monitoring-put

Regards,

Peter

Hi @dinesh_chandra

  1. create access token with “writeconfig” scope.
  2. Through the Rest Api either use the SaaS directly or the environment AG.

To get host id , access the server directly and check the SaaS URL as per attached example, use it to get the host id and run the Rest API accordingly

2024-10-06_17h16_49.png

KR,

Peter.