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

Dynatrace API for infrastructure and Full-Stack Toggle

jarinmusarrat
Dynatrace Guide
Dynatrace Guide

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 Champion
Dynatrace Champion

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 Guide
Dynatrace Guide

Thank you @theharithsa. This is very helpful.

 

Featured Posts