# Dynatrace API

**URL:** https://community.dynatrace.com/c/platform/api/94.md?page=9

[Latest](https://community.dynatrace.com/latest.md) · [Categories](https://community.dynatrace.com/categories.md) · [Tags](https://community.dynatrace.com/tags.md)

**Page:** 10

---

## [Track consumed host units for licensing usage](https://community.dynatrace.com/t/track-consumed-host-units-for-licensing-usage/42330)

<div class="topic-metadata">

**Author:** [@realdynatrace](https://community.dynatrace.com/u/realdynatrace)\
**Replies:** 2\
**Last updated:** [October 27, 2023, 11:59am UTC](https://community.dynatrace.com/t/track-consumed-host-units-for-licensing-usage/42330 "2023-10-27T11:59:28Z")

</div>

Hello guys, you can use the curl call below to track host units (this requires jq tool in linux) Have a nice day.

---

## [Differences between Dashboard Data and API export data for the same period](https://community.dynatrace.com/t/differences-between-dashboard-data-and-api-export-data-for-the-same-period/42209)

<div class="topic-metadata">

**Author:** [@EvaWang](https://community.dynatrace.com/u/EvaWang)\
**Replies:** 2\
**Last updated:** [October 24, 2023, 2:50pm UTC](https://community.dynatrace.com/t/differences-between-dashboard-data-and-api-export-data-for-the-same-period/42209 "2023-10-24T14:50:21Z")

</div>

I compared the data of DDU dashboard for the same period with the data exported using the API, and found a difference. I don’t know what caused it, please help me and give me some suggestions. The picture below shows th…

---

## [MetricSelector for Properties Attribute](https://community.dynatrace.com/t/metricselector-for-properties-attribute/42178)

<div class="topic-metadata">

**Author:** [@abnerlusung](https://community.dynatrace.com/u/abnerlusung)\
**Replies:** 7\
**Last updated:** [October 24, 2023, 7:03am UTC](https://community.dynatrace.com/t/metricselector-for-properties-attribute/42178 "2023-10-24T07:03:32Z")

</div>

Hi all, Need help for creating Metric Selectors to select this service and lookup the publicCloudId. This is the JSON. { "entityId": "SERVICE-ABCDEF", "type": "SERVICE", "displayName": "demo-name in ap-southeast…

---

## [How do get synthetic monitor availabililty from API?](https://community.dynatrace.com/t/how-do-get-synthetic-monitor-availabililty-from-api/42100)

<div class="topic-metadata">

**Author:** [@DuaneRoelands](https://community.dynatrace.com/u/DuaneRoelands)\
**Replies:** 13\
**Last updated:** [October 18, 2023, 8:54pm UTC](https://community.dynatrace.com/t/how-do-get-synthetic-monitor-availabililty-from-api/42100 "2023-10-18T20:54:14Z")

</div>

I would like to query the API with the id of a specific synthetic monitor and get the availability for the current day, for the last 7 days, for the last 30 days and for the last 90 days. The API documentation indicates…

---

## [What is the /v2/api equivalent of /api/v1/synthetic/monitors?](https://community.dynatrace.com/t/what-is-the-v2-api-equivalent-of-api-v1-synthetic-monitors/42169)

<div class="topic-metadata">

**Author:** [@DuaneRoelands](https://community.dynatrace.com/u/DuaneRoelands)\
**Replies:** 1\
**Last updated:** [October 18, 2023, 7:03pm UTC](https://community.dynatrace.com/t/what-is-the-v2-api-equivalent-of-api-v1-synthetic-monitors/42169 "2023-10-18T19:03:57Z")

</div>

The API documentation for v2 doesn’t seem to include a /synthetic/monitors endpoint. How can I retrieve a list of all synthetic monitors? Specifically, the items I would see at: https://{environmentid}.live.dynatrace.…

---

## [Get pods status](https://community.dynatrace.com/t/get-pods-status/42102)

<div class="topic-metadata">

**Author:** [@WellPP](https://community.dynatrace.com/u/WellPP)\
**Replies:** 1\
**Last updated:** [October 16, 2023, 3:34pm UTC](https://community.dynatrace.com/t/get-pods-status/42102 "2023-10-16T15:34:46Z")

</div>

Is it possible to get a list of pods and their status through the api?

---

## [Maintenance Window - not possible to select third saturday?](https://community.dynatrace.com/t/maintenance-window-not-possible-to-select-third-saturday/42078)

<div class="topic-metadata">

**Author:** [@McVitas](https://community.dynatrace.com/u/McVitas)\
**Replies:** 1\
**Last updated:** [October 13, 2023, 12:15pm UTC](https://community.dynatrace.com/t/maintenance-window-not-possible-to-select-third-saturday/42078 "2023-10-13T12:15:51Z")

</div>

Hello, this is quite surprising to me, because Microsoft releases patches every 2nd tuesday of the month, so obviously patching of Windows servers are usually related to this day. But in Dynatrace maintenance window set…

---

## [No objectif for host](https://community.dynatrace.com/t/no-objectif-for-host/41987)

<div class="topic-metadata">

**Author:** [@MDA](https://community.dynatrace.com/u/MDA)\
**Replies:** 7\
**Last updated:** [October 10, 2023, 9:11am UTC](https://community.dynatrace.com/t/no-objectif-for-host/41987 "2023-10-10T09:11:36Z")

</div>

Hello does anyone know why some host have no objectid. I try to take obectid for automatic disable monitoring and somme host haven’t objectid !

---

## [Is there a way to customize the Service ID for my web application?](https://community.dynatrace.com/t/is-there-a-way-to-customize-the-service-id-for-my-web-application/41899)

<div class="topic-metadata">

**Author:** [@hak](https://community.dynatrace.com/u/hak)\
**Replies:** 2\
**Last updated:** [October 4, 2023, 8:04am UTC](https://community.dynatrace.com/t/is-there-a-way-to-customize-the-service-id-for-my-web-application/41899 "2023-10-04T08:04:58Z")

</div>

I have a nextjs app that i have deployed to ECS. The application image has OneAgent installed in it. I’m able to see the app as a Service in Dynatrace. The service ID something along the lines of SERVICE-XXXXXXXXXXXXX I…

---

## [OneAgent host configuration via GET API call](https://community.dynatrace.com/t/oneagent-host-configuration-via-get-api-call/41765)

<div class="topic-metadata">

**Author:** [@PrateekGupta](https://community.dynatrace.com/u/PrateekGupta)\
**Replies:** 1\
**Last updated:** [September 26, 2023, 6:50am UTC](https://community.dynatrace.com/t/oneagent-host-configuration-via-get-api-call/41765 "2023-09-26T06:50:52Z")

</div>

I am trying to get the one agent host configuration via GET API call. but I am getting below error. "Token is missing required scope. Use one of: ReadConfig (Read configuration), Davis (Dynatrace module integration - Da …

---

## [Inconsistent results from API](https://community.dynatrace.com/t/inconsistent-results-from-api/41750)

<div class="topic-metadata">

**Author:** [@DuaneRoelands](https://community.dynatrace.com/u/DuaneRoelands)\
**Replies:** 2\
**Last updated:** [September 25, 2023, 1:28pm UTC](https://community.dynatrace.com/t/inconsistent-results-from-api/41750 "2023-09-25T13:28:00Z")

</div>

So, I can turn OneAgent on or off on a particular host with a POST call to /api/v2/settings/objects as follows: \[ { "schemaId": "builtin:host.monitoring", "value": { "enabled": true, …

---

## [How to get entities only that have problems using API?](https://community.dynatrace.com/t/how-to-get-entities-only-that-have-problems-using-api/38910)

<div class="topic-metadata">

**Author:** [@jamstelus](https://community.dynatrace.com/u/jamstelus)\
**Replies:** 3\
**Last updated:** [September 19, 2023, 3:48pm UTC](https://community.dynatrace.com/t/how-to-get-entities-only-that-have-problems-using-api/38910 "2023-09-19T15:48:39Z")

</div>

Does anyone know how to get a list of entities that have problems “only”? What endpoint to be used with parameters? if it is possible please show me example, Thanks

---

## [Policies for Access Tokens](https://community.dynatrace.com/t/policies-for-access-tokens/41627)

<div class="topic-metadata">

**Author:** [@marina\_pollehn](https://community.dynatrace.com/u/marina_pollehn)\
**Replies:** 3\
**Last updated:** [September 13, 2023, 12:11pm UTC](https://community.dynatrace.com/t/policies-for-access-tokens/41627 "2023-09-13T12:11:59Z")

</div>

Hi all, For a customer it would be ideal if I could get an access token with custom policies instead of the pre-set write settings. I need a token with two very specific policies assigned to it. Edit alerting profiles …

---

## [Dynatrace V2 API - How to Call Kubernetes Metrics?? Any Examples??](https://community.dynatrace.com/t/dynatrace-v2-api-how-to-call-kubernetes-metrics-any-examples/31798)

<div class="topic-metadata">

**Author:** [@louis\_gallo](https://community.dynatrace.com/u/louis_gallo)\
**Replies:** 7\
**Last updated:** [September 12, 2023, 3:44pm UTC](https://community.dynatrace.com/t/dynatrace-v2-api-how-to-call-kubernetes-metrics-any-examples/31798 "2023-09-12T15:44:36Z")

</div>

I am getting pretty proficient automating the pulling of metrics via the V2 API. My next challenge is how to create basic queries for statistics OpenShift pods from Kubernetes. I am totally stumped. Anyone have any good…

---

## [Use REST call to publish results as Dynatrace metrics](https://community.dynatrace.com/t/use-rest-call-to-publish-results-as-dynatrace-metrics/41547)

<div class="topic-metadata">

**Author:** [@dramacher](https://community.dynatrace.com/u/dramacher)\
**Replies:** 2\
**Last updated:** [September 11, 2023, 5:02pm UTC](https://community.dynatrace.com/t/use-rest-call-to-publish-results-as-dynatrace-metrics/41547 "2023-09-11T17:02:20Z")

</div>

Similar to “custom/generic database query” we are looking for a plug-in that allows us to make REST calls and store the result as custom metric in dynatrace. Is there a tool available to do so. The query should run ever…

---

## [Has anyone successfully integrated Dynatrace to the status API for Twilio?](https://community.dynatrace.com/t/has-anyone-successfully-integrated-dynatrace-to-the-status-api-for-twilio/20712)

<div class="topic-metadata">

**Author:** [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Replies:** 9\
**Last updated:** [September 11, 2023, 7:57am UTC](https://community.dynatrace.com/t/has-anyone-successfully-integrated-dynatrace-to-the-status-api-for-twilio/20712 "2023-09-11T07:57:20Z")

</div>

Hi All, Has anyone successfully integrated Dynatrace to the status API for Twilio? Details and dashboard here: Twilio Status - API JSON call (no authorization needed) here: https://gpkpyklzq55q.statuspage.io/api/v2/su…

---

## [rumUserSessionsClient API error in AUTH](https://community.dynatrace.com/t/rumusersessionsclient-api-error-in-auth/41408)

<div class="topic-metadata">

**Author:** [@andreaCaria](https://community.dynatrace.com/u/andreaCaria)\
**Replies:** 1\
**Last updated:** [September 7, 2023, 12:44pm UTC](https://community.dynatrace.com/t/rumusersessionsclient-api-error-in-auth/41408 "2023-09-07T12:44:08Z")

</div>

Hi all, I’m developing a dynatrace app and I would like to get the data for the user session query API as I have always done from Postman From the documentation I have seen that the portion of the code needed to fetch …

---

## [How to query multiple entityTypes in a single API call?](https://community.dynatrace.com/t/how-to-query-multiple-entitytypes-in-a-single-api-call/41380)

<div class="topic-metadata">

**Author:** [@NavenduGupta](https://community.dynatrace.com/u/NavenduGupta)\
**Replies:** 1\
**Last updated:** [September 5, 2023, 9:52am UTC](https://community.dynatrace.com/t/how-to-query-multiple-entitytypes-in-a-single-api-call/41380 "2023-09-05T09:52:31Z")

</div>

How can I query for multiple entityTypes in a single call? e.g. I want to query for all the entities which are either type (HOST) or type(PROCESS\_GROUP\_INSTANCE) for an environment? GET /e/\<env-id\>/api/v2/entities?page…

---

## [Issue with enabling log monitoring v2](https://community.dynatrace.com/t/issue-with-enabling-log-monitoring-v2/41451)

<div class="topic-metadata">

**Author:** [@khaled](https://community.dynatrace.com/u/khaled)\
**Replies:** 1\
**Last updated:** [August 31, 2023, 11:48am UTC](https://community.dynatrace.com/t/issue-with-enabling-log-monitoring-v2/41451 "2023-08-31T11:48:07Z")

</div>

couldn’t Activate the Custom log source configuration because I got an error I have to upgrade to log v2 When trying to trigger cluster Api v2 to enable log monitoring v2 gets the following error

---

## [Which API and field?: Indicator of brand new on-boarding hosts](https://community.dynatrace.com/t/which-api-and-field-indicator-of-brand-new-on-boarding-hosts/37278)

<div class="topic-metadata">

**Author:** [@avrildong](https://community.dynatrace.com/u/avrildong)\
**Replies:** 4\
**Last updated:** [August 25, 2023, 9:26pm UTC](https://community.dynatrace.com/t/which-api-and-field-indicator-of-brand-new-on-boarding-hosts/37278 "2023-08-25T21:26:18Z")

</div>

Use case: we intend to find out EXACT checklist of those brand-new-on-boarding hosts/one-agents during last 7 days or custom period. Those have to match with “Console \> Deployment status \> OneAgents” which EXCLUDE those …

---

## [Can I use API to realize Put Metric events setting?](https://community.dynatrace.com/t/can-i-use-api-to-realize-put-metric-events-setting/41209)

<div class="topic-metadata">

**Author:** [@kanna](https://community.dynatrace.com/u/kanna)\
**Replies:** 2\
**Last updated:** [August 21, 2023, 11:28am UTC](https://community.dynatrace.com/t/can-i-use-api-to-realize-put-metric-events-setting/41209 "2023-08-21T11:28:13Z")

</div>

Click the API on the page of Metric events, and the system gives the method of obtaining page data by default, but if I want to realize new Metric events through API, can it be realized? Because put/settings/objects/{obj…

---

## [Testing Reporting API Function](https://community.dynatrace.com/t/testing-reporting-api-function/41093)

<div class="topic-metadata">

**Author:** [@Afrezal\_Karim](https://community.dynatrace.com/u/Afrezal_Karim)\
**Replies:** 1\
**Last updated:** [August 21, 2023, 11:20am UTC](https://community.dynatrace.com/t/testing-reporting-api-function/41093 "2023-08-21T11:20:03Z")

</div>

Dear all Dynatrace Warrior, Good day to you. I have question related to the Reporting API function as per screenshot below. For your information, i have already added the list of email to subscribe to the report. Is t…

---

## [Retrieve a list of all Java classes and methods within a process group](https://community.dynatrace.com/t/retrieve-a-list-of-all-java-classes-and-methods-within-a-process-group/40512)

<div class="topic-metadata">

**Author:** [@kferterb](https://community.dynatrace.com/u/kferterb)\
**Replies:** 1\
**Last updated:** [August 14, 2023, 10:31am UTC](https://community.dynatrace.com/t/retrieve-a-list-of-all-java-classes-and-methods-within-a-process-group/40512 "2023-08-14T10:31:43Z")

</div>

Hello! I have a question. I want to create a custom service based on Java methods. I want to use the API for this. How can I retrieve a list of all Java classes and methods within a process group using the API?

---

## [Find version information for off-prem ActiveGates](https://community.dynatrace.com/t/find-version-information-for-off-prem-activegates/40596)

<div class="topic-metadata">

**Author:** [@skeatsm](https://community.dynatrace.com/u/skeatsm)\
**Replies:** 1\
**Last updated:** [August 8, 2023, 3:38pm UTC](https://community.dynatrace.com/t/find-version-information-for-off-prem-activegates/40596 "2023-08-08T15:38:47Z")

</div>

Hi Have been asked to report on OneAgent (OA) and ActiveGate (AG) version numbers for audit purposes. I can get version information for on prem OA and AGs via the API. However some OAs return an unknown AG ID. From se…

---

## [Policy for metrics Streams client](https://community.dynatrace.com/t/policy-for-metrics-streams-client/40924)

<div class="topic-metadata">

**Author:** [@SaiVenkatesh](https://community.dynatrace.com/u/SaiVenkatesh)\
**Replies:** 3\
**Last updated:** [July 31, 2023, 1:01pm UTC](https://community.dynatrace.com/t/policy-for-metrics-streams-client/40924 "2023-07-31T13:01:07Z")

</div>

We have added new metrics from cloud watch AWS to Dynatrace using CFT ( metrics streams client ) but a user with view access is not getting data when he run a query in Dataexplorer to view them. What permission ( policy…

---

## [Get the username who created a Browse click-path?](https://community.dynatrace.com/t/get-the-username-who-created-a-browse-click-path/40711)

<div class="topic-metadata">

**Author:** [@AK](https://community.dynatrace.com/u/AK)\
**Replies:** 4\
**Last updated:** [July 14, 2023, 9:40pm UTC](https://community.dynatrace.com/t/get-the-username-who-created-a-browse-click-path/40711 "2023-07-14T21:40:40Z")

</div>

Hello Folks, Is there a way we can get details of user who created a browser click-path? I have few browser click-paths for which I need find owner. Those click-paths could have been created a year ago also. Has anyon…

---

## [DynaKube metrics/ingest method POST is not supported](https://community.dynatrace.com/t/dynakube-metrics-ingest-method-post-is-not-supported/40024)

<div class="topic-metadata">

**Author:** [@tobydavies](https://community.dynatrace.com/u/tobydavies)\
**Replies:** 4\
**Last updated:** [July 13, 2023, 11:12pm UTC](https://community.dynatrace.com/t/dynakube-metrics-ingest-method-post-is-not-supported/40024 "2023-07-13T23:12:39Z")

</div>

Hi, I’ve followed this post: https://community.dynatrace.com/t5/Dynatrace-API/Dynatrace-V2-Metrics-API-Kubernetes-How-to-configure-localhost/m-p/192808 But reached the same issue as the OP in that question, that the me…

---

## [Token Management - no possibility to edit permissions](https://community.dynatrace.com/t/token-management-no-possibility-to-edit-permissions/40090)

<div class="topic-metadata">

**Author:** [@paulopeixoto](https://community.dynatrace.com/u/paulopeixoto)\
**Replies:** 4\
**Last updated:** [July 13, 2023, 4:40pm UTC](https://community.dynatrace.com/t/token-management-no-possibility-to-edit-permissions/40090 "2023-07-13T16:40:08Z")

</div>

Today it is not possible to edit the permissions of a Token generated for interactions via API. For example, a token allows data to be rendered on another company’s internal platform. If the organization identifies that…

---

## [Export incoming and outgoing connection data to a host through API](https://community.dynatrace.com/t/export-incoming-and-outgoing-connection-data-to-a-host-through-api/40357)

<div class="topic-metadata">

**Author:** [@amareshanand](https://community.dynatrace.com/u/amareshanand)\
**Replies:** 2\
**Last updated:** [June 24, 2023, 6:00pm UTC](https://community.dynatrace.com/t/export-incoming-and-outgoing-connection-data-to-a-host-through-api/40357 "2023-06-24T18:00:34Z")

</div>

Can you please advise, if there is any way to export incoming and outgoing connection data to a host through API. Thanks & Regards, Amaresh Anand

---

## [Settings API for Problem Notifications question](https://community.dynatrace.com/t/settings-api-for-problem-notifications-question/40161)

<div class="topic-metadata">

**Author:** [@MarciaB](https://community.dynatrace.com/u/MarciaB)\
**Replies:** 1\
**Last updated:** [June 13, 2023, 10:11am UTC](https://community.dynatrace.com/t/settings-api-for-problem-notifications-question/40161 "2023-06-13T10:11:12Z")

</div>

I am trying to use the new settings API to retrieve the details about Problem Notifications. I am successfully retrieving the list of all problem notifications with: /api/v2/settings/objects?schemaIds=builtin%3Aproblem…

[Previous page](https://community.dynatrace.com/c/platform/api/94.md?page=8)

[Next page](https://community.dynatrace.com/c/platform/api/94.md?page=10)
