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

OneAgent fullstack mode to infra mode change via API

dinesh_chandra
Frequent Guest

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

2 REPLIES 2

Peter_Youssef
Champion

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

 

Peter_Youssef
Champion

Hi @dinesh_chandra 

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

2024-10-06_17h06_48.png

2024-10-06_17h09_40.png

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.

Featured Posts