# Dynatrace API

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

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

**Page:** 5

---

## [Issue with Excluding 401 Response Code from Failures](https://community.dynatrace.com/t/issue-with-excluding-401-response-code-from-failures/49502)

<div class="topic-metadata">

**Author:** [@jatinarora](https://community.dynatrace.com/u/jatinarora)\
**Replies:** 4\
**Last updated:** [December 27, 2024, 7:52pm UTC](https://community.dynatrace.com/t/issue-with-excluding-401-response-code-from-failures/49502 "2024-12-27T19:52:30Z")

</div>

Hi, I’ve been receiving 401 response codes for a few APIs and would like to exclude this status code, treating it as a success instead. I tried overriding the general parameters and set the HTTP parameter as follows \[sn…

---

## [Vault : Get Vault Details in API](https://community.dynatrace.com/t/vault-get-vault-details-in-api/49482)

<div class="topic-metadata">

**Author:** [@J01am](https://community.dynatrace.com/u/J01am)\
**Replies:** 3\
**Last updated:** [December 26, 2024, 7:24pm UTC](https://community.dynatrace.com/t/vault-get-vault-details-in-api/49482 "2024-12-26T19:24:36Z")

</div>

Hello all I need to use Vault credential (USERNAME\_PASSWORD or CERTIFICATE) through API. I successfully got vault details (api/v2/credentials/\<id\>) (doc), but I didn’t find any documentation related to how “get vault d…

---

## [Management Zone ID using Settings Objects Endpoint](https://community.dynatrace.com/t/management-zone-id-using-settings-objects-endpoint/43554)

<div class="topic-metadata">

**Author:** [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Replies:** 17\
**Last updated:** [December 18, 2024, 12:56pm UTC](https://community.dynatrace.com/t/management-zone-id-using-settings-objects-endpoint/43554 "2024-12-18T12:56:00Z")

</div>

I’m trying to extract out the mgmt zone ID much like the user who created the post below. I can easily get the ID using the old deprecated endpoint at /config/v1/managementZones, see example output below. How can I get …

---

## [Loading IP mapping](https://community.dynatrace.com/t/loading-ip-mapping/49204)

<div class="topic-metadata">

**Author:** [@kickme](https://community.dynatrace.com/u/kickme)\
**Replies:** 8\
**Last updated:** [December 18, 2024, 9:32am UTC](https://community.dynatrace.com/t/loading-ip-mapping/49204 "2024-12-18T09:32:48Z")

</div>

hello When i load ip mapping in dynatrace (app web/system/…) all works fine. i can see all data manually added. With API, it works but i only add in dynatrace the data of last call (all previous data are deleted after…

---

## [Run API for many host from full stack to infra only](https://community.dynatrace.com/t/run-api-for-many-host-from-full-stack-to-infra-only/48078)

<div class="topic-metadata">

**Author:** [@HeyEngineer](https://community.dynatrace.com/u/HeyEngineer)\
**Replies:** 3\
**Last updated:** [December 8, 2024, 5:40pm UTC](https://community.dynatrace.com/t/run-api-for-many-host-from-full-stack-to-infra-only/48078 "2024-12-08T17:40:23Z")

</div>

using builtin:host.monitoring.mod I can do one using the post settings/objects API. How would I format one command where I have 400 host. \[{“schemaId”:“builtin:host.monitoring.mode”,“schemaVersion”:“1.2.0”,“scope”:“HOS…

---

## [How to query external API from Dynatrace periodically and fetch the data?](https://community.dynatrace.com/t/how-to-query-external-api-from-dynatrace-periodically-and-fetch-the-data/49191)

<div class="topic-metadata">

**Author:** [@Sisapy09](https://community.dynatrace.com/u/Sisapy09)\
**Replies:** 2\
**Last updated:** [December 4, 2024, 1:58pm UTC](https://community.dynatrace.com/t/how-to-query-external-api-from-dynatrace-periodically-and-fetch-the-data/49191 "2024-12-04T13:58:04Z")

</div>

How can I periodically query an external API from Dynatrace and fetch the data ? What requirements are needed from the external API side, and what is needed from Dynatrace side?

---

## [Dynatrace API get data points metric](https://community.dynatrace.com/t/dynatrace-api-get-data-points-metric/49039)

<div class="topic-metadata">

**Author:** [@JhonU](https://community.dynatrace.com/u/JhonU)\
**Replies:** 1\
**Last updated:** [November 25, 2024, 12:59am UTC](https://community.dynatrace.com/t/dynatrace-api-get-data-points-metric/49039 "2024-11-25T00:59:46Z")

</div>

Hi, can I execute a call to the dynatrace API of a tenant, in another tenant through notebooks? I have this idea to have data from an old tenant in a new tenant, I obtained the access token and in the curl I make the ca…

---

## [Migrating historical data between dynatrace tenants](https://community.dynatrace.com/t/migrating-historical-data-between-dynatrace-tenants/49036)

<div class="topic-metadata">

**Author:** [@JhonU](https://community.dynatrace.com/u/JhonU)\
**Replies:** 3\
**Last updated:** [November 24, 2024, 7:23pm UTC](https://community.dynatrace.com/t/migrating-historical-data-between-dynatrace-tenants/49036 "2024-11-24T19:23:38Z")

</div>

Hello everyone, in the organization we are migrating to a new tenant, the need arose to migrate historical data from the previous tenant to the new one, such as neologic metrics and indicators such as SLO. I would like …

---

## [Export topology relationship](https://community.dynatrace.com/t/export-topology-relationship/48953)

<div class="topic-metadata">

**Author:** [@roberto\_ravo](https://community.dynatrace.com/u/roberto_ravo)\
**Replies:** 5\
**Last updated:** [November 19, 2024, 4:11pm UTC](https://community.dynatrace.com/t/export-topology-relationship/48953 "2024-11-19T16:11:52Z")

</div>

Hi all! We would like to try to extract all entities from a given application. We have identified the possibility of using the /api/v2/entities API and extracting entities by type using the relationship part and then ma…

---

## [How to List Workloads with Entity ID Under the Cluster Name Using Dynatrace API](https://community.dynatrace.com/t/how-to-list-workloads-with-entity-id-under-the-cluster-name-using-dynatrace-api/48404)

<div class="topic-metadata">

**Author:** [@vignesh179](https://community.dynatrace.com/u/vignesh179)\
**Replies:** 2\
**Last updated:** [November 8, 2024, 6:16am UTC](https://community.dynatrace.com/t/how-to-list-workloads-with-entity-id-under-the-cluster-name-using-dynatrace-api/48404 "2024-11-08T06:16:34Z")

</div>

Hi Dynatrace Community, I’m trying to retrieve a list of workloads along with their entity IDs under a specific Kubernetes cluster using the Dynatrace API. I’ve encountered some issues while working with the entity sele…

---

## [API-token only for Maintenance Windows via Dynatrace API](https://community.dynatrace.com/t/api-token-only-for-maintenance-windows-via-dynatrace-api/34830)

<div class="topic-metadata">

**Author:** [@miliseclen](https://community.dynatrace.com/u/miliseclen)\
**Replies:** 3\
**Last updated:** [November 4, 2024, 8:54pm UTC](https://community.dynatrace.com/t/api-token-only-for-maintenance-windows-via-dynatrace-api/34830 "2024-11-04T20:54:42Z")

</div>

Is there a way to give READ&WRITE permissions only to manage maintenance windows via Dynatrace API? Currently, to use maintenance windows with API we need an API token with READ&WRITE all config permissions, which it’s …

---

## [Get metric data points by specifying IST time zone](https://community.dynatrace.com/t/get-metric-data-points-by-specifying-ist-time-zone/48560)

<div class="topic-metadata">

**Author:** [@MeetShah](https://community.dynatrace.com/u/MeetShah)\
**Replies:** 5\
**Last updated:** [October 28, 2024, 9:26am UTC](https://community.dynatrace.com/t/get-metric-data-points-by-specifying-ist-time-zone/48560 "2024-10-28T09:26:40Z")

</div>

I want to extract last 24hrs data points but the issue is I can get the data points based on UTC time zone I want based in IST which is UTC+05:30

---

## [Manual OTLP trace python ingest generate duplicate Service names](https://community.dynatrace.com/t/manual-otlp-trace-python-ingest-generate-duplicate-service-names/48547)

<div class="topic-metadata">

**Author:** [@cscotti78](https://community.dynatrace.com/u/cscotti78)\
**Replies:** 1\
**Last updated:** [October 25, 2024, 9:49am UTC](https://community.dynatrace.com/t/manual-otlp-trace-python-ingest-generate-duplicate-service-names/48547 "2024-10-25T09:49:43Z")

</div>

Hi, We reconstruct manually traces with python open telemetry package (1.27.0). When, we look at imported services in Dynatrace’s “Service” tab, we get duplicate services names : - one with python logo, which is enrich…

---

## [Get kubernetes cluster name form uuid](https://community.dynatrace.com/t/get-kubernetes-cluster-name-form-uuid/48546)

<div class="topic-metadata">

**Author:** [@johannrenck](https://community.dynatrace.com/u/johannrenck)\
**Replies:** 3\
**Last updated:** [October 25, 2024, 9:37am UTC](https://community.dynatrace.com/t/get-kubernetes-cluster-name-form-uuid/48546 "2024-10-25T09:37:38Z")

</div>

Hi!, when getting some information from a process group instance that runs on a pod in a kubernetes cluster, I can get the KUBERNETES\_CLUSTER\_ID that looks like a UUID: curl https://{environmentid}.live.dynatrace.com/a…

---

## [How do I update maintenance windows via the API v2?](https://community.dynatrace.com/t/how-do-i-update-maintenance-windows-via-the-api-v2/48465)

<div class="topic-metadata">

**Author:** [@badgerfifteen](https://community.dynatrace.com/u/badgerfifteen)\
**Replies:** 1\
**Last updated:** [October 22, 2024, 11:57am UTC](https://community.dynatrace.com/t/how-do-i-update-maintenance-windows-via-the-api-v2/48465 "2024-10-22T11:57:51Z")

</div>

Hi, For context, I am using the Settings - Objects API I’m looking to create an application which calls the Dynatrace API to update an existing maintenance window. When I put the object ID, I get the following 404 er…

---

## [Host unit consume metric](https://community.dynatrace.com/t/host-unit-consume-metric/48430)

<div class="topic-metadata">

**Author:** [@AskMe-Solutions](https://community.dynatrace.com/u/AskMe-Solutions)\
**Replies:** 4\
**Last updated:** [October 22, 2024, 8:33am UTC](https://community.dynatrace.com/t/host-unit-consume-metric/48430 "2024-10-22T08:33:46Z")

</div>

Hi Team, I would like to get values the HOST UNIT consumption and split by host to show each hostname via api. compare with last month and latest month is there any metric on api v2 could do that? ps. not use dps pri…

---

## [API for account management](https://community.dynatrace.com/t/api-for-account-management/45999)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 4\
**Last updated:** [October 18, 2024, 3:30pm UTC](https://community.dynatrace.com/t/api-for-account-management/45999 "2024-10-18T15:30:46Z")

</div>

Hello, I like to know if there is an API for account management? use case: example list all environment in my account KR Henk

---

## [OneAgent fullstack mode to infra mode change via API](https://community.dynatrace.com/t/oneagent-fullstack-mode-to-infra-mode-change-via-api/48166)

<div class="topic-metadata">

**Author:** [@dinesh\_chandra](https://community.dynatrace.com/u/dinesh_chandra)\
**Replies:** 2\
**Last updated:** [October 6, 2024, 1:19pm UTC](https://community.dynatrace.com/t/oneagent-fullstack-mode-to-infra-mode-change-via-api/48166 "2024-10-06T13:19:45Z")

</div>

Hello Folks, We have one agent running in fullstack mode in DC & want to change infra mode in one shot via api, could you please guide me how to do this. Note: Dynatrace is in SaaS based model. Thanaks

---

## [Find request that contains 'xxx/yyy' in the URL](https://community.dynatrace.com/t/find-request-that-contains-xxx-yyy-in-the-url/48065)

<div class="topic-metadata">

**Author:** [@Rachelzu](https://community.dynatrace.com/u/Rachelzu)\
**Replies:** 2\
**Last updated:** [October 1, 2024, 8:49am UTC](https://community.dynatrace.com/t/find-request-that-contains-xxx-yyy-in-the-url/48065 "2024-10-01T08:49:28Z")

</div>

Hi, In dynamic web request filter (or other place), how can I find all the request that contains ‘xxx/yyy’ in the URL?

---

## [Which oracle extension will give us the most metric visibility?](https://community.dynatrace.com/t/which-oracle-extension-will-give-us-the-most-metric-visibility/48055)

<div class="topic-metadata">

**Author:** [@runatyr](https://community.dynatrace.com/u/runatyr)\
**Replies:** 1\
**Last updated:** [October 1, 2024, 1:07am UTC](https://community.dynatrace.com/t/which-oracle-extension-will-give-us-the-most-metric-visibility/48055 "2024-10-01T01:07:35Z")

</div>

Hello: We are spinning up our first Oracle Cloud DB for a POC. Ideally, we would like to have as much of the metrics OCI provides made available through a connection with Dynatrace. I am not an Oracle expert by any de…

---

## [API to see all the IAM policies and their rules](https://community.dynatrace.com/t/api-to-see-all-the-iam-policies-and-their-rules/48011)

<div class="topic-metadata">

**Author:** [@dvb](https://community.dynatrace.com/u/dvb)\
**Replies:** 2\
**Last updated:** [September 28, 2024, 3:49pm UTC](https://community.dynatrace.com/t/api-to-see-all-the-iam-policies-and-their-rules/48011 "2024-09-28T15:49:20Z")

</div>

is there an API to see all the IAM policies and their rules : Background: there are multiple policies in our tenant and we want to document the same to make sure the same is available for future refernce, does Dynatrac…

---

## [List all incoming process connections using API](https://community.dynatrace.com/t/list-all-incoming-process-connections-using-api/47474)

<div class="topic-metadata">

**Author:** [@holst](https://community.dynatrace.com/u/holst)\
**Replies:** 2\
**Last updated:** [September 25, 2024, 8:19pm UTC](https://community.dynatrace.com/t/list-all-incoming-process-connections-using-api/47474 "2024-09-25T20:19:15Z")

</div>

We have hundreds of Hosts, and among them like 50 running MS SQL database. Now we want to list all hosts/processes calling these MS SQL databases. For a single host I can select the MS SQL process and use UI to see inco…

---

## [Management Zone list through API](https://community.dynatrace.com/t/management-zone-list-through-api/47862)

<div class="topic-metadata">

**Author:** [@CrazyHarry](https://community.dynatrace.com/u/CrazyHarry)\
**Replies:** 3\
**Last updated:** [September 23, 2024, 11:05am UTC](https://community.dynatrace.com/t/management-zone-list-through-api/47862 "2024-09-23T11:05:34Z")

</div>

Looking for a way to get a list of the Management Zones via the API. Another option would be from the GUI. If a path to that functionality can be provided. There is a large numeric value that is used in query request …

---

## [Export Management Zones](https://community.dynatrace.com/t/export-management-zones/46843)

<div class="topic-metadata">

**Author:** [@nicemukesh](https://community.dynatrace.com/u/nicemukesh)\
**Replies:** 14\
**Last updated:** [September 20, 2024, 6:11pm UTC](https://community.dynatrace.com/t/export-management-zones/46843 "2024-09-20T18:11:22Z")

</div>

Hi All, Need your guidance on below Question:- How to export Management Zone from Dynatrace. We have 800++ management zones. Any idea to export Management Zones will be much appreciated Mukesh

---

## [API v2 unexpected output converting curl to Powershell Invoke-RestMethod](https://community.dynatrace.com/t/api-v2-unexpected-output-converting-curl-to-powershell-invoke-restmethod/47406)

<div class="topic-metadata">

**Author:** [@runatyr](https://community.dynatrace.com/u/runatyr)\
**Replies:** 2\
**Last updated:** [September 18, 2024, 1:59pm UTC](https://community.dynatrace.com/t/api-v2-unexpected-output-converting-curl-to-powershell-invoke-restmethod/47406 "2024-09-18T13:59:04Z")

</div>

Hello: We are attempting to convert the curl command to a powershell Invoke-RestMethod command in the PIA v2 for GET /metrics/query I am unclear as to why I do not get the data returned with Invoke-RestMethod but CURL …

---

## [Testing OAuth to get token](https://community.dynatrace.com/t/testing-oauth-to-get-token/44485)

<div class="topic-metadata">

**Author:** [@Frazzle](https://community.dynatrace.com/u/Frazzle)\
**Replies:** 3\
**Last updated:** [September 10, 2024, 4:40pm UTC](https://community.dynatrace.com/t/testing-oauth-to-get-token/44485 "2024-09-10T16:40:38Z")

</div>

Hi, i am using the below details to pull back a token (removed the OAuth details), but we get a badrequest 400 back with this body and no idea what the issue is. Input: Headers: { “Content-Type”: “application/x-www-fo…

---

## [Retrieve the list of server of specific ManagementZone by APIs](https://community.dynatrace.com/t/retrieve-the-list-of-server-of-specific-managementzone-by-apis/47515)

<div class="topic-metadata">

**Author:** [@DAVID\_MTZ](https://community.dynatrace.com/u/DAVID_MTZ)\
**Replies:** 1\
**Last updated:** [September 6, 2024, 1:25am UTC](https://community.dynatrace.com/t/retrieve-the-list-of-server-of-specific-managementzone-by-apis/47515 "2024-09-06T01:25:59Z")

</div>

Hi I need to obtain the list of server of one specific ManagementZone, I do it by APIs. I need obtain the list of servers with other properties, but in my tenant, there are more than 9000 servers. For this reason I need…

---

## [Pulling Memory Profiling information via API](https://community.dynatrace.com/t/pulling-memory-profiling-information-via-api/47484)

<div class="topic-metadata">

**Author:** [@RishiSuthar](https://community.dynatrace.com/u/RishiSuthar)\
**Replies:** 2\
**Last updated:** [September 5, 2024, 12:25pm UTC](https://community.dynatrace.com/t/pulling-memory-profiling-information-via-api/47484 "2024-09-05T12:25:47Z")

</div>

Is it possible to pull the memory profiling file which Dynatrace generates with rest API?

---

## [Are the envs same in SaaS and sprint.apps.dynatracelabs.com](https://community.dynatrace.com/t/are-the-envs-same-in-saas-and-sprint-apps-dynatracelabs-com/47441)

<div class="topic-metadata">

**Author:** [@mouru](https://community.dynatrace.com/u/mouru)\
**Replies:** 2\
**Last updated:** [September 3, 2024, 9:55am UTC](https://community.dynatrace.com/t/are-the-envs-same-in-saas-and-sprint-apps-dynatracelabs-com/47441 "2024-09-03T09:55:34Z")

</div>

Im taking the Dynatrace Backstage plugin into use and got confused in what OAuths do I have to use for \<env\>.sprint.apps.dynatracelabs.com, and does my SaaS environments map to sprint.apps.dynatracelabs, /we that is, the…

---

## [Filter using in predicate example](https://community.dynatrace.com/t/filter-using-in-predicate-example/32525)

<div class="topic-metadata">

**Author:** [@dajunki](https://community.dynatrace.com/u/dajunki)\
**Replies:** 2\
**Last updated:** [August 29, 2024, 5:55am UTC](https://community.dynatrace.com/t/filter-using-in-predicate-example/32525 "2024-08-29T05:55:30Z")

</div>

I am trying to get errors at the method level, for a given application. I am using parents and names to have these values show up in the map. Based on documentation i should be able to use a filter with an IN clause…

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

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