# Create a way via API or GUI to determine the version of Dynatrace Operator in use

**URL:** <https://community.dynatrace.com/t/create-a-way-via-api-or-gui-to-determine-the-version-of-dynatrace-operator-in-use/36009>\
**Category:** Dynatrace Tips\
**Tags:** tips-and-tricks, kubernetes\
**Created:** [July 27, 2022, 7:24am UTC](https://community.dynatrace.com/t/create-a-way-via-api-or-gui-to-determine-the-version-of-dynatrace-operator-in-use/36009 "2022-07-27T07:24:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [July 27, 2022, 7:24am UTC](https://community.dynatrace.com/t/create-a-way-via-api-or-gui-to-determine-the-version-of-dynatrace-operator-in-use/36009/1 "2022-07-27T07:24:47Z")

</div>

As a huge organization, you have many deployments and no single person with the ability to check deployments.&nbsp; It would be HUGELY helpful to us if there was API or method to determine what version of the DT operator is in use for applications so that we can be sure they stay current and appropriately run the recommended updates&nbsp;[Deployment — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/full-stack-dto-k8#update)

(from&nbsp;[@alicia\_pepper](https://community.dynatrace.com/user/28169); source: [https://community.dynatrace.com/t5/Dynatrace-product-ideas/Create-a-way-via-API-or-GUI-to-determine-the-version-of/idi-p/190408](https://community.dynatrace.com/post/190408))

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [July 27, 2022, 7:25am UTC](https://community.dynatrace.com/t/create-a-way-via-api-or-gui-to-determine-the-version-of-dynatrace-operator-in-use/36009/2 "2022-07-27T07:25:11Z")

</div>

Dynatrace operator version is labeled so you can see this in UI:

 ![Radoslaw_Szulgo_0-1657698658784.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/8/78ff1cf633260b516724f7eeed9e566baecd6297.png)

So you can query this via Monitored Entities API from **Environments v2** :

```auto
curl -X GET "https://cluster-host/api/v2/entities/CLOUD_APPLICATION-123123123" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token dt0c01.token"

```

And then you get:

```auto
{
     "entityId": "CLOUD_APPLICATION-123123123",
     "type": "CLOUD_APPLICATION",
     "displayName": "dynatrace-operator",
     "firstSeenTms": 1648553052817,
     "lastSeenTms": 1657699408041,
     "properties": {
          "detectedName": "dynatrace-operator",
          "observedBy": ["API_MONITORING", "BUILTIN_METRICS"],
          "cloudApplicationLabels":
                { "app.kubernetes.io/name": "dynatrace-operator",
                  "app.kubernetes.io/version": "0.6.0",
                  "app.kubernetes.io/component": "operator"
                },
...

```

To get the list I believe you can play with filtering entities by “CLOUD\_APPLICATION” and set some tagging.

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [November 3, 2022, 9:54am UTC](https://community.dynatrace.com/t/create-a-way-via-api-or-gui-to-determine-the-version-of-dynatrace-operator-in-use/36009/3 "2022-11-03T09:54:19Z")

</div>

Has anybody, with this knowledge, created a way to automatically update the Operator?  
And is it on the roadmap to let Dynatrace itself automatically update?
