15 Jun 2022 04:25 PM - last edited on 21 Aug 2024 08:43 AM by Michal_Gebacki
Is there a DT API to get the correct calls to toggle a host from full_stack mode to infra-only, and vice versa?
Solved! Go to Solution.
15 Jun 2022 04:42 PM
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.
15 Jun 2022 04:51 PM
Thank you @theharithsa. This is very helpful.