# Dynatrace API

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

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

**Page:** 13

---

## [Generate functioning Java code from the Swagger spec to call the Dynatrace API](https://community.dynatrace.com/t/generate-functioning-java-code-from-the-swagger-spec-to-call-the-dynatrace-api/34150)

<div class="topic-metadata">

**Author:** [@jaredst](https://community.dynatrace.com/u/jaredst)\
**Replies:** 1\
**Last updated:** [December 27, 2022, 10:41am UTC](https://community.dynatrace.com/t/generate-functioning-java-code-from-the-swagger-spec-to-call-the-dynatrace-api/34150 "2022-12-27T10:41:24Z")

</div>

How do you generate functioning Java code from the Swagger spec to call the Dynatrace API? I’ve downloaded the spec and generated code for the entire API using swagger-codegen-cli version 3.3.2. It generates code but the…

---

## [Service configuration: settings API vs dedicated endpoints](https://community.dynatrace.com/t/service-configuration-settings-api-vs-dedicated-endpoints/33900)

<div class="topic-metadata">

**Author:** [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Replies:** 3\
**Last updated:** [December 21, 2022, 5:07pm UTC](https://community.dynatrace.com/t/service-configuration-settings-api-vs-dedicated-endpoints/33900 "2022-12-21T17:07:08Z")

</div>

The API is getting more and more coverage in terms of configuration, especially with the recent additions to the settings API, which is great for big customers were config as code is the only option to keep up with the e…

---

## [Create HTTP Monitor using API via PowerShell script](https://community.dynatrace.com/t/create-http-monitor-using-api-via-powershell-script/37616)

<div class="topic-metadata">

**Author:** [@sriramprabhakar](https://community.dynatrace.com/u/sriramprabhakar)\
**Replies:** 1\
**Last updated:** [December 19, 2022, 11:48am UTC](https://community.dynatrace.com/t/create-http-monitor-using-api-via-powershell-script/37616 "2022-12-19T11:48:50Z")

</div>

Hi, I am trying to automate the creation of an HTTP monitor using PowerShell scripts. However, I always get a 400 when I try to pass the value of the location via variable. Please see below \[array\]$location = “\[GEOLOCA…

---

## [Integrate the Mulesoft APIs with Dynatrace](https://community.dynatrace.com/t/integrate-the-mulesoft-apis-with-dynatrace/37105)

<div class="topic-metadata">

**Author:** [@pulkitb](https://community.dynatrace.com/u/pulkitb)\
**Replies:** 4\
**Last updated:** [December 17, 2022, 9:50am UTC](https://community.dynatrace.com/t/integrate-the-mulesoft-apis-with-dynatrace/37105 "2022-12-17T09:50:10Z")

</div>

Could you please help me integrate the Mulesoft Cloudhub APIs with Dynatrace so that I can see the logs of Mule APIs over Dynatrace? Is any Plugin/Extension Needed? And please let me know the process for it. If so. Any …

---

## [V2 Query API - Can I filter by column in a custom metric?](https://community.dynatrace.com/t/v2-query-api-can-i-filter-by-column-in-a-custom-metric/36396)

<div class="topic-metadata">

**Author:** [@louis\_gallo](https://community.dynatrace.com/u/louis_gallo)\
**Replies:** 2\
**Last updated:** [December 16, 2022, 8:57am UTC](https://community.dynatrace.com/t/v2-query-api-can-i-filter-by-column-in-a-custom-metric/36396 "2022-12-16T08:57:54Z")

</div>

I have a multi-dimension custom metric that returns three dimensions. I would like to just filter and get one particular dimension: metricId,name,column,host.name,dt.host\_group.id,dt.entity.host,time,value custom.mymet…

---

## [Synchronise/clone web applications configuration and avoid ID collision](https://community.dynatrace.com/t/synchronise-clone-web-applications-configuration-and-avoid-id-collision/36699)

<div class="topic-metadata">

**Author:** [@Viachaslau](https://community.dynatrace.com/u/Viachaslau)\
**Replies:** 3\
**Last updated:** [December 14, 2022, 3:13pm UTC](https://community.dynatrace.com/t/synchronise-clone-web-applications-configuration-and-avoid-id-collision/36699 "2022-12-14T15:13:43Z")

</div>

Dynatrace has property id and key as unique values and what’s worse is it’s cashed for 30 days, and what’s even worse is that Dynatrace doesn’t generate random IDs just user sequences 1,2,3, etc for each app. If you hav…

---

## [POST call not working](https://community.dynatrace.com/t/post-call-not-working/35434)

<div class="topic-metadata">

**Author:** [@ssharm02](https://community.dynatrace.com/u/ssharm02)\
**Replies:** 1\
**Last updated:** [December 14, 2022, 2:16pm UTC](https://community.dynatrace.com/t/post-call-not-working/35434 "2022-12-14T14:16:57Z")

</div>

Hi everyone, I am using this REST API: https://www.dynatrace.com/support/help/dynatrace-api/environment-api/topology-and-sma\[…\]e/custom-device-api/report-custom-device-metric-via-rest-api to report a metric for an exis…

---

## [Position of a unique child-level dimension in the API call](https://community.dynatrace.com/t/position-of-a-unique-child-level-dimension-in-the-api-call/35945)

<div class="topic-metadata">

**Author:** [@manjunathcr22](https://community.dynatrace.com/u/manjunathcr22)\
**Replies:** 1\
**Last updated:** [December 14, 2022, 1:02pm UTC](https://community.dynatrace.com/t/position-of-a-unique-child-level-dimension-in-the-api-call/35945 "2022-12-14T13:02:12Z")

</div>

https://xxx12345.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:host.net.nic.packets.errors:names&from=now-1h&resolution=1h Wanted to know when we get entities based on the first dimension (https://xxx12…

---

## [Metadata display name not coming](https://community.dynatrace.com/t/metadata-display-name-not-coming/36622)

<div class="topic-metadata">

**Author:** [@Dynatrace124](https://community.dynatrace.com/u/Dynatrace124)\
**Replies:** 1\
**Last updated:** [December 14, 2022, 12:58pm UTC](https://community.dynatrace.com/t/metadata-display-name-not-coming/36622 "2022-12-14T12:58:18Z")

</div>

I am using Dynatrace OneAgent metric API and making post calls to ingest metrics in the Dynatrace server. I was trying to give a display name to some of the metrics being ingested using my script before making a post ca…

---

## [Oracle Insights v2 API CPU values interpretation](https://community.dynatrace.com/t/oracle-insights-v2-api-cpu-values-interpretation/33928)

<div class="topic-metadata">

**Author:** [@louis\_gallo](https://community.dynatrace.com/u/louis_gallo)\
**Replies:** 1\
**Last updated:** [December 14, 2022, 12:57pm UTC](https://community.dynatrace.com/t/oracle-insights-v2-api-cpu-values-interpretation/33928 "2022-12-14T12:57:38Z")

</div>

We are experimenting with the CPU numbers for Oracle servers coming back from Oracle Insights both in the UI and v2 API. The numbers that we are getting back are wildly high. Here is a sample query: DEBUG:root:Composin…

---

## [Dynatrace V2 Metric API to predict future data points](https://community.dynatrace.com/t/dynatrace-v2-metric-api-to-predict-future-data-points/35564)

<div class="topic-metadata">

**Author:** [@Roshini](https://community.dynatrace.com/u/Roshini)\
**Replies:** 2\
**Last updated:** [December 14, 2022, 12:23pm UTC](https://community.dynatrace.com/t/dynatrace-v2-metric-api-to-predict-future-data-points/35564 "2022-12-14T12:23:43Z")

</div>

Hello everyone, Just wanted to know, does Dynatrace Metrics API V2 have a feature to predict future data points? I wasn’t able to locate the Predict parameter in Metrics API V2. I believe Timeseries V1 has that featu…

---

## [OneAgent upgrade failures](https://community.dynatrace.com/t/oneagent-upgrade-failures/34504)

<div class="topic-metadata">

**Author:** [@kadirhan](https://community.dynatrace.com/u/kadirhan)\
**Replies:** 1\
**Last updated:** [December 14, 2022, 10:33am UTC](https://community.dynatrace.com/t/oneagent-upgrade-failures/34504 "2022-12-14T10:33:12Z")

</div>

How do I get details of OneAgent upgrade failures with API?

---

## [Which API: Info of "problem notification type ~ to: dl email list ~ binding Alerting profile"?](https://community.dynatrace.com/t/which-api-info-of-problem-notification-type-to-dl-email-list-binding-alerting-profile/37544)

<div class="topic-metadata">

**Author:** [@avrildong](https://community.dynatrace.com/u/avrildong)\
**Replies:** 2\
**Last updated:** [December 2, 2022, 2:18pm UTC](https://community.dynatrace.com/t/which-api-info-of-problem-notification-type-to-dl-email-list-binding-alerting-profile/37544 "2022-12-02T14:18:32Z")

</div>

Which API can be used to grab Info of “problem notification type ~ to: dl email list ~ binding Alerting profile”? Use case demo: Goal is to obtain “problem notification type ~ to: dl email list ~ binding Alerting profi…

---

## [Store custom problem notifications data in to SQL server](https://community.dynatrace.com/t/store-custom-problem-notifications-data-in-to-sql-server/37429)

<div class="topic-metadata">

**Author:** [@Koteswar](https://community.dynatrace.com/u/Koteswar)\
**Replies:** 5\
**Last updated:** [November 24, 2022, 9:48am UTC](https://community.dynatrace.com/t/store-custom-problem-notifications-data-in-to-sql-server/37429 "2022-11-24T09:48:23Z")

</div>

Hi Team, Greetings of the day. I am new to dynatrace.My question is how to store custom problem notifications data in to sql server database using Dynatrace API.I am unfamiliar with a best way to achieve this. Please…

---

## [How to post deployment event for particular host?](https://community.dynatrace.com/t/how-to-post-deployment-event-for-particular-host/37412)

<div class="topic-metadata">

**Author:** [@Naveen](https://community.dynatrace.com/u/Naveen)\
**Replies:** 3\
**Last updated:** [November 23, 2022, 8:15am UTC](https://community.dynatrace.com/t/how-to-post-deployment-event-for-particular-host/37412 "2022-11-23T08:15:46Z")

</div>

Hi I want to post deployment events with some information for particular host (i.e. HOST A), could someone explain how to do that via API. I am using Events API v2 - POST an event — Dynatrace Docs It’s not mentioned wh…

---

## [Which API?: Info of "CPU Usage" and "MEM Usage"](https://community.dynatrace.com/t/which-api-info-of-cpu-usage-and-mem-usage/37296)

<div class="topic-metadata">

**Author:** [@avrildong](https://community.dynatrace.com/u/avrildong)\
**Replies:** 8\
**Last updated:** [November 21, 2022, 9:35pm UTC](https://community.dynatrace.com/t/which-api-info-of-cpu-usage-and-mem-usage/37296 "2022-11-21T21:35:01Z")

</div>

We intend to get checklist of hosts with their CPU% and MEM% used info, which should return result to be consistent with dynatrace console \> hosts page. We tried api/v1/oneagents and api/v1/entity/infrastructure/hosts, …

---

## [Get all entities giving me error](https://community.dynatrace.com/t/get-all-entities-giving-me-error/37372)

<div class="topic-metadata">

**Author:** [@gurulakshman](https://community.dynatrace.com/u/gurulakshman)\
**Replies:** 1\
**Last updated:** [November 21, 2022, 11:54am UTC](https://community.dynatrace.com/t/get-all-entities-giving-me-error/37372 "2022-11-21T11:54:55Z")

</div>

I am trying to get all entities using this api call https://{your-environment-id}.live.dynatrace.com/api/v2/entities Let me know why i am getting this error But this gives me error {“error”: {“code”: 400,“message”: “…

---

## [Which API?:  kubernetes \> get list of project ID, project name, namespace, PODs](https://community.dynatrace.com/t/which-api-kubernetes-get-list-of-project-id-project-name-namespace-pods/37277)

<div class="topic-metadata">

**Author:** [@avrildong](https://community.dynatrace.com/u/avrildong)\
**Replies:** 2\
**Last updated:** [November 18, 2022, 11:55pm UTC](https://community.dynatrace.com/t/which-api-kubernetes-get-list-of-project-id-project-name-namespace-pods/37277 "2022-11-18T23:55:31Z")

</div>

Use case & Goal: Applicable to both “GCP \> GKE” and “Openshift”. We intend to retrieve list of project ID (gce project id if apply), project name(gce project name if apply), namespace, PODs, cluster name, process group …

---

## [How to get host CPU configuration?](https://community.dynatrace.com/t/how-to-get-host-cpu-configuration/37336)

<div class="topic-metadata">

**Author:** [@Metrologic](https://community.dynatrace.com/u/Metrologic)\
**Replies:** 5\
**Last updated:** [November 18, 2022, 9:40am UTC](https://community.dynatrace.com/t/how-to-get-host-cpu-configuration/37336 "2022-11-18T09:40:05Z")

</div>

Hello, We currently use Dynatrace Managed and I would like to get with API v2 the number of CPU or cores configured for each of our hosts (Virtual or Physical standalone servers running windows or Linux). I can’t find …

---

## [Lets discuss the ReplaceBetweenTransformation](https://community.dynatrace.com/t/lets-discuss-the-replacebetweentransformation/31216)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 2\
**Last updated:** [November 18, 2022, 12:21am UTC](https://community.dynatrace.com/t/lets-discuss-the-replacebetweentransformation/31216 "2022-11-18T00:21:47Z")

</div>

Hello, (Used in service detection API) Look at below parameters: remove every before and after, delimiter is not kept? Seems like only the replacement is kept? KR Henk

---

## [API to add monitoring rule on host or Host Group](https://community.dynatrace.com/t/api-to-add-monitoring-rule-on-host-or-host-group/37230)

<div class="topic-metadata">

**Author:** [@Julien](https://community.dynatrace.com/u/Julien)\
**Replies:** 3\
**Last updated:** [November 14, 2022, 12:12pm UTC](https://community.dynatrace.com/t/api-to-add-monitoring-rule-on-host-or-host-group/37230 "2022-11-14T12:12:48Z")

</div>

Hello, Will be great to have an API to create/update/delete monitoring rule for a host or a hostgroup. For example, in the GUI, we have to go on Hosts (or Host groups)\> Settings \> Process availability \> Add monitoring …

---

## [When will Problem API v1 become unavailable?](https://community.dynatrace.com/t/when-will-problem-api-v1-become-unavailable/37193)

<div class="topic-metadata">

**Author:** [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Replies:** 4\
**Last updated:** [November 10, 2022, 10:57am UTC](https://community.dynatrace.com/t/when-will-problem-api-v1-become-unavailable/37193 "2022-11-10T10:57:38Z")

</div>

Problem API v1 is officially deprecated. But, I just tested it now, and it still works. Does anyone know when it will become unavailable? The reason I ask is that at the moment, it’s not possible to get information that…

---

## [Dynatrace API - Get Service/Request metric from API calls](https://community.dynatrace.com/t/dynatrace-api-get-service-request-metric-from-api-calls/37200)

<div class="topic-metadata">

**Author:** [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Replies:** 1\
**Last updated:** [November 9, 2022, 2:07pm UTC](https://community.dynatrace.com/t/dynatrace-api-get-service-request-metric-from-api-calls/37200 "2022-11-09T14:07:55Z")

</div>

Hi Team, Any one experienced to get the metrics (response time, count…) for a specific service or request using API? IF yes, could you please post here the used API and a body as example… Thanks.

---

## [ActiveGate supports calls to all the Dynatrace API configuration](https://community.dynatrace.com/t/activegate-supports-calls-to-all-the-dynatrace-api-configuration/37110)

<div class="topic-metadata">

**Author:** [@msb](https://community.dynatrace.com/u/msb)\
**Replies:** 5\
**Last updated:** [November 3, 2022, 3:49pm UTC](https://community.dynatrace.com/t/activegate-supports-calls-to-all-the-dynatrace-api-configuration/37110 "2022-11-03T15:49:34Z")

</div>

Looking at the documents it states “ActiveGate supports calls to all the Dynatrace API configuration” but all the examples I find limit this to environment information. What is the syntax to get non-environment informat…

---

## [Difference between UserID, InternalUserId in usersession API response](https://community.dynatrace.com/t/difference-between-userid-internaluserid-in-usersession-api-response/37039)

<div class="topic-metadata">

**Author:** [@Balamurugesh](https://community.dynatrace.com/u/Balamurugesh)\
**Replies:** 1\
**Last updated:** [October 26, 2022, 5:52pm UTC](https://community.dynatrace.com/t/difference-between-userid-internaluserid-in-usersession-api-response/37039 "2022-10-26T17:52:55Z")

</div>

I am looking for detailed documentation which will provide info on response parameters in RUM API’s.

---

## [API to get problem details URL](https://community.dynatrace.com/t/api-to-get-problem-details-url/36984)

<div class="topic-metadata">

**Author:** [@Balamurugesh](https://community.dynatrace.com/u/Balamurugesh)\
**Replies:** 3\
**Last updated:** [October 20, 2022, 7:43pm UTC](https://community.dynatrace.com/t/api-to-get-problem-details-url/36984 "2022-10-20T19:43:06Z")

</div>

hi Team, i am looking for an API which will provide the problems link of an monitor.

---

## [V2 API Metrics Questions](https://community.dynatrace.com/t/v2-api-metrics-questions/36941)

<div class="topic-metadata">

**Author:** [@louis\_gallo](https://community.dynatrace.com/u/louis_gallo)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 8:47am UTC](https://community.dynatrace.com/t/v2-api-metrics-questions/36941 "2022-10-19T08:47:42Z")

</div>

In the Dynatrace V2 Metrics API, I have a few questions: 1) Can I set a time limit up for a DT V2 API query, or do I need to do that programmatically in my scripting? I ask because I would like it to timeout if a query …

---

## [How to rename a service by serice\_id?](https://community.dynatrace.com/t/how-to-rename-a-service-by-serice-id/36916)

<div class="topic-metadata">

**Author:** [@JAR](https://community.dynatrace.com/u/JAR)\
**Replies:** 2\
**Last updated:** [October 18, 2022, 7:42am UTC](https://community.dynatrace.com/t/how-to-rename-a-service-by-serice-id/36916 "2022-10-18T07:42:03Z")

</div>

Hi all! Can I rename services via API? - the rule to apply is the serviceId thanks in advanced jose A

---

## [Get exact timestamp in response](https://community.dynatrace.com/t/get-exact-timestamp-in-response/36861)

<div class="topic-metadata">

**Author:** [@jay-udt](https://community.dynatrace.com/u/jay-udt)\
**Replies:** 1\
**Last updated:** [October 12, 2022, 5:43am UTC](https://community.dynatrace.com/t/get-exact-timestamp-in-response/36861 "2022-10-12T05:43:10Z")

</div>

Hi I am trying to get the max value of metric data point using API for last 1 hour. I want the exact timestamp returned in response. But I am always getting the timestamp as to value I framed in query. In the below exam…

---

## [User count from RUM API](https://community.dynatrace.com/t/user-count-from-rum-api/36799)

<div class="topic-metadata">

**Author:** [@Balamurugesh](https://community.dynatrace.com/u/Balamurugesh)\
**Replies:** 1\
**Last updated:** [October 5, 2022, 6:24pm UTC](https://community.dynatrace.com/t/user-count-from-rum-api/36799 "2022-10-05T18:24:31Z")

</div>

hi, is it possible to get the number of users accessing a particular monitor/application in a month from RUM aPI?

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

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