# Cluster Management API for license usage

**URL:** <https://community.dynatrace.com/t/cluster-management-api-for-license-usage/18695>\
**Category:** Dynatrace API\
**Tags:** licensing, dynatrace-api\
**Created:** [December 4, 2018, 6:30am UTC](https://community.dynatrace.com/t/cluster-management-api-for-license-usage/18695 "2018-12-04T06:30:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![krunal\_dave1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krunal_dave1/32/18102_2.png) [@krunal\_dave1](https://community.dynatrace.com/u/krunal_dave1)\
**Post date:** [December 4, 2018, 6:30am UTC](https://community.dynatrace.com/t/cluster-management-api-for-license-usage/18695/1 "2018-12-04T06:30:30Z")

</div>

Is there an easy way to query the cluster API to get licence usage?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [December 4, 2018, 7:52am UTC](https://community.dynatrace.com/t/cluster-management-api-for-license-usage/18695/2 "2018-12-04T07:52:48Z")

</div>

I think you are talking about Cluster Management API for Dynatrace Managed. If you will go to Cluster Management API page from your account menu, you will see all available endpoints. It’s not present in SaaS installation. Actually I don’t see there any option to check license through the API.

Regards,  
Sebastian

---

<div class="post-metadata">

**Author:** ![krunal\_dave1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krunal_dave1/32/18102_2.png) [@krunal\_dave1](https://community.dynatrace.com/u/krunal_dave1)\
**Post date:** [December 4, 2018, 8:14am UTC](https://community.dynatrace.com/t/cluster-management-api-for-license-usage/18695/3 "2018-12-04T08:14:41Z")

</div>

We have Dynatrace managed env, and we are looking for cluster management API to create report for license usage. I have gone through the documentation and found there is no API for License usage. is there anyother option availale to get this license usage data?

Thanks

Krunal

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [December 4, 2018, 8:24am UTC](https://community.dynatrace.com/t/cluster-management-api-for-license-usage/18695/4 "2018-12-04T08:24:22Z")

</div>

I don’t know any official way to do this. What can be done is creating headless browser (like casperjs) to login into cluster, go to proper page and screen scrap values but I think it’s to much compliction vs. results. If there is any official option I will also be happy to hear it 🙂

---

<div class="post-metadata">

**Author:** ![wolfgang\_schrei](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_schrei/32/17542_2.png) [@wolfgang\_schrei](https://community.dynatrace.com/u/wolfgang_schrei)\
**Post date:** [December 4, 2018, 9:00am UTC](https://community.dynatrace.com/t/cluster-management-api-for-license-usage/18695/5 "2018-12-04T09:00:55Z")

</div>

[@Krunal D.](https://answers.dynatrace.com/users/29265/view.html) we do not have an API or customer-facing consumption export at this point. We are working on extending our licensing capabilities for Managed and looking to release in spring 2019.

---

<div class="post-metadata">

**Author:** ![krunal\_dave1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krunal_dave1/32/18102_2.png) [@krunal\_dave1](https://community.dynatrace.com/u/krunal_dave1)\
**Post date:** [December 5, 2018, 2:19pm UTC](https://community.dynatrace.com/t/cluster-management-api-for-license-usage/18695/6 "2018-12-05T14:19:51Z")

</div>

Hi Wolfgang,

We figured out that the **/entity/infrastructure/hosts** endpoint, has JSON conatining host info as consumedHostUnits":"

which did give us information about total license used.

Thanks

Krunal

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [January 21, 2019, 8:13am UTC](https://community.dynatrace.com/t/cluster-management-api-for-license-usage/18695/7 "2019-01-21T08:13:09Z")

</div>

Any Updates on this, maybe when an EAP will start?

---

<div class="post-metadata">

**Author:** ![sascha\_koerner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sascha_koerner/32/33864_2.png) [@sascha\_koerner](https://community.dynatrace.com/u/sascha_koerner)\
**Post date:** [April 30, 2020, 12:46pm UTC](https://community.dynatrace.com/t/cluster-management-api-for-license-usage/18695/8 "2020-04-30T12:46:50Z")

</div>

Hi guys, we have the same “problem” now, we need to grep licence information from Dyntrace for our service reporting automatically out of the system. Does anyone know if there is a way today on the actual version ?

Cheers

Sascha

---

<div class="post-metadata">

**Author:** ![MaciejNeumann](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MaciejNeumann](https://community.dynatrace.com/u/MaciejNeumann)\
**Post date:** [April 26, 2022, 12:55pm UTC](https://community.dynatrace.com/t/cluster-management-api-for-license-usage/18695/9 "2022-04-26T12:55:40Z")

</div>

Hello&nbsp;[@sascha\_koerner](https://community.dynatrace.com/user/38146),

Is this what you are looking for?  
[Export license data](https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/cluster-api/cluster-api-v2/license/get-export-license-data)
