# REST API on security gateway?

**URL:** <https://community.dynatrace.com/t/rest-api-on-security-gateway/9239>\
**Category:** Dynatrace API\
**Tags:** activegate, dynatrace-api\
**Created:** [November 22, 2017, 7:20am UTC](https://community.dynatrace.com/t/rest-api-on-security-gateway/9239 "2017-11-22T07:20:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarjei\_utnes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tarjei_utnes/32/26934_2.png) [@tarjei\_utnes](https://community.dynatrace.com/u/tarjei_utnes)\
**Post date:** [November 22, 2017, 7:20am UTC](https://community.dynatrace.com/t/rest-api-on-security-gateway/9239/1 "2017-11-22T07:20:46Z")

</div>

Is it possible to access the REST API on the Dynatrace Managed server through the security gateway?

Meaning: The Security Gateway acts as a forward proxy for the Managed Cluster?

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [November 22, 2017, 7:27am UTC](https://community.dynatrace.com/t/rest-api-on-security-gateway/9239/2 "2017-11-22T07:27:54Z")

</div>

Yes that’s possible. We introduced that to enable customers to set up a publicly accessible security gateway to route the API calls from public internet to the Dynatrace server residing in a cooperate network.

---

<div class="post-metadata">

**Author:** ![tarjei\_utnes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tarjei_utnes/32/26934_2.png) [@tarjei\_utnes](https://community.dynatrace.com/u/tarjei_utnes)\
**Post date:** [November 22, 2017, 7:30am UTC](https://community.dynatrace.com/t/rest-api-on-security-gateway/9239/3 "2017-11-22T07:30:25Z")

</div>

Only from publicly accessible gateways? What If I want to have some of my network devices post metrics? [https://www.dynatrace.com/support/help/dynatrace-a…](https://www.dynatrace.com/support/help/dynatrace-api/custom-devices-and-metrics/what-does-the-custom-network-devices-and-metrics-api-provide/) Is that not possible?

And Wolfgang: How do I enable it?

By the way, this is dynatrace managed I am talking about

---

<div class="post-metadata">

**Author:** ![kristof\_renders](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kristof_renders/32/19857_2.png) [@kristof\_renders](https://community.dynatrace.com/u/kristof_renders)\
**Post date:** [November 22, 2017, 7:33am UTC](https://community.dynatrace.com/t/rest-api-on-security-gateway/9239/4 "2017-11-22T07:33:40Z")

</div>

Awesome! Was not aware!

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [November 22, 2017, 7:38am UTC](https://community.dynatrace.com/t/rest-api-on-security-gateway/9239/5 "2017-11-22T07:38:57Z")

</div>

Yes I understand its DT Managed. I am talking about our Dynatrace REST API that is documented here:

[https://www.dynatrace.com/support/help/dynatrace-a…](https://www.dynatrace.com/support/help/dynatrace-api/)

I am NOT talking about the internal REST API that is used by our UI. The functionality is available out of the box, so you can call the API (don’t forget to add the environment ID in the path) through the Gateway. A simple call to check if forwarding works is to request the actual cluster time, which is possible without authentication:

https://\<GATEWAY\>/e/\<ENVIRONMENT\>/api/v1/time

---

<div class="post-metadata">

**Author:** ![krokkas](https://avatars.discourse-cdn.com/v4/letter/k/ea5d25/32.png) [@krokkas](https://community.dynatrace.com/u/krokkas)\
**Post date:** [November 26, 2017, 5:41pm UTC](https://community.dynatrace.com/t/rest-api-on-security-gateway/9239/6 "2017-11-26T17:41:04Z")

</div>

Question: Does the API token need to be created on the Public Security Gateway, or on the Environment?

---

<div class="post-metadata">

**Author:** ![krokkas](https://avatars.discourse-cdn.com/v4/letter/k/ea5d25/32.png) [@krokkas](https://community.dynatrace.com/u/krokkas)\
**Post date:** [December 8, 2017, 3:36pm UTC](https://community.dynatrace.com/t/rest-api-on-security-gateway/9239/7 "2017-12-08T15:36:34Z")

</div>

Never mind, worked it out.
