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

DT API for Infra and Full-Stack Toggle

jarinmusarrat
Dynatrace Advocate
Dynatrace Advocate

Is there a DT API to get the correct calls to toggle a host from full_stack mode to infra-only, and vice versa? 

2 REPLIES 2

theharithsa
Dynatrace Pro
Dynatrace Pro

Hi @jarinmusarrat 
We have an API that does that but you have to first get the properties of the hosts using Hosts API (Configuration API) and then you need to pass the parameter as aPUT request to do that, here is an example of it, 

1. API to access

 take the payload after editing the property and use it in postman (PUT request).

/api/config/v1/hosts/<Host-ID>/monitoring

{
"monitoringEnabled": true,
"monitoringMode": "FULL_STACK",
"autoInjectionEnabled": true
}

 

This API can be found in Configuration API > OneAgent on a Host.

 

Love more, hate less; Technology for all, together we grow.

jarinmusarrat
Dynatrace Advocate
Dynatrace Advocate

Thank you @theharithsa. This is very helpful.