# Changing API URL of dynakube.yaml

**URL:** <https://community.dynatrace.com/t/changing-api-url-of-dynakube-yaml/43874>\
**Category:** Open Q&A\
**Tags:** activegate, dynatrace-managed, oneagent\
**Created:** [January 29, 2024, 3:28am UTC](https://community.dynatrace.com/t/changing-api-url-of-dynakube-yaml/43874 "2024-01-29T03:28:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![agylpradipta](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agylpradipta/32/15511_2.png) [@agylpradipta](https://community.dynatrace.com/u/agylpradipta)\
**Post date:** [January 29, 2024, 3:28am UTC](https://community.dynatrace.com/t/changing-api-url-of-dynakube-yaml/43874/1 "2024-01-29T03:28:36Z")

</div>

Hello All, I just imagine the scenario of using Dynatrace Operator for monitoring Kubernetes environment in Dynatrace Managed.

So the flow gonna be like these:

_Monitoring data form AWS EKS → Cluster ActiveGate (With public address and direct connect to managed cluster) → Dynatrace Managed Cluster_

So if we setup OneAgent deployment for Kubernetes there will be dynakube.yaml generated right?

In the apiurl section usually it is automatically pointed to Managed Cluster address.

If the Amazon EKS cannot directly connect to managed cluster, should I change the apiurl address to Cluster ActiveGate public IP?

So it gonna be like **apiurl:** **[https://domain-cag.com:9999/e/](https://domain-cag.com:9999/e/)\<environment\_id\>/api**

Is that possible?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [January 29, 2024, 7:47am UTC](https://community.dynatrace.com/t/changing-api-url-of-dynakube-yaml/43874/2 "2024-01-29T07:47:41Z")

</div>

Try with :

https://\<clusterActiveGate\>/e/\<environmentId\>/api

---

<div class="post-metadata">

**Author:** ![Arvind1503](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Arvind1503](https://community.dynatrace.com/u/Arvind1503)\
**Post date:** [July 24, 2025, 11:43am UTC](https://community.dynatrace.com/t/changing-api-url-of-dynakube-yaml/43874/3 "2025-07-24T11:43:58Z")

</div>

Could someone confirm if this works?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [August 2, 2025, 7:57pm UTC](https://community.dynatrace.com/t/changing-api-url-of-dynakube-yaml/43874/4 "2025-08-02T19:57:28Z")

</div>

[@Arvind1503](https://community.dynatrace.com/user/90597).&nbsp;Yes, it will definitely work with both Cluster ActiveGate or even with Environment ActiveGate. The exposed API is the same on both. Just don’t forget to add the CA certificates to trustedCAs or use skipCertCheck - so that the Operator trusts your endpoints.
